From ea42ae206b8da84282bce2b432925107a836b097 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Fri, 3 May 2024 15:58:04 +0100 Subject: [PATCH 01/48] Feat: Cancel streams using permissions --- .../extension/streamingPayments.ts | 2 + src/graphql/generated.ts | 57 +++++++++++++++ src/handlers/expenditures/index.ts | 1 + .../streamingPaymentEndTimeSet.ts | 72 +++++++++++++++++++ src/types/events.ts | 3 + 5 files changed, 135 insertions(+) create mode 100644 src/handlers/expenditures/streamingPaymentEndTimeSet.ts diff --git a/src/eventListeners/extension/streamingPayments.ts b/src/eventListeners/extension/streamingPayments.ts index 4edf0d01d..1d236f617 100644 --- a/src/eventListeners/extension/streamingPayments.ts +++ b/src/eventListeners/extension/streamingPayments.ts @@ -3,6 +3,7 @@ import { handlePaymentTokenUpdated, handleStreamingPaymentCreated, } from '~handlers'; +import { handleStreamingPaymentEndTimeSet } from '~handlers/expenditures/streamingPaymentEndTimeSet'; import { ContractEventsSignatures } from '~types'; import { output } from '~utils'; @@ -28,6 +29,7 @@ export const setupListenersForStreamingPayments = ( [ContractEventsSignatures.StreamingPaymentCreated]: handleStreamingPaymentCreated, [ContractEventsSignatures.PaymentTokenUpdated]: handlePaymentTokenUpdated, + [ContractEventsSignatures.StartTimeSet]: handleStreamingPaymentEndTimeSet, }; Object.entries(eventHandlers).forEach(([eventSignature, handler]) => diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 40de303ca..6cfefbbdd 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -527,6 +527,10 @@ export type ColonyAction = { * Currently it is impossible to tell the reason for the action being hidden from the actions list */ showInActionsList: Scalars['Boolean']; + /** Streaming payment associated with the action, if any */ + streamingPayment?: Maybe; + /** ID of the associated streaming payment, if any */ + streamingPaymentId?: Maybe; /** The target Domain of the action, if applicable */ toDomain?: Maybe; /** The target Domain identifier, if applicable */ @@ -608,6 +612,8 @@ export enum ColonyActionType { CancelExpenditureMotion = 'CANCEL_EXPENDITURE_MOTION', /** An action related to a multiSig to cancel a staked expenditure */ CancelStakedExpenditureMultisig = 'CANCEL_STAKED_EXPENDITURE_MULTISIG', + /** An action related to cancelling a streaming payment */ + CancelStreamingPayment = 'CANCEL_STREAMING_PAYMENT', /** An action related to editing a Colony's details */ ColonyEdit = 'COLONY_EDIT', /** An action related to editing a Colony's details via a motion */ @@ -1463,6 +1469,7 @@ export type CreateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash: Scalars['String']; showInActionsList: Scalars['Boolean']; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -1855,10 +1862,12 @@ export type CreateSafeTransactionInput = { }; export type CreateStreamingPaymentInput = { + claims?: InputMaybe>; createdAt?: InputMaybe; endTime: Scalars['AWSTimestamp']; id?: InputMaybe; interval: Scalars['String']; + isCancelled?: InputMaybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; payouts?: InputMaybe>; @@ -2912,6 +2921,7 @@ export type ModelColonyActionConditionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -2958,6 +2968,7 @@ export type ModelColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -4108,6 +4119,7 @@ export type ModelStreamingPaymentConditionInput = { createdAt?: InputMaybe; endTime?: InputMaybe; interval?: InputMaybe; + isCancelled?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; not?: InputMaybe; @@ -4133,6 +4145,7 @@ export type ModelStreamingPaymentFilterInput = { endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; + isCancelled?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; not?: InputMaybe; @@ -4250,6 +4263,7 @@ export type ModelSubscriptionColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -4688,6 +4702,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; + isCancelled?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; or?: InputMaybe>>; @@ -6637,6 +6652,7 @@ export type Query = { cacheAllDomainBalance?: Maybe; cacheTotalBalanceByColonyAddress?: Maybe; getActionByExpenditureId?: Maybe; + getActionByStreamingPaymentId?: Maybe; getActionsByColony?: Maybe; getAnnotation?: Maybe; getCacheTotalBalance?: Maybe; @@ -6819,6 +6835,16 @@ export type QueryGetActionByExpenditureIdArgs = { }; +/** Root query type */ +export type QueryGetActionByStreamingPaymentIdArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; + streamingPaymentId: Scalars['ID']; +}; + + /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -8116,6 +8142,7 @@ export enum SearchableColonyActionAggregateField { RolesAreMultiSig = 'rolesAreMultiSig', RootHash = 'rootHash', ShowInActionsList = 'showInActionsList', + StreamingPaymentId = 'streamingPaymentId', ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', @@ -8171,6 +8198,7 @@ export type SearchableColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -8214,6 +8242,7 @@ export enum SearchableColonyActionSortableFields { RolesAreMultiSig = 'rolesAreMultiSig', RootHash = 'rootHash', ShowInActionsList = 'showInActionsList', + StreamingPaymentId = 'streamingPaymentId', ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', @@ -8416,10 +8445,14 @@ export type StakerRewardsInput = { export type StreamingPayment = { __typename?: 'StreamingPayment'; + actions?: Maybe; + claims?: Maybe>; createdAt: Scalars['AWSDateTime']; endTime: Scalars['AWSTimestamp']; id: Scalars['ID']; interval: Scalars['String']; + /** Is the stream cancelled? */ + isCancelled?: Maybe; metadata?: Maybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; @@ -8429,6 +8462,27 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; + +export type StreamingPaymentActionsArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; + +export type StreamingPaymentClaim = { + __typename?: 'StreamingPaymentClaim'; + amount: Scalars['String']; + timestamp: Scalars['AWSTimestamp']; + tokenAddress: Scalars['ID']; +}; + +export type StreamingPaymentClaimInput = { + amount: Scalars['String']; + timestamp: Scalars['AWSTimestamp']; + tokenAddress: Scalars['ID']; +}; + export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', @@ -9531,6 +9585,7 @@ export type UpdateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -9929,10 +9984,12 @@ export type UpdateSafeTransactionInput = { }; export type UpdateStreamingPaymentInput = { + claims?: InputMaybe>; createdAt?: InputMaybe; endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; + isCancelled?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; payouts?: InputMaybe>; diff --git a/src/handlers/expenditures/index.ts b/src/handlers/expenditures/index.ts index 3285c38f4..e10925024 100644 --- a/src/handlers/expenditures/index.ts +++ b/src/handlers/expenditures/index.ts @@ -19,3 +19,4 @@ export * from './expenditureMadeViaStake'; export * from './paymentTokenUpdated'; export * from './expenditureStateChanged'; export * from './stakeFractionSet'; +export * from './streamingPaymentEndTimeSet'; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts new file mode 100644 index 000000000..0c3bdb453 --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -0,0 +1,72 @@ +import { mutate } from '~amplifyClient'; +import { ExtensionEventListener } from '~eventListeners'; +import { + ColonyActionType, + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import { EventHandler } from '~types'; +import { + getExpenditureDatabaseId, + getStreamingPaymentsClient, + toNumber, + verbose, + writeActionFromEvent, +} from '~utils'; + +export const handleStreamingPaymentEndTimeSet: EventHandler = async ( + event, + listener, +) => { + const { blockNumber, timestamp } = event; + const { agent: initiatorAddress, streamingPaymentId } = event.args; + const convertedNativeId = toNumber(streamingPaymentId); + + const { colonyAddress } = listener as ExtensionEventListener; + + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + if (!streamingPaymentsClient) { + return; + } + + const streamingPayment = await streamingPaymentsClient.getStreamingPayment( + streamingPaymentId, + { blockTag: blockNumber }, + ); + if (!streamingPayment) { + return; + } + + const { endTime } = streamingPayment; + + const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + + const isCancelAction = streamingPayment.endTime.eq(timestamp); + + if (isCancelAction) { + verbose(`Streaming payment with ID ${databaseId} cancelled`); + } else { + verbose(`End time set for streaming payment with ID ${databaseId}`); + } + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + endTime: toNumber(endTime), + }, + }); + + if (isCancelAction) { + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CancelStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + }); + } +}; diff --git a/src/types/events.ts b/src/types/events.ts index 5950e50e0..1c92dd8ed 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -106,6 +106,9 @@ export enum ContractEventsSignatures { // Streaming Payments StreamingPaymentCreated = 'StreamingPaymentCreated(address,uint256)', PaymentTokenUpdated = 'PaymentTokenUpdated(address,uint256,address,uint256)', + StartTimeSet = 'StartTimeSet(address,uint256,uint256)', + EndTimeSet = 'EndTimeSet(address,uint256,uint256)', + ClaimWaived = 'ClaimWaived(address,uint256,address)', // Annotations AnnotateTransaction = 'Annotation(address,bytes32,string)', From a9d56fe9f9a81f6b22604f6425af6342c9166cbf Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 8 May 2024 14:26:55 +0100 Subject: [PATCH 02/48] Feat: Added isCancelled field to streaming payment model --- src/handlers/expenditures/streamingPaymentEndTimeSet.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index 0c3bdb453..4aade574e 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -59,6 +59,7 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( input: { id: databaseId, endTime: toNumber(endTime), + isCancelled: isCancelAction ? true : null, }, }); From 830f0058ab987bc6d94cff1358bf29646d5c1518 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 8 May 2024 14:55:13 +0100 Subject: [PATCH 03/48] Fix: isCancelAction logic in EndTimeSet --- src/graphql/generated.ts | 3 ++- src/graphql/queries/expenditures.graphql | 1 + .../streamingPaymentEndTimeSet.ts | 27 +++++-------------- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 6cfefbbdd..baa78000f 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -10873,7 +10873,7 @@ export type GetStreamingPaymentQueryVariables = Exact<{ }>; -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null } | null }; +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -12046,6 +12046,7 @@ export const GetStreamingPaymentDocument = gql` query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id + endTime payouts { amount tokenAddress diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 8cbcec96b..477f42404 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -21,6 +21,7 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id + endTime payouts { amount tokenAddress diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index 4aade574e..9e840869c 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -1,3 +1,4 @@ +import { BigNumber } from 'ethers'; import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; import { @@ -9,7 +10,6 @@ import { import { EventHandler } from '~types'; import { getExpenditureDatabaseId, - getStreamingPaymentsClient, toNumber, verbose, writeActionFromEvent, @@ -19,32 +19,17 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, listener, ) => { - const { blockNumber, timestamp } = event; - const { agent: initiatorAddress, streamingPaymentId } = event.args; + const { timestamp } = event; + const { agent: initiatorAddress, streamingPaymentId, endTime } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; - const streamingPaymentsClient = await getStreamingPaymentsClient( - colonyAddress, - ); - if (!streamingPaymentsClient) { - return; - } - - const streamingPayment = await streamingPaymentsClient.getStreamingPayment( - streamingPaymentId, - { blockTag: blockNumber }, - ); - if (!streamingPayment) { - return; - } - - const { endTime } = streamingPayment; - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); - const isCancelAction = streamingPayment.endTime.eq(timestamp); + // When a streaming payment is cancelled, the endTime is set to the current block timestamp + // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action + const isCancelAction = BigNumber.from(timestamp).eq(endTime); if (isCancelAction) { verbose(`Streaming payment with ID ${databaseId} cancelled`); From fee4ece0499a6a285f833e5db9bf5e630646386c Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 9 May 2024 14:43:14 +0100 Subject: [PATCH 04/48] Merge pull request #217 from JoinColony/feat/2215-cancel-streams-using-permissions Feat: Cancel streams using permissions From 850cfcea9de1a47758ed256056b0810ddccc9c64 Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Mon, 6 May 2024 11:55:27 +0100 Subject: [PATCH 05/48] Create streaming payment claimed handler --- src/eventListeners/extension/streamingPayments.ts | 5 ++++- src/handlers/expenditures/index.ts | 1 + src/handlers/expenditures/streamingPaymentClaimed.ts | 5 +++++ src/types/events.ts | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/handlers/expenditures/streamingPaymentClaimed.ts diff --git a/src/eventListeners/extension/streamingPayments.ts b/src/eventListeners/extension/streamingPayments.ts index 1d236f617..33e4de3a6 100644 --- a/src/eventListeners/extension/streamingPayments.ts +++ b/src/eventListeners/extension/streamingPayments.ts @@ -1,6 +1,7 @@ import { Extension, getExtensionHash } from '@colony/colony-js'; import { handlePaymentTokenUpdated, + handleStreamingPaymentClaimed, handleStreamingPaymentCreated, } from '~handlers'; import { handleStreamingPaymentEndTimeSet } from '~handlers/expenditures/streamingPaymentEndTimeSet'; @@ -29,7 +30,9 @@ export const setupListenersForStreamingPayments = ( [ContractEventsSignatures.StreamingPaymentCreated]: handleStreamingPaymentCreated, [ContractEventsSignatures.PaymentTokenUpdated]: handlePaymentTokenUpdated, - [ContractEventsSignatures.StartTimeSet]: handleStreamingPaymentEndTimeSet, + [ContractEventsSignatures.EndTimeSet]: handleStreamingPaymentEndTimeSet, + [ContractEventsSignatures.StreamingPaymentClaimed]: + handleStreamingPaymentClaimed, }; Object.entries(eventHandlers).forEach(([eventSignature, handler]) => diff --git a/src/handlers/expenditures/index.ts b/src/handlers/expenditures/index.ts index e10925024..89ecd6cea 100644 --- a/src/handlers/expenditures/index.ts +++ b/src/handlers/expenditures/index.ts @@ -20,3 +20,4 @@ export * from './paymentTokenUpdated'; export * from './expenditureStateChanged'; export * from './stakeFractionSet'; export * from './streamingPaymentEndTimeSet'; +export * from './streamingPaymentClaimed'; diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts new file mode 100644 index 000000000..a79b24c19 --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -0,0 +1,5 @@ +import { EventHandler } from '~types'; + +export const handleStreamingPaymentClaimed: EventHandler = async (event) => { + console.log('Streaming payment claimed: ', event); +}; diff --git a/src/types/events.ts b/src/types/events.ts index 1c92dd8ed..0df5cfa1e 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -109,6 +109,7 @@ export enum ContractEventsSignatures { StartTimeSet = 'StartTimeSet(address,uint256,uint256)', EndTimeSet = 'EndTimeSet(address,uint256,uint256)', ClaimWaived = 'ClaimWaived(address,uint256,address)', + StreamingPaymentClaimed = 'StreamingPaymentClaimed(address,uint256,address,uint256)', // Annotations AnnotateTransaction = 'Annotation(address,bytes32,string)', From aa64bd9e3fec27b1a880cdf0f1d13c61c95a5e7a Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Tue, 7 May 2024 14:53:36 +0100 Subject: [PATCH 06/48] Add streaming payment claims --- src/graphql/generated.ts | 13 +++- src/graphql/queries/expenditures.graphql | 4 ++ .../expenditures/streamingPaymentClaimed.ts | 60 ++++++++++++++++++- 3 files changed, 74 insertions(+), 3 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index baa78000f..673e41fca 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1902,6 +1902,7 @@ export type CreateTokenInput = { }; export type CreateTransactionInput = { + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress: Scalars['ID']; @@ -4756,6 +4757,7 @@ export type ModelSubscriptionTokenFilterInput = { export type ModelSubscriptionTransactionFilterInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -4898,6 +4900,7 @@ export type ModelTokenTypeInput = { export type ModelTransactionConditionInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -4933,6 +4936,7 @@ export type ModelTransactionConnection = { export type ModelTransactionFilterInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -9425,6 +9429,8 @@ export enum TokenType { /** Represents a transaction made in a colony by a user */ export type Transaction = { __typename?: 'Transaction'; + /** ID of the action associated with the transaction */ + associatedActionId?: Maybe; /** The block hash of the transaction */ blockHash?: Maybe; /** The block number of the transaction */ @@ -10024,6 +10030,7 @@ export type UpdateTokenInput = { }; export type UpdateTransactionInput = { + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -10873,7 +10880,7 @@ export type GetStreamingPaymentQueryVariables = Exact<{ }>; -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null } | null }; +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, tokenAddress: string }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -12052,6 +12059,10 @@ export const GetStreamingPaymentDocument = gql` tokenAddress isClaimed } + claims { + amount + tokenAddress + } } } `; diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 477f42404..5c6f6642b 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -27,5 +27,9 @@ query GetStreamingPayment($id: ID!) { tokenAddress isClaimed } + claims { + amount + tokenAddress + } } } diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts index a79b24c19..2cac25963 100644 --- a/src/handlers/expenditures/streamingPaymentClaimed.ts +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -1,5 +1,61 @@ +import { mutate } from '~amplifyClient'; +import { ExtensionEventListener } from '~eventListeners'; +import { + StreamingPaymentClaim, + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; import { EventHandler } from '~types'; +import { + getExpenditureDatabaseId, + getStreamingPaymentsClient, + output, + toNumber, +} from '~utils'; +import { getStreamingPaymentFromDB } from './helpers'; -export const handleStreamingPaymentClaimed: EventHandler = async (event) => { - console.log('Streaming payment claimed: ', event); +export const handleStreamingPaymentClaimed: EventHandler = async ( + event, + listener, +) => { + const { amount, streamingPaymentId, token: tokenAddress } = event.args; + const convertedNativeId = toNumber(streamingPaymentId); + + const { colonyAddress } = listener as ExtensionEventListener; + + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + if (!streamingPaymentsClient) { + return; + } + + const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + + const streamingPayment = await getStreamingPaymentFromDB(databaseId); + if (!streamingPayment) { + output( + `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, + ); + return; + } + + const newClaim: StreamingPaymentClaim = { + amount: amount.toString(), + tokenAddress, + }; + const claims: StreamingPaymentClaim[] = streamingPayment.claims + ? [...streamingPayment.claims, newClaim] + : [newClaim]; + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + claims, + }, + }); }; From 8f8b5f8b5b4a4e24080ca19b1fc3795cab8d79cb Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Wed, 8 May 2024 09:18:53 +0100 Subject: [PATCH 07/48] Remove unnecessary streamingPaymentClient --- .../expenditures/streamingPaymentClaimed.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts index 2cac25963..cd9f710ab 100644 --- a/src/handlers/expenditures/streamingPaymentClaimed.ts +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -7,12 +7,7 @@ import { UpdateStreamingPaymentMutationVariables, } from '~graphql'; import { EventHandler } from '~types'; -import { - getExpenditureDatabaseId, - getStreamingPaymentsClient, - output, - toNumber, -} from '~utils'; +import { getExpenditureDatabaseId, output, toNumber } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; export const handleStreamingPaymentClaimed: EventHandler = async ( @@ -24,13 +19,6 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( const { colonyAddress } = listener as ExtensionEventListener; - const streamingPaymentsClient = await getStreamingPaymentsClient( - colonyAddress, - ); - if (!streamingPaymentsClient) { - return; - } - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); const streamingPayment = await getStreamingPaymentFromDB(databaseId); From 05a6259545d4d7f48bc95983a31027e891e7de7d Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Wed, 8 May 2024 09:39:21 +0100 Subject: [PATCH 08/48] Add timestamp to streaming payment claims --- src/graphql/generated.ts | 3 ++- src/graphql/queries/expenditures.graphql | 1 + src/handlers/expenditures/streamingPaymentClaimed.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 673e41fca..7ac9c5f72 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -10880,7 +10880,7 @@ export type GetStreamingPaymentQueryVariables = Exact<{ }>; -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, tokenAddress: string }> | null } | null }; +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, tokenAddress: string, timestamp: number }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -12062,6 +12062,7 @@ export const GetStreamingPaymentDocument = gql` claims { amount tokenAddress + timestamp } } } diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 5c6f6642b..c1186131d 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -30,6 +30,7 @@ query GetStreamingPayment($id: ID!) { claims { amount tokenAddress + timestamp } } } diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts index cd9f710ab..cb701ffec 100644 --- a/src/handlers/expenditures/streamingPaymentClaimed.ts +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -14,6 +14,7 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( event, listener, ) => { + const { timestamp } = event; const { amount, streamingPaymentId, token: tokenAddress } = event.args; const convertedNativeId = toNumber(streamingPaymentId); @@ -32,6 +33,7 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( const newClaim: StreamingPaymentClaim = { amount: amount.toString(), tokenAddress, + timestamp, }; const claims: StreamingPaymentClaim[] = streamingPayment.claims ? [...streamingPayment.claims, newClaim] From cc56a8c16617d22afefae0608ff7818e14535976 Mon Sep 17 00:00:00 2001 From: Dave Creaser <38098203+davecreaser@users.noreply.github.com> Date: Thu, 9 May 2024 16:54:32 +0100 Subject: [PATCH 09/48] Merge pull request #219 from JoinColony/feat/2206-claim-streaming-payments Feat/2206 claim streaming payments From 1c73bbb97bd7c499ac3bd745a775d3091bc5abe4 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Thu, 23 May 2024 22:44:59 +0100 Subject: [PATCH 10/48] Feat: create action when creating streaming payment --- src/handlers/expenditures/streamingPaymentCreated.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 27c3def63..e5dafbc91 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -1,16 +1,19 @@ import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; import { + ColonyActionType, CreateStreamingPaymentDocument, CreateStreamingPaymentMutation, CreateStreamingPaymentMutationVariables, } from '~graphql'; import { EventHandler } from '~types'; import { + getDomainDatabaseId, getExpenditureDatabaseId, getStreamingPaymentsClient, toNumber, verbose, + writeActionFromEvent, } from '~utils'; export const handleStreamingPaymentCreated: EventHandler = async ( @@ -18,7 +21,7 @@ export const handleStreamingPaymentCreated: EventHandler = async ( listener, ) => { const { blockNumber } = event; - const { streamingPaymentId } = event.args; + const { streamingPaymentId, agent: initiatorAddress } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -63,4 +66,11 @@ export const handleStreamingPaymentCreated: EventHandler = async ( interval: interval.toString(), }, }); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CreateStreamingPayment, + initiatorAddress, + expenditureId: databaseId, + fromDomainId: getDomainDatabaseId(colonyAddress, toNumber(domainId)), + }); }; From 680dd426e15acfe177dd27b769a740b5c8b708a5 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Fri, 7 Jun 2024 00:11:48 +0100 Subject: [PATCH 11/48] Feat: Adjust paymentTokenUpdated handler for new contracts version --- src/graphql/generated.ts | 54 +++++++++++++++++-- src/graphql/queries/expenditures.graphql | 7 +-- .../expenditures/paymentTokenUpdated.ts | 22 +++----- 3 files changed, 59 insertions(+), 24 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 7ac9c5f72..e128157d3 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1862,6 +1862,7 @@ export type CreateSafeTransactionInput = { }; export type CreateStreamingPaymentInput = { + amount?: InputMaybe; claims?: InputMaybe>; createdAt?: InputMaybe; endTime: Scalars['AWSTimestamp']; @@ -1870,9 +1871,9 @@ export type CreateStreamingPaymentInput = { isCancelled?: InputMaybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; - payouts?: InputMaybe>; recipientAddress: Scalars['String']; startTime: Scalars['AWSTimestamp']; + tokenAddress?: InputMaybe; }; export type CreateStreamingPaymentMetadataInput = { @@ -4116,6 +4117,7 @@ export type ModelSplitPaymentDistributionTypeInput = { }; export type ModelStreamingPaymentConditionInput = { + amount?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; endTime?: InputMaybe; @@ -4127,6 +4129,7 @@ export type ModelStreamingPaymentConditionInput = { or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentConnection = { @@ -4141,6 +4144,7 @@ export type ModelStreamingPaymentEndConditionInput = { }; export type ModelStreamingPaymentFilterInput = { + amount?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; endTime?: InputMaybe; @@ -4153,6 +4157,7 @@ export type ModelStreamingPaymentFilterInput = { or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentMetadataConditionInput = { @@ -4698,7 +4703,14 @@ export type ModelSubscriptionSafeTransactionFilterInput = { }; export type ModelSubscriptionStreamingPaymentFilterInput = { +<<<<<<< HEAD and?: InputMaybe>>; +======= + amount?: InputMaybe; + and?: InputMaybe< + Array> + >; +>>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; @@ -4709,6 +4721,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { @@ -8450,6 +8463,7 @@ export type StakerRewardsInput = { export type StreamingPayment = { __typename?: 'StreamingPayment'; actions?: Maybe; + amount?: Maybe; claims?: Maybe>; createdAt: Scalars['AWSDateTime']; endTime: Scalars['AWSTimestamp']; @@ -8460,9 +8474,9 @@ export type StreamingPayment = { metadata?: Maybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; - payouts?: Maybe>; recipientAddress: Scalars['String']; startTime: Scalars['AWSTimestamp']; + tokenAddress?: Maybe; updatedAt: Scalars['AWSDateTime']; }; @@ -9990,6 +10004,7 @@ export type UpdateSafeTransactionInput = { }; export type UpdateStreamingPaymentInput = { + amount?: InputMaybe; claims?: InputMaybe>; createdAt?: InputMaybe; endTime?: InputMaybe; @@ -9998,9 +10013,9 @@ export type UpdateStreamingPaymentInput = { isCancelled?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - payouts?: InputMaybe>; recipientAddress?: InputMaybe; startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type UpdateStreamingPaymentMetadataInput = { @@ -10879,8 +10894,27 @@ export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; +<<<<<<< HEAD export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, tokenAddress: string, timestamp: number }> | null } | null }; +======= +export type GetStreamingPaymentQuery = { + __typename?: 'Query'; + getStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + endTime: number; + tokenAddress?: string | null; + amount?: string | null; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + tokenAddress: string; + timestamp: number; + }> | null; + } | null; +}; +>>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -12050,6 +12084,7 @@ export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` } ${Expenditure}`; export const GetStreamingPaymentDocument = gql` +<<<<<<< HEAD query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id @@ -12063,6 +12098,19 @@ export const GetStreamingPaymentDocument = gql` amount tokenAddress timestamp +======= + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + id + endTime + tokenAddress + amount + claims { + amount + tokenAddress + timestamp + } +>>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) } } } diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index c1186131d..cac9f51e3 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -22,11 +22,8 @@ query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id endTime - payouts { - amount - tokenAddress - isClaimed - } + tokenAddress + amount claims { amount tokenAddress diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 6d94c4b5d..7d1d38063 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,15 +1,15 @@ -import { getExpenditureDatabaseId, toNumber, verbose } from '~utils'; +import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; import { mutate } from '~amplifyClient'; import { UpdateStreamingPaymentDocument, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; - -import { getStreamingPaymentFromDB } from './helpers'; import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; +import { getStreamingPaymentFromDB } from './helpers'; + export const handlePaymentTokenUpdated: EventHandler = async ( event, listener, @@ -22,21 +22,10 @@ export const handlePaymentTokenUpdated: EventHandler = async ( const streamingPayment = await getStreamingPaymentFromDB(databaseId); if (!streamingPayment) { + output(`Streaming payment with ID ${databaseId} not found in the database`); return; } - const newPayout = { - amount: amount.toString(), - tokenAddress, - isClaimed: false, - }; - const updatedPayouts = [ - ...(streamingPayment.payouts?.filter( - (payout) => payout.tokenAddress !== tokenAddress, - ) ?? []), - newPayout, - ]; - verbose(`Payment token updated for streaming payment with ID ${databaseId}`); await mutate< @@ -45,7 +34,8 @@ export const handlePaymentTokenUpdated: EventHandler = async ( >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - payouts: updatedPayouts, + tokenAddress, + amount: amount.toString(), }, }); }; From 39f6830dba42c01940d3681cc3b3530e3f6e3d03 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Fri, 7 Jun 2024 00:14:33 +0100 Subject: [PATCH 12/48] Feat: Store stream token address and amount on creation --- src/handlers/expenditures/streamingPaymentCreated.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index e5dafbc91..4bde6b973 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -46,6 +46,8 @@ export const handleStreamingPaymentCreated: EventHandler = async ( startTime, endTime, interval, + token: tokenAddress, + amount, } = streamingPayment; const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); @@ -64,6 +66,8 @@ export const handleStreamingPaymentCreated: EventHandler = async ( startTime: toNumber(startTime), endTime: toNumber(endTime), interval: interval.toString(), + tokenAddress, + amount: amount.toString(), }, }); From 3ad249e2e73276614b4f80b8124ae0ea8ce114b2 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Fri, 7 Jun 2024 00:26:08 +0100 Subject: [PATCH 13/48] Schema update: simplify StreamingPaymentClaim type --- src/graphql/generated.ts | 16 ++++++---------- src/graphql/queries/expenditures.graphql | 1 - .../expenditures/streamingPaymentClaimed.ts | 3 +-- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index e128157d3..1514ebe8c 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1862,7 +1862,7 @@ export type CreateSafeTransactionInput = { }; export type CreateStreamingPaymentInput = { - amount?: InputMaybe; + amount: Scalars['String']; claims?: InputMaybe>; createdAt?: InputMaybe; endTime: Scalars['AWSTimestamp']; @@ -1873,7 +1873,7 @@ export type CreateStreamingPaymentInput = { nativeId: Scalars['Int']; recipientAddress: Scalars['String']; startTime: Scalars['AWSTimestamp']; - tokenAddress?: InputMaybe; + tokenAddress: Scalars['String']; }; export type CreateStreamingPaymentMetadataInput = { @@ -8463,7 +8463,7 @@ export type StakerRewardsInput = { export type StreamingPayment = { __typename?: 'StreamingPayment'; actions?: Maybe; - amount?: Maybe; + amount: Scalars['String']; claims?: Maybe>; createdAt: Scalars['AWSDateTime']; endTime: Scalars['AWSTimestamp']; @@ -8476,7 +8476,7 @@ export type StreamingPayment = { nativeId: Scalars['Int']; recipientAddress: Scalars['String']; startTime: Scalars['AWSTimestamp']; - tokenAddress?: Maybe; + tokenAddress: Scalars['String']; updatedAt: Scalars['AWSDateTime']; }; @@ -8492,13 +8492,11 @@ export type StreamingPaymentClaim = { __typename?: 'StreamingPaymentClaim'; amount: Scalars['String']; timestamp: Scalars['AWSTimestamp']; - tokenAddress: Scalars['ID']; }; export type StreamingPaymentClaimInput = { amount: Scalars['String']; timestamp: Scalars['AWSTimestamp']; - tokenAddress: Scalars['ID']; }; export enum StreamingPaymentEndCondition { @@ -10904,12 +10902,11 @@ export type GetStreamingPaymentQuery = { __typename?: 'StreamingPayment'; id: string; endTime: number; - tokenAddress?: string | null; - amount?: string | null; + tokenAddress: string; + amount: string; claims?: Array<{ __typename?: 'StreamingPaymentClaim'; amount: string; - tokenAddress: string; timestamp: number; }> | null; } | null; @@ -12107,7 +12104,6 @@ export const GetStreamingPaymentDocument = gql` amount claims { amount - tokenAddress timestamp } >>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index cac9f51e3..8bd34eed2 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -26,7 +26,6 @@ query GetStreamingPayment($id: ID!) { amount claims { amount - tokenAddress timestamp } } diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts index cb701ffec..84b0b79c7 100644 --- a/src/handlers/expenditures/streamingPaymentClaimed.ts +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -15,7 +15,7 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( listener, ) => { const { timestamp } = event; - const { amount, streamingPaymentId, token: tokenAddress } = event.args; + const { amount, streamingPaymentId } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -32,7 +32,6 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( const newClaim: StreamingPaymentClaim = { amount: amount.toString(), - tokenAddress, timestamp, }; const claims: StreamingPaymentClaim[] = streamingPayment.claims From 741070f9d62dde4c872618de9fc69c2dd19d4843 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Tue, 11 Jun 2024 11:21:44 +0100 Subject: [PATCH 14/48] feat: handle ClaimWaived event emission --- .../extension/streamingPayments.ts | 2 ++ src/graphql/generated.ts | 1 + src/handlers/expenditures/index.ts | 1 + .../streamingPaymentClaimWaived.ts | 36 +++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 src/handlers/expenditures/streamingPaymentClaimWaived.ts diff --git a/src/eventListeners/extension/streamingPayments.ts b/src/eventListeners/extension/streamingPayments.ts index 33e4de3a6..8fb6baca2 100644 --- a/src/eventListeners/extension/streamingPayments.ts +++ b/src/eventListeners/extension/streamingPayments.ts @@ -2,6 +2,7 @@ import { Extension, getExtensionHash } from '@colony/colony-js'; import { handlePaymentTokenUpdated, handleStreamingPaymentClaimed, + handleStreamingPaymentClaimWaived, handleStreamingPaymentCreated, } from '~handlers'; import { handleStreamingPaymentEndTimeSet } from '~handlers/expenditures/streamingPaymentEndTimeSet'; @@ -33,6 +34,7 @@ export const setupListenersForStreamingPayments = ( [ContractEventsSignatures.EndTimeSet]: handleStreamingPaymentEndTimeSet, [ContractEventsSignatures.StreamingPaymentClaimed]: handleStreamingPaymentClaimed, + [ContractEventsSignatures.ClaimWaived]: handleStreamingPaymentClaimWaived, }; Object.entries(eventHandlers).forEach(([eventSignature, handler]) => diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 1514ebe8c..d3db5ff23 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -10014,6 +10014,7 @@ export type UpdateStreamingPaymentInput = { recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; + isWaived?: InputMaybe; }; export type UpdateStreamingPaymentMetadataInput = { diff --git a/src/handlers/expenditures/index.ts b/src/handlers/expenditures/index.ts index 89ecd6cea..b4f199663 100644 --- a/src/handlers/expenditures/index.ts +++ b/src/handlers/expenditures/index.ts @@ -21,3 +21,4 @@ export * from './expenditureStateChanged'; export * from './stakeFractionSet'; export * from './streamingPaymentEndTimeSet'; export * from './streamingPaymentClaimed'; +export * from './streamingPaymentClaimWaived'; diff --git a/src/handlers/expenditures/streamingPaymentClaimWaived.ts b/src/handlers/expenditures/streamingPaymentClaimWaived.ts new file mode 100644 index 000000000..28a11a43b --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentClaimWaived.ts @@ -0,0 +1,36 @@ +import { mutate } from '~amplifyClient'; +import { ExtensionEventListener } from '~eventListeners'; +import { + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import { EventHandler } from '~types'; +import { getExpenditureDatabaseId, toNumber, verbose } from '~utils'; + +export const handleStreamingPaymentClaimWaived: EventHandler = async ( + event, + listener, +) => { + console.log('ROMEO IM IN!'); + + const { streamingPaymentId } = event.args; + const convertedNativeId = toNumber(streamingPaymentId); + + const { colonyAddress } = listener as ExtensionEventListener; + + const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + isWaived: true, + isCancelled: true, + }, + }); + + verbose(`Streaming payment with ID ${databaseId} waived and cancelled`); +}; From 9154ba9e5f60f6345da23bacfc01443feb19d518 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Tue, 11 Jun 2024 11:22:09 +0100 Subject: [PATCH 15/48] feat: fix contract function params --- src/types/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/events.ts b/src/types/events.ts index 0df5cfa1e..762e06ba1 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -108,7 +108,7 @@ export enum ContractEventsSignatures { PaymentTokenUpdated = 'PaymentTokenUpdated(address,uint256,address,uint256)', StartTimeSet = 'StartTimeSet(address,uint256,uint256)', EndTimeSet = 'EndTimeSet(address,uint256,uint256)', - ClaimWaived = 'ClaimWaived(address,uint256,address)', + ClaimWaived = 'ClaimWaived(address,uint256)', StreamingPaymentClaimed = 'StreamingPaymentClaimed(address,uint256,address,uint256)', // Annotations From dbbc685b4b353755c7e4851c156e7cd883915173 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Tue, 11 Jun 2024 11:40:54 +0100 Subject: [PATCH 16/48] feat: remove comment --- src/handlers/expenditures/streamingPaymentClaimWaived.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/handlers/expenditures/streamingPaymentClaimWaived.ts b/src/handlers/expenditures/streamingPaymentClaimWaived.ts index 28a11a43b..24b63c7c8 100644 --- a/src/handlers/expenditures/streamingPaymentClaimWaived.ts +++ b/src/handlers/expenditures/streamingPaymentClaimWaived.ts @@ -12,8 +12,6 @@ export const handleStreamingPaymentClaimWaived: EventHandler = async ( event, listener, ) => { - console.log('ROMEO IM IN!'); - const { streamingPaymentId } = event.args; const convertedNativeId = toNumber(streamingPaymentId); From 16256296b633f8e738df21c8f2a3ab2e6b80afe5 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Tue, 11 Jun 2024 12:41:20 +0100 Subject: [PATCH 17/48] feat: write an action for the cancel and waive event --- src/graphql/generated.ts | 61 +++++-------------- .../streamingPaymentClaimWaived.ts | 16 ++++- 2 files changed, 29 insertions(+), 48 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index d3db5ff23..6c405e6a7 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -606,6 +606,8 @@ export enum ColonyActionType { AddVerifiedMembersMultisig = 'ADD_VERIFIED_MEMBERS_MULTISIG', /** An action related to arbitrary transaction */ ArbitraryTx = 'ARBITRARY_TX', + /** An action related to cancelling and waiving a streaming payment */ + CancelAndWaiveStreamingPayment = 'CANCEL_AND_WAIVE_STREAMING_PAYMENT', /** An action related to canceling an expenditure */ CancelExpenditure = 'CANCEL_EXPENDITURE', /** An action related to a motion to cancel an expenditure */ @@ -632,6 +634,8 @@ export enum ColonyActionType { CreateDomainMultisig = 'CREATE_DOMAIN_MULTISIG', /** An action related to creating an expenditure (advanced payment) */ CreateExpenditure = 'CREATE_EXPENDITURE', + /** An action related to creating a streaming payment */ + CreateStreamingPayment = 'CREATE_STREAMING_PAYMENT', /** An action related to editing a domain's details */ EditDomain = 'EDIT_DOMAIN', /** An action related to editing a domain's details via a motion */ @@ -1869,6 +1873,7 @@ export type CreateStreamingPaymentInput = { id?: InputMaybe; interval: Scalars['String']; isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; recipientAddress: Scalars['String']; @@ -4123,6 +4128,7 @@ export type ModelStreamingPaymentConditionInput = { endTime?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; not?: InputMaybe; @@ -4151,6 +4157,7 @@ export type ModelStreamingPaymentFilterInput = { id?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; not?: InputMaybe; @@ -4703,19 +4710,14 @@ export type ModelSubscriptionSafeTransactionFilterInput = { }; export type ModelSubscriptionStreamingPaymentFilterInput = { -<<<<<<< HEAD - and?: InputMaybe>>; -======= amount?: InputMaybe; - and?: InputMaybe< - Array> - >; ->>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) + and?: InputMaybe>>; createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; or?: InputMaybe>>; @@ -8471,6 +8473,8 @@ export type StreamingPayment = { interval: Scalars['String']; /** Is the stream cancelled? */ isCancelled?: Maybe; + /** Is the stream waived? */ + isWaived?: Maybe; metadata?: Maybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; @@ -10009,12 +10013,12 @@ export type UpdateStreamingPaymentInput = { id: Scalars['ID']; interval?: InputMaybe; isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; - isWaived?: InputMaybe; }; export type UpdateStreamingPaymentMetadataInput = { @@ -10893,26 +10897,8 @@ export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; -<<<<<<< HEAD -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, tokenAddress: string, timestamp: number }> | null } | null }; -======= -export type GetStreamingPaymentQuery = { - __typename?: 'Query'; - getStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - endTime: number; - tokenAddress: string; - amount: string; - claims?: Array<{ - __typename?: 'StreamingPaymentClaim'; - amount: string; - timestamp: number; - }> | null; - } | null; -}; ->>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, tokenAddress: string, amount: string, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: number }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -12082,32 +12068,15 @@ export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` } ${Expenditure}`; export const GetStreamingPaymentDocument = gql` -<<<<<<< HEAD query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id endTime - payouts { - amount - tokenAddress - isClaimed - } + tokenAddress + amount claims { amount - tokenAddress timestamp -======= - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - id - endTime - tokenAddress - amount - claims { - amount - timestamp - } ->>>>>>> ce060e23 (Feat: Adjust paymentTokenUpdated handler for new contracts version) } } } diff --git a/src/handlers/expenditures/streamingPaymentClaimWaived.ts b/src/handlers/expenditures/streamingPaymentClaimWaived.ts index 24b63c7c8..28c7eb954 100644 --- a/src/handlers/expenditures/streamingPaymentClaimWaived.ts +++ b/src/handlers/expenditures/streamingPaymentClaimWaived.ts @@ -1,18 +1,24 @@ import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; import { + ColonyActionType, UpdateStreamingPaymentDocument, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; import { EventHandler } from '~types'; -import { getExpenditureDatabaseId, toNumber, verbose } from '~utils'; +import { + getExpenditureDatabaseId, + toNumber, + verbose, + writeActionFromEvent, +} from '~utils'; export const handleStreamingPaymentClaimWaived: EventHandler = async ( event, listener, ) => { - const { streamingPaymentId } = event.args; + const { agent: initiatorAddress, streamingPaymentId } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -31,4 +37,10 @@ export const handleStreamingPaymentClaimWaived: EventHandler = async ( }); verbose(`Streaming payment with ID ${databaseId} waived and cancelled`); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CancelAndWaiveStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + }); }; From cac98d504a8f94d8fd7b9eb8294c8b12df3f1fff Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Fri, 14 Jun 2024 14:19:38 +0100 Subject: [PATCH 18/48] Use strings to store streaming payments timestamps --- src/graphql/generated.ts | 4678 +++++++++++------ .../expenditures/streamingPaymentClaimed.ts | 2 +- .../expenditures/streamingPaymentCreated.ts | 4 +- .../streamingPaymentEndTimeSet.ts | 2 +- 4 files changed, 2946 insertions(+), 1740 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 6c405e6a7..839dfaa06 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1,9 +1,15 @@ 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 Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -277,7 +283,7 @@ export enum ClientType { TokenLockingClient = 'TokenLockingClient', TokenSupplierClient = 'TokenSupplierClient', VotingReputationClient = 'VotingReputationClient', - WhitelistClient = 'WhitelistClient' + WhitelistClient = 'WhitelistClient', } /** Represents a Colony within the Colony Network */ @@ -337,7 +343,6 @@ export type Colony = { version: Scalars['Int']; }; - /** Represents a Colony within the Colony Network */ export type ColonyActionsArgs = { filter?: InputMaybe; @@ -346,7 +351,6 @@ export type ColonyActionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyDomainsArgs = { filter?: InputMaybe; @@ -356,7 +360,6 @@ export type ColonyDomainsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExpendituresArgs = { createdAt?: InputMaybe; @@ -366,7 +369,6 @@ export type ColonyExpendituresArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExtensionsArgs = { filter?: InputMaybe; @@ -376,7 +378,6 @@ export type ColonyExtensionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyFundsClaimDataArgs = { createdAt?: InputMaybe; @@ -386,7 +387,6 @@ export type ColonyFundsClaimDataArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyRolesArgs = { filter?: InputMaybe; @@ -395,7 +395,6 @@ export type ColonyRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyTokensArgs = { filter?: InputMaybe; @@ -737,7 +736,7 @@ export enum ColonyActionType { /** An action related to upgrading a Colony's version via multiSig */ VersionUpgradeMultisig = 'VERSION_UPGRADE_MULTISIG', /** An action unrelated to the currently viewed Colony */ - WrongColony = 'WRONG_COLONY' + WrongColony = 'WRONG_COLONY', } /** Represents a Colony balance for a specific domain and token */ @@ -837,7 +836,6 @@ export type ColonyContributor = { user?: Maybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -847,7 +845,6 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1149,7 +1146,6 @@ export type ColonyMotion = { voterRewards?: Maybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1159,7 +1155,6 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1225,7 +1220,6 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; - /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1336,7 +1330,7 @@ export enum ColonyType { /** A regular Colony */ Colony = 'COLONY', /** The MetaColony, which governs the entire Colony Network */ - Metacolony = 'METACOLONY' + Metacolony = 'METACOLONY', } /** Unclaimed staking rewards for a motion */ @@ -1415,7 +1409,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP' + Top = 'TOP', } export type CreateAnnotationInput = { @@ -1441,7 +1435,9 @@ export type CreateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber: Scalars['Int']; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -2306,7 +2302,7 @@ export enum DomainColor { /** The default domain color for the root domain. Only used by the root by default and cannot be selected by the user. */ Root = 'ROOT', /** A yellow color */ - Yellow = 'YELLOW' + Yellow = 'YELLOW', } /** Input type for specifying a Domain */ @@ -2417,7 +2413,6 @@ export type Expenditure = { userStakeId?: Maybe; }; - export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2425,7 +2420,6 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; - export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2541,12 +2535,12 @@ export enum ExpenditureStatus { Cancelled = 'CANCELLED', Draft = 'DRAFT', Finalized = 'FINALIZED', - Locked = 'LOCKED' + Locked = 'LOCKED', } export enum ExpenditureType { PaymentBuilder = 'PAYMENT_BUILDER', - Staged = 'STAGED' + Staged = 'STAGED', } export enum ExtendedSupportedCurrencies { @@ -2560,7 +2554,7 @@ export enum ExtendedSupportedCurrencies { Jpy = 'JPY', Krw = 'KRW', Usd = 'USD', - Usdc = 'USDC' + Usdc = 'USDC', } export type ExtensionInstallationsCount = { @@ -2614,7 +2608,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube' + Youtube = 'Youtube', } export type FailedTransaction = { @@ -2629,7 +2623,7 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION' + Union = 'UNION', } export type FunctionParam = { @@ -2775,7 +2769,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW' + UnderReview = 'UNDER_REVIEW', } /** @@ -2845,7 +2839,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet' + StringSet = 'stringSet', } export type ModelBooleanInput = { @@ -3521,10 +3515,14 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3714,11 +3712,15 @@ export type ModelExpenditureTypeInput = { }; export type ModelExtensionInstallationsCountConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3732,12 +3734,16 @@ export type ModelExtensionInstallationsCountConnection = { }; export type ModelExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4022,10 +4028,14 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4035,11 +4045,15 @@ export type ModelReputationMiningCycleMetadataConnection = { }; export type ModelReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSafeTransactionConditionInput = { @@ -4113,7 +4127,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC' + Desc = 'DESC', } export type ModelSplitPaymentDistributionTypeInput = { @@ -4168,11 +4182,15 @@ export type ModelStreamingPaymentFilterInput = { }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; limitAmount?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4231,12 +4249,16 @@ export type ModelSubscriptionBooleanInput = { }; export type ModelSubscriptionCacheTotalBalanceFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; date?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; timeframePeriod?: InputMaybe; timeframeType?: InputMaybe; totalUSDC?: InputMaybe; @@ -4284,14 +4306,20 @@ export type ModelSubscriptionColonyActionFilterInput = { }; export type ModelSubscriptionColonyActionMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; customTitle?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyContributorFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; colonyReputationPercentage?: InputMaybe; contributorAddress?: InputMaybe; @@ -4300,26 +4328,34 @@ export type ModelSubscriptionColonyContributorFilterInput = { id?: InputMaybe; isVerified?: InputMaybe; isWatching?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; type?: InputMaybe; }; export type ModelSubscriptionColonyDecisionFilterInput = { actionId?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; motionDomainId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; showInDecisionsList?: InputMaybe; title?: InputMaybe; walletAddress?: InputMaybe; }; export type ModelSubscriptionColonyExtensionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; hash?: InputMaybe; id?: InputMaybe; @@ -4328,7 +4364,9 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4349,24 +4387,32 @@ export type ModelSubscriptionColonyFilterInput = { export type ModelSubscriptionColonyFundsClaimFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyFundsClaimsId?: InputMaybe; createdAt?: InputMaybe; createdAtBlock?: InputMaybe; id?: InputMaybe; isClaimed?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyHistoricRoleFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; blockNumber?: InputMaybe; colonyId?: InputMaybe; createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; isMultiSig?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role_0?: InputMaybe; role_1?: InputMaybe; role_2?: InputMaybe; @@ -4378,20 +4424,28 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { }; export type ModelSubscriptionColonyMemberInviteFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; id?: InputMaybe; invitesRemaining?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; avatar?: InputMaybe; description?: InputMaybe; displayName?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; thumbnail?: InputMaybe; }; @@ -4418,7 +4472,9 @@ export type ModelSubscriptionColonyMotionFilterInput = { }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4432,7 +4488,9 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4466,7 +4524,9 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4476,28 +4536,40 @@ export type ModelSubscriptionContractEventFilterInput = { }; export type ModelSubscriptionContributorReputationFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; contributorAddress?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationPercentage?: InputMaybe; reputationRaw?: InputMaybe; }; export type ModelSubscriptionCurrentNetworkInverseFeeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; inverseFee?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionCurrentVersionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; key?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4515,12 +4587,16 @@ export type ModelSubscriptionDomainFilterInput = { }; export type ModelSubscriptionDomainMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; color?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExpenditureFilterInput = { @@ -4545,21 +4621,29 @@ export type ModelSubscriptionExpenditureFilterInput = { }; export type ModelSubscriptionExpenditureMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; distributionType?: InputMaybe; expectedNumberOfPayouts?: InputMaybe; expectedNumberOfTokens?: InputMaybe; fundFromDomainNativeId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4594,7 +4678,9 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4613,17 +4699,23 @@ export type ModelSubscriptionIntInput = { }; export type ModelSubscriptionLiquidationAddressFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; chainId?: InputMaybe; id?: InputMaybe; liquidationAddress?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; export type ModelSubscriptionMotionMessageFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; createdAt?: InputMaybe; initiatorAddress?: InputMaybe; messageKey?: InputMaybe; @@ -4634,12 +4726,16 @@ export type ModelSubscriptionMotionMessageFilterInput = { }; export type ModelSubscriptionMultiSigUserSignatureFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; multiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; @@ -4647,20 +4743,28 @@ export type ModelSubscriptionMultiSigUserSignatureFilterInput = { export type ModelSubscriptionNotificationsDataFilterInput = { adminNotificationsDisabled?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; magicbellUserId?: InputMaybe; mentionNotificationsDisabled?: InputMaybe; mutedColonyAddresses?: InputMaybe; notificationsDisabled?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; paymentNotificationsDisabled?: InputMaybe; userAddress?: InputMaybe; }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; shareableInvites?: InputMaybe; userId?: InputMaybe; }; @@ -4683,20 +4787,28 @@ export type ModelSubscriptionProfileFilterInput = { }; export type ModelSubscriptionReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionSafeTransactionDataFilterInput = { abi?: InputMaybe; amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; contractFunction?: InputMaybe; data?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rawAmount?: InputMaybe; tokenAddress?: InputMaybe; transactionHash?: InputMaybe; @@ -4704,14 +4816,20 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStreamingPaymentFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; @@ -4720,18 +4838,24 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; id?: InputMaybe; limitAmount?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStringInput = { @@ -4750,9 +4874,13 @@ export type ModelSubscriptionStringInput = { }; export type ModelSubscriptionTokenExchangeRateFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; date?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; tokenId?: InputMaybe; }; @@ -4832,12 +4960,16 @@ export type ModelSubscriptionUserTokensFilterInput = { export type ModelSubscriptionVoterRewardsHistoryFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; motionId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; @@ -5270,7 +5402,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject' + Reject = 'Reject', } /** Root mutation type */ @@ -5428,979 +5560,838 @@ export type Mutation = { validateUserInvite?: Maybe; }; - /** Root mutation type */ export type MutationBridgeCreateBankAccountArgs = { input: BridgeCreateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeUpdateBankAccountArgs = { input: BridgeUpdateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeXyzMutationArgs = { input: BridgeXyzMutationInput; }; - /** Root mutation type */ export type MutationCreateAnnotationArgs = { condition?: InputMaybe; input: CreateAnnotationInput; }; - /** Root mutation type */ export type MutationCreateCacheTotalBalanceArgs = { condition?: InputMaybe; input: CreateCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationCreateColonyArgs = { condition?: InputMaybe; input: CreateColonyInput; }; - /** Root mutation type */ export type MutationCreateColonyActionArgs = { condition?: InputMaybe; input: CreateColonyActionInput; }; - /** Root mutation type */ export type MutationCreateColonyActionMetadataArgs = { condition?: InputMaybe; input: CreateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyContributorArgs = { condition?: InputMaybe; input: CreateColonyContributorInput; }; - /** Root mutation type */ export type MutationCreateColonyDecisionArgs = { condition?: InputMaybe; input: CreateColonyDecisionInput; }; - /** Root mutation type */ export type MutationCreateColonyEtherealMetadataArgs = { input: CreateColonyEtherealMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyExtensionArgs = { condition?: InputMaybe; input: CreateColonyExtensionInput; }; - /** Root mutation type */ export type MutationCreateColonyFundsClaimArgs = { condition?: InputMaybe; input: CreateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationCreateColonyHistoricRoleArgs = { condition?: InputMaybe; input: CreateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyMemberInviteArgs = { condition?: InputMaybe; input: CreateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationCreateColonyMetadataArgs = { condition?: InputMaybe; input: CreateColonyMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyMotionArgs = { condition?: InputMaybe; input: CreateColonyMotionInput; }; - /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; input: CreateColonyRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyTokensArgs = { condition?: InputMaybe; input: CreateColonyTokensInput; }; - /** Root mutation type */ export type MutationCreateContractEventArgs = { condition?: InputMaybe; input: CreateContractEventInput; }; - /** Root mutation type */ export type MutationCreateContributorReputationArgs = { condition?: InputMaybe; input: CreateContributorReputationInput; }; - /** Root mutation type */ export type MutationCreateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: CreateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationCreateCurrentVersionArgs = { condition?: InputMaybe; input: CreateCurrentVersionInput; }; - /** Root mutation type */ export type MutationCreateDomainArgs = { condition?: InputMaybe; input: CreateDomainInput; }; - /** Root mutation type */ export type MutationCreateDomainMetadataArgs = { condition?: InputMaybe; input: CreateDomainMetadataInput; }; - /** Root mutation type */ export type MutationCreateExpenditureArgs = { condition?: InputMaybe; input: CreateExpenditureInput; }; - /** Root mutation type */ export type MutationCreateExpenditureMetadataArgs = { condition?: InputMaybe; input: CreateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationCreateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: CreateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationCreateIngestorStatsArgs = { condition?: InputMaybe; input: CreateIngestorStatsInput; }; - /** Root mutation type */ export type MutationCreateLiquidationAddressArgs = { condition?: InputMaybe; input: CreateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationCreateMotionMessageArgs = { condition?: InputMaybe; input: CreateMotionMessageInput; }; - /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationCreateNotificationsDataArgs = { condition?: InputMaybe; input: CreateNotificationsDataInput; }; - /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: CreatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationCreateProfileArgs = { condition?: InputMaybe; input: CreateProfileInput; }; - /** Root mutation type */ export type MutationCreateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: CreateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionArgs = { condition?: InputMaybe; input: CreateSafeTransactionInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionDataArgs = { condition?: InputMaybe; input: CreateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentArgs = { condition?: InputMaybe; input: CreateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationCreateTokenArgs = { condition?: InputMaybe; input: CreateTokenInput; }; - /** Root mutation type */ export type MutationCreateTokenExchangeRateArgs = { condition?: InputMaybe; input: CreateTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationCreateTransactionArgs = { condition?: InputMaybe; input: CreateTransactionInput; }; - /** Root mutation type */ export type MutationCreateUniqueUserArgs = { input?: InputMaybe; }; - /** Root mutation type */ export type MutationCreateUserArgs = { condition?: InputMaybe; input: CreateUserInput; }; - /** Root mutation type */ export type MutationCreateUserNotificationsDataArgs = { input: CreateUserNotificationsDataInput; }; - /** Root mutation type */ export type MutationCreateUserStakeArgs = { condition?: InputMaybe; input: CreateUserStakeInput; }; - /** Root mutation type */ export type MutationCreateUserTokensArgs = { condition?: InputMaybe; input: CreateUserTokensInput; }; - /** Root mutation type */ export type MutationCreateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: CreateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationDeleteAnnotationArgs = { condition?: InputMaybe; input: DeleteAnnotationInput; }; - /** Root mutation type */ export type MutationDeleteCacheTotalBalanceArgs = { condition?: InputMaybe; input: DeleteCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationDeleteColonyArgs = { condition?: InputMaybe; input: DeleteColonyInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionArgs = { condition?: InputMaybe; input: DeleteColonyActionInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionMetadataArgs = { condition?: InputMaybe; input: DeleteColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyContributorArgs = { condition?: InputMaybe; input: DeleteColonyContributorInput; }; - /** Root mutation type */ export type MutationDeleteColonyDecisionArgs = { condition?: InputMaybe; input: DeleteColonyDecisionInput; }; - /** Root mutation type */ export type MutationDeleteColonyExtensionArgs = { condition?: InputMaybe; input: DeleteColonyExtensionInput; }; - /** Root mutation type */ export type MutationDeleteColonyFundsClaimArgs = { condition?: InputMaybe; input: DeleteColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationDeleteColonyHistoricRoleArgs = { condition?: InputMaybe; input: DeleteColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyMemberInviteArgs = { condition?: InputMaybe; input: DeleteColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationDeleteColonyMetadataArgs = { condition?: InputMaybe; input: DeleteColonyMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyMotionArgs = { condition?: InputMaybe; input: DeleteColonyMotionInput; }; - /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; - /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; input: DeleteColonyRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyTokensArgs = { condition?: InputMaybe; input: DeleteColonyTokensInput; }; - /** Root mutation type */ export type MutationDeleteContractEventArgs = { condition?: InputMaybe; input: DeleteContractEventInput; }; - /** Root mutation type */ export type MutationDeleteContributorReputationArgs = { condition?: InputMaybe; input: DeleteContributorReputationInput; }; - /** Root mutation type */ export type MutationDeleteCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: DeleteCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationDeleteCurrentVersionArgs = { condition?: InputMaybe; input: DeleteCurrentVersionInput; }; - /** Root mutation type */ export type MutationDeleteDomainArgs = { condition?: InputMaybe; input: DeleteDomainInput; }; - /** Root mutation type */ export type MutationDeleteDomainMetadataArgs = { condition?: InputMaybe; input: DeleteDomainMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureArgs = { condition?: InputMaybe; input: DeleteExpenditureInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureMetadataArgs = { condition?: InputMaybe; input: DeleteExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExtensionInstallationsCountArgs = { condition?: InputMaybe; input: DeleteExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationDeleteIngestorStatsArgs = { condition?: InputMaybe; input: DeleteIngestorStatsInput; }; - /** Root mutation type */ export type MutationDeleteLiquidationAddressArgs = { condition?: InputMaybe; input: DeleteLiquidationAddressInput; }; - /** Root mutation type */ export type MutationDeleteMotionMessageArgs = { condition?: InputMaybe; input: DeleteMotionMessageInput; }; - /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationDeleteNotificationsDataArgs = { condition?: InputMaybe; input: DeleteNotificationsDataInput; }; - /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: DeletePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationDeleteProfileArgs = { condition?: InputMaybe; input: DeleteProfileInput; }; - /** Root mutation type */ export type MutationDeleteReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: DeleteReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionArgs = { condition?: InputMaybe; input: DeleteSafeTransactionInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionDataArgs = { condition?: InputMaybe; input: DeleteSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationDeleteTokenArgs = { condition?: InputMaybe; input: DeleteTokenInput; }; - /** Root mutation type */ export type MutationDeleteTokenExchangeRateArgs = { condition?: InputMaybe; input: DeleteTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationDeleteTransactionArgs = { condition?: InputMaybe; input: DeleteTransactionInput; }; - /** Root mutation type */ export type MutationDeleteUserArgs = { condition?: InputMaybe; input: DeleteUserInput; }; - /** Root mutation type */ export type MutationDeleteUserStakeArgs = { condition?: InputMaybe; input: DeleteUserStakeInput; }; - /** Root mutation type */ export type MutationDeleteUserTokensArgs = { condition?: InputMaybe; input: DeleteUserTokensInput; }; - /** Root mutation type */ export type MutationDeleteVoterRewardsHistoryArgs = { condition?: InputMaybe; input: DeleteVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; - /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; input: UpdateAnnotationInput; }; - /** Root mutation type */ export type MutationUpdateCacheTotalBalanceArgs = { condition?: InputMaybe; input: UpdateCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationUpdateColonyArgs = { condition?: InputMaybe; input: UpdateColonyInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionArgs = { condition?: InputMaybe; input: UpdateColonyActionInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionMetadataArgs = { condition?: InputMaybe; input: UpdateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyContributorArgs = { condition?: InputMaybe; input: UpdateColonyContributorInput; }; - /** Root mutation type */ export type MutationUpdateColonyDecisionArgs = { condition?: InputMaybe; input: UpdateColonyDecisionInput; }; - /** Root mutation type */ export type MutationUpdateColonyExtensionArgs = { condition?: InputMaybe; input: UpdateColonyExtensionInput; }; - /** Root mutation type */ export type MutationUpdateColonyFundsClaimArgs = { condition?: InputMaybe; input: UpdateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationUpdateColonyHistoricRoleArgs = { condition?: InputMaybe; input: UpdateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyMemberInviteArgs = { condition?: InputMaybe; input: UpdateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationUpdateColonyMetadataArgs = { condition?: InputMaybe; input: UpdateColonyMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyMotionArgs = { condition?: InputMaybe; input: UpdateColonyMotionInput; }; - /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; input: UpdateColonyRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyTokensArgs = { condition?: InputMaybe; input: UpdateColonyTokensInput; }; - /** Root mutation type */ export type MutationUpdateContractEventArgs = { condition?: InputMaybe; input: UpdateContractEventInput; }; - /** Root mutation type */ export type MutationUpdateContributorReputationArgs = { condition?: InputMaybe; input: UpdateContributorReputationInput; }; - /** Root mutation type */ export type MutationUpdateContributorsWithReputationArgs = { input: UpdateContributorsWithReputationInput; }; - /** Root mutation type */ export type MutationUpdateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: UpdateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationUpdateCurrentVersionArgs = { condition?: InputMaybe; input: UpdateCurrentVersionInput; }; - /** Root mutation type */ export type MutationUpdateDomainArgs = { condition?: InputMaybe; input: UpdateDomainInput; }; - /** Root mutation type */ export type MutationUpdateDomainMetadataArgs = { condition?: InputMaybe; input: UpdateDomainMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureArgs = { condition?: InputMaybe; input: UpdateExpenditureInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureMetadataArgs = { condition?: InputMaybe; input: UpdateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: UpdateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationUpdateIngestorStatsArgs = { condition?: InputMaybe; input: UpdateIngestorStatsInput; }; - /** Root mutation type */ export type MutationUpdateLiquidationAddressArgs = { condition?: InputMaybe; input: UpdateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationUpdateMotionMessageArgs = { condition?: InputMaybe; input: UpdateMotionMessageInput; }; - /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationUpdateNotificationsDataArgs = { condition?: InputMaybe; input: UpdateNotificationsDataInput; }; - /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: UpdatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationUpdateProfileArgs = { condition?: InputMaybe; input: UpdateProfileInput; }; - /** Root mutation type */ export type MutationUpdateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: UpdateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionArgs = { condition?: InputMaybe; input: UpdateSafeTransactionInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionDataArgs = { condition?: InputMaybe; input: UpdateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationUpdateTokenArgs = { condition?: InputMaybe; input: UpdateTokenInput; }; - /** Root mutation type */ export type MutationUpdateTokenExchangeRateArgs = { condition?: InputMaybe; input: UpdateTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationUpdateTransactionArgs = { condition?: InputMaybe; input: UpdateTransactionInput; }; - /** Root mutation type */ export type MutationUpdateUserArgs = { condition?: InputMaybe; input: UpdateUserInput; }; - /** Root mutation type */ export type MutationUpdateUserStakeArgs = { condition?: InputMaybe; input: UpdateUserStakeInput; }; - /** Root mutation type */ export type MutationUpdateUserTokensArgs = { condition?: InputMaybe; input: UpdateUserTokensInput; }; - /** Root mutation type */ export type MutationUpdateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: UpdateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationValidateUserInviteArgs = { input: ValidateUserInviteInput; @@ -6488,7 +6479,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET' + Mainnet = 'MAINNET', } /** Type of notifications that can be sent */ @@ -6519,7 +6510,7 @@ export enum NotificationType { MultisigActionRejected = 'MULTISIG_ACTION_REJECTED', NewColonyVersion = 'NEW_COLONY_VERSION', NewExtensionVersion = 'NEW_EXTENSION_VERSION', - PermissionsAction = 'PERMISSIONS_ACTION' + PermissionsAction = 'PERMISSIONS_ACTION', } /** Holds the notifications data for the user, such as their unique Magicbell user id, and their notifications preferences. */ @@ -6826,13 +6817,11 @@ export type Query = { tokenExhangeRateByTokenId?: Maybe; }; - /** Root query type */ export type QueryBridgeGetUserLiquidationAddressArgs = { userAddress: Scalars['String']; }; - /** Root query type */ export type QueryCacheTotalBalanceByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -6843,7 +6832,6 @@ export type QueryCacheTotalBalanceByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -6853,7 +6841,6 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -6863,7 +6850,6 @@ export type QueryGetActionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -6874,19 +6860,16 @@ export type QueryGetActionsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetAnnotationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCacheTotalBalanceArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColoniesByNativeTokenIdArgs = { filter?: InputMaybe; @@ -6896,19 +6879,16 @@ export type QueryGetColoniesByNativeTokenIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionByMotionIdArgs = { filter?: InputMaybe; @@ -6918,7 +6898,6 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -6928,13 +6907,11 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -6944,7 +6921,6 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -6954,7 +6930,6 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -6964,19 +6939,16 @@ export type QueryGetColonyByTypeArgs = { type: ColonyType; }; - /** Root query type */ export type QueryGetColonyContributorArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionByActionIdArgs = { actionId: Scalars['ID']; @@ -6986,7 +6958,6 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -6997,25 +6968,21 @@ export type QueryGetColonyDecisionByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyExtensionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyFundsClaimArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleByDateArgs = { createdAt?: InputMaybe; @@ -7026,55 +6993,46 @@ export type QueryGetColonyHistoricRoleByDateArgs = { type: Scalars['String']; }; - /** Root query type */ export type QueryGetColonyMemberInviteArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContractEventArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorReputationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorsByAddressArgs = { colonyReputationPercentage?: InputMaybe; @@ -7085,7 +7043,6 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7096,19 +7053,16 @@ export type QueryGetContributorsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetCurrentNetworkInverseFeeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionByKeyArgs = { filter?: InputMaybe; @@ -7118,19 +7072,16 @@ export type QueryGetCurrentVersionByKeyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; }; - /** Root query type */ export type QueryGetDomainByNativeSkillIdArgs = { filter?: InputMaybe; @@ -7141,13 +7092,11 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7158,19 +7107,16 @@ export type QueryGetDomainsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpenditureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpenditureMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpendituresByColonyArgs = { colonyId: Scalars['ID']; @@ -7181,7 +7127,6 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7192,7 +7137,6 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7203,13 +7147,11 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7219,7 +7161,6 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7230,19 +7171,16 @@ export type QueryGetFundsClaimsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetIngestorStatsArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressesByUserAddressArgs = { filter?: InputMaybe; @@ -7252,7 +7190,6 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7262,7 +7199,6 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7272,13 +7208,11 @@ export type QueryGetMotionByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7289,19 +7223,16 @@ export type QueryGetMotionMessageByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionStateArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionTimeoutPeriodsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7312,7 +7243,6 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7322,7 +7252,6 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7332,7 +7261,6 @@ export type QueryGetMultiSigByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByTransactionHashArgs = { filter?: InputMaybe; @@ -7342,13 +7270,11 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7358,25 +7284,21 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetNotificationsDataArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileByEmailArgs = { email: Scalars['AWSEmail']; @@ -7386,7 +7308,6 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7396,13 +7317,11 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7413,7 +7332,6 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7424,7 +7342,6 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7435,43 +7352,36 @@ export type QueryGetRoleByTargetAddressAndColonyArgs = { targetAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionDataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionStatusArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetStreamingPaymentArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenByAddressArgs = { filter?: InputMaybe; @@ -7481,19 +7391,16 @@ export type QueryGetTokenByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTokenExchangeRateArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenFromEverywhereArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetTokensByTypeArgs = { filter?: InputMaybe; @@ -7503,13 +7410,11 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; - /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7520,7 +7425,6 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7531,13 +7435,11 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7547,7 +7449,6 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7557,7 +7458,6 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7567,13 +7467,11 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7584,13 +7482,11 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7601,19 +7497,16 @@ export type QueryGetUserStakesArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserTokenBalanceArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7624,19 +7517,16 @@ export type QueryGetUserVoterRewardsArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetVoterRewardsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetVoterRewardsHistoryArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryListAnnotationsArgs = { filter?: InputMaybe; @@ -7644,7 +7534,6 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7652,7 +7541,6 @@ export type QueryListCacheTotalBalancesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColoniesArgs = { filter?: InputMaybe; @@ -7660,7 +7548,6 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7668,7 +7555,6 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7676,7 +7562,6 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7684,7 +7569,6 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7692,7 +7576,6 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7700,7 +7583,6 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7708,7 +7590,6 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7716,7 +7597,6 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7724,7 +7604,6 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7732,7 +7611,6 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7740,7 +7618,6 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7748,7 +7625,6 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7756,7 +7632,6 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7764,7 +7639,6 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7772,7 +7646,6 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7780,7 +7653,6 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7788,7 +7660,6 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7796,7 +7667,6 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7804,7 +7674,6 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7812,7 +7681,6 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7820,7 +7688,6 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7828,7 +7695,6 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7836,7 +7702,6 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7844,7 +7709,6 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -7852,7 +7716,6 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -7860,7 +7723,6 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -7868,7 +7730,6 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListNotificationsDataArgs = { filter?: InputMaybe; @@ -7878,7 +7739,6 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; - /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -7886,7 +7746,6 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -7894,7 +7753,6 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -7902,7 +7760,6 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -7910,7 +7767,6 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -7918,7 +7774,6 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -7926,7 +7781,6 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -7934,7 +7788,6 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -7942,7 +7795,6 @@ export type QueryListTokenExchangeRatesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokensArgs = { filter?: InputMaybe; @@ -7950,7 +7802,6 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -7958,7 +7809,6 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -7966,7 +7816,6 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -7974,7 +7823,6 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -7982,7 +7830,6 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -7990,10 +7837,11 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8001,10 +7849,11 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; - /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8012,7 +7861,6 @@ export type QuerySearchColonyContributorsArgs = { sort?: InputMaybe>>; }; - /** Root query type */ export type QueryTokenExhangeRateByTokenIdArgs = { date?: InputMaybe; @@ -8056,7 +7904,6 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; - export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8090,7 +7937,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT' + TransferNft = 'TRANSFER_NFT', } export type SearchableAggregateBucketResult = { @@ -8104,7 +7951,9 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = + | SearchableAggregateBucketResult + | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8122,7 +7971,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms' + Terms = 'terms', } export type SearchableBooleanFilterInput = { @@ -8166,7 +8015,7 @@ export enum SearchableColonyActionAggregateField { ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyActionAggregationInput = { @@ -8265,7 +8114,7 @@ export enum SearchableColonyActionSortableFields { ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export enum SearchableColonyContributorAggregateField { @@ -8279,7 +8128,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyContributorAggregationInput = { @@ -8328,7 +8177,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableFloatFilterInput = { @@ -8370,7 +8219,7 @@ export type SearchableIntFilterInput = { export enum SearchableSortDirection { Asc = 'asc', - Desc = 'desc' + Desc = 'desc', } export type SearchableStringFilterInput = { @@ -8423,13 +8272,13 @@ export enum SortingMethod { /** Sort members by lowest reputation */ ByLowestRep = 'BY_LOWEST_REP', /** Sort members by having more permissions */ - ByMorePermissions = 'BY_MORE_PERMISSIONS' + ByMorePermissions = 'BY_MORE_PERMISSIONS', } export enum SplitPaymentDistributionType { Equal = 'EQUAL', Reputation = 'REPUTATION', - Unequal = 'UNEQUAL' + Unequal = 'UNEQUAL', } export type StakedExpenditureParams = { @@ -8484,7 +8333,6 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; - export type StreamingPaymentActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8506,7 +8354,7 @@ export type StreamingPaymentClaimInput = { export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', - WhenCancelled = 'WHEN_CANCELLED' + WhenCancelled = 'WHEN_CANCELLED', } export type StreamingPaymentMetadata = { @@ -8654,662 +8502,530 @@ export type Subscription = { onUpdateVoterRewardsHistory?: Maybe; }; - export type SubscriptionOnCreateAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; @@ -9325,7 +9041,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD' + Usd = 'USD', } /** Return type for domain balance for a timeframe item */ @@ -9342,7 +9058,7 @@ export enum TimeframeType { Daily = 'DAILY', Monthly = 'MONTHLY', Total = 'TOTAL', - Weekly = 'WEEKLY' + Weekly = 'WEEKLY', } /** Represents an ERC20-compatible token that is used by Colonies and users */ @@ -9373,7 +9089,6 @@ export type Token = { validated?: Maybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9382,7 +9097,6 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9439,7 +9153,7 @@ export enum TokenType { /** A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself */ Colony = 'COLONY', /** An ERC20-compatible token */ - Erc20 = 'ERC20' + Erc20 = 'ERC20', } /** Represents a transaction made in a colony by a user */ @@ -9518,7 +9232,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL' + Unsuccessful = 'UNSUCCESSFUL', } export type TransactionGroup = { @@ -9549,7 +9263,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED' + Succeeded = 'SUCCEEDED', } export type UpdateAnnotationInput = { @@ -9575,7 +9289,9 @@ export type UpdateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber?: InputMaybe; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -10135,7 +9851,6 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; - /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -10144,7 +9859,6 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10154,7 +9868,6 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10163,7 +9876,6 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10211,7 +9923,7 @@ export type UserStake = { /** Type of stake a user can make */ export enum UserStakeType { Motion = 'MOTION', - StakedExpenditure = 'STAKED_EXPENDITURE' + StakedExpenditure = 'STAKED_EXPENDITURE', } export type UserTokens = { @@ -10329,471 +10041,1175 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; -export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null }; - -export type ColonyFragment = { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null }; - -export type ColonyMetadataFragment = { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null }; - -export type ColonyWithRootRolesFragment = { __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; - -export type ExpenditureBalanceFragment = { __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }; - -export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null }; - -export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; - -export type ExtensionFragment = { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number }; - -export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; - -export type VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }; - -export type StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; +export type ActionMetadataInfoFragment = { + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ __typename?: 'Payment'; recipientAddress: string }> | null; +}; + +export type ColonyFragment = { + __typename?: 'Colony'; + colonyAddress: string; + nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + tokens?: { + __typename?: 'ModelColonyTokensConnection'; + items: Array<{ + __typename?: 'ColonyTokens'; + id: string; + tokenAddress: string; + } | null>; + } | null; + motionsWithUnclaimedStakes?: Array<{ + __typename?: 'ColonyUnclaimedStake'; + motionId: string; + unclaimedRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + }> | null; + domains?: { + __typename?: 'ModelDomainConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + } | null>; + } | null; +}; + +export type ColonyMetadataFragment = { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; +}; + +export type ColonyWithRootRolesFragment = { + __typename?: 'Colony'; + id: string; + roles?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + targetUser?: { + __typename?: 'User'; + id: string; + profile?: { + __typename?: 'Profile'; + displayName?: string | null; + id: string; + } | null; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; +}; + +export type ExpenditureBalanceFragment = { + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; +}; -export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; +export type ExpenditureFragment = { + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; +}; + +export type ExpenditureSlotFragment = { + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; +}; + +export type ExtensionFragment = { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; +}; -export type UserMotionStakesFragment = { __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }; +export type ColonyMotionFragment = { + __typename?: 'ColonyMotion'; + id: string; + nativeMotionId: string; + requiredStake: string; + remainingStakes: Array; + userMinStake: string; + nativeMotionDomainId: string; + isFinalized: boolean; + createdBy: string; + repSubmitted: string; + skillRep: string; + hasObjection: boolean; + motionDomainId: string; + isDecision: boolean; + transactionHash: string; + expenditureId?: string | null; + motionStakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + }; + usersStakes: Array<{ + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + }>; + stakerRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + voterRecord: Array<{ + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; + }>; + revealedVotes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; + motionStateHistory: { + __typename?: 'MotionStateHistory'; + hasVoted: boolean; + hasPassed: boolean; + hasFailed: boolean; + hasFailedNotFinalizable: boolean; + inRevealPhase: boolean; + yaySideFullyStakedAt?: string | null; + naySideFullyStakedAt?: string | null; + allVotesSubmittedAt?: string | null; + allVotesRevealedAt?: string | null; + endedAt?: string | null; + finalizedAt?: string | null; + }; +}; + +export type VoterRecordFragment = { + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; +}; -export type DomainMetadataFragment = { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null }; +export type StakerRewardFragment = { + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; +}; -export type MultiSigUserSignatureFragment = { __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string }; +export type MotionStakesFragment = { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; +}; -export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null }; +export type UserMotionStakesFragment = { + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; +}; -export type TokenFragment = { __typename?: 'Token', symbol: string, tokenAddress: string }; +export type DomainMetadataFragment = { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; +}; + +export type MultiSigUserSignatureFragment = { + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; +}; -export type NotificationUserFragment = { __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null }; +export type ColonyMultiSigFragment = { + __typename?: 'ColonyMultiSig'; + id: string; + colonyAddress: string; + nativeMultiSigId: string; + multiSigDomainId: string; + nativeMultiSigDomainId: string; + requiredPermissions: number; + transactionHash: string; + isExecuted: boolean; + isRejected: boolean; + isDecision: boolean; + hasActionCompleted: boolean; + executedAt?: string | null; + executedBy?: string | null; + rejectedAt?: string | null; + rejectedBy?: string | null; + createdAt: string; + expenditureId?: string | null; + signatures?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; +}; + +export type TokenFragment = { + __typename?: 'Token'; + symbol: string; + tokenAddress: string; +}; -export type NotificationsDataFragment = { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean }; +export type NotificationUserFragment = { + __typename?: 'ColonyContributor'; + user?: { + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; +}; + +export type NotificationsDataFragment = { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; +}; export type CreateColonyActionMutationVariables = Exact<{ input: CreateColonyActionInput; }>; - -export type CreateColonyActionMutation = { __typename?: 'Mutation', createColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type CreateColonyActionMutation = { + __typename?: 'Mutation'; + createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type UpdateColonyActionMutationVariables = Exact<{ input: UpdateColonyActionInput; }>; - -export type UpdateColonyActionMutation = { __typename?: 'Mutation', updateColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type UpdateColonyActionMutation = { + __typename?: 'Mutation'; + updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type UpdateColonyMutationVariables = Exact<{ input: UpdateColonyInput; }>; - -export type UpdateColonyMutation = { __typename?: 'Mutation', updateColony?: { __typename?: 'Colony', id: string } | null }; +export type UpdateColonyMutation = { + __typename?: 'Mutation'; + updateColony?: { __typename?: 'Colony'; id: string } | null; +}; export type UpdateColonyMetadataMutationVariables = Exact<{ input: UpdateColonyMetadataInput; }>; - -export type UpdateColonyMetadataMutation = { __typename?: 'Mutation', updateColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type UpdateColonyMetadataMutation = { + __typename?: 'Mutation'; + updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMutationVariables = Exact<{ input: CreateColonyInput; condition?: InputMaybe; }>; - -export type CreateColonyMutation = { __typename?: 'Mutation', createColony?: { __typename?: 'Colony', id: string } | null }; +export type CreateColonyMutation = { + __typename?: 'Mutation'; + createColony?: { __typename?: 'Colony'; id: string } | null; +}; export type CreateColonyMetadataMutationVariables = Exact<{ input: CreateColonyMetadataInput; }>; - -export type CreateColonyMetadataMutation = { __typename?: 'Mutation', createColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type CreateColonyMetadataMutation = { + __typename?: 'Mutation'; + createColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type DeleteColonyMetadataMutationVariables = Exact<{ input: DeleteColonyMetadataInput; }>; - -export type DeleteColonyMetadataMutation = { __typename?: 'Mutation', deleteColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type DeleteColonyMetadataMutation = { + __typename?: 'Mutation'; + deleteColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMemberInviteMutationVariables = Exact<{ input: CreateColonyMemberInviteInput; condition?: InputMaybe; }>; - -export type CreateColonyMemberInviteMutation = { __typename?: 'Mutation', createColonyMemberInvite?: { __typename?: 'ColonyMemberInvite', id: string } | null }; +export type CreateColonyMemberInviteMutation = { + __typename?: 'Mutation'; + createColonyMemberInvite?: { + __typename?: 'ColonyMemberInvite'; + id: string; + } | null; +}; export type CreateColonyTokensMutationVariables = Exact<{ input: CreateColonyTokensInput; }>; - -export type CreateColonyTokensMutation = { __typename?: 'Mutation', createColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type CreateColonyTokensMutation = { + __typename?: 'Mutation'; + createColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type CreateColonyContributorMutationVariables = Exact<{ input: CreateColonyContributorInput; }>; - -export type CreateColonyContributorMutation = { __typename?: 'Mutation', createColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type CreateColonyContributorMutation = { + __typename?: 'Mutation'; + createColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type UpdateColonyContributorMutationVariables = Exact<{ input: UpdateColonyContributorInput; }>; - -export type UpdateColonyContributorMutation = { __typename?: 'Mutation', updateColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type UpdateColonyContributorMutation = { + __typename?: 'Mutation'; + updateColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type DeleteColonyContributorMutationVariables = Exact<{ input: DeleteColonyContributorInput; }>; - -export type DeleteColonyContributorMutation = { __typename?: 'Mutation', deleteColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type DeleteColonyContributorMutation = { + __typename?: 'Mutation'; + deleteColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type CreateCurrentVersionMutationVariables = Exact<{ input: CreateCurrentVersionInput; }>; - -export type CreateCurrentVersionMutation = { __typename?: 'Mutation', createCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type CreateCurrentVersionMutation = { + __typename?: 'Mutation'; + createCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateCurrentVersionMutationVariables = Exact<{ input: UpdateCurrentVersionInput; }>; - -export type UpdateCurrentVersionMutation = { __typename?: 'Mutation', updateCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type UpdateCurrentVersionMutation = { + __typename?: 'Mutation'; + updateCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateColonyDecisionMutationVariables = Exact<{ id: Scalars['ID']; showInDecisionsList: Scalars['Boolean']; }>; - -export type UpdateColonyDecisionMutation = { __typename?: 'Mutation', updateColonyDecision?: { __typename?: 'ColonyDecision', id: string } | null }; +export type UpdateColonyDecisionMutation = { + __typename?: 'Mutation'; + updateColonyDecision?: { __typename?: 'ColonyDecision'; id: string } | null; +}; export type CreateDomainMutationVariables = Exact<{ input: CreateDomainInput; }>; - -export type CreateDomainMutation = { __typename?: 'Mutation', createDomain?: { __typename?: 'Domain', id: string } | null }; +export type CreateDomainMutation = { + __typename?: 'Mutation'; + createDomain?: { __typename?: 'Domain'; id: string } | null; +}; export type CreateDomainMetadataMutationVariables = Exact<{ input: CreateDomainMetadataInput; }>; - -export type CreateDomainMetadataMutation = { __typename?: 'Mutation', createDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type CreateDomainMetadataMutation = { + __typename?: 'Mutation'; + createDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type UpdateDomainMetadataMutationVariables = Exact<{ input: UpdateDomainMetadataInput; }>; - -export type UpdateDomainMetadataMutation = { __typename?: 'Mutation', updateDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type UpdateDomainMetadataMutation = { + __typename?: 'Mutation'; + updateDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type CreateContractEventMutationVariables = Exact<{ input: CreateContractEventInput; condition?: InputMaybe; }>; - -export type CreateContractEventMutation = { __typename?: 'Mutation', createContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type CreateContractEventMutation = { + __typename?: 'Mutation'; + createContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type CreateExpenditureMutationVariables = Exact<{ input: CreateExpenditureInput; }>; - -export type CreateExpenditureMutation = { __typename?: 'Mutation', createExpenditure?: { __typename?: 'Expenditure', id: string } | null }; +export type CreateExpenditureMutation = { + __typename?: 'Mutation'; + createExpenditure?: { __typename?: 'Expenditure'; id: string } | null; +}; export type UpdateExpenditureMutationVariables = Exact<{ input: UpdateExpenditureInput; }>; - -export type UpdateExpenditureMutation = { __typename?: 'Mutation', updateExpenditure?: { __typename?: 'Expenditure', id: string, ownerAddress: string } | null }; +export type UpdateExpenditureMutation = { + __typename?: 'Mutation'; + updateExpenditure?: { + __typename?: 'Expenditure'; + id: string; + ownerAddress: string; + } | null; +}; export type UpdateExpenditureMetadataMutationVariables = Exact<{ input: UpdateExpenditureMetadataInput; }>; - -export type UpdateExpenditureMetadataMutation = { __typename?: 'Mutation', updateExpenditureMetadata?: { __typename?: 'ExpenditureMetadata', id: string } | null }; +export type UpdateExpenditureMetadataMutation = { + __typename?: 'Mutation'; + updateExpenditureMetadata?: { + __typename?: 'ExpenditureMetadata'; + id: string; + } | null; +}; export type CreateStreamingPaymentMutationVariables = Exact<{ input: CreateStreamingPaymentInput; }>; - -export type CreateStreamingPaymentMutation = { __typename?: 'Mutation', createStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type CreateStreamingPaymentMutation = { + __typename?: 'Mutation'; + createStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type UpdateStreamingPaymentMutationVariables = Exact<{ input: UpdateStreamingPaymentInput; }>; - -export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type UpdateStreamingPaymentMutation = { + __typename?: 'Mutation'; + updateStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; - -export type CreateColonyExtensionMutation = { __typename?: 'Mutation', createColonyExtension?: { __typename?: 'ColonyExtension', id: string } | null }; +export type CreateColonyExtensionMutation = { + __typename?: 'Mutation'; + createColonyExtension?: { __typename?: 'ColonyExtension'; id: string } | null; +}; export type UpdateColonyExtensionByAddressMutationVariables = Exact<{ input: UpdateColonyExtensionInput; }>; - -export type UpdateColonyExtensionByAddressMutation = { __typename?: 'Mutation', updateColonyExtension?: { __typename?: 'ColonyExtension', id: string, extensionHash: string, colonyAddress: string } | null }; +export type UpdateColonyExtensionByAddressMutation = { + __typename?: 'Mutation'; + updateColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + extensionHash: string; + colonyAddress: string; + } | null; +}; export type CreateExtensionInstallationsCountMutationVariables = Exact<{ input: CreateExtensionInstallationsCountInput; }>; - -export type CreateExtensionInstallationsCountMutation = { __typename?: 'Mutation', createExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type CreateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + createExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type UpdateExtensionInstallationsCountMutationVariables = Exact<{ input: UpdateExtensionInstallationsCountInput; }>; - -export type UpdateExtensionInstallationsCountMutation = { __typename?: 'Mutation', updateExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type UpdateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + updateExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type CreateColonyFundsClaimMutationVariables = Exact<{ input: CreateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type CreateColonyFundsClaimMutation = { __typename?: 'Mutation', createColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type CreateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + createColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type UpdateColonyFundsClaimMutationVariables = Exact<{ input: UpdateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type UpdateColonyFundsClaimMutation = { __typename?: 'Mutation', updateColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type UpdateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + updateColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type DeleteColonyFundsClaimMutationVariables = Exact<{ input: DeleteColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type DeleteColonyFundsClaimMutation = { __typename?: 'Mutation', deleteColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type DeleteColonyFundsClaimMutation = { + __typename?: 'Mutation'; + deleteColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type CreateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: CreateCurrentNetworkInverseFeeInput; }>; - -export type CreateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', createCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type CreateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + createCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type UpdateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: UpdateCurrentNetworkInverseFeeInput; }>; - -export type UpdateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', updateCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type UpdateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + updateCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type CreateColonyMotionMutationVariables = Exact<{ input: CreateColonyMotionInput; }>; - -export type CreateColonyMotionMutation = { __typename?: 'Mutation', createColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type CreateColonyMotionMutation = { + __typename?: 'Mutation'; + createColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type UpdateColonyMotionMutationVariables = Exact<{ input: UpdateColonyMotionInput; }>; - -export type UpdateColonyMotionMutation = { __typename?: 'Mutation', updateColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type UpdateColonyMotionMutation = { + __typename?: 'Mutation'; + updateColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type CreateMotionMessageMutationVariables = Exact<{ input: CreateMotionMessageInput; }>; - -export type CreateMotionMessageMutation = { __typename?: 'Mutation', createMotionMessage?: { __typename?: 'MotionMessage', id: string } | null }; +export type CreateMotionMessageMutation = { + __typename?: 'Mutation'; + createMotionMessage?: { __typename?: 'MotionMessage'; id: string } | null; +}; export type CreateUserVoterRewardMutationVariables = Exact<{ input: CreateVoterRewardsHistoryInput; }>; - -export type CreateUserVoterRewardMutation = { __typename?: 'Mutation', createVoterRewardsHistory?: { __typename?: 'VoterRewardsHistory', id: string } | null }; +export type CreateUserVoterRewardMutation = { + __typename?: 'Mutation'; + createVoterRewardsHistory?: { + __typename?: 'VoterRewardsHistory'; + id: string; + } | null; +}; export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; }>; - -export type CreateColonyMultiSigMutation = { __typename?: 'Mutation', createColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type CreateColonyMultiSigMutation = { + __typename?: 'Mutation'; + createColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type UpdateColonyMultiSigMutationVariables = Exact<{ input: UpdateColonyMultiSigInput; }>; - -export type UpdateColonyMultiSigMutation = { __typename?: 'Mutation', updateColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type UpdateColonyMultiSigMutation = { + __typename?: 'Mutation'; + updateColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type CreateMultiSigVoteMutationVariables = Exact<{ input: CreateMultiSigUserSignatureInput; }>; - -export type CreateMultiSigVoteMutation = { __typename?: 'Mutation', createMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type CreateMultiSigVoteMutation = { + __typename?: 'Mutation'; + createMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigVoteMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigVoteMutation = { __typename?: 'Mutation', deleteMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type RemoveMultiSigVoteMutation = { + __typename?: 'Mutation'; + deleteMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigRoleMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation', deleteColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type RemoveMultiSigRoleMutation = { + __typename?: 'Mutation'; + deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; }>; - -export type CreateColonyRoleMutation = { __typename?: 'Mutation', createColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type CreateColonyRoleMutation = { + __typename?: 'Mutation'; + createColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type UpdateColonyRoleMutationVariables = Exact<{ input: UpdateColonyRoleInput; }>; - -export type UpdateColonyRoleMutation = { __typename?: 'Mutation', updateColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type UpdateColonyRoleMutation = { + __typename?: 'Mutation'; + updateColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyHistoricRoleMutationVariables = Exact<{ input: CreateColonyHistoricRoleInput; }>; - -export type CreateColonyHistoricRoleMutation = { __typename?: 'Mutation', createColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type CreateColonyHistoricRoleMutation = { + __typename?: 'Mutation'; + createColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type UpdateReputationMiningCycleMetadataMutationVariables = Exact<{ input: UpdateReputationMiningCycleMetadataInput; }>; - -export type UpdateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', updateReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type UpdateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + updateReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateReputationMiningCycleMetadataMutationVariables = Exact<{ input: CreateReputationMiningCycleMetadataInput; }>; - -export type CreateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', createReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type CreateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + createReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateUserStakeMutationVariables = Exact<{ input: CreateUserStakeInput; }>; - -export type CreateUserStakeMutation = { __typename?: 'Mutation', createUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type CreateUserStakeMutation = { + __typename?: 'Mutation'; + createUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type UpdateUserStakeMutationVariables = Exact<{ input: UpdateUserStakeInput; }>; - -export type UpdateUserStakeMutation = { __typename?: 'Mutation', updateUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type UpdateUserStakeMutation = { + __typename?: 'Mutation'; + updateUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type CreateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type CreateStatsMutation = { __typename?: 'Mutation', createIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type CreateStatsMutation = { + __typename?: 'Mutation'; + createIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type UpdateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type UpdateStatsMutation = { __typename?: 'Mutation', updateIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type UpdateStatsMutation = { + __typename?: 'Mutation'; + updateIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type DeleteColonyTokensMutationVariables = Exact<{ input: DeleteColonyTokensInput; }>; - -export type DeleteColonyTokensMutation = { __typename?: 'Mutation', deleteColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type DeleteColonyTokensMutation = { + __typename?: 'Mutation'; + deleteColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type GetColonyActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetColonyActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type GetColonyActionQuery = { + __typename?: 'Query'; + getColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type GetColonyArbitraryTransactionActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetColonyArbitraryTransactionActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, arbitraryTransactions?: Array<{ __typename?: 'ColonyActionArbitraryTransaction', contractAddress: string, encodedFunction: string }> | null } | null }; +export type GetColonyArbitraryTransactionActionQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + id: string; + arbitraryTransactions?: Array<{ + __typename?: 'ColonyActionArbitraryTransaction'; + contractAddress: string; + encodedFunction: string; + }> | null; + } | null; +}; export type GetMotionIdFromActionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetMotionIdFromActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', motionData?: { __typename?: 'ColonyMotion', id: string } | null } | null }; +export type GetMotionIdFromActionQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + motionData?: { __typename?: 'ColonyMotion'; id: string } | null; + } | null; +}; export type GetActionIdFromAnnotationQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionIdFromAnnotationQuery = { __typename?: 'Query', getAnnotation?: { __typename?: 'Annotation', actionId: string } | null }; +export type GetActionIdFromAnnotationQuery = { + __typename?: 'Query'; + getAnnotation?: { __typename?: 'Annotation'; actionId: string } | null; +}; export type GetActionByIdQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionByIdQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, type: ColonyActionType, expenditureSlotChanges?: { __typename?: 'ExpenditureSlotChanges', oldSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, newSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }> } | null } | null }; +export type GetActionByIdQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + id: string; + type: ColonyActionType; + expenditureSlotChanges?: { + __typename?: 'ExpenditureSlotChanges'; + oldSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + newSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + } | null; + } | null; +}; export type GetColonyMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMetadataQuery = { __typename?: 'Query', getColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, etherealData?: { __typename?: 'ColonyMetadataEtherealData', colonyAvatar?: string | null, colonyDisplayName: string, colonyName: string, colonyThumbnail?: string | null, initiatorAddress: string, tokenAvatar?: string | null, tokenThumbnail?: string | null } | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; +export type GetColonyMetadataQuery = { + __typename?: 'Query'; + getColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + etherealData?: { + __typename?: 'ColonyMetadataEtherealData'; + colonyAvatar?: string | null; + colonyDisplayName: string; + colonyName: string; + colonyThumbnail?: string | null; + initiatorAddress: string; + tokenAvatar?: string | null; + tokenThumbnail?: string | null; + } | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; +}; export type GetColonyQueryVariables = Exact<{ id: Scalars['ID']; nextToken?: InputMaybe; }>; - -export type GetColonyQuery = { __typename?: 'Query', getColony?: { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null } | null, getColonyByAddress?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null, getColonyByType?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +export type GetColonyQuery = { + __typename?: 'Query'; + getColony?: { + __typename?: 'Colony'; + colonyAddress: string; + nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + tokens?: { + __typename?: 'ModelColonyTokensConnection'; + items: Array<{ + __typename?: 'ColonyTokens'; + id: string; + tokenAddress: string; + } | null>; + } | null; + motionsWithUnclaimedStakes?: Array<{ + __typename?: 'ColonyUnclaimedStake'; + motionId: string; + unclaimedRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + }> | null; + domains?: { + __typename?: 'ModelDomainConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + } | null>; + } | null; + } | null; + getColonyByAddress?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; + getColonyByType?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; +}; export type GetColonyByNameQueryVariables = Exact<{ name: Scalars['String']; }>; - -export type GetColonyByNameQuery = { __typename?: 'Query', getColonyByName?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +export type GetColonyByNameQuery = { + __typename?: 'Query'; + getColonyByName?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; +}; export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nativeTokenId: Scalars['ID']; @@ -10801,29 +11217,98 @@ export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type GetColonyByNativeTokenIdQuery = { __typename?: 'Query', getColoniesByNativeTokenId?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, status?: { __typename?: 'ColonyStatus', recovery?: boolean | null, nativeToken?: { __typename?: 'NativeTokenStatus', unlocked?: boolean | null, unlockable?: boolean | null, mintable?: boolean | null } | null } | null } | null> } | null }; +export type GetColonyByNativeTokenIdQuery = { + __typename?: 'Query'; + getColoniesByNativeTokenId?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + status?: { + __typename?: 'ColonyStatus'; + recovery?: boolean | null; + nativeToken?: { + __typename?: 'NativeTokenStatus'; + unlocked?: boolean | null; + unlockable?: boolean | null; + mintable?: boolean | null; + } | null; + } | null; + } | null>; + } | null; +}; export type ListColoniesQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type ListColoniesQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, nativeTokenId: string } | null> } | null }; +export type ListColoniesQuery = { + __typename?: 'Query'; + listColonies?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + nativeTokenId: string; + } | null>; + } | null; +}; export type ListColoniesWithRootPermissionHoldersQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type ListColoniesWithRootPermissionHoldersQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null } | null> } | null }; +export type ListColoniesWithRootPermissionHoldersQuery = { + __typename?: 'Query'; + listColonies?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + roles?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + targetUser?: { + __typename?: 'User'; + id: string; + profile?: { + __typename?: 'Profile'; + displayName?: string | null; + id: string; + } | null; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; + } | null>; + } | null; +}; export type GetColonyContributorQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyContributorQuery = { __typename?: 'Query', getColonyContributor?: { __typename?: 'ColonyContributor', id: string, isVerified: boolean } | null }; +export type GetColonyContributorQuery = { + __typename?: 'Query'; + getColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + isVerified: boolean; + } | null; +}; export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -10832,117 +11317,387 @@ export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type GetColonyContributorsNotificationDataQuery = { __typename?: 'Query', getContributorsByColony?: { __typename?: 'ModelColonyContributorConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; +export type GetColonyContributorsNotificationDataQuery = { + __typename?: 'Query'; + getContributorsByColony?: { + __typename?: 'ModelColonyContributorConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'ColonyContributor'; + user?: { + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; +}; export type GetCurrentVersionQueryVariables = Exact<{ key: Scalars['String']; }>; - -export type GetCurrentVersionQuery = { __typename?: 'Query', getCurrentVersionByKey?: { __typename?: 'ModelCurrentVersionConnection', items: Array<{ __typename?: 'CurrentVersion', id: string, version: number } | null> } | null }; +export type GetCurrentVersionQuery = { + __typename?: 'Query'; + getCurrentVersionByKey?: { + __typename?: 'ModelCurrentVersionConnection'; + items: Array<{ + __typename?: 'CurrentVersion'; + id: string; + version: number; + } | null>; + } | null; +}; export type GetColonyDecisionByActionIdQueryVariables = Exact<{ actionId: Scalars['ID']; }>; - -export type GetColonyDecisionByActionIdQuery = { __typename?: 'Query', getColonyDecisionByActionId?: { __typename?: 'ModelColonyDecisionConnection', items: Array<{ __typename?: 'ColonyDecision', id: string } | null> } | null }; +export type GetColonyDecisionByActionIdQuery = { + __typename?: 'Query'; + getColonyDecisionByActionId?: { + __typename?: 'ModelColonyDecisionConnection'; + items: Array<{ __typename?: 'ColonyDecision'; id: string } | null>; + } | null; +}; export type GetDomainMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetDomainMetadataQuery = { __typename?: 'Query', getDomainMetadata?: { __typename?: 'DomainMetadata', color: DomainColor, description?: string | null, id: string, name: string, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', newColor: DomainColor, newDescription?: string | null, newName: string, oldColor: DomainColor, oldDescription?: string | null, oldName: string, transactionHash: string }> | null } | null }; +export type GetDomainMetadataQuery = { + __typename?: 'Query'; + getDomainMetadata?: { + __typename?: 'DomainMetadata'; + color: DomainColor; + description?: string | null; + id: string; + name: string; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + newColor: DomainColor; + newDescription?: string | null; + newName: string; + oldColor: DomainColor; + oldDescription?: string | null; + oldName: string; + transactionHash: string; + }> | null; + } | null; +}; export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; colonyAddress: Scalars['ID']; }>; - -export type GetDomainByNativeSkillIdQuery = { __typename?: 'Query', getDomainByNativeSkillId?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string, nativeId: number } | null> } | null }; +export type GetDomainByNativeSkillIdQuery = { + __typename?: 'Query'; + getDomainByNativeSkillId?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; +}; export type GetDomainsByExtensionAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetDomainsByExtensionAddressQuery = { __typename?: 'Query', listColonyExtensions?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', colony: { __typename?: 'Colony', id: string, domains?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', nativeSkillId: string, nativeId: number } | null> } | null } } | null> } | null }; +export type GetDomainsByExtensionAddressQuery = { + __typename?: 'Query'; + listColonyExtensions?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + colony: { + __typename?: 'Colony'; + id: string; + domains?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; + }; + } | null>; + } | null; +}; export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetContractEventQuery = { __typename?: 'Query', getContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type GetContractEventQuery = { + __typename?: 'Query'; + getContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type GetExpenditureQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetExpenditureQuery = { __typename?: 'Query', getExpenditure?: { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null }; +export type GetExpenditureQuery = { + __typename?: 'Query'; + getExpenditure?: { + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; + } | null; +}; export type GetExpenditureByNativeFundingPotIdAndColonyQueryVariables = Exact<{ nativeFundingPotId: Scalars['Int']; colonyAddress: Scalars['ID']; }>; - -export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query', getExpendituresByNativeFundingPotIdAndColony?: { __typename?: 'ModelExpenditureConnection', items: Array<{ __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null> } | null }; +export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { + __typename?: 'Query'; + getExpendituresByNativeFundingPotIdAndColony?: { + __typename?: 'ModelExpenditureConnection'; + items: Array<{ + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { + __typename?: 'ColonyAction'; + type: ColonyActionType; + } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; + } | null>; + } | null; +}; export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, endTime: number, tokenAddress: string, amount: string, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: number }> | null } | null }; +export type GetStreamingPaymentQuery = { + __typename?: 'Query'; + getStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + endTime: number; + tokenAddress: string; + amount: string; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + timestamp: number; + }> | null; + } | null; +}; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyExtensionQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null }; +export type GetColonyExtensionQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null; +}; export type GetColonyExtensionsByColonyAddressQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetColonyExtensionsByColonyAddressQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type GetColonyExtensionsByColonyAddressQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type ListExtensionsQueryVariables = Exact<{ hash: Scalars['String']; nextToken?: InputMaybe; }>; - -export type ListExtensionsQuery = { __typename?: 'Query', getExtensionsByHash?: { __typename?: 'ModelColonyExtensionConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type ListExtensionsQuery = { + __typename?: 'Query'; + getExtensionsByHash?: { + __typename?: 'ModelColonyExtensionConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type GetColonyExtensionByHashAndColonyQueryVariables = Exact<{ colonyAddress: Scalars['ID']; extensionHash: Scalars['String']; }>; - -export type GetColonyExtensionByHashAndColonyQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string } | null> } | null }; +export type GetColonyExtensionByHashAndColonyQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ __typename?: 'ColonyExtension'; id: string } | null>; + } | null; +}; export type GetExtensionInstallationsCountQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetExtensionInstallationsCountQuery = { __typename?: 'Query', getExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', oneTxPayment: number, stakedExpenditure: number, stagedExpenditure: number, streamingPayments: number, reputationWeighted: number, multiSigPermissions: number } | null }; +export type GetExtensionInstallationsCountQuery = { + __typename?: 'Query'; + getExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + oneTxPayment: number; + stakedExpenditure: number; + stagedExpenditure: number; + streamingPayments: number; + reputationWeighted: number; + multiSigPermissions: number; + } | null; +}; export type GetColonyExtensionByAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetColonyExtensionByAddressQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', colonyId: string, params?: { __typename?: 'ExtensionParams', multiSig?: { __typename?: 'MultiSigParams', colonyThreshold: number, domainThresholds?: Array<{ __typename?: 'MultiSigDomainConfig', domainId: string, domainThreshold: number } | null> | null } | null } | null } | null }; +export type GetColonyExtensionByAddressQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + colonyId: string; + params?: { + __typename?: 'ExtensionParams'; + multiSig?: { + __typename?: 'MultiSigParams'; + colonyThreshold: number; + domainThresholds?: Array<{ + __typename?: 'MultiSigDomainConfig'; + domainId: string; + domainThreshold: number; + } | null> | null; + } | null; + } | null; + } | null; +}; export type GetColonyUnclaimedFundsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -10950,55 +11705,328 @@ export type GetColonyUnclaimedFundsQueryVariables = Exact<{ upToBlock?: InputMaybe; }>; - -export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query', listColonyFundsClaims?: { __typename?: 'ModelColonyFundsClaimConnection', items: Array<{ __typename?: 'ColonyFundsClaim', id: string, amount: string, token: { __typename?: 'Token', symbol: string, tokenAddress: string } } | null> } | null }; +export type GetColonyUnclaimedFundsQuery = { + __typename?: 'Query'; + listColonyFundsClaims?: { + __typename?: 'ModelColonyFundsClaimConnection'; + items: Array<{ + __typename?: 'ColonyFundsClaim'; + id: string; + amount: string; + token: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + } | null>; + } | null; +}; export type GetColonyUnclaimedFundQueryVariables = Exact<{ claimId: Scalars['ID']; }>; +export type GetColonyUnclaimedFundQuery = { + __typename?: 'Query'; + getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim'; id: string } | null; +}; -export type GetColonyUnclaimedFundQuery = { __typename?: 'Query', getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; - -export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type GetCurrentNetworkInverseFeeQuery = { __typename?: 'Query', listCurrentNetworkInverseFees?: { __typename?: 'ModelCurrentNetworkInverseFeeConnection', items: Array<{ __typename?: 'CurrentNetworkInverseFee', id: string, inverseFee: string } | null> } | null }; +export type GetCurrentNetworkInverseFeeQuery = { + __typename?: 'Query'; + listCurrentNetworkInverseFees?: { + __typename?: 'ModelCurrentNetworkInverseFeeConnection'; + items: Array<{ + __typename?: 'CurrentNetworkInverseFee'; + id: string; + inverseFee: string; + } | null>; + } | null; +}; export type GetColonyActionByMotionIdQueryVariables = Exact<{ motionId: Scalars['ID']; }>; - -export type GetColonyActionByMotionIdQuery = { __typename?: 'Query', getColonyActionByMotionId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; +export type GetColonyActionByMotionIdQuery = { + __typename?: 'Query'; + getColonyActionByMotionId?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ + __typename?: 'Payment'; + recipientAddress: string; + }> | null; + } | null>; + } | null; +}; export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; +export type GetColonyMotionQuery = { + __typename?: 'Query'; + getColonyMotion?: { + __typename?: 'ColonyMotion'; + id: string; + nativeMotionId: string; + requiredStake: string; + remainingStakes: Array; + userMinStake: string; + nativeMotionDomainId: string; + isFinalized: boolean; + createdBy: string; + repSubmitted: string; + skillRep: string; + hasObjection: boolean; + motionDomainId: string; + isDecision: boolean; + transactionHash: string; + expenditureId?: string | null; + motionStakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + nay: string; + yay: string; + }; + }; + usersStakes: Array<{ + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + }>; + stakerRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + voterRecord: Array<{ + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; + }>; + revealedVotes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + motionStateHistory: { + __typename?: 'MotionStateHistory'; + hasVoted: boolean; + hasPassed: boolean; + hasFailed: boolean; + hasFailedNotFinalizable: boolean; + inRevealPhase: boolean; + yaySideFullyStakedAt?: string | null; + naySideFullyStakedAt?: string | null; + allVotesSubmittedAt?: string | null; + allVotesRevealedAt?: string | null; + endedAt?: string | null; + finalizedAt?: string | null; + }; + } | null; +}; export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; }>; - -export type GetVoterRewardsQuery = { __typename?: 'Query', getVoterRewards?: { __typename?: 'VoterRewardsReturn', min: string, max: string, reward: string } | null }; +export type GetVoterRewardsQuery = { + __typename?: 'Query'; + getVoterRewards?: { + __typename?: 'VoterRewardsReturn'; + min: string; + max: string; + reward: string; + } | null; +}; export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; }>; - -export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query', getColonyActionByMultiSigId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; +export type GetColonyActionByMultiSigIdQuery = { + __typename?: 'Query'; + getColonyActionByMultiSigId?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ + __typename?: 'Payment'; + recipientAddress: string; + }> | null; + } | null>; + } | null; +}; export type GetColonyMultiSigQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMultiSigQuery = { __typename?: 'Query', getColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null }; +export type GetColonyMultiSigQuery = { + __typename?: 'Query'; + getColonyMultiSig?: { + __typename?: 'ColonyMultiSig'; + id: string; + colonyAddress: string; + nativeMultiSigId: string; + multiSigDomainId: string; + nativeMultiSigDomainId: string; + requiredPermissions: number; + transactionHash: string; + isExecuted: boolean; + isRejected: boolean; + isDecision: boolean; + hasActionCompleted: boolean; + executedAt?: string | null; + executedBy?: string | null; + rejectedAt?: string | null; + rejectedBy?: string | null; + createdAt: string; + expenditureId?: string | null; + signatures?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null; +}; export type GetUserMultiSigSignatureQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -11007,1285 +12035,1445 @@ export type GetUserMultiSigSignatureQueryVariables = Exact<{ role: Scalars['Int']; }>; - -export type GetUserMultiSigSignatureQuery = { __typename?: 'Query', getMultiSigUserSignatureByMultiSigId?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; +export type GetUserMultiSigSignatureQuery = { + __typename?: 'Query'; + getMultiSigUserSignatureByMultiSigId?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; +}; export type GetAllMultiSigRolesQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetAllMultiSigRolesQuery = { __typename?: 'Query', getRoleByColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string } | null> } | null }; +export type GetAllMultiSigRolesQuery = { + __typename?: 'Query'; + getRoleByColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ __typename?: 'ColonyRole'; id: string } | null>; + } | null; +}; export type GetActiveColonyMultisigsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetActiveColonyMultisigsQuery = { __typename?: 'Query', getMultiSigByColonyAddress?: { __typename?: 'ModelColonyMultiSigConnection', items: Array<{ __typename?: 'ColonyMultiSig', id: string } | null> } | null }; +export type GetActiveColonyMultisigsQuery = { + __typename?: 'Query'; + getMultiSigByColonyAddress?: { + __typename?: 'ModelColonyMultiSigConnection'; + items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; + } | null; +}; export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyRoleQuery = { __typename?: 'Query', getColonyRole?: { __typename?: 'ColonyRole', id: string, latestBlock: number, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null }; +export type GetColonyRoleQuery = { + __typename?: 'Query'; + getColonyRole?: { + __typename?: 'ColonyRole'; + id: string; + latestBlock: number; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null; +}; export type GetAllColonyRolesQueryVariables = Exact<{ targetAddress: Scalars['ID']; colonyAddress: Scalars['ID']; }>; - -export type GetAllColonyRolesQuery = { __typename?: 'Query', getRoleByTargetAddressAndColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null> } | null }; +export type GetAllColonyRolesQuery = { + __typename?: 'Query'; + getRoleByTargetAddressAndColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null>; + } | null; +}; export type GetColonyHistoricRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyHistoricRoleQuery = { __typename?: 'Query', getColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type GetColonyHistoricRoleQuery = { + __typename?: 'Query'; + getColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type GetReputationMiningCycleMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetReputationMiningCycleMetadataQuery = { __typename?: 'Query', getReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type GetReputationMiningCycleMetadataQuery = { + __typename?: 'Query'; + getReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type GetSafeTransactionByTransactionHashQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetSafeTransactionByTransactionHashQuery = { __typename?: 'Query', getSafeTransaction?: { __typename?: 'SafeTransaction', id: string } | null }; +export type GetSafeTransactionByTransactionHashQuery = { + __typename?: 'Query'; + getSafeTransaction?: { __typename?: 'SafeTransaction'; id: string } | null; +}; export type GetUserStakeQueryVariables = Exact<{ id: Scalars['ID']; }>; +export type GetUserStakeQuery = { + __typename?: 'Query'; + getUserStake?: { + __typename?: 'UserStake'; + id: string; + amount: string; + } | null; +}; -export type GetUserStakeQuery = { __typename?: 'Query', getUserStake?: { __typename?: 'UserStake', id: string, amount: string } | null }; - -export type GetStatsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetStatsQueryVariables = Exact<{ [key: string]: never }>; -export type GetStatsQuery = { __typename?: 'Query', getIngestorStats?: { __typename?: 'IngestorStats', value: string } | null }; +export type GetStatsQuery = { + __typename?: 'Query'; + getIngestorStats?: { __typename?: 'IngestorStats'; value: string } | null; +}; export type GetTokenFromEverywhereQueryVariables = Exact<{ input: TokenFromEverywhereArguments; }>; - -export type GetTokenFromEverywhereQuery = { __typename?: 'Query', getTokenFromEverywhere?: { __typename?: 'TokenFromEverywhereReturn', items?: Array<{ __typename?: 'Token', id: string } | null> | null } | null }; +export type GetTokenFromEverywhereQuery = { + __typename?: 'Query'; + getTokenFromEverywhere?: { + __typename?: 'TokenFromEverywhereReturn'; + items?: Array<{ __typename?: 'Token'; id: string } | null> | null; + } | null; +}; export type GetNotificationUsersQueryVariables = Exact<{ filter?: InputMaybe; limit?: InputMaybe; }>; - -export type GetNotificationUsersQuery = { __typename?: 'Query', listUsers?: { __typename?: 'ModelUserConnection', items: Array<{ __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null> } | null }; +export type GetNotificationUsersQuery = { + __typename?: 'Query'; + listUsers?: { + __typename?: 'ModelUserConnection'; + items: Array<{ + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null>; + } | null; +}; export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { - transactionHash - oldName - newName - oldColor - newColor - oldDescription - newDescription - } -} - `; -export const ColonyMetadata = gql` - fragment ColonyMetadata on ColonyMetadata { - id - displayName - avatar - thumbnail - description - externalLinks { + fragment DomainMetadata on DomainMetadata { name - link - } - objective { - title + color description - progress + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription + } } - changelog { - transactionHash - oldDisplayName - newDisplayName - hasAvatarChanged - hasDescriptionChanged - haveExternalLinksChanged - hasObjectiveChanged +`; +export const ColonyMetadata = gql` + fragment ColonyMetadata on ColonyMetadata { + id + displayName + avatar + thumbnail + description + externalLinks { + name + link + } + objective { + title + description + progress + } + changelog { + transactionHash + oldDisplayName + newDisplayName + hasAvatarChanged + hasDescriptionChanged + haveExternalLinksChanged + hasObjectiveChanged + } } -} - `; +`; export const ActionMetadataInfo = gql` - fragment ActionMetadataInfo on ColonyAction { - id - pendingDomainMetadata { - ...DomainMetadata - } - pendingColonyMetadata { - ...ColonyMetadata - } - colonyDecisionId - amount - networkFee - type - showInActionsList - colonyId - initiatorAddress - recipientAddress - payments { + fragment ActionMetadataInfo on ColonyAction { + id + pendingDomainMetadata { + ...DomainMetadata + } + pendingColonyMetadata { + ...ColonyMetadata + } + colonyDecisionId + amount + networkFee + type + showInActionsList + colonyId + initiatorAddress recipientAddress + payments { + recipientAddress + } + members } - members -} - ${DomainMetadata} -${ColonyMetadata}`; + ${DomainMetadata} + ${ColonyMetadata} +`; export const Token = gql` - fragment Token on Token { - tokenAddress: id - symbol -} - `; -export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token + fragment Token on Token { + tokenAddress: id + symbol } - tokens { - items { - id - tokenAddress: tokenID +`; +export const Colony = gql` + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token } - } - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay + tokens { + items { + id + tokenAddress: tokenID } - isClaimed } - } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay + } + isClaimed + } + } + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId + } + nextToken } - nextToken } -} - ${Token}`; + ${Token} +`; export const NotificationsData = gql` - fragment NotificationsData on NotificationsData { - magicbellUserId - notificationsDisabled - mutedColonyAddresses - paymentNotificationsDisabled - mentionNotificationsDisabled - adminNotificationsDisabled -} - `; + fragment NotificationsData on NotificationsData { + magicbellUserId + notificationsDisabled + mutedColonyAddresses + paymentNotificationsDisabled + mentionNotificationsDisabled + adminNotificationsDisabled + } +`; export const ColonyWithRootRoles = gql` - fragment ColonyWithRootRoles on Colony { - id - roles(filter: {role_1: {eq: true}}, limit: 1000) { - items { - id - targetUser { + fragment ColonyWithRootRoles on Colony { + id + roles(filter: { role_1: { eq: true } }, limit: 1000) { + items { id - profile { - displayName + targetUser { id - } - notificationsData { - ...NotificationsData + profile { + displayName + id + } + notificationsData { + ...NotificationsData + } } } } } -} - ${NotificationsData}`; + ${NotificationsData} +`; export const ExpenditureSlot = gql` - fragment ExpenditureSlot on ExpenditureSlot { - id - recipientAddress - claimDelay - payoutModifier - payouts { + fragment ExpenditureSlot on ExpenditureSlot { + id + recipientAddress + claimDelay + payoutModifier + payouts { + tokenAddress + amount + isClaimed + networkFee + } + } +`; +export const ExpenditureBalance = gql` + fragment ExpenditureBalance on ExpenditureBalance { tokenAddress amount - isClaimed - networkFee } -} - `; -export const ExpenditureBalance = gql` - fragment ExpenditureBalance on ExpenditureBalance { - tokenAddress - amount -} - `; +`; export const Expenditure = gql` - fragment Expenditure on Expenditure { - id - slots { - ...ExpenditureSlot - } - motions { - items { - transactionHash - action { - type + fragment Expenditure on Expenditure { + id + slots { + ...ExpenditureSlot + } + motions { + items { + transactionHash + action { + type + } } } - } - balances { - ...ExpenditureBalance - } - metadata { - distributionType - } - status - ownerAddress - userStakeId - createdAt - firstEditTransactionHash - splitPaymentPayoutClaimedNotificationSent - type - actions { - items { - type - id + balances { + ...ExpenditureBalance + } + metadata { + distributionType + } + status + ownerAddress + userStakeId + createdAt + firstEditTransactionHash + splitPaymentPayoutClaimedNotificationSent + type + actions { + items { + type + id + } } } -} - ${ExpenditureSlot} -${ExpenditureBalance}`; + ${ExpenditureSlot} + ${ExpenditureBalance} +`; export const Extension = gql` - fragment Extension on ColonyExtension { - id - hash - colonyId - isInitialized - version -} - `; -export const MotionStakes = gql` - fragment MotionStakes on MotionStakes { - raw { - nay - yay - } - percentage { - nay - yay + fragment Extension on ColonyExtension { + id + hash + colonyId + isInitialized + version } -} - `; -export const UserMotionStakes = gql` - fragment UserMotionStakes on UserMotionStakes { - address - stakes { +`; +export const MotionStakes = gql` + fragment MotionStakes on MotionStakes { raw { - yay nay + yay } percentage { - yay nay + yay } } -} - `; +`; +export const UserMotionStakes = gql` + fragment UserMotionStakes on UserMotionStakes { + address + stakes { + raw { + yay + nay + } + percentage { + yay + nay + } + } + } +`; export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay + fragment StakerReward on StakerRewards { + address + rewards { + yay + nay + } + isClaimed } - isClaimed -} - `; +`; export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote -} - `; -export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward + fragment VoterRecord on VoterRecord { + address + voteCount + vote } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay +`; +export const ColonyMotion = gql` + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes } - percentage { - yay - nay + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay + } + percentage { + yay + nay + } + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision + transactionHash + expenditureId } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt - } - isDecision - transactionHash - expenditureId -} - ${MotionStakes} -${UserMotionStakes} -${StakerReward} -${VoterRecord}`; + ${MotionStakes} + ${UserMotionStakes} + ${StakerReward} + ${VoterRecord} +`; export const MultiSigUserSignature = gql` - fragment MultiSigUserSignature on MultiSigUserSignature { - id - multiSigId - role - colonyAddress - userAddress - vote - createdAt -} - `; + fragment MultiSigUserSignature on MultiSigUserSignature { + id + multiSigId + role + colonyAddress + userAddress + vote + createdAt + } +`; export const ColonyMultiSig = gql` - fragment ColonyMultiSig on ColonyMultiSig { - id - colonyAddress - nativeMultiSigId - multiSigDomainId - nativeMultiSigDomainId - requiredPermissions - transactionHash - isExecuted - isRejected - isDecision - hasActionCompleted - signatures { - items { - ...MultiSigUserSignature + fragment ColonyMultiSig on ColonyMultiSig { + id + colonyAddress + nativeMultiSigId + multiSigDomainId + nativeMultiSigDomainId + requiredPermissions + transactionHash + isExecuted + isRejected + isDecision + hasActionCompleted + signatures { + items { + ...MultiSigUserSignature + } } + executedAt + executedBy + rejectedAt + rejectedBy + createdAt + action { + type + } + expenditureId } - executedAt - executedBy - rejectedAt - rejectedBy - createdAt - action { - type - } - expenditureId -} - ${MultiSigUserSignature}`; + ${MultiSigUserSignature} +`; export const NotificationUser = gql` - fragment NotificationUser on ColonyContributor { - user { - notificationsData { - ...NotificationsData + fragment NotificationUser on ColonyContributor { + user { + notificationsData { + ...NotificationsData + } } } -} - ${NotificationsData}`; + ${NotificationsData} +`; export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyDocument = gql` - mutation CreateColony($input: CreateColonyInput!, $condition: ModelColonyConditionInput) { - createColony(input: $input, condition: $condition) { - id + mutation CreateColony( + $input: CreateColonyInput! + $condition: ModelColonyConditionInput + ) { + createColony(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id + } } -} - `; +`; export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite($input: CreateColonyMemberInviteInput!, $condition: ModelColonyMemberInviteConditionInput) { - createColonyMemberInvite(input: $input, condition: $condition) { - id + mutation CreateColonyMemberInvite( + $input: CreateColonyMemberInviteInput! + $condition: ModelColonyMemberInviteConditionInput + ) { + createColonyMemberInvite(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id + } } -} - `; +`; export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id + } } -} - `; +`; export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id + } } -} - `; +`; export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id + } } -} - `; +`; export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: {id: $id, showInDecisionsList: $showInDecisionsList} - ) { - id + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: { id: $id, showInDecisionsList: $showInDecisionsList } + ) { + id + } } -} - `; +`; export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id + } } -} - `; +`; export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id + } } -} - `; +`; export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id + } } -} - `; +`; export const CreateContractEventDocument = gql` - mutation CreateContractEvent($input: CreateContractEventInput!, $condition: ModelContractEventConditionInput) { - createContractEvent(input: $input, condition: $condition) { - id + mutation CreateContractEvent( + $input: CreateContractEventInput! + $condition: ModelContractEventConditionInput + ) { + createContractEvent(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id + } } -} - `; +`; export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress + } } -} - `; +`; export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id + } } -} - `; +`; export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id + } } -} - `; +`; export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id + } } -} - `; +`; export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id + } } -} - `; +`; export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId + } } -} - `; +`; export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount($input: CreateExtensionInstallationsCountInput!) { - createExtensionInstallationsCount(input: $input) { - id + mutation CreateExtensionInstallationsCount( + $input: CreateExtensionInstallationsCountInput! + ) { + createExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount($input: UpdateExtensionInstallationsCountInput!) { - updateExtensionInstallationsCount(input: $input) { - id + mutation UpdateExtensionInstallationsCount( + $input: UpdateExtensionInstallationsCountInput! + ) { + updateExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim($input: CreateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - createColonyFundsClaim(input: $input, condition: $condition) { - id + mutation CreateColonyFundsClaim( + $input: CreateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + createColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim($input: UpdateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id + mutation UpdateColonyFundsClaim( + $input: UpdateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim($input: DeleteColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id + mutation DeleteColonyFundsClaim( + $input: DeleteColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee($input: CreateCurrentNetworkInverseFeeInput!) { - createCurrentNetworkInverseFee(input: $input) { - id + mutation CreateCurrentNetworkInverseFee( + $input: CreateCurrentNetworkInverseFeeInput! + ) { + createCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee($input: UpdateCurrentNetworkInverseFeeInput!) { - updateCurrentNetworkInverseFee(input: $input) { - id + mutation UpdateCurrentNetworkInverseFee( + $input: UpdateCurrentNetworkInverseFeeInput! + ) { + updateCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id + } } -} - `; +`; export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id + } } -} - `; +`; export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id + } } -} - `; +`; export const CreateColonyMultiSigDocument = gql` - mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { - createColonyMultiSig(input: $input) { - id + mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { + createColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMultiSigDocument = gql` - mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { - updateColonyMultiSig(input: $input) { - id + mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { + updateColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const CreateMultiSigVoteDocument = gql` - mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { - createMultiSigUserSignature(input: $input) { - id + mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { + createMultiSigUserSignature(input: $input) { + id + } } -} - `; +`; export const RemoveMultiSigVoteDocument = gql` - mutation RemoveMultiSigVote($id: ID!) { - deleteMultiSigUserSignature(input: {id: $id}) { - id + mutation RemoveMultiSigVote($id: ID!) { + deleteMultiSigUserSignature(input: { id: $id }) { + id + } } -} - `; +`; export const RemoveMultiSigRoleDocument = gql` - mutation RemoveMultiSigRole($id: ID!) { - deleteColonyRole(input: {id: $id}) { - id + mutation RemoveMultiSigRole($id: ID!) { + deleteColonyRole(input: { id: $id }) { + id + } } -} - `; +`; export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id + } } -} - `; +`; export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id + } } -} - `; +`; export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id + } } -} - `; +`; export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata($input: UpdateReputationMiningCycleMetadataInput!) { - updateReputationMiningCycleMetadata(input: $input) { - id + mutation UpdateReputationMiningCycleMetadata( + $input: UpdateReputationMiningCycleMetadataInput! + ) { + updateReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata($input: CreateReputationMiningCycleMetadataInput!) { - createReputationMiningCycleMetadata(input: $input) { - id + mutation CreateReputationMiningCycleMetadata( + $input: CreateReputationMiningCycleMetadataInput! + ) { + createReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id + } } -} - `; +`; export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id + } } -} - `; +`; export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation CreateStats($value: String!) { + createIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation UpdateStats($value: String!) { + updateIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id + } } -} - `; +`; export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + } } -} - `; +`; export const GetColonyArbitraryTransactionActionDocument = gql` - query GetColonyArbitraryTransactionAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - arbitraryTransactions { - contractAddress - encodedFunction + query GetColonyArbitraryTransactionAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + arbitraryTransactions { + contractAddress + encodedFunction + } } } -} - `; +`; export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id + } } } -} - `; +`; export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId + } } -} - `; +`; export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot + } } } } -} - ${ExpenditureSlot}`; + ${ExpenditureSlot} +`; export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail + } } } -} - ${ColonyMetadata}`; + ${ColonyMetadata} +`; export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony - } - getColonyByAddress(id: $id) { - items { - id - name + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony } - } - getColonyByType(type: METACOLONY) { - items { - id - name + getColonyByAddress(id: $id) { + items { + id + name + } + } + getColonyByType(type: METACOLONY) { + items { + id + name + } } } -} - ${Colony}`; + ${Colony} +`; export const GetColonyByNameDocument = gql` - query GetColonyByName($name: String!) { - getColonyByName(name: $name) { - items { - id - name + query GetColonyByName($name: String!) { + getColonyByName(name: $name) { + items { + id + name + } } } -} - `; +`; export const GetColonyByNativeTokenIdDocument = gql` - query GetColonyByNativeTokenId($nativeTokenId: ID!, $limit: Int, $nextToken: String) { - getColoniesByNativeTokenId( - nativeTokenId: $nativeTokenId - limit: $limit - nextToken: $nextToken + query GetColonyByNativeTokenId( + $nativeTokenId: ID! + $limit: Int + $nextToken: String ) { - items { - id - status { - nativeToken { - unlocked - unlockable - mintable + getColoniesByNativeTokenId( + nativeTokenId: $nativeTokenId + limit: $limit + nextToken: $nextToken + ) { + items { + id + status { + nativeToken { + unlocked + unlockable + mintable + } + recovery } - recovery } + nextToken } - nextToken } -} - `; +`; export const ListColoniesDocument = gql` - query ListColonies($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - id - nativeTokenId + query ListColonies($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + id + nativeTokenId + } } } -} - `; +`; export const ListColoniesWithRootPermissionHoldersDocument = gql` - query ListColoniesWithRootPermissionHolders($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - ...ColonyWithRootRoles + query ListColoniesWithRootPermissionHolders($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + ...ColonyWithRootRoles + } } } -} - ${ColonyWithRootRoles}`; + ${ColonyWithRootRoles} +`; export const GetColonyContributorDocument = gql` - query GetColonyContributor($id: ID!) { - getColonyContributor(id: $id) { - id - isVerified + query GetColonyContributor($id: ID!) { + getColonyContributor(id: $id) { + id + isVerified + } } -} - `; +`; export const GetColonyContributorsNotificationDataDocument = gql` - query GetColonyContributorsNotificationData($colonyAddress: ID!, $sortDirection: ModelSortDirection = ASC, $limit: Int = 100, $nextToken: String) { - getContributorsByColony( - colonyAddress: $colonyAddress - sortDirection: $sortDirection - limit: $limit - nextToken: $nextToken + query GetColonyContributorsNotificationData( + $colonyAddress: ID! + $sortDirection: ModelSortDirection = ASC + $limit: Int = 100 + $nextToken: String ) { - items { - user { - notificationsData { - ...NotificationsData + getContributorsByColony( + colonyAddress: $colonyAddress + sortDirection: $sortDirection + limit: $limit + nextToken: $nextToken + ) { + items { + user { + notificationsData { + ...NotificationsData + } } } + nextToken } - nextToken } -} - ${NotificationsData}`; + ${NotificationsData} +`; export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version + } } } -} - `; +`; export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { - id + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { + id + } } } -} - `; +`; export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description - id - name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { + color + description + id + name + changelog { + newColor + newDescription + newName + oldColor + oldDescription + oldName + transactionHash + } } } -} - `; +`; export const GetDomainByNativeSkillIdDocument = gql` - query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { - getDomainByNativeSkillId( - nativeSkillId: $nativeSkillId - filter: {colonyId: {eq: $colonyAddress}} - ) { - items { - id - nativeSkillId - nativeId + query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { + getDomainByNativeSkillId( + nativeSkillId: $nativeSkillId + filter: { colonyId: { eq: $colonyAddress } } + ) { + items { + id + nativeSkillId + nativeId + } } } -} - `; +`; export const GetDomainsByExtensionAddressDocument = gql` - query GetDomainsByExtensionAddress($extensionAddress: ID!) { - listColonyExtensions(filter: {id: {eq: $extensionAddress}}) { - items { - colony { - domains { - items { - nativeSkillId - nativeId + query GetDomainsByExtensionAddress($extensionAddress: ID!) { + listColonyExtensions(filter: { id: { eq: $extensionAddress } }) { + items { + colony { + domains { + items { + nativeSkillId + nativeId + } } + id } - id } } } -} - `; +`; export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { - id + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id + } } -} - `; +`; export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure + } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony($nativeFundingPotId: Int!, $colonyAddress: ID!) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: {eq: $colonyAddress} + query GetExpenditureByNativeFundingPotIdAndColony( + $nativeFundingPotId: Int! + $colonyAddress: ID! ) { - items { - ...Expenditure + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: { eq: $colonyAddress } + ) { + items { + ...Expenditure + } } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - id - endTime - tokenAddress - amount - claims { + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + id + endTime + tokenAddress amount - timestamp + claims { + amount + timestamp + } } } -} - `; +`; export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension + } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: {isDeleted: {eq: false}} - ) { - nextToken - items { - ...Extension + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: { isDeleted: { eq: false } } + ) { + nextToken + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony($colonyAddress: ID!, $extensionHash: String!) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: {eq: $extensionHash} - filter: {isDeleted: {eq: false}} + query GetColonyExtensionByHashAndColony( + $colonyAddress: ID! + $extensionHash: String! ) { - items { - id + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: { eq: $extensionHash } + filter: { isDeleted: { eq: false } } + ) { + items { + id + } } } -} - `; +`; export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted - multiSigPermissions + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + multiSigPermissions + } } -} - `; +`; export const GetColonyExtensionByAddressDocument = gql` - query GetColonyExtensionByAddress($extensionAddress: ID!) { - getColonyExtension(id: $extensionAddress) { - params { - multiSig { - colonyThreshold - domainThresholds { - domainId - domainThreshold + query GetColonyExtensionByAddress($extensionAddress: ID!) { + getColonyExtension(id: $extensionAddress) { + params { + multiSig { + colonyThreshold + domainThresholds { + domainId + domainThreshold + } } } + colonyId } - colonyId } -} - `; +`; export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds($colonyAddress: ID!, $tokenAddress: ID!, $upToBlock: Int = 1) { - listColonyFundsClaims( - filter: {colonyFundsClaimsId: {eq: $colonyAddress}, colonyFundsClaimTokenId: {eq: $tokenAddress}, createdAtBlock: {le: $upToBlock}, isClaimed: {ne: true}} + query GetColonyUnclaimedFunds( + $colonyAddress: ID! + $tokenAddress: ID! + $upToBlock: Int = 1 ) { - items { - id - token { - ...Token + listColonyFundsClaims( + filter: { + colonyFundsClaimsId: { eq: $colonyAddress } + colonyFundsClaimTokenId: { eq: $tokenAddress } + createdAtBlock: { le: $upToBlock } + isClaimed: { ne: true } + } + ) { + items { + id + token { + ...Token + } + amount } - amount } } -} - ${Token}`; + ${Token} +`; export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { - id + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id + } } -} - `; +`; export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee + } } } -} - `; +`; export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion + } } -} - ${ColonyMotion}`; + ${ColonyMotion} +`; export const GetVoterRewardsDocument = gql` - query GetVoterRewards($input: GetVoterRewardsInput!) { - getVoterRewards(input: $input) { - min - max - reward + query GetVoterRewards($input: GetVoterRewardsInput!) { + getVoterRewards(input: $input) { + min + max + reward + } } -} - `; +`; export const GetColonyActionByMultiSigIdDocument = gql` - query GetColonyActionByMultiSigId($multiSigId: ID!) { - getColonyActionByMultiSigId(multiSigId: $multiSigId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMultiSigId($multiSigId: ID!) { + getColonyActionByMultiSigId(multiSigId: $multiSigId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMultiSigDocument = gql` - query GetColonyMultiSig($id: ID!) { - getColonyMultiSig(id: $id) { - ...ColonyMultiSig + query GetColonyMultiSig($id: ID!) { + getColonyMultiSig(id: $id) { + ...ColonyMultiSig + } } -} - ${ColonyMultiSig}`; + ${ColonyMultiSig} +`; export const GetUserMultiSigSignatureDocument = gql` - query GetUserMultiSigSignature($multiSigId: ID!, $userAddress: ID!, $vote: MultiSigVote!, $role: Int!) { - getMultiSigUserSignatureByMultiSigId( - filter: {userAddress: {eq: $userAddress}, vote: {eq: $vote}, role: {eq: $role}} - multiSigId: $multiSigId + query GetUserMultiSigSignature( + $multiSigId: ID! + $userAddress: ID! + $vote: MultiSigVote! + $role: Int! ) { - items { - ...MultiSigUserSignature + getMultiSigUserSignatureByMultiSigId( + filter: { + userAddress: { eq: $userAddress } + vote: { eq: $vote } + role: { eq: $role } + } + multiSigId: $multiSigId + ) { + items { + ...MultiSigUserSignature + } } } -} - ${MultiSigUserSignature}`; + ${MultiSigUserSignature} +`; export const GetAllMultiSigRolesDocument = gql` - query GetAllMultiSigRoles($colonyAddress: ID!) { - getRoleByColony( - colonyAddress: $colonyAddress - limit: 9999 - filter: {isMultiSig: {eq: true}} - ) { - items { - id + query GetAllMultiSigRoles($colonyAddress: ID!) { + getRoleByColony( + colonyAddress: $colonyAddress + limit: 9999 + filter: { isMultiSig: { eq: true } } + ) { + items { + id + } } } -} - `; +`; export const GetActiveColonyMultisigsDocument = gql` - query GetActiveColonyMultisigs($colonyAddress: ID!) { - getMultiSigByColonyAddress( - colonyAddress: $colonyAddress - filter: {isExecuted: {eq: false}, isRejected: {eq: false}} - limit: 9999 - ) { - items { - id + query GetActiveColonyMultisigs($colonyAddress: ID!) { + getMultiSigByColonyAddress( + colonyAddress: $colonyAddress + filter: { isExecuted: { eq: false }, isRejected: { eq: false } } + limit: 9999 + ) { + items { + id + } } } -} - `; +`; export const GetColonyRoleDocument = gql` - query GetColonyRole($id: ID!) { - getColonyRole(id: $id) { - id - latestBlock - role_0 - role_1 - role_2 - role_3 - role_5 - role_6 - } -} - `; -export const GetAllColonyRolesDocument = gql` - query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { - getRoleByTargetAddressAndColony( - targetAddress: $targetAddress - colonyAddress: {eq: $colonyAddress} - ) { - items { + query GetColonyRole($id: ID!) { + getColonyRole(id: $id) { id + latestBlock role_0 role_1 role_2 @@ -12294,61 +13482,79 @@ export const GetAllColonyRolesDocument = gql` role_6 } } -} - `; +`; +export const GetAllColonyRolesDocument = gql` + query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { + getRoleByTargetAddressAndColony( + targetAddress: $targetAddress + colonyAddress: { eq: $colonyAddress } + ) { + items { + id + role_0 + role_1 + role_2 + role_3 + role_5 + role_6 + } + } + } +`; export const GetColonyHistoricRoleDocument = gql` - query GetColonyHistoricRole($id: ID!) { - getColonyHistoricRole(id: $id) { - id + query GetColonyHistoricRole($id: ID!) { + getColonyHistoricRole(id: $id) { + id + } } -} - `; +`; export const GetReputationMiningCycleMetadataDocument = gql` - query GetReputationMiningCycleMetadata($id: ID!) { - getReputationMiningCycleMetadata(id: $id) { - id + query GetReputationMiningCycleMetadata($id: ID!) { + getReputationMiningCycleMetadata(id: $id) { + id + } } -} - `; +`; export const GetSafeTransactionByTransactionHashDocument = gql` - query GetSafeTransactionByTransactionHash($transactionHash: ID!) { - getSafeTransaction(id: $transactionHash) { - id + query GetSafeTransactionByTransactionHash($transactionHash: ID!) { + getSafeTransaction(id: $transactionHash) { + id + } } -} - `; +`; export const GetUserStakeDocument = gql` - query GetUserStake($id: ID!) { - getUserStake(id: $id) { - id - amount + query GetUserStake($id: ID!) { + getUserStake(id: $id) { + id + amount + } } -} - `; +`; export const GetStatsDocument = gql` - query GetStats { - getIngestorStats(id: "STATS") { - value + query GetStats { + getIngestorStats(id: "STATS") { + value + } } -} - `; +`; export const GetTokenFromEverywhereDocument = gql` - query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { - getTokenFromEverywhere(input: $input) { - items { - id + query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { + getTokenFromEverywhere(input: $input) { + items { + id + } } } -} - `; +`; export const GetNotificationUsersDocument = gql` - query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { - listUsers(filter: $filter, limit: $limit) { - items { - notificationsData { - ...NotificationsData + query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { + listUsers(filter: $filter, limit: $limit) { + items { + notificationsData { + ...NotificationsData + } } } } -} - ${NotificationsData}`; \ No newline at end of file + ${NotificationsData} +`; diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts index 84b0b79c7..e2a621ecb 100644 --- a/src/handlers/expenditures/streamingPaymentClaimed.ts +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -32,7 +32,7 @@ export const handleStreamingPaymentClaimed: EventHandler = async ( const newClaim: StreamingPaymentClaim = { amount: amount.toString(), - timestamp, + timestamp: timestamp.toString(), }; const claims: StreamingPaymentClaim[] = streamingPayment.claims ? [...streamingPayment.claims, newClaim] diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 4bde6b973..1d150fb22 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -63,8 +63,8 @@ export const handleStreamingPaymentCreated: EventHandler = async ( nativeId: convertedNativeId, recipientAddress, nativeDomainId: toNumber(domainId), - startTime: toNumber(startTime), - endTime: toNumber(endTime), + startTime: startTime.toString(), + endTime: endTime.toString(), interval: interval.toString(), tokenAddress, amount: amount.toString(), diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index 9e840869c..e9a22ba28 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -43,7 +43,7 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - endTime: toNumber(endTime), + endTime: endTime.toString(), isCancelled: isCancelAction ? true : null, }, }); From 74cd5eafbd03d58617a5e0da16d483d87839ee6b Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Tue, 11 Jun 2024 21:42:23 +0100 Subject: [PATCH 19/48] feat: enable handler for streaming payment actions made via motions --- src/graphql/generated.ts | 2 ++ .../motions/motionCreated/handlers/index.ts | 1 + .../cancelStreamingPaymentsMotion.ts | 29 +++++++++++++++++++ .../handlers/streamingPayments.ts/index.ts | 1 + .../motions/motionCreated/motionCreated.ts | 22 +++++++++++++- src/types/motions.ts | 6 ++++ 6 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts create mode 100644 src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 839dfaa06..02042df09 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -615,6 +615,8 @@ export enum ColonyActionType { CancelStakedExpenditureMultisig = 'CANCEL_STAKED_EXPENDITURE_MULTISIG', /** An action related to cancelling a streaming payment */ CancelStreamingPayment = 'CANCEL_STREAMING_PAYMENT', + /** An action related to cancelling a streaming payment via a motion */ + CancelStreamingPaymentMotion = 'CANCEL_STREAMING_PAYMENT_MOTION', /** An action related to editing a Colony's details */ ColonyEdit = 'COLONY_EDIT', /** An action related to editing a Colony's details via a motion */ diff --git a/src/handlers/motions/motionCreated/handlers/index.ts b/src/handlers/motions/motionCreated/handlers/index.ts index a56d73e2f..a56d94108 100644 --- a/src/handlers/motions/motionCreated/handlers/index.ts +++ b/src/handlers/motions/motionCreated/handlers/index.ts @@ -13,3 +13,4 @@ export { handleMulticallMotion } from './multicall'; export { handleMakeArbitraryTransactionsMotion } from './makeArbitraryTransactions'; export { handleMetadataDeltaMotion } from './metadataDelta'; export * from './expenditures'; +export * from './streamingPayments.ts'; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts new file mode 100644 index 000000000..85c65180b --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts @@ -0,0 +1,29 @@ +import { TransactionDescription } from 'ethers/lib/utils'; +import { ContractEvent, motionNameMapping } from '~types'; +import { createMotionInDB } from '../../helpers'; +import { + getDomainDatabaseId, + getExpenditureDatabaseId, + toNumber, +} from '~utils'; + +export default async ( + colonyAddress: string, + event: ContractEvent, + { name, args: actionArgs }: TransactionDescription, +): Promise => { + const { args } = event; + const [, , streamingPaymentId] = actionArgs; + const [, , domainId] = args; + + await createMotionInDB(colonyAddress, event, { + type: motionNameMapping[name], + fromDomainId: colonyAddress + ? getDomainDatabaseId(colonyAddress, domainId) + : undefined, + streamingPaymentId: getExpenditureDatabaseId( + colonyAddress, + toNumber(streamingPaymentId), + ), + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts new file mode 100644 index 000000000..d04a4d8cd --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts @@ -0,0 +1 @@ +export { default as handleCancelStreamingPaymentsMotion } from './cancelStreamingPaymentsMotion'; diff --git a/src/handlers/motions/motionCreated/motionCreated.ts b/src/handlers/motions/motionCreated/motionCreated.ts index d42c18a6f..8ef5f7f77 100644 --- a/src/handlers/motions/motionCreated/motionCreated.ts +++ b/src/handlers/motions/motionCreated/motionCreated.ts @@ -1,6 +1,10 @@ import { utils } from 'ethers'; -import { ColonyOperations, EventHandler } from '~types'; +import { + ColonyOperations, + EventHandler, + StreamingPaymentsOperations, +} from '~types'; import { getCachedColonyClient, getStakedExpenditureClient, @@ -11,6 +15,7 @@ import { output, SimpleTransactionDescription, parseMotionAction, + getStreamingPaymentsClient, } from '~utils'; import { handleEditDomainMotion, @@ -31,6 +36,7 @@ import { handleCancelExpenditureViaArbitrationMotion, handleFinalizeExpenditureViaArbitrationMotion, handleReleaseStagedPaymentViaArbitration, + handleCancelStreamingPaymentsMotion, } from './handlers'; import { ExtensionEventListener } from '~eventListeners'; @@ -61,6 +67,10 @@ export const handleMotionCreated: EventHandler = async ( colonyAddress, ); + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + const motion = await votingReputationClient.getMotion(motionId, { blockTag: blockNumber, }); @@ -74,6 +84,7 @@ export const handleMotionCreated: EventHandler = async ( oneTxPaymentClient?.interface, stakedExpenditureClient?.interface, stagedExpenditureClient?.interface, + streamingPaymentsClient?.interface, ].filter(Boolean) as utils.Interface[]; // Casting seems necessary as TS does not pick up the .filter() const parsedAction = parseMotionAction(motion.action, interfaces); @@ -216,6 +227,15 @@ export const handleMotionCreated: EventHandler = async ( break; } + case StreamingPaymentsOperations.CancelStreamingPayment: { + await handleCancelStreamingPaymentsMotion( + colonyAddress, + event, + parsedAction, + ); + break; + } + default: { break; } diff --git a/src/types/motions.ts b/src/types/motions.ts index ed543b387..5f24eb363 100644 --- a/src/types/motions.ts +++ b/src/types/motions.ts @@ -26,6 +26,10 @@ export enum ColonyOperations { ReleaseStagedPaymentViaArbitration = 'releaseStagedPaymentViaArbitration', } +export enum StreamingPaymentsOperations { + CancelStreamingPayment = 'cancel', +} + export enum MotionEvents { MotionCreated = 'MotionCreated', MotionStaked = 'MotionStaked', @@ -69,6 +73,8 @@ export const motionNameMapping: { [key: string]: ColonyActionType } = { ColonyActionType.SetExpenditureStateMotion, [ColonyOperations.ReleaseStagedPaymentViaArbitration]: ColonyActionType.ReleaseStagedPaymentsMotion, + [StreamingPaymentsOperations.CancelStreamingPayment]: + ColonyActionType.CancelStreamingPaymentMotion, }; export enum MotionSide { From b66f691ace4ca71384c782d8d5b1d25e99436ac8 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Mon, 17 Jun 2024 07:01:21 +0100 Subject: [PATCH 20/48] feat: remove redundant ternary --- .../streamingPayments.ts/cancelStreamingPaymentsMotion.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts index 85c65180b..26f5fc501 100644 --- a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts @@ -18,9 +18,7 @@ export default async ( await createMotionInDB(colonyAddress, event, { type: motionNameMapping[name], - fromDomainId: colonyAddress - ? getDomainDatabaseId(colonyAddress, domainId) - : undefined, + fromDomainId: getDomainDatabaseId(colonyAddress, domainId), streamingPaymentId: getExpenditureDatabaseId( colonyAddress, toNumber(streamingPaymentId), From 724165aa61b3508dfe7733f5d8f09c3ba0315553 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 8 May 2024 15:44:58 +0100 Subject: [PATCH 21/48] Feat: Handle streaming payment startTimeSet --- src/handlers/expenditures/index.ts | 1 + .../streamingPaymentStartTimeSet.ts | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/handlers/expenditures/streamingPaymentStartTimeSet.ts diff --git a/src/handlers/expenditures/index.ts b/src/handlers/expenditures/index.ts index b4f199663..b1ef9c8ba 100644 --- a/src/handlers/expenditures/index.ts +++ b/src/handlers/expenditures/index.ts @@ -19,6 +19,7 @@ export * from './expenditureMadeViaStake'; export * from './paymentTokenUpdated'; export * from './expenditureStateChanged'; export * from './stakeFractionSet'; +export * from './streamingPaymentStartTimeSet'; export * from './streamingPaymentEndTimeSet'; export * from './streamingPaymentClaimed'; export * from './streamingPaymentClaimWaived'; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts new file mode 100644 index 000000000..88799fb25 --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -0,0 +1,32 @@ +import { mutate } from '~amplifyClient'; +import { + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import { ContractEvent } from '~types'; +import { getExpenditureDatabaseId, toNumber, verbose } from '~utils'; + +export default async (event: ContractEvent): Promise => { + const { colonyAddress } = event; + const { streamingPaymentId, startTime } = event.args; + const convertedNativeId = toNumber(streamingPaymentId); + + if (!colonyAddress) { + return; + } + + const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + + verbose(`Start time set for streaming payment with ID ${databaseId}`); + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + startTime: toNumber(startTime), + }, + }); +}; From c2f08129a717f2621947a8726298d3bc55749a75 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:14:15 +0100 Subject: [PATCH 22/48] Fix: Update paymentTokenUpdated handler --- src/handlers/expenditures/paymentTokenUpdated.ts | 4 ++-- src/types/events.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 7d1d38063..0537e3db3 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -14,7 +14,7 @@ export const handlePaymentTokenUpdated: EventHandler = async ( event, listener, ) => { - const { streamingPaymentId, token: tokenAddress, amount } = event.args; + const { streamingPaymentId, token: tokenAddress, amount, interval } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -34,8 +34,8 @@ export const handlePaymentTokenUpdated: EventHandler = async ( >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - tokenAddress, amount: amount.toString(), + interval: interval.toString(), }, }); }; diff --git a/src/types/events.ts b/src/types/events.ts index 762e06ba1..e5acd44bc 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -105,7 +105,7 @@ export enum ContractEventsSignatures { // Streaming Payments StreamingPaymentCreated = 'StreamingPaymentCreated(address,uint256)', - PaymentTokenUpdated = 'PaymentTokenUpdated(address,uint256,address,uint256)', + PaymentTokenUpdated = 'PaymentTokenUpdated(address,uint256,uint256,uint256)', StartTimeSet = 'StartTimeSet(address,uint256,uint256)', EndTimeSet = 'EndTimeSet(address,uint256,uint256)', ClaimWaived = 'ClaimWaived(address,uint256)', From f8f72fa56632dbcf8c1733dd5899302caefa9c66 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:52:12 +0100 Subject: [PATCH 23/48] Fix: Realign after rebase --- src/handlers/expenditures/streamingPaymentStartTimeSet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 88799fb25..6b6be4acd 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -26,7 +26,7 @@ export default async (event: ContractEvent): Promise => { >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - startTime: toNumber(startTime), + startTime, }, }); }; From 5adc85ad26e17720bbe530240fa91a3556352f48 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:29:09 +0100 Subject: [PATCH 24/48] Fix: set startTime to string --- src/handlers/expenditures/streamingPaymentStartTimeSet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 6b6be4acd..4b97b91c2 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -26,7 +26,7 @@ export default async (event: ContractEvent): Promise => { >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - startTime, + startTime: startTime.toString(), }, }); }; From e69b0c04c23ee93b9c1c0ecfc97c3caca85c82f0 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:24:29 +0100 Subject: [PATCH 25/48] Feat: Handle updating limit amount --- src/graphql/generated.ts | 92 +++++++++++++++---- src/graphql/mutations/expenditures.graphql | 8 ++ src/graphql/queries/expenditures.graphql | 6 ++ src/graphql/queries/token.graphql | 9 ++ .../expenditures/helpers/getLimitAmount.ts | 51 ++++++++++ .../expenditures/paymentTokenUpdated.ts | 38 ++++++++ .../streamingPaymentEndTimeSet.ts | 47 ++++++++++ .../streamingPaymentStartTimeSet.ts | 48 +++++++++- 8 files changed, 282 insertions(+), 17 deletions(-) create mode 100644 src/handlers/expenditures/helpers/getLimitAmount.ts diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 02042df09..eed610dc6 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1867,7 +1867,7 @@ export type CreateStreamingPaymentInput = { amount: Scalars['String']; claims?: InputMaybe>; createdAt?: InputMaybe; - endTime: Scalars['AWSTimestamp']; + endTime: Scalars['String']; id?: InputMaybe; interval: Scalars['String']; isCancelled?: InputMaybe; @@ -1875,7 +1875,7 @@ export type CreateStreamingPaymentInput = { nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; recipientAddress: Scalars['String']; - startTime: Scalars['AWSTimestamp']; + startTime: Scalars['String']; tokenAddress: Scalars['String']; }; @@ -4141,7 +4141,7 @@ export type ModelStreamingPaymentConditionInput = { amount?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; - endTime?: InputMaybe; + endTime?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; isWaived?: InputMaybe; @@ -4150,7 +4150,7 @@ export type ModelStreamingPaymentConditionInput = { not?: InputMaybe; or?: InputMaybe>>; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -4169,7 +4169,7 @@ export type ModelStreamingPaymentFilterInput = { amount?: InputMaybe; and?: InputMaybe>>; createdAt?: InputMaybe; - endTime?: InputMaybe; + endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -4179,7 +4179,7 @@ export type ModelStreamingPaymentFilterInput = { not?: InputMaybe; or?: InputMaybe>>; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -4833,7 +4833,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { Array> >; createdAt?: InputMaybe; - endTime?: InputMaybe; + endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -4844,7 +4844,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { Array> >; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -8319,7 +8319,7 @@ export type StreamingPayment = { amount: Scalars['String']; claims?: Maybe>; createdAt: Scalars['AWSDateTime']; - endTime: Scalars['AWSTimestamp']; + endTime: Scalars['String']; id: Scalars['ID']; interval: Scalars['String']; /** Is the stream cancelled? */ @@ -8330,7 +8330,7 @@ export type StreamingPayment = { nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; recipientAddress: Scalars['String']; - startTime: Scalars['AWSTimestamp']; + startTime: Scalars['String']; tokenAddress: Scalars['String']; updatedAt: Scalars['AWSDateTime']; }; @@ -8345,12 +8345,12 @@ export type StreamingPaymentActionsArgs = { export type StreamingPaymentClaim = { __typename?: 'StreamingPaymentClaim'; amount: Scalars['String']; - timestamp: Scalars['AWSTimestamp']; + timestamp: Scalars['String']; }; export type StreamingPaymentClaimInput = { amount: Scalars['String']; - timestamp: Scalars['AWSTimestamp']; + timestamp: Scalars['String']; }; export enum StreamingPaymentEndCondition { @@ -9727,7 +9727,7 @@ export type UpdateStreamingPaymentInput = { amount?: InputMaybe; claims?: InputMaybe>; createdAt?: InputMaybe; - endTime?: InputMaybe; + endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -9735,7 +9735,7 @@ export type UpdateStreamingPaymentInput = { nativeDomainId?: InputMaybe; nativeId?: InputMaybe; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -10715,6 +10715,18 @@ export type UpdateStreamingPaymentMutation = { } | null; }; +export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ + input: UpdateStreamingPaymentMetadataInput; +}>; + +export type UpdateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + updateStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; + export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; @@ -11580,14 +11592,21 @@ export type GetStreamingPaymentQuery = { getStreamingPayment?: { __typename?: 'StreamingPayment'; id: string; - endTime: number; + startTime: string; + endTime: string; tokenAddress: string; amount: string; + interval: string; claims?: Array<{ __typename?: 'StreamingPaymentClaim'; amount: string; - timestamp: number; + timestamp: string; }> | null; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + endCondition: StreamingPaymentEndCondition; + limitAmount?: string | null; + } | null; } | null; }; @@ -12184,6 +12203,22 @@ export type GetTokenFromEverywhereQuery = { } | null; }; +export type GetTokenByAddressQueryVariables = Exact<{ + address: Scalars['ID']; +}>; + +export type GetTokenByAddressQuery = { + __typename?: 'Query'; + getTokenByAddress?: { + __typename?: 'ModelTokenConnection'; + items: Array<{ + __typename?: 'Token'; + decimals: number; + tokenAddress: string; + } | null>; + } | null; +}; + export type GetNotificationUsersQueryVariables = Exact<{ filter?: InputMaybe; limit?: InputMaybe; @@ -12746,6 +12781,15 @@ export const UpdateStreamingPaymentDocument = gql` } } `; +export const UpdateStreamingPaymentMetadataDocument = gql` + mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! + ) { + updateStreamingPaymentMetadata(input: $input) { + id + } + } +`; export const CreateColonyExtensionDocument = gql` mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { createColonyExtension(input: $input) { @@ -13248,13 +13292,19 @@ export const GetStreamingPaymentDocument = gql` query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id + startTime endTime tokenAddress amount + interval claims { amount timestamp } + metadata { + endCondition + limitAmount + } } } `; @@ -13548,6 +13598,16 @@ export const GetTokenFromEverywhereDocument = gql` } } `; +export const GetTokenByAddressDocument = gql` + query GetTokenByAddress($address: ID!) { + getTokenByAddress(id: $address) { + items { + decimals + tokenAddress: id + } + } + } +`; export const GetNotificationUsersDocument = gql` query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { listUsers(filter: $filter, limit: $limit) { diff --git a/src/graphql/mutations/expenditures.graphql b/src/graphql/mutations/expenditures.graphql index a6fba27d8..5317b3899 100644 --- a/src/graphql/mutations/expenditures.graphql +++ b/src/graphql/mutations/expenditures.graphql @@ -28,3 +28,11 @@ mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { id } } + +mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! +) { + updateStreamingPaymentMetadata(input: $input) { + id + } +} diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 8bd34eed2..7b2a52839 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -21,12 +21,18 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id + startTime endTime tokenAddress amount + interval claims { amount timestamp } + metadata { + endCondition + limitAmount + } } } diff --git a/src/graphql/queries/token.graphql b/src/graphql/queries/token.graphql index 110365151..a041e1e6d 100644 --- a/src/graphql/queries/token.graphql +++ b/src/graphql/queries/token.graphql @@ -5,3 +5,12 @@ query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { } } } + +query GetTokenByAddress($address: ID!) { + getTokenByAddress(id: $address) { + items { + decimals + tokenAddress: id + } + } +} \ No newline at end of file diff --git a/src/handlers/expenditures/helpers/getLimitAmount.ts b/src/handlers/expenditures/helpers/getLimitAmount.ts new file mode 100644 index 000000000..c2e010a44 --- /dev/null +++ b/src/handlers/expenditures/helpers/getLimitAmount.ts @@ -0,0 +1,51 @@ +import { BigNumber } from 'ethers'; +import { query } from '~amplifyClient'; +import { + GetTokenByAddressDocument, + GetTokenByAddressQuery, + GetTokenByAddressQueryVariables, +} from '~graphql'; +import { output } from '~utils'; + +export const getLimitAmount = async ({ + startTime, + endTime, + amount, + interval, + tokenAddress, +}: { + startTime: string; + endTime: string; + amount: string; + interval: string; + tokenAddress: string; +}): Promise => { + const { data } = + (await query( + GetTokenByAddressDocument, + { + address: tokenAddress, + }, + )) ?? {}; + + if (!data?.getTokenByAddress || !data.getTokenByAddress.items[0]) { + output( + `Could not find token with address ${tokenAddress}. This is a bug and should be investigated.`, + ); + return; + } + + const tokenDecimals = data.getTokenByAddress.items[0].decimals; + + const getOriginalAmount = (amount: string): BigNumber => { + return BigNumber.from(amount).div(BigNumber.from(10).pow(tokenDecimals)); + }; + + const originalAmount = getOriginalAmount(amount); + + const limit = BigNumber.from(endTime) + .sub(startTime) + .mul(originalAmount) + .div(interval); + return limit; +}; diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 0537e3db3..11eaad2b1 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,7 +1,11 @@ import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; import { mutate } from '~amplifyClient'; import { + StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMetadataDocument, + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; @@ -9,6 +13,7 @@ import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; import { getStreamingPaymentFromDB } from './helpers'; +import { getLimitAmount } from './helpers/getLimitAmount'; export const handlePaymentTokenUpdated: EventHandler = async ( event, @@ -38,4 +43,37 @@ export const handlePaymentTokenUpdated: EventHandler = async ( interval: interval.toString(), }, }); + + if ( + streamingPayment.metadata?.endCondition === + StreamingPaymentEndCondition.LimitReached + ) { + const { startTime, endTime, tokenAddress } = streamingPayment; + + const limitAmount = await getLimitAmount({ + startTime, + endTime, + amount, + interval, + tokenAddress, + }); + + if (!limitAmount) { + return; + } + + verbose( + `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, + ); + + await mutate< + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables + >(UpdateStreamingPaymentMetadataDocument, { + input: { + id: databaseId, + limitAmount: limitAmount.toString(), + }, + }); + } }; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index e9a22ba28..d498be37a 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -3,17 +3,24 @@ import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; import { ColonyActionType, + StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMetadataDocument, + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; import { EventHandler } from '~types'; import { getExpenditureDatabaseId, + output, toNumber, verbose, writeActionFromEvent, } from '~utils'; +import { getStreamingPaymentFromDB } from './helpers'; +import { getLimitAmount } from './helpers/getLimitAmount'; export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, @@ -26,6 +33,13 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( const { colonyAddress } = listener as ExtensionEventListener; const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + const streamingPayment = await getStreamingPaymentFromDB(databaseId); + if (!streamingPayment) { + output( + `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, + ); + return; + } // When a streaming payment is cancelled, the endTime is set to the current block timestamp // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action @@ -55,4 +69,37 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( streamingPaymentId: databaseId, }); } + + if ( + streamingPayment.metadata?.endCondition === + StreamingPaymentEndCondition.LimitReached + ) { + const { startTime, amount, interval, tokenAddress } = streamingPayment; + + const limitAmount = await getLimitAmount({ + startTime, + endTime: endTime.toString(), + amount, + interval, + tokenAddress, + }); + + if (!limitAmount) { + return; + } + + verbose( + `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, + ); + + await mutate< + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables + >(UpdateStreamingPaymentMetadataDocument, { + input: { + id: databaseId, + limitAmount: limitAmount.toString(), + }, + }); + } }; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 4b97b91c2..6ec54852a 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -1,11 +1,17 @@ import { mutate } from '~amplifyClient'; import { + StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMetadataDocument, + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; import { ContractEvent } from '~types'; -import { getExpenditureDatabaseId, toNumber, verbose } from '~utils'; +import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; +import { getStreamingPaymentFromDB } from './helpers'; +import { getLimitAmount } from './helpers/getLimitAmount'; export default async (event: ContractEvent): Promise => { const { colonyAddress } = event; @@ -17,6 +23,13 @@ export default async (event: ContractEvent): Promise => { } const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); + const streamingPayment = await getStreamingPaymentFromDB(databaseId); + if (!streamingPayment) { + output( + `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, + ); + return; + } verbose(`Start time set for streaming payment with ID ${databaseId}`); @@ -29,4 +42,37 @@ export default async (event: ContractEvent): Promise => { startTime: startTime.toString(), }, }); + + if ( + streamingPayment.metadata?.endCondition === + StreamingPaymentEndCondition.LimitReached + ) { + const { endTime, amount, interval, tokenAddress } = streamingPayment; + + const limitAmount = await getLimitAmount({ + startTime: startTime.toString(), + endTime, + amount, + interval, + tokenAddress, + }); + + if (!limitAmount) { + return; + } + + verbose( + `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, + ); + + await mutate< + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables + >(UpdateStreamingPaymentMetadataDocument, { + input: { + id: databaseId, + limitAmount: limitAmount.toString(), + }, + }); + } }; From 280f50f338fb3a26f41a724aae041ce2bed2212d Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:19:13 +0100 Subject: [PATCH 26/48] fix: realign after rebase --- src/eventListeners/extension/streamingPayments.ts | 6 +++++- .../expenditures/streamingPaymentStartTimeSet.ts | 11 ++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/eventListeners/extension/streamingPayments.ts b/src/eventListeners/extension/streamingPayments.ts index 8fb6baca2..bfcbe4e91 100644 --- a/src/eventListeners/extension/streamingPayments.ts +++ b/src/eventListeners/extension/streamingPayments.ts @@ -5,7 +5,10 @@ import { handleStreamingPaymentClaimWaived, handleStreamingPaymentCreated, } from '~handlers'; -import { handleStreamingPaymentEndTimeSet } from '~handlers/expenditures/streamingPaymentEndTimeSet'; +import { + handleStreamingPaymentStartTimeSet, + handleStreamingPaymentEndTimeSet, +} from '~handlers/expenditures/index'; import { ContractEventsSignatures } from '~types'; import { output } from '~utils'; @@ -31,6 +34,7 @@ export const setupListenersForStreamingPayments = ( [ContractEventsSignatures.StreamingPaymentCreated]: handleStreamingPaymentCreated, [ContractEventsSignatures.PaymentTokenUpdated]: handlePaymentTokenUpdated, + [ContractEventsSignatures.StartTimeSet]: handleStreamingPaymentStartTimeSet, [ContractEventsSignatures.EndTimeSet]: handleStreamingPaymentEndTimeSet, [ContractEventsSignatures.StreamingPaymentClaimed]: handleStreamingPaymentClaimed, diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 6ec54852a..05c3db729 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -8,13 +8,18 @@ import { UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; -import { ContractEvent } from '~types'; +import { EventHandler } from '~types'; import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; import { getLimitAmount } from './helpers/getLimitAmount'; +import { ExtensionEventListener } from '~eventListeners'; + +export const handleStreamingPaymentStartTimeSet: EventHandler = async ( + event, + listener, +) => { + const { colonyAddress } = listener as ExtensionEventListener; -export default async (event: ContractEvent): Promise => { - const { colonyAddress } = event; const { streamingPaymentId, startTime } = event.args; const convertedNativeId = toNumber(streamingPaymentId); From b769ab6662a5862a26df3e0943f7c36c02026eb5 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:57:54 +0100 Subject: [PATCH 27/48] Feat: Remove limitAmount from streamingPaymentMetadata --- src/graphql/generated.ts | 40 +++------------ src/graphql/mutations/expenditures.graphql | 10 +--- src/graphql/queries/expenditures.graphql | 6 --- src/graphql/queries/token.graphql | 9 ---- .../expenditures/helpers/getLimitAmount.ts | 51 ------------------- .../expenditures/paymentTokenUpdated.ts | 40 +-------------- .../streamingPaymentEndTimeSet.ts | 38 -------------- .../streamingPaymentStartTimeSet.ts | 38 -------------- 8 files changed, 8 insertions(+), 224 deletions(-) delete mode 100644 src/handlers/expenditures/helpers/getLimitAmount.ts diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index eed610dc6..204f0a55c 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -10715,18 +10715,6 @@ export type UpdateStreamingPaymentMutation = { } | null; }; -export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ - input: UpdateStreamingPaymentMetadataInput; -}>; - -export type UpdateStreamingPaymentMetadataMutation = { - __typename?: 'Mutation'; - updateStreamingPaymentMetadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - } | null; -}; - export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; @@ -11592,21 +11580,14 @@ export type GetStreamingPaymentQuery = { getStreamingPayment?: { __typename?: 'StreamingPayment'; id: string; - startTime: string; endTime: string; tokenAddress: string; amount: string; - interval: string; claims?: Array<{ __typename?: 'StreamingPaymentClaim'; amount: string; timestamp: string; }> | null; - metadata?: { - __typename?: 'StreamingPaymentMetadata'; - endCondition: StreamingPaymentEndCondition; - limitAmount?: string | null; - } | null; } | null; }; @@ -12203,6 +12184,7 @@ export type GetTokenFromEverywhereQuery = { } | null; }; +<<<<<<< HEAD export type GetTokenByAddressQueryVariables = Exact<{ address: Scalars['ID']; }>; @@ -12243,6 +12225,8 @@ export type GetNotificationUsersQuery = { } | null; }; +======= +>>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) export const DomainMetadata = gql` fragment DomainMetadata on DomainMetadata { name @@ -12781,15 +12765,6 @@ export const UpdateStreamingPaymentDocument = gql` } } `; -export const UpdateStreamingPaymentMetadataDocument = gql` - mutation UpdateStreamingPaymentMetadata( - $input: UpdateStreamingPaymentMetadataInput! - ) { - updateStreamingPaymentMetadata(input: $input) { - id - } - } -`; export const CreateColonyExtensionDocument = gql` mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { createColonyExtension(input: $input) { @@ -13292,19 +13267,13 @@ export const GetStreamingPaymentDocument = gql` query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id - startTime endTime tokenAddress amount - interval claims { amount timestamp } - metadata { - endCondition - limitAmount - } } } `; @@ -13598,6 +13567,7 @@ export const GetTokenFromEverywhereDocument = gql` } } `; +<<<<<<< HEAD export const GetTokenByAddressDocument = gql` query GetTokenByAddress($address: ID!) { getTokenByAddress(id: $address) { @@ -13620,3 +13590,5 @@ export const GetNotificationUsersDocument = gql` } ${NotificationsData} `; +======= +>>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) diff --git a/src/graphql/mutations/expenditures.graphql b/src/graphql/mutations/expenditures.graphql index 5317b3899..0120084fe 100644 --- a/src/graphql/mutations/expenditures.graphql +++ b/src/graphql/mutations/expenditures.graphql @@ -27,12 +27,4 @@ mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { updateStreamingPayment(input: $input) { id } -} - -mutation UpdateStreamingPaymentMetadata( - $input: UpdateStreamingPaymentMetadataInput! -) { - updateStreamingPaymentMetadata(input: $input) { - id - } -} +} \ No newline at end of file diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 7b2a52839..8bd34eed2 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -21,18 +21,12 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id - startTime endTime tokenAddress amount - interval claims { amount timestamp } - metadata { - endCondition - limitAmount - } } } diff --git a/src/graphql/queries/token.graphql b/src/graphql/queries/token.graphql index a041e1e6d..3c172c1b9 100644 --- a/src/graphql/queries/token.graphql +++ b/src/graphql/queries/token.graphql @@ -4,13 +4,4 @@ query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { id } } -} - -query GetTokenByAddress($address: ID!) { - getTokenByAddress(id: $address) { - items { - decimals - tokenAddress: id - } - } } \ No newline at end of file diff --git a/src/handlers/expenditures/helpers/getLimitAmount.ts b/src/handlers/expenditures/helpers/getLimitAmount.ts deleted file mode 100644 index c2e010a44..000000000 --- a/src/handlers/expenditures/helpers/getLimitAmount.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { BigNumber } from 'ethers'; -import { query } from '~amplifyClient'; -import { - GetTokenByAddressDocument, - GetTokenByAddressQuery, - GetTokenByAddressQueryVariables, -} from '~graphql'; -import { output } from '~utils'; - -export const getLimitAmount = async ({ - startTime, - endTime, - amount, - interval, - tokenAddress, -}: { - startTime: string; - endTime: string; - amount: string; - interval: string; - tokenAddress: string; -}): Promise => { - const { data } = - (await query( - GetTokenByAddressDocument, - { - address: tokenAddress, - }, - )) ?? {}; - - if (!data?.getTokenByAddress || !data.getTokenByAddress.items[0]) { - output( - `Could not find token with address ${tokenAddress}. This is a bug and should be investigated.`, - ); - return; - } - - const tokenDecimals = data.getTokenByAddress.items[0].decimals; - - const getOriginalAmount = (amount: string): BigNumber => { - return BigNumber.from(amount).div(BigNumber.from(10).pow(tokenDecimals)); - }; - - const originalAmount = getOriginalAmount(amount); - - const limit = BigNumber.from(endTime) - .sub(startTime) - .mul(originalAmount) - .div(interval); - return limit; -}; diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 11eaad2b1..a72b6c749 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,11 +1,7 @@ import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; import { mutate } from '~amplifyClient'; import { - StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMetadataDocument, - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; @@ -13,13 +9,12 @@ import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; import { getStreamingPaymentFromDB } from './helpers'; -import { getLimitAmount } from './helpers/getLimitAmount'; export const handlePaymentTokenUpdated: EventHandler = async ( event, listener, ) => { - const { streamingPaymentId, token: tokenAddress, amount, interval } = event.args; + const { streamingPaymentId, amount, interval } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -43,37 +38,4 @@ export const handlePaymentTokenUpdated: EventHandler = async ( interval: interval.toString(), }, }); - - if ( - streamingPayment.metadata?.endCondition === - StreamingPaymentEndCondition.LimitReached - ) { - const { startTime, endTime, tokenAddress } = streamingPayment; - - const limitAmount = await getLimitAmount({ - startTime, - endTime, - amount, - interval, - tokenAddress, - }); - - if (!limitAmount) { - return; - } - - verbose( - `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, - ); - - await mutate< - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables - >(UpdateStreamingPaymentMetadataDocument, { - input: { - id: databaseId, - limitAmount: limitAmount.toString(), - }, - }); - } }; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index d498be37a..c7b44a1df 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -3,11 +3,7 @@ import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; import { ColonyActionType, - StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMetadataDocument, - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; @@ -20,7 +16,6 @@ import { writeActionFromEvent, } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; -import { getLimitAmount } from './helpers/getLimitAmount'; export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, @@ -69,37 +64,4 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( streamingPaymentId: databaseId, }); } - - if ( - streamingPayment.metadata?.endCondition === - StreamingPaymentEndCondition.LimitReached - ) { - const { startTime, amount, interval, tokenAddress } = streamingPayment; - - const limitAmount = await getLimitAmount({ - startTime, - endTime: endTime.toString(), - amount, - interval, - tokenAddress, - }); - - if (!limitAmount) { - return; - } - - verbose( - `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, - ); - - await mutate< - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables - >(UpdateStreamingPaymentMetadataDocument, { - input: { - id: databaseId, - limitAmount: limitAmount.toString(), - }, - }); - } }; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 05c3db729..30a472372 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -1,17 +1,12 @@ import { mutate } from '~amplifyClient'; import { - StreamingPaymentEndCondition, UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMetadataDocument, - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, } from '~graphql'; import { EventHandler } from '~types'; import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; -import { getLimitAmount } from './helpers/getLimitAmount'; import { ExtensionEventListener } from '~eventListeners'; export const handleStreamingPaymentStartTimeSet: EventHandler = async ( @@ -47,37 +42,4 @@ export const handleStreamingPaymentStartTimeSet: EventHandler = async ( startTime: startTime.toString(), }, }); - - if ( - streamingPayment.metadata?.endCondition === - StreamingPaymentEndCondition.LimitReached - ) { - const { endTime, amount, interval, tokenAddress } = streamingPayment; - - const limitAmount = await getLimitAmount({ - startTime: startTime.toString(), - endTime, - amount, - interval, - tokenAddress, - }); - - if (!limitAmount) { - return; - } - - verbose( - `Limit amount updated to ${limitAmount.toString()} for streaming payment with ID ${databaseId}`, - ); - - await mutate< - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables - >(UpdateStreamingPaymentMetadataDocument, { - input: { - id: databaseId, - limitAmount: limitAmount.toString(), - }, - }); - } }; From a4a42b5bc6c5733c70d46e1d993c7525fc34e290 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Wed, 17 Jul 2024 12:00:05 +0100 Subject: [PATCH 28/48] Feat: Add editStreamingPaymentMotion multicall handler --- src/graphql/generated.ts | 297 +++++++++++++++++- .../handlers/multicall/multicall.ts | 8 +- .../editStreamingPaymentMotion.ts | 95 ++++++ .../multicall/multicallHandlers/index.ts | 5 + src/handlers/motions/motionCreated/helpers.ts | 13 +- src/types/methods.ts | 3 + 6 files changed, 402 insertions(+), 19 deletions(-) create mode 100644 src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 204f0a55c..8e47cf3ed 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -528,6 +528,11 @@ export type ColonyAction = { showInActionsList: Scalars['Boolean']; /** Streaming payment associated with the action, if any */ streamingPayment?: Maybe; + /** + * Changes to the streaming payment associated with the action, if any + * Applicable to `EDIT_STREAMING_PAYMENT` action only + */ + streamingPaymentChanges?: Maybe; /** ID of the associated streaming payment, if any */ streamingPaymentId?: Maybe; /** The target Domain of the action, if applicable */ @@ -647,6 +652,10 @@ export enum ColonyActionType { EditExpenditure = 'EDIT_EXPENDITURE', /** An action related to creating a motion to edit an expenditure */ EditExpenditureMotion = 'EDIT_EXPENDITURE_MOTION', + /** An action related to editing a streaming payment */ + EditStreamingPayment = 'EDIT_STREAMING_PAYMENT', + /** An action related to editing a streaming payment via a motion */ + EditStreamingPaymentMotion = 'EDIT_STREAMING_PAYMENT_MOTION', /** An action related to a domain reputation penalty within a Colony (smite) */ EmitDomainReputationPenalty = 'EMIT_DOMAIN_REPUTATION_PENALTY', /** An action related to a domain reputation penalty within a Colony (smite) via a motion */ @@ -1121,6 +1130,10 @@ export type ColonyMotion = { objectionAnnotation?: Maybe; /** Id of the associated objection annotation, if any */ objectionAnnotationId?: Maybe; + /** Streaming payment metadata that is stored temporarily and committed to the database once the corresponding motion passes */ + pendingStreamingPaymentMetadata?: Maybe; + /** Identifier of streaming payment metadata that is stored temporarily and committed to the database once the corresponding motion passes */ + pendingStreamingPaymentMetadataId?: Maybe; /** * Stakes remaining to activate either side of the motion * It's a tuple: `[nayRemaining, yayRemaining]` @@ -1136,6 +1149,10 @@ export type ColonyMotion = { skillRep: Scalars['String']; /** List of staker rewards users will be receiving for a motion */ stakerRewards: Array; + /** Streaming payment associated with the motion, if any */ + streamingPaymentId?: Maybe; + /** Streaming Payment changes by the action */ + streamingPaymentPendingChanges?: Maybe; /** The transaction hash of the createMotion action */ transactionHash: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; @@ -1471,6 +1488,7 @@ export type CreateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash: Scalars['String']; showInActionsList: Scalars['Boolean']; + streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -1623,12 +1641,15 @@ export type CreateColonyMotionInput = { nativeMotionDomainId: Scalars['String']; nativeMotionId: Scalars['String']; objectionAnnotationId?: InputMaybe; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes: Array; repSubmitted: Scalars['String']; requiredStake: Scalars['String']; revealedVotes: MotionStakesInput; skillRep: Scalars['String']; stakerRewards: Array; + streamingPaymentId?: InputMaybe; + streamingPaymentPendingChanges?: InputMaybe; transactionHash: Scalars['ID']; userMinStake: Scalars['String']; usersStakes: Array; @@ -1794,6 +1815,7 @@ export type CreateMotionMessageInput = { vote?: InputMaybe; }; +<<<<<<< HEAD export type CreateMultiSigUserSignatureInput = { colonyAddress: Scalars['ID']; createdAt?: InputMaybe; @@ -1802,6 +1824,11 @@ export type CreateMultiSigUserSignatureInput = { role: Scalars['Int']; userAddress: Scalars['ID']; vote: MultiSigVote; +======= +export type CreatePendingStreamingPaymentMetadataInput = { + endCondition: StreamingPaymentEndCondition; + id?: InputMaybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type CreateNotificationsDataInput = { @@ -1876,13 +1903,12 @@ export type CreateStreamingPaymentInput = { nativeId: Scalars['Int']; recipientAddress: Scalars['String']; startTime: Scalars['String']; - tokenAddress: Scalars['String']; + tokenAddress: Scalars['ID']; }; export type CreateStreamingPaymentMetadataInput = { endCondition: StreamingPaymentEndCondition; id?: InputMaybe; - limitAmount?: InputMaybe; }; export type CreateTokenExchangeRateInput = { @@ -2122,7 +2148,11 @@ export type DeleteMotionMessageInput = { id: Scalars['ID']; }; +<<<<<<< HEAD export type DeleteMultiSigUserSignatureInput = { +======= +export type DeletePendingStreamingPaymentMetadataInput = { +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) id: Scalars['ID']; }; @@ -2628,6 +2658,17 @@ export enum FilteringMethod { Union = 'UNION', } +export type FullStreamingPaymentChanges = { + __typename?: 'FullStreamingPaymentChanges'; + newValues: StreamingPaymentChanges; + oldValues: StreamingPaymentChanges; +}; + +export type FullStreamingPaymentChangesInput = { + newValues: StreamingPaymentChangesInput; + oldValues: StreamingPaymentChangesInput; +}; + export type FunctionParam = { __typename?: 'FunctionParam'; name: Scalars['String']; @@ -3286,10 +3327,12 @@ export type ModelColonyMotionConditionInput = { not?: InputMaybe; objectionAnnotationId?: InputMaybe; or?: InputMaybe>>; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe; repSubmitted?: InputMaybe; requiredStake?: InputMaybe; skillRep?: InputMaybe; + streamingPaymentId?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; }; @@ -3315,10 +3358,12 @@ export type ModelColonyMotionFilterInput = { not?: InputMaybe; objectionAnnotationId?: InputMaybe; or?: InputMaybe>>; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe; repSubmitted?: InputMaybe; requiredStake?: InputMaybe; skillRep?: InputMaybe; + streamingPaymentId?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; }; @@ -3898,6 +3943,7 @@ export type ModelMotionMessageFilterInput = { vote?: InputMaybe; }; +<<<<<<< HEAD export type ModelMultiSigUserSignatureConditionInput = { and?: InputMaybe>>; colonyAddress?: InputMaybe; @@ -3932,6 +3978,27 @@ export type ModelMultiSigUserSignatureFilterInput = { export type ModelMultiSigVoteInput = { eq?: InputMaybe; ne?: InputMaybe; +======= +export type ModelPendingStreamingPaymentMetadataConditionInput = { + and?: InputMaybe>>; + endCondition?: InputMaybe; + not?: InputMaybe; + or?: InputMaybe>>; +}; + +export type ModelPendingStreamingPaymentMetadataConnection = { + __typename?: 'ModelPendingStreamingPaymentMetadataConnection'; + items: Array>; + nextToken?: Maybe; +}; + +export type ModelPendingStreamingPaymentMetadataFilterInput = { + and?: InputMaybe>>; + endCondition?: InputMaybe; + id?: InputMaybe; + not?: InputMaybe; + or?: InputMaybe>>; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type ModelNotificationsDataConditionInput = { @@ -4151,7 +4218,7 @@ export type ModelStreamingPaymentConditionInput = { or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; - tokenAddress?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentConnection = { @@ -4180,7 +4247,7 @@ export type ModelStreamingPaymentFilterInput = { or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; - tokenAddress?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentMetadataConditionInput = { @@ -4188,7 +4255,6 @@ export type ModelStreamingPaymentMetadataConditionInput = { Array> >; endCondition?: InputMaybe; - limitAmount?: InputMaybe; not?: InputMaybe; or?: InputMaybe< Array> @@ -4205,7 +4271,6 @@ export type ModelStreamingPaymentMetadataFilterInput = { and?: InputMaybe>>; endCondition?: InputMaybe; id?: InputMaybe; - limitAmount?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; }; @@ -4465,10 +4530,12 @@ export type ModelSubscriptionColonyMotionFilterInput = { nativeMotionId?: InputMaybe; objectionAnnotationId?: InputMaybe; or?: InputMaybe>>; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe; repSubmitted?: InputMaybe; requiredStake?: InputMaybe; skillRep?: InputMaybe; + streamingPaymentId?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; }; @@ -4727,12 +4794,24 @@ export type ModelSubscriptionMotionMessageFilterInput = { vote?: InputMaybe; }; +<<<<<<< HEAD export type ModelSubscriptionMultiSigUserSignatureFilterInput = { and?: InputMaybe< Array> >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; +======= +export type ModelSubscriptionPendingStreamingPaymentMetadataFilterInput = { + and?: InputMaybe>>; + endCondition?: InputMaybe; + id?: InputMaybe; + or?: InputMaybe>>; +}; + +export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { + and?: InputMaybe>>; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) id?: InputMaybe; multiSigId?: InputMaybe; or?: InputMaybe< @@ -4845,7 +4924,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { >; recipientAddress?: InputMaybe; startTime?: InputMaybe; - tokenAddress?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { @@ -4854,10 +4933,14 @@ export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { >; endCondition?: InputMaybe; id?: InputMaybe; +<<<<<<< HEAD limitAmount?: InputMaybe; or?: InputMaybe< Array> >; +======= + or?: InputMaybe>>; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type ModelSubscriptionStringInput = { @@ -5446,8 +5529,15 @@ export type Mutation = { createIngestorStats?: Maybe; createLiquidationAddress?: Maybe; createMotionMessage?: Maybe; +<<<<<<< HEAD createMultiSigUserSignature?: Maybe; +<<<<<<< HEAD createNotificationsData?: Maybe; +======= +======= + createPendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) createPrivateBetaInviteCode?: Maybe; createProfile?: Maybe; createReputationMiningCycleMetadata?: Maybe; @@ -5494,8 +5584,15 @@ export type Mutation = { deleteIngestorStats?: Maybe; deleteLiquidationAddress?: Maybe; deleteMotionMessage?: Maybe; +<<<<<<< HEAD deleteMultiSigUserSignature?: Maybe; +<<<<<<< HEAD deleteNotificationsData?: Maybe; +======= +======= + deletePendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) deletePrivateBetaInviteCode?: Maybe; deleteProfile?: Maybe; deleteReputationMiningCycleMetadata?: Maybe; @@ -5542,8 +5639,15 @@ export type Mutation = { updateIngestorStats?: Maybe; updateLiquidationAddress?: Maybe; updateMotionMessage?: Maybe; +<<<<<<< HEAD updateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD updateNotificationsData?: Maybe; +======= +======= + updatePendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) updatePrivateBetaInviteCode?: Maybe; updateProfile?: Maybe; updateReputationMiningCycleMetadata?: Maybe; @@ -5757,11 +5861,20 @@ export type MutationCreateMultiSigUserSignatureArgs = { }; /** Root mutation type */ +<<<<<<< HEAD export type MutationCreateNotificationsDataArgs = { condition?: InputMaybe; input: CreateNotificationsDataInput; }; +======= +export type MutationCreatePendingStreamingPaymentMetadataArgs = { + condition?: InputMaybe; + input: CreatePendingStreamingPaymentMetadataInput; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -6031,11 +6144,20 @@ export type MutationDeleteMultiSigUserSignatureArgs = { }; /** Root mutation type */ +<<<<<<< HEAD export type MutationDeleteNotificationsDataArgs = { condition?: InputMaybe; input: DeleteNotificationsDataInput; }; +======= +export type MutationDeletePendingStreamingPaymentMetadataArgs = { + condition?: InputMaybe; + input: DeletePendingStreamingPaymentMetadataInput; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -6305,11 +6427,20 @@ export type MutationUpdateMultiSigUserSignatureArgs = { }; /** Root mutation type */ +<<<<<<< HEAD export type MutationUpdateNotificationsDataArgs = { condition?: InputMaybe; input: UpdateNotificationsDataInput; }; +======= +export type MutationUpdatePendingStreamingPaymentMetadataArgs = { + condition?: InputMaybe; + input: UpdatePendingStreamingPaymentMetadataInput; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -6553,6 +6684,14 @@ export type PaymentInput = { tokenAddress: Scalars['String']; }; +export type PendingStreamingPaymentMetadata = { + __typename?: 'PendingStreamingPaymentMetadata'; + createdAt: Scalars['AWSDateTime']; + endCondition: StreamingPaymentEndCondition; + id: Scalars['ID']; + updatedAt: Scalars['AWSDateTime']; +}; + export type PrivateBetaInviteCode = { __typename?: 'PrivateBetaInviteCode'; createdAt: Scalars['AWSDateTime']; @@ -6716,6 +6855,7 @@ export type Query = { getLiquidationAddress?: Maybe; getLiquidationAddressesByUserAddress?: Maybe; getMotionByExpenditureId?: Maybe; + getMotionByStreamingPaymentId?: Maybe; getMotionByTransactionHash?: Maybe; getMotionMessage?: Maybe; getMotionMessageByMotionId?: Maybe; @@ -6724,12 +6864,19 @@ export type Query = { /** Get the timeout for the current period of a motion */ getMotionTimeoutPeriods?: Maybe; getMotionVoterRewards?: Maybe; +<<<<<<< HEAD getMultiSigByColonyAddress?: Maybe; getMultiSigByExpenditureId?: Maybe; getMultiSigByTransactionHash?: Maybe; getMultiSigUserSignature?: Maybe; getMultiSigUserSignatureByMultiSigId?: Maybe; +<<<<<<< HEAD getNotificationsData?: Maybe; +======= +======= + getPendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) getPrivateBetaInviteCode?: Maybe; getProfile?: Maybe; getProfileByEmail?: Maybe; @@ -6798,8 +6945,15 @@ export type Query = { listIngestorStats?: Maybe; listLiquidationAddresses?: Maybe; listMotionMessages?: Maybe; +<<<<<<< HEAD listMultiSigUserSignatures?: Maybe; +<<<<<<< HEAD listNotificationsData?: Maybe; +======= +======= + listPendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) listPrivateBetaInviteCodes?: Maybe; listProfiles?: Maybe; listReputationMiningCycleMetadata?: Maybe; @@ -7201,6 +7355,16 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; +/** Root query type */ +export type QueryGetMotionByStreamingPaymentIdArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; + streamingPaymentId: Scalars['ID']; +}; + + /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7287,10 +7451,18 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { }; /** Root query type */ +<<<<<<< HEAD export type QueryGetNotificationsDataArgs = { userAddress: Scalars['ID']; }; +======= +export type QueryGetPendingStreamingPaymentMetadataArgs = { + id: Scalars['ID']; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; @@ -7733,6 +7905,7 @@ export type QueryListMultiSigUserSignaturesArgs = { }; /** Root query type */ +<<<<<<< HEAD export type QueryListNotificationsDataArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -7741,6 +7914,15 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; +======= +export type QueryListPendingStreamingPaymentMetadataArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -8327,11 +8509,13 @@ export type StreamingPayment = { /** Is the stream waived? */ isWaived?: Maybe; metadata?: Maybe; + motions?: Maybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; recipientAddress: Scalars['String']; startTime: Scalars['String']; - tokenAddress: Scalars['String']; + token?: Maybe; + tokenAddress: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; }; @@ -8342,6 +8526,29 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; + +export type StreamingPaymentMotionsArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; + +export type StreamingPaymentChanges = { + __typename?: 'StreamingPaymentChanges'; + amount?: Maybe; + endTime?: Maybe; + interval?: Maybe; + startTime?: Maybe; +}; + +export type StreamingPaymentChangesInput = { + amount?: InputMaybe; + endTime?: InputMaybe; + interval?: InputMaybe; + startTime?: InputMaybe; +}; + export type StreamingPaymentClaim = { __typename?: 'StreamingPaymentClaim'; amount: Scalars['String']; @@ -8364,10 +8571,24 @@ export type StreamingPaymentMetadata = { createdAt: Scalars['AWSDateTime']; endCondition: StreamingPaymentEndCondition; id: Scalars['ID']; - limitAmount?: Maybe; updatedAt: Scalars['AWSDateTime']; }; +export type StreamingPaymentPendingChanges = { + __typename?: 'StreamingPaymentPendingChanges'; + amount?: Maybe; + endTime?: Maybe; + interval?: Maybe; + startTime?: Maybe; +}; + +export type StreamingPaymentPendingChangesInput = { + amount?: InputMaybe; + endTime?: InputMaybe; + interval?: InputMaybe; + startTime?: InputMaybe; +}; + export type Subscription = { __typename?: 'Subscription'; onCreateAnnotation?: Maybe; @@ -8398,8 +8619,15 @@ export type Subscription = { onCreateIngestorStats?: Maybe; onCreateLiquidationAddress?: Maybe; onCreateMotionMessage?: Maybe; +<<<<<<< HEAD onCreateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD onCreateNotificationsData?: Maybe; +======= +======= + onCreatePendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) onCreatePrivateBetaInviteCode?: Maybe; onCreateProfile?: Maybe; onCreateReputationMiningCycleMetadata?: Maybe; @@ -8442,8 +8670,15 @@ export type Subscription = { onDeleteIngestorStats?: Maybe; onDeleteLiquidationAddress?: Maybe; onDeleteMotionMessage?: Maybe; +<<<<<<< HEAD onDeleteMultiSigUserSignature?: Maybe; +<<<<<<< HEAD onDeleteNotificationsData?: Maybe; +======= +======= + onDeletePendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) onDeletePrivateBetaInviteCode?: Maybe; onDeleteProfile?: Maybe; onDeleteReputationMiningCycleMetadata?: Maybe; @@ -8486,8 +8721,15 @@ export type Subscription = { onUpdateIngestorStats?: Maybe; onUpdateLiquidationAddress?: Maybe; onUpdateMotionMessage?: Maybe; +<<<<<<< HEAD onUpdateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD onUpdateNotificationsData?: Maybe; +======= +======= + onUpdatePendingStreamingPaymentMetadata?: Maybe; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) onUpdatePrivateBetaInviteCode?: Maybe; onUpdateProfile?: Maybe; onUpdateReputationMiningCycleMetadata?: Maybe; @@ -8620,10 +8862,18 @@ export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; +======= +export type SubscriptionOnCreatePendingStreamingPaymentMetadataArgs = { + filter?: InputMaybe; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -8796,10 +9046,18 @@ export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; +======= +export type SubscriptionOnDeletePendingStreamingPaymentMetadataArgs = { + filter?: InputMaybe; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -8972,10 +9230,18 @@ export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; +======= +export type SubscriptionOnUpdatePendingStreamingPaymentMetadataArgs = { + filter?: InputMaybe; +}; + + +>>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -9325,6 +9591,7 @@ export type UpdateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -9455,12 +9722,15 @@ export type UpdateColonyMotionInput = { nativeMotionDomainId?: InputMaybe; nativeMotionId?: InputMaybe; objectionAnnotationId?: InputMaybe; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe>; repSubmitted?: InputMaybe; requiredStake?: InputMaybe; revealedVotes?: InputMaybe; skillRep?: InputMaybe; stakerRewards?: InputMaybe>; + streamingPaymentId?: InputMaybe; + streamingPaymentPendingChanges?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; usersStakes?: InputMaybe>; @@ -9654,6 +9924,7 @@ export type UpdateMotionMessageInput = { vote?: InputMaybe; }; +<<<<<<< HEAD export type UpdateMultiSigUserSignatureInput = { colonyAddress?: InputMaybe; createdAt?: InputMaybe; @@ -9662,6 +9933,11 @@ export type UpdateMultiSigUserSignatureInput = { role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; +======= +export type UpdatePendingStreamingPaymentMetadataInput = { + endCondition?: InputMaybe; + id: Scalars['ID']; +>>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type UpdateNotificationsDataInput = { @@ -9736,13 +10012,12 @@ export type UpdateStreamingPaymentInput = { nativeId?: InputMaybe; recipientAddress?: InputMaybe; startTime?: InputMaybe; - tokenAddress?: InputMaybe; + tokenAddress?: InputMaybe; }; export type UpdateStreamingPaymentMetadataInput = { endCondition?: InputMaybe; id: Scalars['ID']; - limitAmount?: InputMaybe; }; export type UpdateTokenExchangeRateInput = { diff --git a/src/handlers/motions/motionCreated/handlers/multicall/multicall.ts b/src/handlers/motions/motionCreated/handlers/multicall/multicall.ts index d79da0851..ade3adbaf 100644 --- a/src/handlers/motions/motionCreated/handlers/multicall/multicall.ts +++ b/src/handlers/motions/motionCreated/handlers/multicall/multicall.ts @@ -1,6 +1,6 @@ import { TransactionDescription } from 'ethers/lib/utils'; import { utils } from 'ethers'; -import { decodeFunctions, getCachedColonyClient, output } from '~utils'; +import { decodeFunctions, output } from '~utils'; import { ContractEvent } from '~types'; import { multicallHandlers } from './multicallHandlers'; @@ -10,12 +10,6 @@ export const handleMulticallMotion = async ( parsedAction: TransactionDescription, interfaces: utils.Interface[], ): Promise => { - const colonyClient = await getCachedColonyClient(colonyAddress); - - if (!colonyClient) { - return; - } - // Multicall takes an array of an array of encoded function calls const encodedFunctions = parsedAction.args[0]; diff --git a/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts new file mode 100644 index 000000000..e3f10404f --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts @@ -0,0 +1,95 @@ +import { ColonyActionType } from '~graphql'; +import { toNumber } from 'lodash'; +import { BigNumber } from 'ethers'; +import { getStreamingPaymentFromDB } from '~handlers/expenditures/helpers'; +import { createMotionInDB } from '~handlers/motions/motionCreated/helpers'; +import { MulticallHandler, MulticallValidator } from './types'; +import { ContractMethodSignatures } from '~types'; +import { getExpenditureDatabaseId, getPendingMetadataDatabaseId } from '~utils'; + +export const isEditStreamingPaymentMotion: MulticallValidator = ({ + decodedFunctions, +}) => { + const signaturesToMatch = [ + ContractMethodSignatures.SetTokenAmount, + ContractMethodSignatures.SetStartTime, + ContractMethodSignatures.SetEndTime, + ]; + + return signaturesToMatch.includes( + decodedFunctions[0].signature as ContractMethodSignatures, + ); +}; + +export const editStreamingPaymentMotionHandler: MulticallHandler = async ({ + colonyAddress, + event, + decodedFunctions, +}) => { + const { transactionHash } = event; + + const streamingPaymentId = decodedFunctions[0]?.args._id; + const convertedStreamingPaymentId = toNumber(streamingPaymentId); + const databaseId = getExpenditureDatabaseId( + colonyAddress, + convertedStreamingPaymentId, + ); + + const streamingPayment = await getStreamingPaymentFromDB(databaseId); + if (!streamingPayment) { + return; + } + + const updatedStreamingPayment: { + amount?: string; + interval?: string; + startTime?: string; + endTime?: string; + } = { + amount: undefined, + interval: undefined, + startTime: undefined, + endTime: undefined, + }; + + for (const decodedFunction of decodedFunctions) { + const decodedFunctionStreamingPaymentId = decodedFunction.args._id; + if ( + !BigNumber.from(decodedFunctionStreamingPaymentId).eq(streamingPaymentId) + ) { + continue; + } + + if (decodedFunction.signature === ContractMethodSignatures.SetTokenAmount) { + const amount = decodedFunction.args[7]; + const interval = decodedFunction.args[8]; + + updatedStreamingPayment.amount = amount.toString(); + updatedStreamingPayment.interval = interval.toString(); + } else if ( + decodedFunction.signature === ContractMethodSignatures.SetStartTime + ) { + const [, , , startTime] = decodedFunction.args; + + updatedStreamingPayment.startTime = startTime.toString(); + } else if ( + decodedFunction.signature === ContractMethodSignatures.SetEndTime + ) { + const [, , , endTime] = decodedFunction.args; + + updatedStreamingPayment.endTime = endTime.toString(); + } + } + + const pendingStreamingPaymentMetadataId = getPendingMetadataDatabaseId( + colonyAddress, + transactionHash, + ); + + createMotionInDB(colonyAddress, event, { + type: ColonyActionType.EditStreamingPaymentMotion, + streamingPaymentId: streamingPayment.id, + streamingPaymentPendingChanges: updatedStreamingPayment, + pendingStreamingPaymentMetadataId, + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/index.ts b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/index.ts index 86bc0153e..485c9a108 100644 --- a/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/index.ts +++ b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/index.ts @@ -2,6 +2,10 @@ import { editLockedExpenditureMotionHandler, isEditLockedExpenditureMotion, } from './editLockedExpenditureMotion'; +import { + editStreamingPaymentMotionHandler, + isEditStreamingPaymentMotion, +} from './editStreamingPaymentMotion'; import { fundExpenditureMotionHandler, isFundExpenditureMotion, @@ -17,4 +21,5 @@ export const multicallHandlers: Array<[MulticallValidator, MulticallHandler]> = [isFundExpenditureMotion, fundExpenditureMotionHandler], [isEditLockedExpenditureMotion, editLockedExpenditureMotionHandler], [isReleaseStagedPaymentsMotion, releaseStagedPaymentsMotionHandler], + [isEditStreamingPaymentMotion, editStreamingPaymentMotionHandler], ]; diff --git a/src/handlers/motions/motionCreated/helpers.ts b/src/handlers/motions/motionCreated/helpers.ts index 7148188dd..0c40c5156 100644 --- a/src/handlers/motions/motionCreated/helpers.ts +++ b/src/handlers/motions/motionCreated/helpers.ts @@ -176,7 +176,12 @@ type MotionFields = Omit< > & Pick< CreateColonyMotionInput, - 'expenditureSlotIds' | 'editedExpenditureSlots' | 'expenditureFunding' + | 'expenditureSlotIds' + | 'editedExpenditureSlots' + | 'expenditureFunding' + | 'streamingPaymentId' + | 'streamingPaymentPendingChanges' + | 'pendingStreamingPaymentMetadataId' >; export const createMotionInDB = async ( @@ -195,6 +200,9 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, + streamingPaymentId, + streamingPaymentPendingChanges, + pendingStreamingPaymentMetadataId, ...actionFields } = motionFields; @@ -245,6 +253,9 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, + streamingPaymentId, + streamingPaymentPendingChanges, + pendingStreamingPaymentMetadataId, }), createMotionMessage(initialMotionMessage), createColonyAction(actionData, timestamp), diff --git a/src/types/methods.ts b/src/types/methods.ts index 0130e8a6a..720424658 100644 --- a/src/types/methods.ts +++ b/src/types/methods.ts @@ -6,4 +6,7 @@ export enum ContractMethodSignatures { SetExpenditureState = 'setExpenditureState', SetExpenditurePayout = 'setExpenditurePayout(uint256,uint256,uint256,uint256,address,uint256)', ReleaseStagedPaymentViaArbitration = 'releaseStagedPaymentViaArbitration(uint256,uint256,uint256,uint256,uint256,uint256,address[])', + SetTokenAmount = 'setTokenAmount', + SetStartTime = 'setStartTime', + SetEndTime = 'setEndTime', } From e07f830bdbf23db0caed66870ee651b42d2a4682 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:00:56 +0100 Subject: [PATCH 29/48] Feat: Link pendingStreamingPaymentMetadata when a motion is finalized --- src/graphql/fragments/motions.graphql | 2 + src/graphql/generated.ts | 85 +++++++++++++++++++ src/graphql/mutations/expenditures.graphql | 7 ++ src/graphql/queries/expenditures.graphql | 7 ++ .../motions/motionFinalized/helpers.ts | 42 +++++++++ .../motionFinalized/motionFinalized.ts | 13 +++ 6 files changed, 156 insertions(+) diff --git a/src/graphql/fragments/motions.graphql b/src/graphql/fragments/motions.graphql index 515143beb..6ae294c85 100644 --- a/src/graphql/fragments/motions.graphql +++ b/src/graphql/fragments/motions.graphql @@ -50,6 +50,8 @@ fragment ColonyMotion on ColonyMotion { isDecision transactionHash expenditureId + streamingPaymentId + pendingStreamingPaymentMetadataId } fragment VoterRecord on VoterRecord { diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 8e47cf3ed..70d2c3bc3 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -10543,6 +10543,7 @@ export type ExpenditureSlotFragment = { }> | null; }; +<<<<<<< HEAD export type ExtensionFragment = { __typename?: 'ColonyExtension'; id: string; @@ -10551,6 +10552,9 @@ export type ExtensionFragment = { isInitialized: boolean; version: number; }; +======= +export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; +>>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) export type ColonyMotionFragment = { __typename?: 'ColonyMotion'; @@ -10990,6 +10994,13 @@ export type UpdateStreamingPaymentMutation = { } | null; }; +export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ + input: UpdateStreamingPaymentMetadataInput; +}>; + + +export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; + export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; @@ -11866,6 +11877,13 @@ export type GetStreamingPaymentQuery = { } | null; }; +export type GetPendingStreamingPaymentMetadataQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type GetPendingStreamingPaymentMetadataQuery = { __typename?: 'Query', getPendingStreamingPaymentMetadata?: { __typename?: 'PendingStreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition } | null }; + export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; @@ -12097,6 +12115,7 @@ export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; +<<<<<<< HEAD export type GetColonyMotionQuery = { __typename?: 'Query'; getColonyMotion?: { @@ -12175,6 +12194,10 @@ export type GetColonyMotionQuery = { }; } | null; }; +======= + +export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; +>>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; @@ -12762,6 +12785,7 @@ export const ColonyMotion = gql` usersStakes { ...UserMotionStakes } +<<<<<<< HEAD userMinStake nativeMotionDomainId stakerRewards { @@ -12801,6 +12825,42 @@ export const ColonyMotion = gql` finalizedAt } isDecision +======= + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision + transactionHash + streamingPaymentId + pendingStreamingPaymentMetadataId +} + ${MotionStakes} +${UserMotionStakes} +${StakerReward} +${VoterRecord}`; +export const DomainMetadata = gql` + fragment DomainMetadata on DomainMetadata { + name + color + description + changelog { +>>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) transactionHash expenditureId } @@ -13039,7 +13099,19 @@ export const UpdateStreamingPaymentDocument = gql` id } } +<<<<<<< HEAD `; +======= +} + `; +export const UpdateStreamingPaymentMetadataDocument = gql` + mutation UpdateStreamingPaymentMetadata($input: UpdateStreamingPaymentMetadataInput!) { + updateStreamingPaymentMetadata(input: $input) { + id + } +} + `; +>>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) export const CreateColonyExtensionDocument = gql` mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { createColonyExtension(input: $input) { @@ -13551,7 +13623,20 @@ export const GetStreamingPaymentDocument = gql` } } } +<<<<<<< HEAD `; +======= +} + `; +export const GetPendingStreamingPaymentMetadataDocument = gql` + query getPendingStreamingPaymentMetadata($id: ID!) { + getPendingStreamingPaymentMetadata(id: $id) { + id + endCondition + } +} + `; +>>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) export const GetColonyExtensionDocument = gql` query GetColonyExtension($id: ID!) { getColonyExtension(id: $id) { diff --git a/src/graphql/mutations/expenditures.graphql b/src/graphql/mutations/expenditures.graphql index 0120084fe..66bab8ca6 100644 --- a/src/graphql/mutations/expenditures.graphql +++ b/src/graphql/mutations/expenditures.graphql @@ -27,4 +27,11 @@ mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { updateStreamingPayment(input: $input) { id } +} +mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! +) { + updateStreamingPaymentMetadata(input: $input) { + id + } } \ No newline at end of file diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 8bd34eed2..89b47b981 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -30,3 +30,10 @@ query GetStreamingPayment($id: ID!) { } } } + +query getPendingStreamingPaymentMetadata($id: ID!) { + getPendingStreamingPaymentMetadata(id: $id) { + id + endCondition + } +} \ No newline at end of file diff --git a/src/handlers/motions/motionFinalized/helpers.ts b/src/handlers/motions/motionFinalized/helpers.ts index 5e03004ea..07e54a06d 100644 --- a/src/handlers/motions/motionFinalized/helpers.ts +++ b/src/handlers/motions/motionFinalized/helpers.ts @@ -16,11 +16,17 @@ import { GetColonyActionByMotionIdDocument, GetColonyActionByMotionIdQuery, GetColonyActionByMotionIdQueryVariables, + GetPendingStreamingPaymentMetadataDocument, + GetPendingStreamingPaymentMetadataQuery, + GetPendingStreamingPaymentMetadataQueryVariables, StakerReward, UpdateColonyActionDocument, UpdateColonyActionMutation, UpdateColonyActionMutationVariables, UpdateColonyDocument, + UpdateStreamingPaymentMetadataDocument, + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables, } from '~graphql'; import { getAmountLessFee, getNetworkInverseFee } from '~utils/networkFee'; @@ -184,3 +190,39 @@ export const updateAmountToExcludeNetworkFee = async ( }); } }; + +export const linkPendingStreamingPaymentMetadata = async ({ + pendingStreamingPaymentMetadataId, + streamingPaymentId, +}: { + pendingStreamingPaymentMetadataId: string; + streamingPaymentId: string; +}): Promise => { + const { data } = + (await query< + GetPendingStreamingPaymentMetadataQuery, + GetPendingStreamingPaymentMetadataQueryVariables + >(GetPendingStreamingPaymentMetadataDocument, { + id: pendingStreamingPaymentMetadataId, + })) ?? {}; + + const pendingStreamingPaymentMetadata = + data?.getPendingStreamingPaymentMetadata; + + if (!pendingStreamingPaymentMetadata) { + output( + `Could not find the pending streaming payment metadata with the id: ${pendingStreamingPaymentMetadataId}. This is a bug and should be investigated.`, + ); + return; + } + + await mutate< + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables + >(UpdateStreamingPaymentMetadataDocument, { + input: { + id: streamingPaymentId, + endCondition: pendingStreamingPaymentMetadata.endCondition, + }, + }); +}; diff --git a/src/handlers/motions/motionFinalized/motionFinalized.ts b/src/handlers/motions/motionFinalized/motionFinalized.ts index fb57abc68..dfdcae29f 100644 --- a/src/handlers/motions/motionFinalized/motionFinalized.ts +++ b/src/handlers/motions/motionFinalized/motionFinalized.ts @@ -15,6 +15,8 @@ import { import { getStakerReward, + linkPendingMetadata, + linkPendingStreamingPaymentMetadata, updateColonyUnclaimedStakes, updateAmountToExcludeNetworkFee, } from './helpers'; @@ -74,6 +76,17 @@ export const handleMotionFinalized: EventHandler = async (event, listener) => { colonyAddress, finalizedMotion, ); + + if ( + finalizedMotion.pendingStreamingPaymentMetadataId && + finalizedMotion.streamingPaymentId + ) { + await linkPendingStreamingPaymentMetadata({ + pendingStreamingPaymentMetadataId: + finalizedMotion.pendingStreamingPaymentMetadataId, + streamingPaymentId: finalizedMotion.streamingPaymentId, + }); + } } const updatedStakerRewards = await Promise.all( From c4309dd319a216fab9eeab30b307d8967dc43d67 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 18 Jul 2024 15:54:33 +0100 Subject: [PATCH 30/48] Feat: Refactor editStreamingPayment handlers and ensure colony action is created --- src/graphql/generated.ts | 1436 ++++++++++++++++- src/graphql/queries/expenditures.graphql | 5 + .../createEditStreamingPaymentAction.ts | 140 ++ .../expenditures/paymentTokenUpdated.ts | 36 +- .../streamingPaymentEndTimeSet.ts | 36 +- .../streamingPaymentStartTimeSet.ts | 37 +- 6 files changed, 1575 insertions(+), 115 deletions(-) create mode 100644 src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 70d2c3bc3..7f6878540 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -3762,7 +3762,10 @@ export type ModelExtensionInstallationsCountConditionInput = { and?: InputMaybe< Array> >; +<<<<<<< HEAD multiSigPermissions?: InputMaybe; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) not?: InputMaybe; oneTxPayment?: InputMaybe; or?: InputMaybe< @@ -3980,10 +3983,14 @@ export type ModelMultiSigVoteInput = { ne?: InputMaybe; ======= export type ModelPendingStreamingPaymentMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelPendingStreamingPaymentMetadataConnection = { @@ -3993,12 +4000,20 @@ export type ModelPendingStreamingPaymentMetadataConnection = { }; export type ModelPendingStreamingPaymentMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; id?: InputMaybe; not?: InputMaybe; +<<<<<<< HEAD or?: InputMaybe>>; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +======= + or?: InputMaybe< + Array> + >; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }; export type ModelNotificationsDataConditionInput = { @@ -4476,7 +4491,10 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; +<<<<<<< HEAD isMultiSig?: InputMaybe; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) or?: InputMaybe< Array> >; @@ -4803,13 +4821,22 @@ export type ModelSubscriptionMultiSigUserSignatureFilterInput = { createdAt?: InputMaybe; ======= export type ModelSubscriptionPendingStreamingPaymentMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array< + InputMaybe + > + >; endCondition?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array< + InputMaybe + > + >; }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { +<<<<<<< HEAD and?: InputMaybe>>; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) id?: InputMaybe; @@ -4843,6 +4870,12 @@ export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { Array> >; id?: InputMaybe; +======= + and?: InputMaybe< + Array> + >; + id?: InputMaybe; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) or?: InputMaybe< Array> >; @@ -4933,6 +4966,7 @@ export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { >; endCondition?: InputMaybe; id?: InputMaybe; +<<<<<<< HEAD <<<<<<< HEAD limitAmount?: InputMaybe; or?: InputMaybe< @@ -4941,6 +4975,11 @@ export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { ======= or?: InputMaybe>>; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) +======= + or?: InputMaybe< + Array> + >; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }; export type ModelSubscriptionStringInput = { @@ -5764,12 +5803,15 @@ export type MutationCreateColonyMotionArgs = { input: CreateColonyMotionInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; @@ -5854,12 +5896,15 @@ export type MutationCreateMotionMessageArgs = { input: CreateMotionMessageInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ <<<<<<< HEAD export type MutationCreateNotificationsDataArgs = { @@ -5873,8 +5918,11 @@ export type MutationCreatePendingStreamingPaymentMetadataArgs = { input: CreatePendingStreamingPaymentMetadataInput; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -6047,12 +6095,15 @@ export type MutationDeleteColonyMotionArgs = { input: DeleteColonyMotionInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; @@ -6137,12 +6188,15 @@ export type MutationDeleteMotionMessageArgs = { input: DeleteMotionMessageInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ <<<<<<< HEAD export type MutationDeleteNotificationsDataArgs = { @@ -6156,8 +6210,11 @@ export type MutationDeletePendingStreamingPaymentMetadataArgs = { input: DeletePendingStreamingPaymentMetadataInput; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -6242,11 +6299,14 @@ export type MutationDeleteVoterRewardsHistoryArgs = { input: DeleteVoterRewardsHistoryInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; @@ -6325,12 +6385,15 @@ export type MutationUpdateColonyMotionArgs = { input: UpdateColonyMotionInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; @@ -6420,12 +6483,15 @@ export type MutationUpdateMotionMessageArgs = { input: UpdateMotionMessageInput; }; +<<<<<<< HEAD /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ <<<<<<< HEAD export type MutationUpdateNotificationsDataArgs = { @@ -6439,8 +6505,11 @@ export type MutationUpdatePendingStreamingPaymentMetadataArgs = { input: UpdatePendingStreamingPaymentMetadataInput; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; @@ -7054,6 +7123,7 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; +<<<<<<< HEAD /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -7063,6 +7133,8 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; @@ -7164,11 +7236,14 @@ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; +<<<<<<< HEAD /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; @@ -7233,6 +7308,7 @@ export type QueryGetDomainArgs = { id: Scalars['ID']; }; +<<<<<<< HEAD /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; @@ -7248,6 +7324,8 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; @@ -7364,7 +7442,6 @@ export type QueryGetMotionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7409,6 +7486,7 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; +<<<<<<< HEAD /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7450,6 +7528,8 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ <<<<<<< HEAD export type QueryGetNotificationsDataArgs = { @@ -7461,8 +7541,11 @@ export type QueryGetPendingStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; @@ -7496,6 +7579,7 @@ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; +<<<<<<< HEAD /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7506,6 +7590,8 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7609,6 +7695,19 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; +<<<<<<< HEAD +======= +/** Root query type */ +export type QueryGetTransactionsByUserAndStatusArgs = { + filter?: InputMaybe; + from?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; + status: TransactionStatus; +}; + +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; @@ -7792,6 +7891,7 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; +<<<<<<< HEAD /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7799,6 +7899,8 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7897,6 +7999,7 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; +<<<<<<< HEAD /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -7904,6 +8007,8 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ <<<<<<< HEAD export type QueryListNotificationsDataArgs = { @@ -7921,8 +8026,11 @@ export type QueryListPendingStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -8526,7 +8634,6 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; - export type StreamingPaymentMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8798,10 +8905,13 @@ export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; @@ -8858,22 +8968,31 @@ export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; ======= +======= +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnCreatePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -8982,10 +9101,13 @@ export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; @@ -9042,22 +9164,31 @@ export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; ======= +======= +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnDeletePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -9166,10 +9297,13 @@ export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; @@ -9226,22 +9360,31 @@ export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; ======= +======= +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnUpdatePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; @@ -10318,6 +10461,7 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; +<<<<<<< HEAD export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction'; id: string; @@ -10717,6 +10861,7 @@ export type ColonyMultiSigFragment = { action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; }; +<<<<<<< HEAD export type TokenFragment = { __typename?: 'Token'; symbol: string; @@ -10748,51 +10893,296 @@ export type NotificationsDataFragment = { mentionNotificationsDisabled: boolean; adminNotificationsDisabled: boolean; }; - -export type CreateColonyActionMutationVariables = Exact<{ - input: CreateColonyActionInput; -}>; - -export type CreateColonyActionMutation = { - __typename?: 'Mutation'; - createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +======= +======= +export type ColonyFragment = { + __typename?: 'Colony'; + colonyAddress: string; + nativeToken: { __typename?: 'Token'; tokenAddress: string }; + tokens?: { + __typename?: 'ModelColonyTokensConnection'; + items: Array<{ + __typename?: 'ColonyTokens'; + id: string; + tokenAddress: string; + } | null>; + } | null; + motionsWithUnclaimedStakes?: Array<{ + __typename?: 'ColonyUnclaimedStake'; + motionId: string; + unclaimedRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + }> | null; + domains?: { + __typename?: 'ModelDomainConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + } | null>; + } | null; }; -export type UpdateColonyActionMutationVariables = Exact<{ - input: UpdateColonyActionInput; -}>; - -export type UpdateColonyActionMutation = { - __typename?: 'Mutation'; - updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +export type ColonyMetadataFragment = { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + }> | null; }; -export type UpdateColonyMutationVariables = Exact<{ - input: UpdateColonyInput; -}>; - -export type UpdateColonyMutation = { - __typename?: 'Mutation'; - updateColony?: { __typename?: 'Colony'; id: string } | null; +export type ExpenditureBalanceFragment = { + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; }; -export type UpdateColonyMetadataMutationVariables = Exact<{ - input: UpdateColonyMetadataInput; -}>; - -export type UpdateColonyMetadataMutation = { - __typename?: 'Mutation'; - updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +export type ExpenditureFragment = { + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; }; -export type CreateColonyMutationVariables = Exact<{ - input: CreateColonyInput; - condition?: InputMaybe; -}>; +export type ExpenditureSlotFragment = { + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; +}; -export type CreateColonyMutation = { - __typename?: 'Mutation'; - createColony?: { __typename?: 'Colony'; id: string } | null; +export type ExtensionFragment = { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; +}; + +export type ColonyMotionFragment = { + __typename?: 'ColonyMotion'; + id: string; + nativeMotionId: string; + requiredStake: string; + remainingStakes: Array; + userMinStake: string; + nativeMotionDomainId: string; + isFinalized: boolean; + createdBy: string; + repSubmitted: string; + skillRep: string; + hasObjection: boolean; + motionDomainId: string; + isDecision: boolean; + transactionHash: string; + streamingPaymentId?: string | null; + pendingStreamingPaymentMetadataId?: string | null; + motionStakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + }; + usersStakes: Array<{ + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + }>; + stakerRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + voterRecord: Array<{ + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; + }>; + revealedVotes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; + motionStateHistory: { + __typename?: 'MotionStateHistory'; + hasVoted: boolean; + hasPassed: boolean; + hasFailed: boolean; + hasFailedNotFinalizable: boolean; + inRevealPhase: boolean; + yaySideFullyStakedAt?: string | null; + naySideFullyStakedAt?: string | null; + allVotesSubmittedAt?: string | null; + allVotesRevealedAt?: string | null; + endedAt?: string | null; + finalizedAt?: string | null; + }; +}; + +export type VoterRecordFragment = { + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; +}; + +export type StakerRewardFragment = { + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; +}; + +export type MotionStakesFragment = { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; +}; + +export type UserMotionStakesFragment = { + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; +}; + +export type DomainMetadataFragment = { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; +}; + +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +export type TokenFragment = { __typename?: 'Token'; tokenAddress: string }; +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + +export type CreateColonyActionMutationVariables = Exact<{ + input: CreateColonyActionInput; +}>; + +export type CreateColonyActionMutation = { + __typename?: 'Mutation'; + createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; + +export type UpdateColonyActionMutationVariables = Exact<{ + input: UpdateColonyActionInput; +}>; + +export type UpdateColonyActionMutation = { + __typename?: 'Mutation'; + updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; + +export type UpdateColonyMutationVariables = Exact<{ + input: UpdateColonyInput; +}>; + +export type UpdateColonyMutation = { + __typename?: 'Mutation'; + updateColony?: { __typename?: 'Colony'; id: string } | null; +}; + +export type UpdateColonyMetadataMutationVariables = Exact<{ + input: UpdateColonyMetadataInput; +}>; + +export type UpdateColonyMetadataMutation = { + __typename?: 'Mutation'; + updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; + +export type CreateColonyMutationVariables = Exact<{ + input: CreateColonyInput; + condition?: InputMaybe; +}>; + +export type CreateColonyMutation = { + __typename?: 'Mutation'; + createColony?: { __typename?: 'Colony'; id: string } | null; }; export type CreateColonyMetadataMutationVariables = Exact<{ @@ -10998,8 +11388,13 @@ export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ input: UpdateStreamingPaymentMetadataInput; }>; - -export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; +export type UpdateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + updateStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; @@ -11149,6 +11544,7 @@ export type CreateUserVoterRewardMutation = { id: string; } | null; }; +<<<<<<< HEAD export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; @@ -11200,6 +11596,8 @@ export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation'; deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; @@ -11419,12 +11817,15 @@ export type GetColonyMetadataQuery = { name: ExternalLinks; link: string; }> | null; +<<<<<<< HEAD objective?: { __typename?: 'ColonyObjective'; title: string; description: string; progress: number; } | null; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) changelog?: Array<{ __typename?: 'ColonyMetadataChangelog'; transactionHash: string; @@ -11433,7 +11834,10 @@ export type GetColonyMetadataQuery = { hasAvatarChanged: boolean; hasDescriptionChanged?: boolean | null; haveExternalLinksChanged?: boolean | null; +<<<<<<< HEAD hasObjectiveChanged?: boolean | null; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }> | null; } | null; }; @@ -11680,6 +12084,7 @@ export type GetDomainMetadataQuery = { }> | null; } | null; }; +<<<<<<< HEAD export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; @@ -11724,6 +12129,8 @@ export type GetDomainsByExtensionAddressQuery = { } | null>; } | null; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; @@ -11866,9 +12273,21 @@ export type GetStreamingPaymentQuery = { getStreamingPayment?: { __typename?: 'StreamingPayment'; id: string; +<<<<<<< HEAD + endTime: string; + tokenAddress: string; + amount: string; +======= + startTime: string; endTime: string; tokenAddress: string; amount: string; + interval: string; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + endCondition: StreamingPaymentEndCondition; + } | null; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) claims?: Array<{ __typename?: 'StreamingPaymentClaim'; amount: string; @@ -11881,8 +12300,14 @@ export type GetPendingStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetPendingStreamingPaymentMetadataQuery = { __typename?: 'Query', getPendingStreamingPaymentMetadata?: { __typename?: 'PendingStreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition } | null }; +export type GetPendingStreamingPaymentMetadataQuery = { + __typename?: 'Query'; + getPendingStreamingPaymentMetadata?: { + __typename?: 'PendingStreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + } | null; +}; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; @@ -11966,6 +12391,7 @@ export type GetExtensionInstallationsCountQuery = { stagedExpenditure: number; streamingPayments: number; reputationWeighted: number; +<<<<<<< HEAD multiSigPermissions: number; } | null; }; @@ -11991,6 +12417,8 @@ export type GetColonyExtensionByAddressQuery = { } | null> | null; } | null; } | null; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) } | null; }; @@ -12086,12 +12514,15 @@ export type GetColonyActionByMotionIdQuery = { name: ExternalLinks; link: string; }> | null; +<<<<<<< HEAD objective?: { __typename?: 'ColonyObjective'; title: string; description: string; progress: number; } | null; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) changelog?: Array<{ __typename?: 'ColonyMetadataChangelog'; transactionHash: string; @@ -12100,7 +12531,10 @@ export type GetColonyActionByMotionIdQuery = { hasAvatarChanged: boolean; hasDescriptionChanged?: boolean | null; haveExternalLinksChanged?: boolean | null; +<<<<<<< HEAD hasObjectiveChanged?: boolean | null; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }> | null; } | null; payments?: Array<{ @@ -12116,6 +12550,9 @@ export type GetColonyMotionQueryVariables = Exact<{ }>; <<<<<<< HEAD +<<<<<<< HEAD +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetColonyMotionQuery = { __typename?: 'Query'; getColonyMotion?: { @@ -12134,7 +12571,15 @@ export type GetColonyMotionQuery = { motionDomainId: string; isDecision: boolean; transactionHash: string; +<<<<<<< HEAD expenditureId?: string | null; +======= +<<<<<<< HEAD +======= + streamingPaymentId?: string | null; + pendingStreamingPaymentMetadataId?: string | null; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) motionStakes: { __typename?: 'MotionStakes'; raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; @@ -12194,10 +12639,13 @@ export type GetColonyMotionQuery = { }; } | null; }; +<<<<<<< HEAD ======= export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; >>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; @@ -12212,6 +12660,7 @@ export type GetVoterRewardsQuery = { reward: string; } | null; }; +<<<<<<< HEAD export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -12375,6 +12824,8 @@ export type GetActiveColonyMultisigsQuery = { items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; } | null; }; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; @@ -12482,6 +12933,7 @@ export type GetTokenFromEverywhereQuery = { } | null; }; +<<<<<<< HEAD <<<<<<< HEAD export type GetTokenByAddressQueryVariables = Exact<{ address: Scalars['ID']; @@ -12525,6 +12977,8 @@ export type GetNotificationUsersQuery = { ======= >>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) +======= +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export const DomainMetadata = gql` fragment DomainMetadata on DomainMetadata { name @@ -12540,6 +12994,45 @@ export const DomainMetadata = gql` newDescription } } +======= +export const Token = gql` + fragment Token on Token { + tokenAddress: id + } +`; +export const Colony = gql` + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token + } + tokens { + items { + id + tokenAddress: tokenID + } + } + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay + } + isClaimed + } + } + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId + } + nextToken + } + } + ${Token} +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) `; export const ColonyMetadata = gql` fragment ColonyMetadata on ColonyMetadata { @@ -12552,11 +13045,14 @@ export const ColonyMetadata = gql` name link } +<<<<<<< HEAD objective { title description progress } +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) changelog { transactionHash oldDisplayName @@ -12564,6 +13060,7 @@ export const ColonyMetadata = gql` hasAvatarChanged hasDescriptionChanged haveExternalLinksChanged +<<<<<<< HEAD hasObjectiveChanged } } @@ -12632,6 +13129,7 @@ export const Colony = gql` } ${Token} `; +<<<<<<< HEAD export const NotificationsData = gql` fragment NotificationsData on NotificationsData { magicbellUserId @@ -12663,6 +13161,13 @@ export const ColonyWithRootRoles = gql` } ${NotificationsData} `; +======= +======= + } + } +`; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +>>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export const ExpenditureSlot = gql` fragment ExpenditureSlot on ExpenditureSlot { id @@ -12746,6 +13251,7 @@ export const UserMotionStakes = gql` address stakes { raw { +<<<<<<< HEAD yay nay } @@ -13767,10 +14273,835 @@ export const GetColonyActionByMotionIdDocument = gql` } ${ActionMetadataInfo} `; -export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion +======= + yay + nay + } + percentage { + yay + nay + } + } + } +`; +export const StakerReward = gql` + fragment StakerReward on StakerRewards { + address + rewards { + yay + nay + } + isClaimed + } +`; +export const VoterRecord = gql` + fragment VoterRecord on VoterRecord { + address + voteCount + vote + } +`; +export const ColonyMotion = gql` + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes + } + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes + } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay + } + percentage { + yay + nay + } + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision + transactionHash + streamingPaymentId + pendingStreamingPaymentMetadataId + } + ${MotionStakes} + ${UserMotionStakes} + ${StakerReward} + ${VoterRecord} +`; +export const DomainMetadata = gql` + fragment DomainMetadata on DomainMetadata { + name + color + description + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription + } + } +`; +export const CreateColonyActionDocument = gql` + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id + } + } +`; +export const UpdateColonyActionDocument = gql` + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id + } + } +`; +export const UpdateColonyDocument = gql` + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id + } + } +`; +export const UpdateColonyMetadataDocument = gql` + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id + } + } +`; +export const CreateColonyDocument = gql` + mutation CreateColony( + $input: CreateColonyInput! + $condition: ModelColonyConditionInput + ) { + createColony(input: $input, condition: $condition) { + id + } + } +`; +export const CreateColonyMetadataDocument = gql` + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id + } + } +`; +export const DeleteColonyMetadataDocument = gql` + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id + } + } +`; +export const CreateColonyMemberInviteDocument = gql` + mutation CreateColonyMemberInvite( + $input: CreateColonyMemberInviteInput! + $condition: ModelColonyMemberInviteConditionInput + ) { + createColonyMemberInvite(input: $input, condition: $condition) { + id + } + } +`; +export const CreateColonyTokensDocument = gql` + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id + } + } +`; +export const CreateColonyContributorDocument = gql` + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id + } + } +`; +export const UpdateColonyContributorDocument = gql` + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id + } + } +`; +export const DeleteColonyContributorDocument = gql` + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id + } + } +`; +export const CreateCurrentVersionDocument = gql` + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id + } + } +`; +export const UpdateCurrentVersionDocument = gql` + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id + } + } +`; +export const UpdateColonyDecisionDocument = gql` + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: { id: $id, showInDecisionsList: $showInDecisionsList } + ) { + id + } + } +`; +export const CreateDomainDocument = gql` + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id + } + } +`; +export const CreateDomainMetadataDocument = gql` + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id + } + } +`; +export const UpdateDomainMetadataDocument = gql` + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id + } + } +`; +export const CreateContractEventDocument = gql` + mutation CreateContractEvent( + $input: CreateContractEventInput! + $condition: ModelContractEventConditionInput + ) { + createContractEvent(input: $input, condition: $condition) { + id + } + } +`; +export const CreateExpenditureDocument = gql` + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id + } + } +`; +export const UpdateExpenditureDocument = gql` + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress + } + } +`; +export const UpdateExpenditureMetadataDocument = gql` + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id + } + } +`; +export const CreateStreamingPaymentDocument = gql` + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id + } + } +`; +export const UpdateStreamingPaymentDocument = gql` + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id + } + } +`; +export const UpdateStreamingPaymentMetadataDocument = gql` + mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! + ) { + updateStreamingPaymentMetadata(input: $input) { + id + } + } +`; +export const CreateColonyExtensionDocument = gql` + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id + } + } +`; +export const UpdateColonyExtensionByAddressDocument = gql` + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId + } + } +`; +export const CreateExtensionInstallationsCountDocument = gql` + mutation CreateExtensionInstallationsCount( + $input: CreateExtensionInstallationsCountInput! + ) { + createExtensionInstallationsCount(input: $input) { + id + } + } +`; +export const UpdateExtensionInstallationsCountDocument = gql` + mutation UpdateExtensionInstallationsCount( + $input: UpdateExtensionInstallationsCountInput! + ) { + updateExtensionInstallationsCount(input: $input) { + id + } + } +`; +export const CreateColonyFundsClaimDocument = gql` + mutation CreateColonyFundsClaim( + $input: CreateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + createColonyFundsClaim(input: $input, condition: $condition) { + id + } + } +`; +export const UpdateColonyFundsClaimDocument = gql` + mutation UpdateColonyFundsClaim( + $input: UpdateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id + } + } +`; +export const DeleteColonyFundsClaimDocument = gql` + mutation DeleteColonyFundsClaim( + $input: DeleteColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id + } + } +`; +export const CreateCurrentNetworkInverseFeeDocument = gql` + mutation CreateCurrentNetworkInverseFee( + $input: CreateCurrentNetworkInverseFeeInput! + ) { + createCurrentNetworkInverseFee(input: $input) { + id + } + } +`; +export const UpdateCurrentNetworkInverseFeeDocument = gql` + mutation UpdateCurrentNetworkInverseFee( + $input: UpdateCurrentNetworkInverseFeeInput! + ) { + updateCurrentNetworkInverseFee(input: $input) { + id + } + } +`; +export const CreateColonyMotionDocument = gql` + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id + } + } +`; +export const UpdateColonyMotionDocument = gql` + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id + } + } +`; +export const CreateMotionMessageDocument = gql` + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id + } + } +`; +export const CreateUserVoterRewardDocument = gql` + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id + } + } +`; +export const CreateColonyRoleDocument = gql` + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id + } + } +`; +export const UpdateColonyRoleDocument = gql` + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id + } + } +`; +export const CreateColonyHistoricRoleDocument = gql` + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id + } + } +`; +export const UpdateReputationMiningCycleMetadataDocument = gql` + mutation UpdateReputationMiningCycleMetadata( + $input: UpdateReputationMiningCycleMetadataInput! + ) { + updateReputationMiningCycleMetadata(input: $input) { + id + } + } +`; +export const CreateReputationMiningCycleMetadataDocument = gql` + mutation CreateReputationMiningCycleMetadata( + $input: CreateReputationMiningCycleMetadataInput! + ) { + createReputationMiningCycleMetadata(input: $input) { + id + } + } +`; +export const CreateUserStakeDocument = gql` + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id + } + } +`; +export const UpdateUserStakeDocument = gql` + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id + } + } +`; +export const CreateStatsDocument = gql` + mutation CreateStats($value: String!) { + createIngestorStats(input: { id: "STATS", value: $value }) { + id + } + } +`; +export const UpdateStatsDocument = gql` + mutation UpdateStats($value: String!) { + updateIngestorStats(input: { id: "STATS", value: $value }) { + id + } + } +`; +export const DeleteColonyTokensDocument = gql` + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id + } + } +`; +export const GetColonyActionDocument = gql` + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + } + } +`; +export const GetMotionIdFromActionDocument = gql` + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id + } + } + } +`; +export const GetActionIdFromAnnotationDocument = gql` + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId + } + } +`; +export const GetActionByIdDocument = gql` + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot + } + } + } + } + ${ExpenditureSlot} +`; +export const GetColonyMetadataDocument = gql` + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail + } + } + } + ${ColonyMetadata} +`; +export const GetColonyDocument = gql` + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony + } + getColonyByAddress(id: $id) { + items { + id + name + } + } + getColonyByType(type: METACOLONY) { + items { + id + name + } + } + } + ${Colony} +`; +export const GetColonyByNameDocument = gql` + query GetColonyByName($name: String!) { + getColonyByName(name: $name) { + items { + id + name + } + } + } +`; +export const GetColonyByNativeTokenIdDocument = gql` + query GetColonyByNativeTokenId( + $nativeTokenId: ID! + $limit: Int + $nextToken: String + ) { + getColoniesByNativeTokenId( + nativeTokenId: $nativeTokenId + limit: $limit + nextToken: $nextToken + ) { + items { + id + status { + nativeToken { + unlocked + unlockable + mintable + } + recovery + } + } + nextToken + } + } +`; +export const ListColoniesDocument = gql` + query ListColonies($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + id + nativeTokenId + } + } + } +`; +export const GetColonyContributorDocument = gql` + query GetColonyContributor($id: ID!) { + getColonyContributor(id: $id) { + id + isVerified + } + } +`; +export const GetCurrentVersionDocument = gql` + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version + } + } + } +`; +export const GetColonyDecisionByActionIdDocument = gql` + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { + id + } + } + } +`; +export const GetDomainMetadataDocument = gql` + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { + color + description + id + name + changelog { + newColor + newDescription + newName + oldColor + oldDescription + oldName + transactionHash + } + } + } +`; +export const GetContractEventDocument = gql` + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id + } + } +`; +export const GetExpenditureDocument = gql` + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure + } + } + ${Expenditure} +`; +export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` + query GetExpenditureByNativeFundingPotIdAndColony( + $nativeFundingPotId: Int! + $colonyAddress: ID! + ) { + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: { eq: $colonyAddress } + ) { + items { + ...Expenditure + } + } + } + ${Expenditure} +`; +export const GetStreamingPaymentDocument = gql` + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + endCondition + } + claims { + amount + timestamp + } + } + } +`; +export const GetPendingStreamingPaymentMetadataDocument = gql` + query getPendingStreamingPaymentMetadata($id: ID!) { + getPendingStreamingPaymentMetadata(id: $id) { + id + endCondition + } + } +`; +export const GetColonyExtensionDocument = gql` + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension + } + } + ${Extension} +`; +export const GetColonyExtensionsByColonyAddressDocument = gql` + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension + } + } + } + ${Extension} +`; +export const ListExtensionsDocument = gql` + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: { isDeleted: { eq: false } } + ) { + nextToken + items { + ...Extension + } + } + } + ${Extension} +`; +export const GetColonyExtensionByHashAndColonyDocument = gql` + query GetColonyExtensionByHashAndColony( + $colonyAddress: ID! + $extensionHash: String! + ) { + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: { eq: $extensionHash } + filter: { isDeleted: { eq: false } } + ) { + items { + id + } + } + } +`; +export const GetExtensionInstallationsCountDocument = gql` + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + } + } +`; +export const GetColonyUnclaimedFundsDocument = gql` + query GetColonyUnclaimedFunds( + $colonyAddress: ID! + $tokenAddress: ID! + $upToBlock: Int = 1 + ) { + listColonyFundsClaims( + filter: { + colonyFundsClaimsId: { eq: $colonyAddress } + colonyFundsClaimTokenId: { eq: $tokenAddress } + createdAtBlock: { le: $upToBlock } + isClaimed: { ne: true } + } + ) { + items { + id + } + } + } +`; +export const GetColonyUnclaimedFundDocument = gql` + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id + } + } +`; +export const GetCurrentNetworkInverseFeeDocument = gql` + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee + } + } + } +`; +export const GetColonyActionByMotionIdDocument = gql` + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + id + pendingDomainMetadata { + ...DomainMetadata + } + pendingColonyMetadata { + ...ColonyMetadata + } + colonyDecisionId + amount + networkFee + type + } + } + } + ${DomainMetadata} + ${ColonyMetadata} +`; +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +export const GetColonyMotionDocument = gql` + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion } } ${ColonyMotion} @@ -13784,6 +15115,7 @@ export const GetVoterRewardsDocument = gql` } } `; +<<<<<<< HEAD export const GetColonyActionByMultiSigIdDocument = gql` query GetColonyActionByMultiSigId($multiSigId: ID!) { getColonyActionByMultiSigId(multiSigId: $multiSigId) { @@ -13850,6 +15182,8 @@ export const GetActiveColonyMultisigsDocument = gql` } } `; +======= +>>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export const GetColonyRoleDocument = gql` query GetColonyRole($id: ID!) { getColonyRole(id: $id) { diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 89b47b981..ddfc3b974 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -21,9 +21,14 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { id + startTime endTime tokenAddress amount + interval + metadata { + endCondition + } claims { amount timestamp diff --git a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts new file mode 100644 index 000000000..eafaf0cdd --- /dev/null +++ b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts @@ -0,0 +1,140 @@ +import { StreamingPaymentsClientV5 } from '@colony/colony-js'; +import { utils } from 'ethers'; +import { mutate } from '~amplifyClient'; +import { + ColonyActionType, + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import provider from '~provider'; +import { ContractEvent, ContractEventsSignatures } from '~types'; +import { + checkActionExists, + getExpenditureDatabaseId, + mapLogToContractEvent, + output, + toNumber, + writeActionFromEvent, +} from '~utils'; +import { getStreamingPaymentFromDB } from './getExpenditure'; + +export const createEditStreamingPaymentAction = async ({ + event, + colonyAddress, + streamingPaymentsClient, +}: { + event: ContractEvent; + colonyAddress: string; + streamingPaymentsClient: StreamingPaymentsClientV5; +}): Promise => { + const { transactionHash } = event; + + const actionExists = await checkActionExists(transactionHash); + + if (actionExists) { + return; + } + + const { blockNumber } = event; + const { streamingPaymentId } = event.args; + + const convertedExpenditureId = toNumber(streamingPaymentId); + const databaseId = getExpenditureDatabaseId( + colonyAddress, + convertedExpenditureId, + ); + + const streamingPayment = await getStreamingPaymentFromDB(databaseId); + if (!streamingPayment) { + output( + `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, + ); + return; + } + + const logs = await provider.getLogs({ + fromBlock: blockNumber, + toBlock: blockNumber, + topics: [ + [ + utils.id(ContractEventsSignatures.PaymentTokenUpdated), + utils.id(ContractEventsSignatures.StartTimeSet), + utils.id(ContractEventsSignatures.EndTimeSet), + ], + ], + }); + + const actionEvents = []; + for (const log of logs) { + const mappedEvent = await mapLogToContractEvent( + log, + streamingPaymentsClient.interface, + ); + if (mappedEvent) { + actionEvents.push(mappedEvent); + } + } + + const oldValues = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, + }; + + const updatedStreamingPayment: { + amount?: string; + interval?: string; + startTime?: string; + endTime?: string; + } = { + amount: undefined, + interval: undefined, + startTime: undefined, + endTime: undefined, + }; + + for (const actionEvent of actionEvents) { + if ( + actionEvent.signature === ContractEventsSignatures.PaymentTokenUpdated + ) { + const { amount, interval } = actionEvent.args; + updatedStreamingPayment.amount = amount.toString(); + updatedStreamingPayment.interval = interval.toString(); + } + if (actionEvent.signature === ContractEventsSignatures.StartTimeSet) { + const { startTime } = actionEvent.args; + updatedStreamingPayment.startTime = startTime.toString(); + } + if (actionEvent.signature === ContractEventsSignatures.EndTimeSet) { + const { endTime } = actionEvent.args; + updatedStreamingPayment.endTime = endTime.toString(); + } + } + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + startTime: updatedStreamingPayment.startTime, + endTime: updatedStreamingPayment.endTime, + amount: updatedStreamingPayment.amount, + interval: updatedStreamingPayment.interval, + }, + }); + + const { agent: initiatorAddress } = event.args; + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.EditStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + streamingPaymentChanges: { + oldValues, + newValues: updatedStreamingPayment, + }, + }); +}; diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index a72b6c749..932897b66 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,41 +1,25 @@ -import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; -import { mutate } from '~amplifyClient'; -import { - UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables, -} from '~graphql'; +import { getStreamingPaymentsClient } from '~utils'; import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; -import { getStreamingPaymentFromDB } from './helpers'; +import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; export const handlePaymentTokenUpdated: EventHandler = async ( event, listener, ) => { - const { streamingPaymentId, amount, interval } = event.args; - const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); - const streamingPayment = await getStreamingPaymentFromDB(databaseId); - - if (!streamingPayment) { - output(`Streaming payment with ID ${databaseId} not found in the database`); + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + if (!streamingPaymentsClient) { return; } - verbose(`Payment token updated for streaming payment with ID ${databaseId}`); - - await mutate< - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables - >(UpdateStreamingPaymentDocument, { - input: { - id: databaseId, - amount: amount.toString(), - interval: interval.toString(), - }, + await createEditStreamingPaymentAction({ + event, + streamingPaymentsClient, + colonyAddress, }); }; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index c7b44a1df..4a542a3b8 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -10,12 +10,14 @@ import { import { EventHandler } from '~types'; import { getExpenditureDatabaseId, + getStreamingPaymentsClient, output, toNumber, verbose, writeActionFromEvent, } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; +import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, @@ -46,22 +48,34 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( verbose(`End time set for streaming payment with ID ${databaseId}`); } - await mutate< - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables - >(UpdateStreamingPaymentDocument, { - input: { - id: databaseId, - endTime: endTime.toString(), - isCancelled: isCancelAction ? true : null, - }, - }); - if (isCancelAction) { await writeActionFromEvent(event, colonyAddress, { type: ColonyActionType.CancelStreamingPayment, initiatorAddress, streamingPaymentId: databaseId, }); + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + endTime: endTime.toString(), + isCancelled: isCancelAction ? true : null, + }, + }); + } else { + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + if (!streamingPaymentsClient) { + return; + } + await createEditStreamingPaymentAction({ + event, + streamingPaymentsClient, + colonyAddress, + }); } }; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 30a472372..16024f80f 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -1,13 +1,7 @@ -import { mutate } from '~amplifyClient'; -import { - UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables, -} from '~graphql'; import { EventHandler } from '~types'; -import { getExpenditureDatabaseId, output, toNumber, verbose } from '~utils'; -import { getStreamingPaymentFromDB } from './helpers'; +import { getStreamingPaymentsClient } from '~utils'; import { ExtensionEventListener } from '~eventListeners'; +import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; export const handleStreamingPaymentStartTimeSet: EventHandler = async ( event, @@ -15,31 +9,20 @@ export const handleStreamingPaymentStartTimeSet: EventHandler = async ( ) => { const { colonyAddress } = listener as ExtensionEventListener; - const { streamingPaymentId, startTime } = event.args; - const convertedNativeId = toNumber(streamingPaymentId); - if (!colonyAddress) { return; } - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); - const streamingPayment = await getStreamingPaymentFromDB(databaseId); - if (!streamingPayment) { - output( - `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, - ); + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + if (!streamingPaymentsClient) { return; } - verbose(`Start time set for streaming payment with ID ${databaseId}`); - - await mutate< - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables - >(UpdateStreamingPaymentDocument, { - input: { - id: databaseId, - startTime: startTime.toString(), - }, + await createEditStreamingPaymentAction({ + event, + streamingPaymentsClient, + colonyAddress, }); }; From d77877dca7ed2e6e04d9b39407afc7745a22456b Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:14:35 +0100 Subject: [PATCH 31/48] Feat: Added changelog to streaming payment and streaming payment metadata --- src/graphql/fragments/expenditures.graphql | 42 + src/graphql/generated.ts | 4805 +++++++---------- src/graphql/queries/expenditures.graphql | 23 +- .../createEditStreamingPaymentAction.ts | 89 +- .../editStreamingPaymentMotion.ts | 25 +- src/handlers/motions/motionCreated/helpers.ts | 10 +- .../motions/motionFinalized/helpers.ts | 44 +- 7 files changed, 1958 insertions(+), 3080 deletions(-) diff --git a/src/graphql/fragments/expenditures.graphql b/src/graphql/fragments/expenditures.graphql index 271f5f9ee..7b12a5f1e 100644 --- a/src/graphql/fragments/expenditures.graphql +++ b/src/graphql/fragments/expenditures.graphql @@ -51,3 +51,45 @@ fragment ExpenditureSlot on ExpenditureSlot { networkFee } } + +fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp + } + changelog { + transactionHash + oldValues { + ...StreamingPaymentChanges + } + newValues { + ...StreamingPaymentChanges + } + } +} + +fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } +} + +fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount +} diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 7f6878540..e69a6506a 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1,15 +1,9 @@ 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 Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -283,7 +277,7 @@ export enum ClientType { TokenLockingClient = 'TokenLockingClient', TokenSupplierClient = 'TokenSupplierClient', VotingReputationClient = 'VotingReputationClient', - WhitelistClient = 'WhitelistClient', + WhitelistClient = 'WhitelistClient' } /** Represents a Colony within the Colony Network */ @@ -343,6 +337,7 @@ export type Colony = { version: Scalars['Int']; }; + /** Represents a Colony within the Colony Network */ export type ColonyActionsArgs = { filter?: InputMaybe; @@ -351,6 +346,7 @@ export type ColonyActionsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyDomainsArgs = { filter?: InputMaybe; @@ -360,6 +356,7 @@ export type ColonyDomainsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyExpendituresArgs = { createdAt?: InputMaybe; @@ -369,6 +366,7 @@ export type ColonyExpendituresArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyExtensionsArgs = { filter?: InputMaybe; @@ -378,6 +376,7 @@ export type ColonyExtensionsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyFundsClaimDataArgs = { createdAt?: InputMaybe; @@ -387,6 +386,7 @@ export type ColonyFundsClaimDataArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyRolesArgs = { filter?: InputMaybe; @@ -395,6 +395,7 @@ export type ColonyRolesArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyTokensArgs = { filter?: InputMaybe; @@ -528,11 +529,6 @@ export type ColonyAction = { showInActionsList: Scalars['Boolean']; /** Streaming payment associated with the action, if any */ streamingPayment?: Maybe; - /** - * Changes to the streaming payment associated with the action, if any - * Applicable to `EDIT_STREAMING_PAYMENT` action only - */ - streamingPaymentChanges?: Maybe; /** ID of the associated streaming payment, if any */ streamingPaymentId?: Maybe; /** The target Domain of the action, if applicable */ @@ -747,7 +743,7 @@ export enum ColonyActionType { /** An action related to upgrading a Colony's version via multiSig */ VersionUpgradeMultisig = 'VERSION_UPGRADE_MULTISIG', /** An action unrelated to the currently viewed Colony */ - WrongColony = 'WRONG_COLONY', + WrongColony = 'WRONG_COLONY' } /** Represents a Colony balance for a specific domain and token */ @@ -847,6 +843,7 @@ export type ColonyContributor = { user?: Maybe; }; + /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -856,6 +853,7 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; + /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1130,8 +1128,10 @@ export type ColonyMotion = { objectionAnnotation?: Maybe; /** Id of the associated objection annotation, if any */ objectionAnnotationId?: Maybe; + /** Streaming Payment changes by the action */ + pendingStreamingPaymentChanges?: Maybe; /** Streaming payment metadata that is stored temporarily and committed to the database once the corresponding motion passes */ - pendingStreamingPaymentMetadata?: Maybe; + pendingStreamingPaymentMetadata?: Maybe; /** Identifier of streaming payment metadata that is stored temporarily and committed to the database once the corresponding motion passes */ pendingStreamingPaymentMetadataId?: Maybe; /** @@ -1149,10 +1149,10 @@ export type ColonyMotion = { skillRep: Scalars['String']; /** List of staker rewards users will be receiving for a motion */ stakerRewards: Array; - /** Streaming payment associated with the motion, if any */ + /** Streaming payment associated with the action, if any */ + streamingPayment?: Maybe; + /** ID of the associated streaming payment, if any */ streamingPaymentId?: Maybe; - /** Streaming Payment changes by the action */ - streamingPaymentPendingChanges?: Maybe; /** The transaction hash of the createMotion action */ transactionHash: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; @@ -1165,6 +1165,7 @@ export type ColonyMotion = { voterRewards?: Maybe; }; + /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1174,6 +1175,7 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; + /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1239,6 +1241,7 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; + /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1349,7 +1352,7 @@ export enum ColonyType { /** A regular Colony */ Colony = 'COLONY', /** The MetaColony, which governs the entire Colony Network */ - Metacolony = 'METACOLONY', + Metacolony = 'METACOLONY' } /** Unclaimed staking rewards for a motion */ @@ -1428,7 +1431,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP', + Top = 'TOP' } export type CreateAnnotationInput = { @@ -1488,7 +1491,6 @@ export type CreateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash: Scalars['String']; showInActionsList: Scalars['Boolean']; - streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -1641,6 +1643,7 @@ export type CreateColonyMotionInput = { nativeMotionDomainId: Scalars['String']; nativeMotionId: Scalars['String']; objectionAnnotationId?: InputMaybe; + pendingStreamingPaymentChanges?: InputMaybe; pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes: Array; repSubmitted: Scalars['String']; @@ -1649,7 +1652,6 @@ export type CreateColonyMotionInput = { skillRep: Scalars['String']; stakerRewards: Array; streamingPaymentId?: InputMaybe; - streamingPaymentPendingChanges?: InputMaybe; transactionHash: Scalars['ID']; userMinStake: Scalars['String']; usersStakes: Array; @@ -1815,7 +1817,6 @@ export type CreateMotionMessageInput = { vote?: InputMaybe; }; -<<<<<<< HEAD export type CreateMultiSigUserSignatureInput = { colonyAddress: Scalars['ID']; createdAt?: InputMaybe; @@ -1824,11 +1825,6 @@ export type CreateMultiSigUserSignatureInput = { role: Scalars['Int']; userAddress: Scalars['ID']; vote: MultiSigVote; -======= -export type CreatePendingStreamingPaymentMetadataInput = { - endCondition: StreamingPaymentEndCondition; - id?: InputMaybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type CreateNotificationsDataInput = { @@ -1892,6 +1888,7 @@ export type CreateSafeTransactionInput = { export type CreateStreamingPaymentInput = { amount: Scalars['String']; + changelog?: InputMaybe>; claims?: InputMaybe>; createdAt?: InputMaybe; endTime: Scalars['String']; @@ -1907,6 +1904,7 @@ export type CreateStreamingPaymentInput = { }; export type CreateStreamingPaymentMetadataInput = { + changelog?: InputMaybe>; endCondition: StreamingPaymentEndCondition; id?: InputMaybe; }; @@ -2148,11 +2146,7 @@ export type DeleteMotionMessageInput = { id: Scalars['ID']; }; -<<<<<<< HEAD export type DeleteMultiSigUserSignatureInput = { -======= -export type DeletePendingStreamingPaymentMetadataInput = { ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) id: Scalars['ID']; }; @@ -2334,7 +2328,7 @@ export enum DomainColor { /** The default domain color for the root domain. Only used by the root by default and cannot be selected by the user. */ Root = 'ROOT', /** A yellow color */ - Yellow = 'YELLOW', + Yellow = 'YELLOW' } /** Input type for specifying a Domain */ @@ -2445,6 +2439,7 @@ export type Expenditure = { userStakeId?: Maybe; }; + export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2452,6 +2447,7 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; + export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2567,15 +2563,16 @@ export enum ExpenditureStatus { Cancelled = 'CANCELLED', Draft = 'DRAFT', Finalized = 'FINALIZED', - Locked = 'LOCKED', + Locked = 'LOCKED' } export enum ExpenditureType { PaymentBuilder = 'PAYMENT_BUILDER', - Staged = 'STAGED', + Staged = 'STAGED' } export enum ExtendedSupportedCurrencies { +<<<<<<< HEAD Brl = 'BRL', Cad = 'CAD', Clny = 'CLNY', @@ -2587,6 +2584,9 @@ export enum ExtendedSupportedCurrencies { Krw = 'KRW', Usd = 'USD', Usdc = 'USDC', +======= + Usdc = 'USDC' +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } export type ExtensionInstallationsCount = { @@ -2640,7 +2640,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube', + Youtube = 'Youtube' } export type FailedTransaction = { @@ -2655,20 +2655,9 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION', + Union = 'UNION' } -export type FullStreamingPaymentChanges = { - __typename?: 'FullStreamingPaymentChanges'; - newValues: StreamingPaymentChanges; - oldValues: StreamingPaymentChanges; -}; - -export type FullStreamingPaymentChangesInput = { - newValues: StreamingPaymentChangesInput; - oldValues: StreamingPaymentChangesInput; -}; - export type FunctionParam = { __typename?: 'FunctionParam'; name: Scalars['String']; @@ -2812,7 +2801,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW', + UnderReview = 'UNDER_REVIEW' } /** @@ -2882,7 +2871,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet', + StringSet = 'stringSet' } export type ModelBooleanInput = { @@ -3562,14 +3551,10 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3759,18 +3744,11 @@ export type ModelExpenditureTypeInput = { }; export type ModelExtensionInstallationsCountConditionInput = { - and?: InputMaybe< - Array> - >; -<<<<<<< HEAD + and?: InputMaybe>>; multiSigPermissions?: InputMaybe; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3784,16 +3762,12 @@ export type ModelExtensionInstallationsCountConnection = { }; export type ModelExtensionInstallationsCountFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3946,7 +3920,6 @@ export type ModelMotionMessageFilterInput = { vote?: InputMaybe; }; -<<<<<<< HEAD export type ModelMultiSigUserSignatureConditionInput = { and?: InputMaybe>>; colonyAddress?: InputMaybe; @@ -3981,39 +3954,6 @@ export type ModelMultiSigUserSignatureFilterInput = { export type ModelMultiSigVoteInput = { eq?: InputMaybe; ne?: InputMaybe; -======= -export type ModelPendingStreamingPaymentMetadataConditionInput = { - and?: InputMaybe< - Array> - >; - endCondition?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe< - Array> - >; -}; - -export type ModelPendingStreamingPaymentMetadataConnection = { - __typename?: 'ModelPendingStreamingPaymentMetadataConnection'; - items: Array>; - nextToken?: Maybe; -}; - -export type ModelPendingStreamingPaymentMetadataFilterInput = { - and?: InputMaybe< - Array> - >; - endCondition?: InputMaybe; - id?: InputMaybe; - not?: InputMaybe; -<<<<<<< HEAD - or?: InputMaybe>>; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) -======= - or?: InputMaybe< - Array> - >; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }; export type ModelNotificationsDataConditionInput = { @@ -4112,14 +4052,10 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4129,15 +4065,11 @@ export type ModelReputationMiningCycleMetadataConnection = { }; export type ModelReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSafeTransactionConditionInput = { @@ -4211,7 +4143,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC', + Desc = 'DESC' } export type ModelSplitPaymentDistributionTypeInput = { @@ -4266,14 +4198,10 @@ export type ModelStreamingPaymentFilterInput = { }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; endCondition?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4388,20 +4316,14 @@ export type ModelSubscriptionColonyActionFilterInput = { }; export type ModelSubscriptionColonyActionMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; customTitle?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyContributorFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; colonyReputationPercentage?: InputMaybe; contributorAddress?: InputMaybe; @@ -4410,34 +4332,26 @@ export type ModelSubscriptionColonyContributorFilterInput = { id?: InputMaybe; isVerified?: InputMaybe; isWatching?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; type?: InputMaybe; }; export type ModelSubscriptionColonyDecisionFilterInput = { actionId?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; motionDomainId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; showInDecisionsList?: InputMaybe; title?: InputMaybe; walletAddress?: InputMaybe; }; export type ModelSubscriptionColonyExtensionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyId?: InputMaybe; hash?: InputMaybe; id?: InputMaybe; @@ -4446,9 +4360,7 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; version?: InputMaybe; }; @@ -4469,35 +4381,30 @@ export type ModelSubscriptionColonyFilterInput = { export type ModelSubscriptionColonyFundsClaimFilterInput = { amount?: InputMaybe; +<<<<<<< HEAD and?: InputMaybe< Array> >; colonyFundsClaimsId?: InputMaybe; +======= + and?: InputMaybe>>; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) createdAt?: InputMaybe; createdAtBlock?: InputMaybe; id?: InputMaybe; isClaimed?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyHistoricRoleFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; blockNumber?: InputMaybe; colonyId?: InputMaybe; createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; -<<<<<<< HEAD isMultiSig?: InputMaybe; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; role_0?: InputMaybe; role_1?: InputMaybe; role_2?: InputMaybe; @@ -4509,28 +4416,20 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { }; export type ModelSubscriptionColonyMemberInviteFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyId?: InputMaybe; id?: InputMaybe; invitesRemaining?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; avatar?: InputMaybe; description?: InputMaybe; displayName?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; thumbnail?: InputMaybe; }; @@ -4559,9 +4458,7 @@ export type ModelSubscriptionColonyMotionFilterInput = { }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4575,9 +4472,7 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4611,9 +4506,7 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4623,40 +4516,28 @@ export type ModelSubscriptionContractEventFilterInput = { }; export type ModelSubscriptionContributorReputationFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; contributorAddress?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationPercentage?: InputMaybe; reputationRaw?: InputMaybe; }; export type ModelSubscriptionCurrentNetworkInverseFeeFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; inverseFee?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionCurrentVersionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; key?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; version?: InputMaybe; }; @@ -4674,16 +4555,12 @@ export type ModelSubscriptionDomainFilterInput = { }; export type ModelSubscriptionDomainMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; color?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionExpenditureFilterInput = { @@ -4708,29 +4585,21 @@ export type ModelSubscriptionExpenditureFilterInput = { }; export type ModelSubscriptionExpenditureMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; distributionType?: InputMaybe; expectedNumberOfPayouts?: InputMaybe; expectedNumberOfTokens?: InputMaybe; fundFromDomainNativeId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionExtensionInstallationsCountFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; multiSigPermissions?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4765,9 +4634,7 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4786,23 +4653,17 @@ export type ModelSubscriptionIntInput = { }; export type ModelSubscriptionLiquidationAddressFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; chainId?: InputMaybe; id?: InputMaybe; liquidationAddress?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; userAddress?: InputMaybe; }; export type ModelSubscriptionMotionMessageFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; createdAt?: InputMaybe; initiatorAddress?: InputMaybe; messageKey?: InputMaybe; @@ -4812,38 +4673,13 @@ export type ModelSubscriptionMotionMessageFilterInput = { vote?: InputMaybe; }; -<<<<<<< HEAD export type ModelSubscriptionMultiSigUserSignatureFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; -======= -export type ModelSubscriptionPendingStreamingPaymentMetadataFilterInput = { - and?: InputMaybe< - Array< - InputMaybe - > - >; - endCondition?: InputMaybe; - id?: InputMaybe; - or?: InputMaybe< - Array< - InputMaybe - > - >; -}; - -export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { -<<<<<<< HEAD - and?: InputMaybe>>; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) id?: InputMaybe; multiSigId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; @@ -4866,19 +4702,9 @@ export type ModelSubscriptionNotificationsDataFilterInput = { }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { - and?: InputMaybe< - Array> - >; - id?: InputMaybe; -======= - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; shareableInvites?: InputMaybe; userId?: InputMaybe; }; @@ -4901,28 +4727,20 @@ export type ModelSubscriptionProfileFilterInput = { }; export type ModelSubscriptionReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; lastCompletedAt?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionSafeTransactionDataFilterInput = { abi?: InputMaybe; amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; contractFunction?: InputMaybe; data?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; rawAmount?: InputMaybe; tokenAddress?: InputMaybe; transactionHash?: InputMaybe; @@ -4930,20 +4748,14 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionStreamingPaymentFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; @@ -4952,34 +4764,17 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; endCondition?: InputMaybe; id?: InputMaybe; -<<<<<<< HEAD -<<<<<<< HEAD - limitAmount?: InputMaybe; - or?: InputMaybe< - Array> - >; -======= or?: InputMaybe>>; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) -======= - or?: InputMaybe< - Array> - >; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }; export type ModelSubscriptionStringInput = { @@ -5084,16 +4879,12 @@ export type ModelSubscriptionUserTokensFilterInput = { export type ModelSubscriptionVoterRewardsHistoryFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; motionId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; userAddress?: InputMaybe; }; @@ -5526,7 +5317,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject', + Reject = 'Reject' } /** Root mutation type */ @@ -5568,8 +5359,8 @@ export type Mutation = { createIngestorStats?: Maybe; createLiquidationAddress?: Maybe; createMotionMessage?: Maybe; -<<<<<<< HEAD createMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD createNotificationsData?: Maybe; ======= @@ -5577,6 +5368,8 @@ export type Mutation = { createPendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) createPrivateBetaInviteCode?: Maybe; createProfile?: Maybe; createReputationMiningCycleMetadata?: Maybe; @@ -5623,8 +5416,8 @@ export type Mutation = { deleteIngestorStats?: Maybe; deleteLiquidationAddress?: Maybe; deleteMotionMessage?: Maybe; -<<<<<<< HEAD deleteMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD deleteNotificationsData?: Maybe; ======= @@ -5632,6 +5425,8 @@ export type Mutation = { deletePendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) deletePrivateBetaInviteCode?: Maybe; deleteProfile?: Maybe; deleteReputationMiningCycleMetadata?: Maybe; @@ -5678,8 +5473,8 @@ export type Mutation = { updateIngestorStats?: Maybe; updateLiquidationAddress?: Maybe; updateMotionMessage?: Maybe; -<<<<<<< HEAD updateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD updateNotificationsData?: Maybe; ======= @@ -5687,6 +5482,8 @@ export type Mutation = { updatePendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) updatePrivateBetaInviteCode?: Maybe; updateProfile?: Maybe; updateReputationMiningCycleMetadata?: Maybe; @@ -5705,27 +5502,32 @@ export type Mutation = { validateUserInvite?: Maybe; }; + /** Root mutation type */ export type MutationBridgeCreateBankAccountArgs = { input: BridgeCreateBankAccountInput; }; + /** Root mutation type */ export type MutationBridgeUpdateBankAccountArgs = { input: BridgeUpdateBankAccountInput; }; + /** Root mutation type */ export type MutationBridgeXyzMutationArgs = { input: BridgeXyzMutationInput; }; + /** Root mutation type */ export type MutationCreateAnnotationArgs = { condition?: InputMaybe; input: CreateAnnotationInput; }; + /** Root mutation type */ export type MutationCreateCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -5738,171 +5540,195 @@ export type MutationCreateColonyArgs = { input: CreateColonyInput; }; + /** Root mutation type */ export type MutationCreateColonyActionArgs = { condition?: InputMaybe; input: CreateColonyActionInput; }; + /** Root mutation type */ export type MutationCreateColonyActionMetadataArgs = { condition?: InputMaybe; input: CreateColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyContributorArgs = { condition?: InputMaybe; input: CreateColonyContributorInput; }; + /** Root mutation type */ export type MutationCreateColonyDecisionArgs = { condition?: InputMaybe; input: CreateColonyDecisionInput; }; + /** Root mutation type */ export type MutationCreateColonyEtherealMetadataArgs = { input: CreateColonyEtherealMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyExtensionArgs = { condition?: InputMaybe; input: CreateColonyExtensionInput; }; + /** Root mutation type */ export type MutationCreateColonyFundsClaimArgs = { condition?: InputMaybe; input: CreateColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationCreateColonyHistoricRoleArgs = { condition?: InputMaybe; input: CreateColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationCreateColonyMemberInviteArgs = { condition?: InputMaybe; input: CreateColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationCreateColonyMetadataArgs = { condition?: InputMaybe; input: CreateColonyMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyMotionArgs = { condition?: InputMaybe; input: CreateColonyMotionInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; input: CreateColonyRoleInput; }; + /** Root mutation type */ export type MutationCreateColonyTokensArgs = { condition?: InputMaybe; input: CreateColonyTokensInput; }; + /** Root mutation type */ export type MutationCreateContractEventArgs = { condition?: InputMaybe; input: CreateContractEventInput; }; + /** Root mutation type */ export type MutationCreateContributorReputationArgs = { condition?: InputMaybe; input: CreateContributorReputationInput; }; + /** Root mutation type */ export type MutationCreateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: CreateCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationCreateCurrentVersionArgs = { condition?: InputMaybe; input: CreateCurrentVersionInput; }; + /** Root mutation type */ export type MutationCreateDomainArgs = { condition?: InputMaybe; input: CreateDomainInput; }; + /** Root mutation type */ export type MutationCreateDomainMetadataArgs = { condition?: InputMaybe; input: CreateDomainMetadataInput; }; + /** Root mutation type */ export type MutationCreateExpenditureArgs = { condition?: InputMaybe; input: CreateExpenditureInput; }; + /** Root mutation type */ export type MutationCreateExpenditureMetadataArgs = { condition?: InputMaybe; input: CreateExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationCreateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: CreateExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationCreateIngestorStatsArgs = { condition?: InputMaybe; input: CreateIngestorStatsInput; }; + /** Root mutation type */ export type MutationCreateLiquidationAddressArgs = { condition?: InputMaybe; input: CreateLiquidationAddressInput; }; + /** Root mutation type */ export type MutationCreateMotionMessageArgs = { condition?: InputMaybe; input: CreateMotionMessageInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; +<<<<<<< HEAD ======= >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ @@ -5917,6 +5743,8 @@ export type MutationCreatePendingStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreatePendingStreamingPaymentMetadataInput; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -5929,48 +5757,56 @@ export type MutationCreatePrivateBetaInviteCodeArgs = { input: CreatePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationCreateProfileArgs = { condition?: InputMaybe; input: CreateProfileInput; }; + /** Root mutation type */ export type MutationCreateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: CreateReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationCreateSafeTransactionArgs = { condition?: InputMaybe; input: CreateSafeTransactionInput; }; + /** Root mutation type */ export type MutationCreateSafeTransactionDataArgs = { condition?: InputMaybe; input: CreateSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationCreateStreamingPaymentArgs = { condition?: InputMaybe; input: CreateStreamingPaymentInput; }; + /** Root mutation type */ export type MutationCreateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreateStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationCreateTokenArgs = { condition?: InputMaybe; input: CreateTokenInput; }; + /** Root mutation type */ export type MutationCreateTokenExchangeRateArgs = { condition?: InputMaybe; @@ -5983,17 +5819,20 @@ export type MutationCreateTransactionArgs = { input: CreateTransactionInput; }; + /** Root mutation type */ export type MutationCreateUniqueUserArgs = { input?: InputMaybe; }; + /** Root mutation type */ export type MutationCreateUserArgs = { condition?: InputMaybe; input: CreateUserInput; }; + /** Root mutation type */ export type MutationCreateUserNotificationsDataArgs = { input: CreateUserNotificationsDataInput; @@ -6005,24 +5844,28 @@ export type MutationCreateUserStakeArgs = { input: CreateUserStakeInput; }; + /** Root mutation type */ export type MutationCreateUserTokensArgs = { condition?: InputMaybe; input: CreateUserTokensInput; }; + /** Root mutation type */ export type MutationCreateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: CreateVoterRewardsHistoryInput; }; + /** Root mutation type */ export type MutationDeleteAnnotationArgs = { condition?: InputMaybe; input: DeleteAnnotationInput; }; + /** Root mutation type */ export type MutationDeleteCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -6035,166 +5878,189 @@ export type MutationDeleteColonyArgs = { input: DeleteColonyInput; }; + /** Root mutation type */ export type MutationDeleteColonyActionArgs = { condition?: InputMaybe; input: DeleteColonyActionInput; }; + /** Root mutation type */ export type MutationDeleteColonyActionMetadataArgs = { condition?: InputMaybe; input: DeleteColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationDeleteColonyContributorArgs = { condition?: InputMaybe; input: DeleteColonyContributorInput; }; + /** Root mutation type */ export type MutationDeleteColonyDecisionArgs = { condition?: InputMaybe; input: DeleteColonyDecisionInput; }; + /** Root mutation type */ export type MutationDeleteColonyExtensionArgs = { condition?: InputMaybe; input: DeleteColonyExtensionInput; }; + /** Root mutation type */ export type MutationDeleteColonyFundsClaimArgs = { condition?: InputMaybe; input: DeleteColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationDeleteColonyHistoricRoleArgs = { condition?: InputMaybe; input: DeleteColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationDeleteColonyMemberInviteArgs = { condition?: InputMaybe; input: DeleteColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationDeleteColonyMetadataArgs = { condition?: InputMaybe; input: DeleteColonyMetadataInput; }; + /** Root mutation type */ export type MutationDeleteColonyMotionArgs = { condition?: InputMaybe; input: DeleteColonyMotionInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; input: DeleteColonyRoleInput; }; + /** Root mutation type */ export type MutationDeleteColonyTokensArgs = { condition?: InputMaybe; input: DeleteColonyTokensInput; }; + /** Root mutation type */ export type MutationDeleteContractEventArgs = { condition?: InputMaybe; input: DeleteContractEventInput; }; + /** Root mutation type */ export type MutationDeleteContributorReputationArgs = { condition?: InputMaybe; input: DeleteContributorReputationInput; }; + /** Root mutation type */ export type MutationDeleteCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: DeleteCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationDeleteCurrentVersionArgs = { condition?: InputMaybe; input: DeleteCurrentVersionInput; }; + /** Root mutation type */ export type MutationDeleteDomainArgs = { condition?: InputMaybe; input: DeleteDomainInput; }; + /** Root mutation type */ export type MutationDeleteDomainMetadataArgs = { condition?: InputMaybe; input: DeleteDomainMetadataInput; }; + /** Root mutation type */ export type MutationDeleteExpenditureArgs = { condition?: InputMaybe; input: DeleteExpenditureInput; }; + /** Root mutation type */ export type MutationDeleteExpenditureMetadataArgs = { condition?: InputMaybe; input: DeleteExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationDeleteExtensionInstallationsCountArgs = { condition?: InputMaybe; input: DeleteExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationDeleteIngestorStatsArgs = { condition?: InputMaybe; input: DeleteIngestorStatsInput; }; + /** Root mutation type */ export type MutationDeleteLiquidationAddressArgs = { condition?: InputMaybe; input: DeleteLiquidationAddressInput; }; + /** Root mutation type */ export type MutationDeleteMotionMessageArgs = { condition?: InputMaybe; input: DeleteMotionMessageInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; +<<<<<<< HEAD ======= >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ @@ -6209,6 +6075,8 @@ export type MutationDeletePendingStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeletePendingStreamingPaymentMetadataInput; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -6221,48 +6089,56 @@ export type MutationDeletePrivateBetaInviteCodeArgs = { input: DeletePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationDeleteProfileArgs = { condition?: InputMaybe; input: DeleteProfileInput; }; + /** Root mutation type */ export type MutationDeleteReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: DeleteReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationDeleteSafeTransactionArgs = { condition?: InputMaybe; input: DeleteSafeTransactionInput; }; + /** Root mutation type */ export type MutationDeleteSafeTransactionDataArgs = { condition?: InputMaybe; input: DeleteSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationDeleteStreamingPaymentArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentInput; }; + /** Root mutation type */ export type MutationDeleteStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationDeleteTokenArgs = { condition?: InputMaybe; input: DeleteTokenInput; }; + /** Root mutation type */ export type MutationDeleteTokenExchangeRateArgs = { condition?: InputMaybe; @@ -6275,44 +6151,48 @@ export type MutationDeleteTransactionArgs = { input: DeleteTransactionInput; }; + /** Root mutation type */ export type MutationDeleteUserArgs = { condition?: InputMaybe; input: DeleteUserInput; }; + /** Root mutation type */ export type MutationDeleteUserStakeArgs = { condition?: InputMaybe; input: DeleteUserStakeInput; }; + /** Root mutation type */ export type MutationDeleteUserTokensArgs = { condition?: InputMaybe; input: DeleteUserTokensInput; }; + /** Root mutation type */ export type MutationDeleteVoterRewardsHistoryArgs = { condition?: InputMaybe; input: DeleteVoterRewardsHistoryInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; input: UpdateAnnotationInput; }; + /** Root mutation type */ export type MutationUpdateCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -6325,171 +6205,195 @@ export type MutationUpdateColonyArgs = { input: UpdateColonyInput; }; + /** Root mutation type */ export type MutationUpdateColonyActionArgs = { condition?: InputMaybe; input: UpdateColonyActionInput; }; + /** Root mutation type */ export type MutationUpdateColonyActionMetadataArgs = { condition?: InputMaybe; input: UpdateColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationUpdateColonyContributorArgs = { condition?: InputMaybe; input: UpdateColonyContributorInput; }; + /** Root mutation type */ export type MutationUpdateColonyDecisionArgs = { condition?: InputMaybe; input: UpdateColonyDecisionInput; }; + /** Root mutation type */ export type MutationUpdateColonyExtensionArgs = { condition?: InputMaybe; input: UpdateColonyExtensionInput; }; + /** Root mutation type */ export type MutationUpdateColonyFundsClaimArgs = { condition?: InputMaybe; input: UpdateColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationUpdateColonyHistoricRoleArgs = { condition?: InputMaybe; input: UpdateColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationUpdateColonyMemberInviteArgs = { condition?: InputMaybe; input: UpdateColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationUpdateColonyMetadataArgs = { condition?: InputMaybe; input: UpdateColonyMetadataInput; }; + /** Root mutation type */ export type MutationUpdateColonyMotionArgs = { condition?: InputMaybe; input: UpdateColonyMotionInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; input: UpdateColonyRoleInput; }; + /** Root mutation type */ export type MutationUpdateColonyTokensArgs = { condition?: InputMaybe; input: UpdateColonyTokensInput; }; + /** Root mutation type */ export type MutationUpdateContractEventArgs = { condition?: InputMaybe; input: UpdateContractEventInput; }; + /** Root mutation type */ export type MutationUpdateContributorReputationArgs = { condition?: InputMaybe; input: UpdateContributorReputationInput; }; + /** Root mutation type */ export type MutationUpdateContributorsWithReputationArgs = { input: UpdateContributorsWithReputationInput; }; + /** Root mutation type */ export type MutationUpdateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: UpdateCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationUpdateCurrentVersionArgs = { condition?: InputMaybe; input: UpdateCurrentVersionInput; }; + /** Root mutation type */ export type MutationUpdateDomainArgs = { condition?: InputMaybe; input: UpdateDomainInput; }; + /** Root mutation type */ export type MutationUpdateDomainMetadataArgs = { condition?: InputMaybe; input: UpdateDomainMetadataInput; }; + /** Root mutation type */ export type MutationUpdateExpenditureArgs = { condition?: InputMaybe; input: UpdateExpenditureInput; }; + /** Root mutation type */ export type MutationUpdateExpenditureMetadataArgs = { condition?: InputMaybe; input: UpdateExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationUpdateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: UpdateExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationUpdateIngestorStatsArgs = { condition?: InputMaybe; input: UpdateIngestorStatsInput; }; + /** Root mutation type */ export type MutationUpdateLiquidationAddressArgs = { condition?: InputMaybe; input: UpdateLiquidationAddressInput; }; + /** Root mutation type */ export type MutationUpdateMotionMessageArgs = { condition?: InputMaybe; input: UpdateMotionMessageInput; }; -<<<<<<< HEAD + /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; +<<<<<<< HEAD ======= >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ @@ -6504,6 +6408,8 @@ export type MutationUpdatePendingStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdatePendingStreamingPaymentMetadataInput; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -6516,48 +6422,56 @@ export type MutationUpdatePrivateBetaInviteCodeArgs = { input: UpdatePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationUpdateProfileArgs = { condition?: InputMaybe; input: UpdateProfileInput; }; + /** Root mutation type */ export type MutationUpdateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: UpdateReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationUpdateSafeTransactionArgs = { condition?: InputMaybe; input: UpdateSafeTransactionInput; }; + /** Root mutation type */ export type MutationUpdateSafeTransactionDataArgs = { condition?: InputMaybe; input: UpdateSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationUpdateStreamingPaymentArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentInput; }; + /** Root mutation type */ export type MutationUpdateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationUpdateTokenArgs = { condition?: InputMaybe; input: UpdateTokenInput; }; + /** Root mutation type */ export type MutationUpdateTokenExchangeRateArgs = { condition?: InputMaybe; @@ -6570,30 +6484,35 @@ export type MutationUpdateTransactionArgs = { input: UpdateTransactionInput; }; + /** Root mutation type */ export type MutationUpdateUserArgs = { condition?: InputMaybe; input: UpdateUserInput; }; + /** Root mutation type */ export type MutationUpdateUserStakeArgs = { condition?: InputMaybe; input: UpdateUserStakeInput; }; + /** Root mutation type */ export type MutationUpdateUserTokensArgs = { condition?: InputMaybe; input: UpdateUserTokensInput; }; + /** Root mutation type */ export type MutationUpdateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: UpdateVoterRewardsHistoryInput; }; + /** Root mutation type */ export type MutationValidateUserInviteArgs = { input: ValidateUserInviteInput; @@ -6681,7 +6600,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET', + Mainnet = 'MAINNET' } /** Type of notifications that can be sent */ @@ -6753,14 +6672,6 @@ export type PaymentInput = { tokenAddress: Scalars['String']; }; -export type PendingStreamingPaymentMetadata = { - __typename?: 'PendingStreamingPaymentMetadata'; - createdAt: Scalars['AWSDateTime']; - endCondition: StreamingPaymentEndCondition; - id: Scalars['ID']; - updatedAt: Scalars['AWSDateTime']; -}; - export type PrivateBetaInviteCode = { __typename?: 'PrivateBetaInviteCode'; createdAt: Scalars['AWSDateTime']; @@ -6933,12 +6844,12 @@ export type Query = { /** Get the timeout for the current period of a motion */ getMotionTimeoutPeriods?: Maybe; getMotionVoterRewards?: Maybe; -<<<<<<< HEAD getMultiSigByColonyAddress?: Maybe; getMultiSigByExpenditureId?: Maybe; getMultiSigByTransactionHash?: Maybe; getMultiSigUserSignature?: Maybe; getMultiSigUserSignatureByMultiSigId?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD getNotificationsData?: Maybe; ======= @@ -6946,6 +6857,8 @@ export type Query = { getPendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) getPrivateBetaInviteCode?: Maybe; getProfile?: Maybe; getProfileByEmail?: Maybe; @@ -7014,8 +6927,8 @@ export type Query = { listIngestorStats?: Maybe; listLiquidationAddresses?: Maybe; listMotionMessages?: Maybe; -<<<<<<< HEAD listMultiSigUserSignatures?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD listNotificationsData?: Maybe; ======= @@ -7023,6 +6936,8 @@ export type Query = { listPendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) listPrivateBetaInviteCodes?: Maybe; listProfiles?: Maybe; listReputationMiningCycleMetadata?: Maybe; @@ -7042,11 +6957,13 @@ export type Query = { tokenExhangeRateByTokenId?: Maybe; }; + /** Root query type */ export type QueryBridgeGetUserLiquidationAddressArgs = { userAddress: Scalars['String']; }; + /** Root query type */ export type QueryCacheTotalBalanceByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7066,6 +6983,7 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetActionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -7075,6 +6993,7 @@ export type QueryGetActionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; + /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -7085,11 +7004,13 @@ export type QueryGetActionsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetAnnotationArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCacheTotalBalanceArgs = { id: Scalars['ID']; @@ -7104,16 +7025,19 @@ export type QueryGetColoniesByNativeTokenIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyActionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyActionByMotionIdArgs = { filter?: InputMaybe; @@ -7123,7 +7047,7 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; -<<<<<<< HEAD + /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -7133,13 +7057,13 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -7149,6 +7073,7 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -7158,6 +7083,7 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -7167,16 +7093,19 @@ export type QueryGetColonyByTypeArgs = { type: ColonyType; }; + /** Root query type */ export type QueryGetColonyContributorArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyDecisionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyDecisionByActionIdArgs = { actionId: Scalars['ID']; @@ -7186,6 +7115,7 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -7196,21 +7126,25 @@ export type QueryGetColonyDecisionByColonyAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyExtensionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyFundsClaimArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyHistoricRoleArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyHistoricRoleByDateArgs = { createdAt?: InputMaybe; @@ -7221,49 +7155,55 @@ export type QueryGetColonyHistoricRoleByDateArgs = { type: Scalars['String']; }; + /** Root query type */ export type QueryGetColonyMemberInviteArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; -<<<<<<< HEAD + /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyTokensArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContractEventArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContributorReputationArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContributorsByAddressArgs = { colonyReputationPercentage?: InputMaybe; @@ -7274,6 +7214,7 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7284,16 +7225,19 @@ export type QueryGetContributorsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetCurrentNetworkInverseFeeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCurrentVersionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCurrentVersionByKeyArgs = { filter?: InputMaybe; @@ -7303,12 +7247,13 @@ export type QueryGetCurrentVersionByKeyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetDomainArgs = { id: Scalars['ID']; }; -<<<<<<< HEAD + /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; @@ -7324,13 +7269,13 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7346,11 +7291,13 @@ export type QueryGetExpenditureArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExpenditureMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExpendituresByColonyArgs = { colonyId: Scalars['ID']; @@ -7361,6 +7308,7 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7371,6 +7319,7 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7381,11 +7330,13 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7395,6 +7346,7 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7410,11 +7362,13 @@ export type QueryGetIngestorStatsArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetLiquidationAddressArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetLiquidationAddressesByUserAddressArgs = { filter?: InputMaybe; @@ -7424,6 +7378,7 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7433,6 +7388,7 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -7442,6 +7398,7 @@ export type QueryGetMotionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7451,11 +7408,13 @@ export type QueryGetMotionByTransactionHashArgs = { transactionHash: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7466,16 +7425,19 @@ export type QueryGetMotionMessageByMotionIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionStateArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionTimeoutPeriodsArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7486,7 +7448,7 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; -<<<<<<< HEAD + /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7496,6 +7458,7 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7514,11 +7477,13 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; + /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7528,6 +7493,7 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; +<<<<<<< HEAD ======= >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ @@ -7540,6 +7506,8 @@ export type QueryGetNotificationsDataArgs = { export type QueryGetPendingStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -7551,11 +7519,13 @@ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetProfileArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetProfileByEmailArgs = { email: Scalars['AWSEmail']; @@ -7565,6 +7535,7 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7574,12 +7545,13 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; -<<<<<<< HEAD + /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7590,8 +7562,7 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7602,6 +7573,7 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7612,36 +7584,43 @@ export type QueryGetRoleByTargetAddressAndColonyArgs = { targetAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionDataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionStatusArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetStreamingPaymentArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTokenArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTokenByAddressArgs = { filter?: InputMaybe; @@ -7651,6 +7630,7 @@ export type QueryGetTokenByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetTokenExchangeRateArgs = { id: Scalars['ID']; @@ -7661,6 +7641,7 @@ export type QueryGetTokenFromEverywhereArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetTokensByTypeArgs = { filter?: InputMaybe; @@ -7670,11 +7651,13 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; + /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7685,6 +7668,7 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7695,24 +7679,13 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; -<<<<<<< HEAD -======= -/** Root query type */ -export type QueryGetTransactionsByUserAndStatusArgs = { - filter?: InputMaybe; - from?: InputMaybe; - limit?: InputMaybe; - nextToken?: InputMaybe; - sortDirection?: InputMaybe; - status: TransactionStatus; -}; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7722,6 +7695,7 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7731,6 +7705,7 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7740,11 +7715,13 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7755,11 +7732,13 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7770,16 +7749,19 @@ export type QueryGetUserStakesArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserTokenBalanceArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetUserTokensArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7790,16 +7772,19 @@ export type QueryGetUserVoterRewardsArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetVoterRewardsArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetVoterRewardsHistoryArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryListAnnotationsArgs = { filter?: InputMaybe; @@ -7807,6 +7792,7 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7821,6 +7807,7 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7828,6 +7815,7 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7835,6 +7823,7 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7842,6 +7831,7 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7849,6 +7839,7 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7856,6 +7847,7 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7863,6 +7855,7 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7870,6 +7863,7 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7877,6 +7871,7 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7884,6 +7879,7 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7891,7 +7887,7 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; -<<<<<<< HEAD + /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7899,8 +7895,7 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7908,6 +7903,7 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7915,6 +7911,7 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7922,6 +7919,7 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7929,6 +7927,7 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7936,6 +7935,7 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7943,6 +7943,7 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7950,6 +7951,7 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7957,6 +7959,7 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7964,6 +7967,7 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7971,6 +7975,7 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7978,6 +7983,7 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7985,6 +7991,7 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -7992,6 +7999,7 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -7999,7 +8007,7 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; -<<<<<<< HEAD + /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -8007,6 +8015,7 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; +<<<<<<< HEAD ======= >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ @@ -8025,6 +8034,8 @@ export type QueryListPendingStreamingPaymentMetadataArgs = { limit?: InputMaybe; nextToken?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -8038,6 +8049,7 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -8045,6 +8057,7 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -8052,6 +8065,7 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -8059,6 +8073,7 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -8066,6 +8081,7 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -8073,6 +8089,7 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -8080,6 +8097,7 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -8094,6 +8112,7 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -8101,6 +8120,7 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -8108,6 +8128,7 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -8115,6 +8136,7 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -8122,6 +8144,7 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -8129,11 +8152,10 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe< - Array> - >; + aggregates?: InputMaybe>>; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8141,11 +8163,10 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; + /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe< - Array> - >; + aggregates?: InputMaybe>>; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8196,6 +8217,7 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; + export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8229,7 +8251,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT', + TransferNft = 'TRANSFER_NFT' } export type SearchableAggregateBucketResult = { @@ -8243,9 +8265,7 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = - | SearchableAggregateBucketResult - | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8263,7 +8283,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms', + Terms = 'terms' } export type SearchableBooleanFilterInput = { @@ -8307,7 +8327,7 @@ export enum SearchableColonyActionAggregateField { ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableColonyActionAggregationInput = { @@ -8406,7 +8426,7 @@ export enum SearchableColonyActionSortableFields { ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export enum SearchableColonyContributorAggregateField { @@ -8420,7 +8440,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableColonyContributorAggregationInput = { @@ -8469,7 +8489,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableFloatFilterInput = { @@ -8511,7 +8531,7 @@ export type SearchableIntFilterInput = { export enum SearchableSortDirection { Asc = 'asc', - Desc = 'desc', + Desc = 'desc' } export type SearchableStringFilterInput = { @@ -8564,13 +8584,13 @@ export enum SortingMethod { /** Sort members by lowest reputation */ ByLowestRep = 'BY_LOWEST_REP', /** Sort members by having more permissions */ - ByMorePermissions = 'BY_MORE_PERMISSIONS', + ByMorePermissions = 'BY_MORE_PERMISSIONS' } export enum SplitPaymentDistributionType { Equal = 'EQUAL', Reputation = 'REPUTATION', - Unequal = 'UNEQUAL', + Unequal = 'UNEQUAL' } export type StakedExpenditureParams = { @@ -8607,6 +8627,8 @@ export type StreamingPayment = { __typename?: 'StreamingPayment'; actions?: Maybe; amount: Scalars['String']; + /** List of Streaming Payment changelog entries */ + changelog?: Maybe>; claims?: Maybe>; createdAt: Scalars['AWSDateTime']; endTime: Scalars['String']; @@ -8627,6 +8649,7 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; + export type StreamingPaymentActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8634,6 +8657,7 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; + export type StreamingPaymentMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8641,19 +8665,35 @@ export type StreamingPaymentMotionsArgs = { sortDirection?: InputMaybe; }; +export type StreamingPaymentChangelog = { + __typename?: 'StreamingPaymentChangelog'; + /** The values before the change */ + newValues: StreamingPaymentChanges; + /** The values before the change */ + oldValues: StreamingPaymentChanges; + /** Transaction hash associated with the changelog entry */ + transactionHash: Scalars['String']; +}; + +export type StreamingPaymentChangelogInput = { + newValues: StreamingPaymentChangesInput; + oldValues: StreamingPaymentChangesInput; + transactionHash: Scalars['String']; +}; + export type StreamingPaymentChanges = { __typename?: 'StreamingPaymentChanges'; - amount?: Maybe; - endTime?: Maybe; - interval?: Maybe; - startTime?: Maybe; + amount: Scalars['String']; + endTime: Scalars['String']; + interval: Scalars['String']; + startTime: Scalars['String']; }; export type StreamingPaymentChangesInput = { - amount?: InputMaybe; - endTime?: InputMaybe; - interval?: InputMaybe; - startTime?: InputMaybe; + amount: Scalars['String']; + endTime: Scalars['String']; + interval: Scalars['String']; + startTime: Scalars['String']; }; export type StreamingPaymentClaim = { @@ -8670,30 +8710,34 @@ export type StreamingPaymentClaimInput = { export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', - WhenCancelled = 'WHEN_CANCELLED', + WhenCancelled = 'WHEN_CANCELLED' } export type StreamingPaymentMetadata = { __typename?: 'StreamingPaymentMetadata'; + /** List of Streaming Payment metadata changelog entries */ + changelog?: Maybe>; createdAt: Scalars['AWSDateTime']; endCondition: StreamingPaymentEndCondition; id: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; }; -export type StreamingPaymentPendingChanges = { - __typename?: 'StreamingPaymentPendingChanges'; - amount?: Maybe; - endTime?: Maybe; - interval?: Maybe; - startTime?: Maybe; +/** Represents a changelog entry for Streaming Payment metadata */ +export type StreamingPaymentMetadataChangelog = { + __typename?: 'StreamingPaymentMetadataChangelog'; + /** The end condition after the change */ + newEndCondition: StreamingPaymentEndCondition; + /** The end condition before the change */ + oldEndCondition: StreamingPaymentEndCondition; + /** Transaction hash associated with the changelog entry */ + transactionHash: Scalars['String']; }; -export type StreamingPaymentPendingChangesInput = { - amount?: InputMaybe; - endTime?: InputMaybe; - interval?: InputMaybe; - startTime?: InputMaybe; +export type StreamingPaymentMetadataChangelogInput = { + newEndCondition: StreamingPaymentEndCondition; + oldEndCondition: StreamingPaymentEndCondition; + transactionHash: Scalars['String']; }; export type Subscription = { @@ -8726,8 +8770,8 @@ export type Subscription = { onCreateIngestorStats?: Maybe; onCreateLiquidationAddress?: Maybe; onCreateMotionMessage?: Maybe; -<<<<<<< HEAD onCreateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD onCreateNotificationsData?: Maybe; ======= @@ -8735,6 +8779,8 @@ export type Subscription = { onCreatePendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onCreatePrivateBetaInviteCode?: Maybe; onCreateProfile?: Maybe; onCreateReputationMiningCycleMetadata?: Maybe; @@ -8777,8 +8823,8 @@ export type Subscription = { onDeleteIngestorStats?: Maybe; onDeleteLiquidationAddress?: Maybe; onDeleteMotionMessage?: Maybe; -<<<<<<< HEAD onDeleteMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD onDeleteNotificationsData?: Maybe; ======= @@ -8786,6 +8832,8 @@ export type Subscription = { onDeletePendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onDeletePrivateBetaInviteCode?: Maybe; onDeleteProfile?: Maybe; onDeleteReputationMiningCycleMetadata?: Maybe; @@ -8828,8 +8876,8 @@ export type Subscription = { onUpdateIngestorStats?: Maybe; onUpdateLiquidationAddress?: Maybe; onUpdateMotionMessage?: Maybe; -<<<<<<< HEAD onUpdateMultiSigUserSignature?: Maybe; +<<<<<<< HEAD <<<<<<< HEAD onUpdateNotificationsData?: Maybe; ======= @@ -8837,6 +8885,8 @@ export type Subscription = { onUpdatePendingStreamingPaymentMetadata?: Maybe; >>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) >>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onUpdatePrivateBetaInviteCode?: Maybe; onUpdateProfile?: Maybe; onUpdateReputationMiningCycleMetadata?: Maybe; @@ -8853,126 +8903,153 @@ export type Subscription = { onUpdateVoterRewardsHistory?: Maybe; }; + export type SubscriptionOnCreateAnnotationArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnCreateCacheTotalBalanceArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnCreateColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnCreateNotificationsDataArgs = { @@ -8987,6 +9064,8 @@ export type SubscriptionOnCreateNotificationsDataArgs = { export type SubscriptionOnCreatePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -8997,178 +9076,219 @@ export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateTokenArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnCreateTokenExchangeRateArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnCreateTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteAnnotationArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnDeleteCacheTotalBalanceArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnDeleteColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnDeleteNotificationsDataArgs = { @@ -9183,6 +9303,8 @@ export type SubscriptionOnDeleteNotificationsDataArgs = { export type SubscriptionOnDeletePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -9193,178 +9315,219 @@ export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteTokenArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnDeleteTokenExchangeRateArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnDeleteTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteVoterRewardsHistoryArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateAnnotationArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnUpdateCacheTotalBalanceArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnUpdateColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD + export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD export type SubscriptionOnUpdateNotificationsDataArgs = { @@ -9379,6 +9542,8 @@ export type SubscriptionOnUpdateNotificationsDataArgs = { export type SubscriptionOnUpdatePendingStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) <<<<<<< HEAD @@ -9389,54 +9554,68 @@ export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateTokenArgs = { filter?: InputMaybe; }; +<<<<<<< HEAD export type SubscriptionOnUpdateTokenExchangeRateArgs = { filter?: InputMaybe; }; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnUpdateTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; @@ -9452,7 +9631,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD', + Usd = 'USD' } /** Return type for domain balance for a timeframe item */ @@ -9500,6 +9679,7 @@ export type Token = { validated?: Maybe; }; + /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9508,6 +9688,7 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; + /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9564,7 +9745,7 @@ export enum TokenType { /** A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself */ Colony = 'COLONY', /** An ERC20-compatible token */ - Erc20 = 'ERC20', + Erc20 = 'ERC20' } /** Represents a transaction made in a colony by a user */ @@ -9643,7 +9824,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL', + Unsuccessful = 'UNSUCCESSFUL' } export type TransactionGroup = { @@ -9674,7 +9855,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED', + Succeeded = 'SUCCEEDED' } export type UpdateAnnotationInput = { @@ -9734,7 +9915,6 @@ export type UpdateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; - streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -9865,6 +10045,7 @@ export type UpdateColonyMotionInput = { nativeMotionDomainId?: InputMaybe; nativeMotionId?: InputMaybe; objectionAnnotationId?: InputMaybe; + pendingStreamingPaymentChanges?: InputMaybe; pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe>; repSubmitted?: InputMaybe; @@ -9873,7 +10054,6 @@ export type UpdateColonyMotionInput = { skillRep?: InputMaybe; stakerRewards?: InputMaybe>; streamingPaymentId?: InputMaybe; - streamingPaymentPendingChanges?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; usersStakes?: InputMaybe>; @@ -10067,7 +10247,6 @@ export type UpdateMotionMessageInput = { vote?: InputMaybe; }; -<<<<<<< HEAD export type UpdateMultiSigUserSignatureInput = { colonyAddress?: InputMaybe; createdAt?: InputMaybe; @@ -10076,11 +10255,6 @@ export type UpdateMultiSigUserSignatureInput = { role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; -======= -export type UpdatePendingStreamingPaymentMetadataInput = { - endCondition?: InputMaybe; - id: Scalars['ID']; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) }; export type UpdateNotificationsDataInput = { @@ -10144,6 +10318,7 @@ export type UpdateSafeTransactionInput = { export type UpdateStreamingPaymentInput = { amount?: InputMaybe; + changelog?: InputMaybe>; claims?: InputMaybe>; createdAt?: InputMaybe; endTime?: InputMaybe; @@ -10159,6 +10334,7 @@ export type UpdateStreamingPaymentInput = { }; export type UpdateStreamingPaymentMetadataInput = { + changelog?: InputMaybe>; endCondition?: InputMaybe; id: Scalars['ID']; }; @@ -10271,6 +10447,7 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; + /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -10279,6 +10456,7 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10288,6 +10466,7 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10296,6 +10475,7 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10343,7 +10523,7 @@ export type UserStake = { /** Type of stake a user can make */ export enum UserStakeType { Motion = 'MOTION', - StakedExpenditure = 'STAKED_EXPENDITURE', + StakedExpenditure = 'STAKED_EXPENDITURE' } export type UserTokens = { @@ -10461,6 +10641,7 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; +<<<<<<< HEAD <<<<<<< HEAD export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction'; @@ -10554,37 +10735,15 @@ export type ColonyFragment = { } | null>; } | null; }; +======= +export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; -export type ColonyMetadataFragment = { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; -}; +export type ColonyFragment = { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) + +export type ColonyMetadataFragment = { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null }; +<<<<<<< HEAD export type ColonyWithRootRolesFragment = { __typename?: 'Colony'; id: string; @@ -10671,35 +10830,25 @@ export type ExpenditureFragment = { } | null>; } | null; }; +======= +export type ExpenditureBalanceFragment = { __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }; -export type ExpenditureSlotFragment = { - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; -}; +export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) + +export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; + +export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null, changelog?: Array<{ __typename?: 'StreamingPaymentChangelog', transactionHash: string, oldValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }, newValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string } }> | null }; + +export type StreamingPaymentMetadataFragment = { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null }; + +export type StreamingPaymentChangesFragment = { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }; + +export type ExtensionFragment = { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number }; -<<<<<<< HEAD -export type ExtensionFragment = { - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; -}; -======= export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; ->>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) +<<<<<<< HEAD export type ColonyMotionFragment = { __typename?: 'ColonyMotion'; id: string; @@ -10767,65 +10916,23 @@ export type ColonyMotionFragment = { finalizedAt?: string | null; }; }; +======= +export type VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) -export type VoterRecordFragment = { - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; -}; +export type StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; -export type StakerRewardFragment = { - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; -}; +export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; -export type MotionStakesFragment = { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; -}; +export type UserMotionStakesFragment = { __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }; -export type UserMotionStakesFragment = { - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }; -}; +export type DomainMetadataFragment = { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null }; -export type DomainMetadataFragment = { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; -}; +export type MultiSigUserSignatureFragment = { __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string }; -export type MultiSigUserSignatureFragment = { - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; -}; +export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; +<<<<<<< HEAD export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig'; id: string; @@ -11138,574 +11245,394 @@ export type DomainMetadataFragment = { >>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type TokenFragment = { __typename?: 'Token'; tokenAddress: string }; >>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +======= +export type TokenFragment = { __typename?: 'Token', tokenAddress: string }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type CreateColonyActionMutationVariables = Exact<{ input: CreateColonyActionInput; }>; -export type CreateColonyActionMutation = { - __typename?: 'Mutation'; - createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type CreateColonyActionMutation = { __typename?: 'Mutation', createColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type UpdateColonyActionMutationVariables = Exact<{ input: UpdateColonyActionInput; }>; -export type UpdateColonyActionMutation = { - __typename?: 'Mutation'; - updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type UpdateColonyActionMutation = { __typename?: 'Mutation', updateColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type UpdateColonyMutationVariables = Exact<{ input: UpdateColonyInput; }>; -export type UpdateColonyMutation = { - __typename?: 'Mutation'; - updateColony?: { __typename?: 'Colony'; id: string } | null; -}; + +export type UpdateColonyMutation = { __typename?: 'Mutation', updateColony?: { __typename?: 'Colony', id: string } | null }; export type UpdateColonyMetadataMutationVariables = Exact<{ input: UpdateColonyMetadataInput; }>; -export type UpdateColonyMetadataMutation = { - __typename?: 'Mutation'; - updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type UpdateColonyMetadataMutation = { __typename?: 'Mutation', updateColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type CreateColonyMutationVariables = Exact<{ input: CreateColonyInput; condition?: InputMaybe; }>; -export type CreateColonyMutation = { - __typename?: 'Mutation'; - createColony?: { __typename?: 'Colony'; id: string } | null; -}; + +export type CreateColonyMutation = { __typename?: 'Mutation', createColony?: { __typename?: 'Colony', id: string } | null }; export type CreateColonyMetadataMutationVariables = Exact<{ input: CreateColonyMetadataInput; }>; -export type CreateColonyMetadataMutation = { - __typename?: 'Mutation'; - createColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type CreateColonyMetadataMutation = { __typename?: 'Mutation', createColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type DeleteColonyMetadataMutationVariables = Exact<{ input: DeleteColonyMetadataInput; }>; -export type DeleteColonyMetadataMutation = { - __typename?: 'Mutation'; - deleteColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type DeleteColonyMetadataMutation = { __typename?: 'Mutation', deleteColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type CreateColonyMemberInviteMutationVariables = Exact<{ input: CreateColonyMemberInviteInput; condition?: InputMaybe; }>; -export type CreateColonyMemberInviteMutation = { - __typename?: 'Mutation'; - createColonyMemberInvite?: { - __typename?: 'ColonyMemberInvite'; - id: string; - } | null; -}; + +export type CreateColonyMemberInviteMutation = { __typename?: 'Mutation', createColonyMemberInvite?: { __typename?: 'ColonyMemberInvite', id: string } | null }; export type CreateColonyTokensMutationVariables = Exact<{ input: CreateColonyTokensInput; }>; -export type CreateColonyTokensMutation = { - __typename?: 'Mutation'; - createColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; -}; + +export type CreateColonyTokensMutation = { __typename?: 'Mutation', createColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; export type CreateColonyContributorMutationVariables = Exact<{ input: CreateColonyContributorInput; }>; -export type CreateColonyContributorMutation = { - __typename?: 'Mutation'; - createColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type CreateColonyContributorMutation = { __typename?: 'Mutation', createColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type UpdateColonyContributorMutationVariables = Exact<{ input: UpdateColonyContributorInput; }>; -export type UpdateColonyContributorMutation = { - __typename?: 'Mutation'; - updateColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type UpdateColonyContributorMutation = { __typename?: 'Mutation', updateColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type DeleteColonyContributorMutationVariables = Exact<{ input: DeleteColonyContributorInput; }>; -export type DeleteColonyContributorMutation = { - __typename?: 'Mutation'; - deleteColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type DeleteColonyContributorMutation = { __typename?: 'Mutation', deleteColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type CreateCurrentVersionMutationVariables = Exact<{ input: CreateCurrentVersionInput; }>; -export type CreateCurrentVersionMutation = { - __typename?: 'Mutation'; - createCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; -}; + +export type CreateCurrentVersionMutation = { __typename?: 'Mutation', createCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; export type UpdateCurrentVersionMutationVariables = Exact<{ input: UpdateCurrentVersionInput; }>; -export type UpdateCurrentVersionMutation = { - __typename?: 'Mutation'; - updateCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; -}; + +export type UpdateCurrentVersionMutation = { __typename?: 'Mutation', updateCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; export type UpdateColonyDecisionMutationVariables = Exact<{ id: Scalars['ID']; showInDecisionsList: Scalars['Boolean']; }>; -export type UpdateColonyDecisionMutation = { - __typename?: 'Mutation'; - updateColonyDecision?: { __typename?: 'ColonyDecision'; id: string } | null; -}; + +export type UpdateColonyDecisionMutation = { __typename?: 'Mutation', updateColonyDecision?: { __typename?: 'ColonyDecision', id: string } | null }; export type CreateDomainMutationVariables = Exact<{ input: CreateDomainInput; }>; -export type CreateDomainMutation = { - __typename?: 'Mutation'; - createDomain?: { __typename?: 'Domain'; id: string } | null; -}; + +export type CreateDomainMutation = { __typename?: 'Mutation', createDomain?: { __typename?: 'Domain', id: string } | null }; export type CreateDomainMetadataMutationVariables = Exact<{ input: CreateDomainMetadataInput; }>; -export type CreateDomainMetadataMutation = { - __typename?: 'Mutation'; - createDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; -}; + +export type CreateDomainMetadataMutation = { __typename?: 'Mutation', createDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; export type UpdateDomainMetadataMutationVariables = Exact<{ input: UpdateDomainMetadataInput; }>; -export type UpdateDomainMetadataMutation = { - __typename?: 'Mutation'; - updateDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; -}; + +export type UpdateDomainMetadataMutation = { __typename?: 'Mutation', updateDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; export type CreateContractEventMutationVariables = Exact<{ input: CreateContractEventInput; condition?: InputMaybe; }>; -export type CreateContractEventMutation = { - __typename?: 'Mutation'; - createContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; -}; + +export type CreateContractEventMutation = { __typename?: 'Mutation', createContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; export type CreateExpenditureMutationVariables = Exact<{ input: CreateExpenditureInput; }>; -export type CreateExpenditureMutation = { - __typename?: 'Mutation'; - createExpenditure?: { __typename?: 'Expenditure'; id: string } | null; -}; + +export type CreateExpenditureMutation = { __typename?: 'Mutation', createExpenditure?: { __typename?: 'Expenditure', id: string } | null }; export type UpdateExpenditureMutationVariables = Exact<{ input: UpdateExpenditureInput; }>; -export type UpdateExpenditureMutation = { - __typename?: 'Mutation'; - updateExpenditure?: { - __typename?: 'Expenditure'; - id: string; - ownerAddress: string; - } | null; -}; + +export type UpdateExpenditureMutation = { __typename?: 'Mutation', updateExpenditure?: { __typename?: 'Expenditure', id: string, ownerAddress: string } | null }; export type UpdateExpenditureMetadataMutationVariables = Exact<{ input: UpdateExpenditureMetadataInput; }>; -export type UpdateExpenditureMetadataMutation = { - __typename?: 'Mutation'; - updateExpenditureMetadata?: { - __typename?: 'ExpenditureMetadata'; - id: string; - } | null; -}; + +export type UpdateExpenditureMetadataMutation = { __typename?: 'Mutation', updateExpenditureMetadata?: { __typename?: 'ExpenditureMetadata', id: string } | null }; export type CreateStreamingPaymentMutationVariables = Exact<{ input: CreateStreamingPaymentInput; }>; -export type CreateStreamingPaymentMutation = { - __typename?: 'Mutation'; - createStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - } | null; -}; + +export type CreateStreamingPaymentMutation = { __typename?: 'Mutation', createStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; export type UpdateStreamingPaymentMutationVariables = Exact<{ input: UpdateStreamingPaymentInput; }>; -export type UpdateStreamingPaymentMutation = { - __typename?: 'Mutation'; - updateStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - } | null; -}; + +export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ input: UpdateStreamingPaymentMetadataInput; }>; -export type UpdateStreamingPaymentMetadataMutation = { - __typename?: 'Mutation'; - updateStreamingPaymentMetadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - } | null; -}; + +export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; -export type CreateColonyExtensionMutation = { - __typename?: 'Mutation'; - createColonyExtension?: { __typename?: 'ColonyExtension'; id: string } | null; -}; + +export type CreateColonyExtensionMutation = { __typename?: 'Mutation', createColonyExtension?: { __typename?: 'ColonyExtension', id: string } | null }; export type UpdateColonyExtensionByAddressMutationVariables = Exact<{ input: UpdateColonyExtensionInput; }>; -export type UpdateColonyExtensionByAddressMutation = { - __typename?: 'Mutation'; - updateColonyExtension?: { - __typename?: 'ColonyExtension'; - id: string; - extensionHash: string; - colonyAddress: string; - } | null; -}; + +export type UpdateColonyExtensionByAddressMutation = { __typename?: 'Mutation', updateColonyExtension?: { __typename?: 'ColonyExtension', id: string, extensionHash: string, colonyAddress: string } | null }; export type CreateExtensionInstallationsCountMutationVariables = Exact<{ input: CreateExtensionInstallationsCountInput; }>; -export type CreateExtensionInstallationsCountMutation = { - __typename?: 'Mutation'; - createExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - id: string; - } | null; -}; + +export type CreateExtensionInstallationsCountMutation = { __typename?: 'Mutation', createExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; export type UpdateExtensionInstallationsCountMutationVariables = Exact<{ input: UpdateExtensionInstallationsCountInput; }>; -export type UpdateExtensionInstallationsCountMutation = { - __typename?: 'Mutation'; - updateExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - id: string; - } | null; -}; + +export type UpdateExtensionInstallationsCountMutation = { __typename?: 'Mutation', updateExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; export type CreateColonyFundsClaimMutationVariables = Exact<{ input: CreateColonyFundsClaimInput; condition?: InputMaybe; }>; -export type CreateColonyFundsClaimMutation = { - __typename?: 'Mutation'; - createColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type CreateColonyFundsClaimMutation = { __typename?: 'Mutation', createColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type UpdateColonyFundsClaimMutationVariables = Exact<{ input: UpdateColonyFundsClaimInput; condition?: InputMaybe; }>; -export type UpdateColonyFundsClaimMutation = { - __typename?: 'Mutation'; - updateColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type UpdateColonyFundsClaimMutation = { __typename?: 'Mutation', updateColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type DeleteColonyFundsClaimMutationVariables = Exact<{ input: DeleteColonyFundsClaimInput; condition?: InputMaybe; }>; -export type DeleteColonyFundsClaimMutation = { - __typename?: 'Mutation'; - deleteColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type DeleteColonyFundsClaimMutation = { __typename?: 'Mutation', deleteColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type CreateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: CreateCurrentNetworkInverseFeeInput; }>; -export type CreateCurrentNetworkInverseFeeMutation = { - __typename?: 'Mutation'; - createCurrentNetworkInverseFee?: { - __typename?: 'CurrentNetworkInverseFee'; - id: string; - } | null; -}; + +export type CreateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', createCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; export type UpdateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: UpdateCurrentNetworkInverseFeeInput; }>; -export type UpdateCurrentNetworkInverseFeeMutation = { - __typename?: 'Mutation'; - updateCurrentNetworkInverseFee?: { - __typename?: 'CurrentNetworkInverseFee'; - id: string; - } | null; -}; + +export type UpdateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', updateCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; export type CreateColonyMotionMutationVariables = Exact<{ input: CreateColonyMotionInput; }>; -export type CreateColonyMotionMutation = { - __typename?: 'Mutation'; - createColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; -}; + +export type CreateColonyMotionMutation = { __typename?: 'Mutation', createColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; export type UpdateColonyMotionMutationVariables = Exact<{ input: UpdateColonyMotionInput; }>; -export type UpdateColonyMotionMutation = { - __typename?: 'Mutation'; - updateColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; -}; + +export type UpdateColonyMotionMutation = { __typename?: 'Mutation', updateColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; export type CreateMotionMessageMutationVariables = Exact<{ input: CreateMotionMessageInput; }>; -export type CreateMotionMessageMutation = { - __typename?: 'Mutation'; - createMotionMessage?: { __typename?: 'MotionMessage'; id: string } | null; -}; + +export type CreateMotionMessageMutation = { __typename?: 'Mutation', createMotionMessage?: { __typename?: 'MotionMessage', id: string } | null }; export type CreateUserVoterRewardMutationVariables = Exact<{ input: CreateVoterRewardsHistoryInput; }>; -export type CreateUserVoterRewardMutation = { - __typename?: 'Mutation'; - createVoterRewardsHistory?: { - __typename?: 'VoterRewardsHistory'; - id: string; - } | null; -}; -<<<<<<< HEAD + +export type CreateUserVoterRewardMutation = { __typename?: 'Mutation', createVoterRewardsHistory?: { __typename?: 'VoterRewardsHistory', id: string } | null }; export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; }>; -export type CreateColonyMultiSigMutation = { - __typename?: 'Mutation'; - createColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; -}; + +export type CreateColonyMultiSigMutation = { __typename?: 'Mutation', createColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; export type UpdateColonyMultiSigMutationVariables = Exact<{ input: UpdateColonyMultiSigInput; }>; -export type UpdateColonyMultiSigMutation = { - __typename?: 'Mutation'; - updateColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; -}; + +export type UpdateColonyMultiSigMutation = { __typename?: 'Mutation', updateColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; export type CreateMultiSigVoteMutationVariables = Exact<{ input: CreateMultiSigUserSignatureInput; }>; -export type CreateMultiSigVoteMutation = { - __typename?: 'Mutation'; - createMultiSigUserSignature?: { - __typename?: 'MultiSigUserSignature'; - id: string; - } | null; -}; + +export type CreateMultiSigVoteMutation = { __typename?: 'Mutation', createMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; export type RemoveMultiSigVoteMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type RemoveMultiSigVoteMutation = { - __typename?: 'Mutation'; - deleteMultiSigUserSignature?: { - __typename?: 'MultiSigUserSignature'; - id: string; - } | null; -}; + +export type RemoveMultiSigVoteMutation = { __typename?: 'Mutation', deleteMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; export type RemoveMultiSigRoleMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type RemoveMultiSigRoleMutation = { - __typename?: 'Mutation'; - deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + +export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation', deleteColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; }>; -export type CreateColonyRoleMutation = { - __typename?: 'Mutation'; - createColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; + +export type CreateColonyRoleMutation = { __typename?: 'Mutation', createColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type UpdateColonyRoleMutationVariables = Exact<{ input: UpdateColonyRoleInput; }>; -export type UpdateColonyRoleMutation = { - __typename?: 'Mutation'; - updateColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; + +export type UpdateColonyRoleMutation = { __typename?: 'Mutation', updateColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type CreateColonyHistoricRoleMutationVariables = Exact<{ input: CreateColonyHistoricRoleInput; }>; -export type CreateColonyHistoricRoleMutation = { - __typename?: 'Mutation'; - createColonyHistoricRole?: { - __typename?: 'ColonyHistoricRole'; - id: string; - } | null; -}; + +export type CreateColonyHistoricRoleMutation = { __typename?: 'Mutation', createColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; export type UpdateReputationMiningCycleMetadataMutationVariables = Exact<{ input: UpdateReputationMiningCycleMetadataInput; }>; -export type UpdateReputationMiningCycleMetadataMutation = { - __typename?: 'Mutation'; - updateReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type UpdateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', updateReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type CreateReputationMiningCycleMetadataMutationVariables = Exact<{ input: CreateReputationMiningCycleMetadataInput; }>; -export type CreateReputationMiningCycleMetadataMutation = { - __typename?: 'Mutation'; - createReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type CreateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', createReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type CreateUserStakeMutationVariables = Exact<{ input: CreateUserStakeInput; }>; -export type CreateUserStakeMutation = { - __typename?: 'Mutation'; - createUserStake?: { __typename?: 'UserStake'; id: string } | null; -}; + +export type CreateUserStakeMutation = { __typename?: 'Mutation', createUserStake?: { __typename?: 'UserStake', id: string } | null }; export type UpdateUserStakeMutationVariables = Exact<{ input: UpdateUserStakeInput; }>; -export type UpdateUserStakeMutation = { - __typename?: 'Mutation'; - updateUserStake?: { __typename?: 'UserStake'; id: string } | null; -}; + +export type UpdateUserStakeMutation = { __typename?: 'Mutation', updateUserStake?: { __typename?: 'UserStake', id: string } | null }; export type CreateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; -export type CreateStatsMutation = { - __typename?: 'Mutation'; - createIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; -}; + +export type CreateStatsMutation = { __typename?: 'Mutation', createIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; export type UpdateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; -export type UpdateStatsMutation = { - __typename?: 'Mutation'; - updateIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; -}; + +export type UpdateStatsMutation = { __typename?: 'Mutation', updateIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; export type DeleteColonyTokensMutationVariables = Exact<{ input: DeleteColonyTokensInput; }>; -export type DeleteColonyTokensMutation = { - __typename?: 'Mutation'; - deleteColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; -}; + +export type DeleteColonyTokensMutation = { __typename?: 'Mutation', deleteColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; export type GetColonyActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; -export type GetColonyActionQuery = { - __typename?: 'Query'; - getColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type GetColonyActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type GetColonyArbitraryTransactionActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; @@ -11728,125 +11655,36 @@ export type GetMotionIdFromActionQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetMotionIdFromActionQuery = { - __typename?: 'Query'; - getColonyAction?: { - __typename?: 'ColonyAction'; - motionData?: { __typename?: 'ColonyMotion'; id: string } | null; - } | null; -}; + +export type GetMotionIdFromActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', motionData?: { __typename?: 'ColonyMotion', id: string } | null } | null }; export type GetActionIdFromAnnotationQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetActionIdFromAnnotationQuery = { - __typename?: 'Query'; - getAnnotation?: { __typename?: 'Annotation'; actionId: string } | null; -}; + +export type GetActionIdFromAnnotationQuery = { __typename?: 'Query', getAnnotation?: { __typename?: 'Annotation', actionId: string } | null }; export type GetActionByIdQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetActionByIdQuery = { - __typename?: 'Query'; - getColonyAction?: { - __typename?: 'ColonyAction'; - id: string; - type: ColonyActionType; - expenditureSlotChanges?: { - __typename?: 'ExpenditureSlotChanges'; - oldSlots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - newSlots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - } | null; - } | null; -}; + +export type GetActionByIdQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, type: ColonyActionType, expenditureSlotChanges?: { __typename?: 'ExpenditureSlotChanges', oldSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, newSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }> } | null } | null }; export type GetColonyMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyMetadataQuery = { - __typename?: 'Query'; - getColonyMetadata?: { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - etherealData?: { - __typename?: 'ColonyMetadataEtherealData'; - colonyAvatar?: string | null; - colonyDisplayName: string; - colonyName: string; - colonyThumbnail?: string | null; - initiatorAddress: string; - tokenAvatar?: string | null; - tokenThumbnail?: string | null; - } | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; -<<<<<<< HEAD - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; -<<<<<<< HEAD - hasObjectiveChanged?: boolean | null; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - }> | null; - } | null; -}; + +export type GetColonyMetadataQuery = { __typename?: 'Query', getColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, etherealData?: { __typename?: 'ColonyMetadataEtherealData', colonyAvatar?: string | null, colonyDisplayName: string, colonyName: string, colonyThumbnail?: string | null, initiatorAddress: string, tokenAvatar?: string | null, tokenThumbnail?: string | null } | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; export type GetColonyQueryVariables = Exact<{ id: Scalars['ID']; nextToken?: InputMaybe; }>; +<<<<<<< HEAD export type GetColonyQuery = { __typename?: 'Query'; getColony?: { @@ -11890,18 +11728,17 @@ export type GetColonyQuery = { items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; } | null; }; +======= + +export type GetColonyQuery = { __typename?: 'Query', getColony?: { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null } | null, getColonyByAddress?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null, getColonyByType?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyByNameQueryVariables = Exact<{ name: Scalars['String']; }>; -export type GetColonyByNameQuery = { - __typename?: 'Query'; - getColonyByName?: { - __typename?: 'ModelColonyConnection'; - items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; - } | null; -}; + +export type GetColonyByNameQuery = { __typename?: 'Query', getColonyByName?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nativeTokenId: Scalars['ID']; @@ -11909,44 +11746,15 @@ export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type GetColonyByNativeTokenIdQuery = { - __typename?: 'Query'; - getColoniesByNativeTokenId?: { - __typename?: 'ModelColonyConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Colony'; - id: string; - status?: { - __typename?: 'ColonyStatus'; - recovery?: boolean | null; - nativeToken?: { - __typename?: 'NativeTokenStatus'; - unlocked?: boolean | null; - unlockable?: boolean | null; - mintable?: boolean | null; - } | null; - } | null; - } | null>; - } | null; -}; + +export type GetColonyByNativeTokenIdQuery = { __typename?: 'Query', getColoniesByNativeTokenId?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, status?: { __typename?: 'ColonyStatus', recovery?: boolean | null, nativeToken?: { __typename?: 'NativeTokenStatus', unlocked?: boolean | null, unlockable?: boolean | null, mintable?: boolean | null } | null } | null } | null> } | null }; export type ListColoniesQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type ListColoniesQuery = { - __typename?: 'Query'; - listColonies?: { - __typename?: 'ModelColonyConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Colony'; - id: string; - nativeTokenId: string; - } | null>; - } | null; -}; + +export type ListColoniesQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, nativeTokenId: string } | null> } | null }; export type ListColoniesWithRootPermissionHoldersQueryVariables = Exact<{ nextToken?: InputMaybe; @@ -11993,14 +11801,8 @@ export type GetColonyContributorQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyContributorQuery = { - __typename?: 'Query'; - getColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - isVerified: boolean; - } | null; -}; + +export type GetColonyContributorQuery = { __typename?: 'Query', getColonyContributor?: { __typename?: 'ColonyContributor', id: string, isVerified: boolean } | null }; export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -12036,115 +11838,50 @@ export type GetCurrentVersionQueryVariables = Exact<{ key: Scalars['String']; }>; -export type GetCurrentVersionQuery = { - __typename?: 'Query'; - getCurrentVersionByKey?: { - __typename?: 'ModelCurrentVersionConnection'; - items: Array<{ - __typename?: 'CurrentVersion'; - id: string; - version: number; - } | null>; - } | null; -}; + +export type GetCurrentVersionQuery = { __typename?: 'Query', getCurrentVersionByKey?: { __typename?: 'ModelCurrentVersionConnection', items: Array<{ __typename?: 'CurrentVersion', id: string, version: number } | null> } | null }; export type GetColonyDecisionByActionIdQueryVariables = Exact<{ actionId: Scalars['ID']; }>; -export type GetColonyDecisionByActionIdQuery = { - __typename?: 'Query'; - getColonyDecisionByActionId?: { - __typename?: 'ModelColonyDecisionConnection'; - items: Array<{ __typename?: 'ColonyDecision'; id: string } | null>; - } | null; -}; + +export type GetColonyDecisionByActionIdQuery = { __typename?: 'Query', getColonyDecisionByActionId?: { __typename?: 'ModelColonyDecisionConnection', items: Array<{ __typename?: 'ColonyDecision', id: string } | null> } | null }; export type GetDomainMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetDomainMetadataQuery = { - __typename?: 'Query'; - getDomainMetadata?: { - __typename?: 'DomainMetadata'; - color: DomainColor; - description?: string | null; - id: string; - name: string; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - newColor: DomainColor; - newDescription?: string | null; - newName: string; - oldColor: DomainColor; - oldDescription?: string | null; - oldName: string; - transactionHash: string; - }> | null; - } | null; -}; -<<<<<<< HEAD + +export type GetDomainMetadataQuery = { __typename?: 'Query', getDomainMetadata?: { __typename?: 'DomainMetadata', color: DomainColor, description?: string | null, id: string, name: string, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', newColor: DomainColor, newDescription?: string | null, newName: string, oldColor: DomainColor, oldDescription?: string | null, oldName: string, transactionHash: string }> | null } | null }; export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; colonyAddress: Scalars['ID']; }>; -export type GetDomainByNativeSkillIdQuery = { - __typename?: 'Query'; - getDomainByNativeSkillId?: { - __typename?: 'ModelDomainConnection'; - items: Array<{ - __typename?: 'Domain'; - id: string; - nativeSkillId: string; - nativeId: number; - } | null>; - } | null; -}; + +export type GetDomainByNativeSkillIdQuery = { __typename?: 'Query', getDomainByNativeSkillId?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string, nativeId: number } | null> } | null }; export type GetDomainsByExtensionAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; -export type GetDomainsByExtensionAddressQuery = { - __typename?: 'Query'; - listColonyExtensions?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ - __typename?: 'ColonyExtension'; - colony: { - __typename?: 'Colony'; - id: string; - domains?: { - __typename?: 'ModelDomainConnection'; - items: Array<{ - __typename?: 'Domain'; - nativeSkillId: string; - nativeId: number; - } | null>; - } | null; - }; - } | null>; - } | null; -}; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + +export type GetDomainsByExtensionAddressQuery = { __typename?: 'Query', listColonyExtensions?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', colony: { __typename?: 'Colony', id: string, domains?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', nativeSkillId: string, nativeId: number } | null> } | null } } | null> } | null }; export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetContractEventQuery = { - __typename?: 'Query'; - getContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; -}; + +export type GetContractEventQuery = { __typename?: 'Query', getContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; export type GetExpenditureQueryVariables = Exact<{ id: Scalars['ID']; }>; +<<<<<<< HEAD export type GetExpenditureQuery = { __typename?: 'Query'; getExpenditure?: { @@ -12198,12 +11935,17 @@ export type GetExpenditureQuery = { } | null; } | null; }; +======= + +export type GetExpenditureQuery = { __typename?: 'Query', getExpenditure?: { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetExpenditureByNativeFundingPotIdAndColonyQueryVariables = Exact<{ nativeFundingPotId: Scalars['Int']; colonyAddress: Scalars['ID']; }>; +<<<<<<< HEAD export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query'; getExpendituresByNativeFundingPotIdAndColony?: { @@ -12263,164 +12005,68 @@ export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { } | null>; } | null; }; +======= + +export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query', getExpendituresByNativeFundingPotIdAndColony?: { __typename?: 'ModelExpenditureConnection', items: Array<{ __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetStreamingPaymentQuery = { - __typename?: 'Query'; - getStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; -<<<<<<< HEAD - endTime: string; - tokenAddress: string; - amount: string; -======= - startTime: string; - endTime: string; - tokenAddress: string; - amount: string; - interval: string; - metadata?: { - __typename?: 'StreamingPaymentMetadata'; - endCondition: StreamingPaymentEndCondition; - } | null; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - claims?: Array<{ - __typename?: 'StreamingPaymentClaim'; - amount: string; - timestamp: string; - }> | null; - } | null; -}; -export type GetPendingStreamingPaymentMetadataQueryVariables = Exact<{ +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null, changelog?: Array<{ __typename?: 'StreamingPaymentChangelog', transactionHash: string, oldValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }, newValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string } }> | null } | null }; + +export type GetStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetPendingStreamingPaymentMetadataQuery = { - __typename?: 'Query'; - getPendingStreamingPaymentMetadata?: { - __typename?: 'PendingStreamingPaymentMetadata'; - id: string; - endCondition: StreamingPaymentEndCondition; - } | null; -}; + +export type GetStreamingPaymentMetadataQuery = { __typename?: 'Query', getStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyExtensionQuery = { - __typename?: 'Query'; - getColonyExtension?: { - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null; -}; + +export type GetColonyExtensionQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null }; export type GetColonyExtensionsByColonyAddressQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetColonyExtensionsByColonyAddressQuery = { - __typename?: 'Query'; - getExtensionByColonyAndHash?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null>; - } | null; -}; + +export type GetColonyExtensionsByColonyAddressQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; export type ListExtensionsQueryVariables = Exact<{ hash: Scalars['String']; nextToken?: InputMaybe; }>; -export type ListExtensionsQuery = { - __typename?: 'Query'; - getExtensionsByHash?: { - __typename?: 'ModelColonyExtensionConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null>; - } | null; -}; + +export type ListExtensionsQuery = { __typename?: 'Query', getExtensionsByHash?: { __typename?: 'ModelColonyExtensionConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; export type GetColonyExtensionByHashAndColonyQueryVariables = Exact<{ colonyAddress: Scalars['ID']; extensionHash: Scalars['String']; }>; -export type GetColonyExtensionByHashAndColonyQuery = { - __typename?: 'Query'; - getExtensionByColonyAndHash?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ __typename?: 'ColonyExtension'; id: string } | null>; - } | null; -}; + +export type GetColonyExtensionByHashAndColonyQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string } | null> } | null }; export type GetExtensionInstallationsCountQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetExtensionInstallationsCountQuery = { - __typename?: 'Query'; - getExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - oneTxPayment: number; - stakedExpenditure: number; - stagedExpenditure: number; - streamingPayments: number; - reputationWeighted: number; -<<<<<<< HEAD - multiSigPermissions: number; - } | null; -}; + +export type GetExtensionInstallationsCountQuery = { __typename?: 'Query', getExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', oneTxPayment: number, stakedExpenditure: number, stagedExpenditure: number, streamingPayments: number, reputationWeighted: number, multiSigPermissions: number } | null }; export type GetColonyExtensionByAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; -export type GetColonyExtensionByAddressQuery = { - __typename?: 'Query'; - getColonyExtension?: { - __typename?: 'ColonyExtension'; - colonyId: string; - params?: { - __typename?: 'ExtensionParams'; - multiSig?: { - __typename?: 'MultiSigParams'; - colonyThreshold: number; - domainThresholds?: Array<{ - __typename?: 'MultiSigDomainConfig'; - domainId: string; - domainThreshold: number; - } | null> | null; - } | null; - } | null; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - } | null; -}; + +export type GetColonyExtensionByAddressQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', colonyId: string, params?: { __typename?: 'ExtensionParams', multiSig?: { __typename?: 'MultiSigParams', colonyThreshold: number, domainThresholds?: Array<{ __typename?: 'MultiSigDomainConfig', domainId: string, domainThreshold: number } | null> | null } | null } | null } | null }; export type GetColonyUnclaimedFundsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -12428,6 +12074,7 @@ export type GetColonyUnclaimedFundsQueryVariables = Exact<{ upToBlock?: InputMaybe; }>; +<<<<<<< HEAD export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query'; listColonyFundsClaims?: { @@ -12440,36 +12087,28 @@ export type GetColonyUnclaimedFundsQuery = { } | null>; } | null; }; +======= + +export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query', listColonyFundsClaims?: { __typename?: 'ModelColonyFundsClaimConnection', items: Array<{ __typename?: 'ColonyFundsClaim', id: string } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyUnclaimedFundQueryVariables = Exact<{ claimId: Scalars['ID']; }>; -export type GetColonyUnclaimedFundQuery = { - __typename?: 'Query'; - getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim'; id: string } | null; -}; -export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ - [key: string]: never; -}>; +export type GetColonyUnclaimedFundQuery = { __typename?: 'Query', getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; + +export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCurrentNetworkInverseFeeQuery = { - __typename?: 'Query'; - listCurrentNetworkInverseFees?: { - __typename?: 'ModelCurrentNetworkInverseFeeConnection'; - items: Array<{ - __typename?: 'CurrentNetworkInverseFee'; - id: string; - inverseFee: string; - } | null>; - } | null; -}; + +export type GetCurrentNetworkInverseFeeQuery = { __typename?: 'Query', listCurrentNetworkInverseFees?: { __typename?: 'ModelCurrentNetworkInverseFeeConnection', items: Array<{ __typename?: 'CurrentNetworkInverseFee', id: string, inverseFee: string } | null> } | null }; export type GetColonyActionByMotionIdQueryVariables = Exact<{ motionId: Scalars['ID']; }>; +<<<<<<< HEAD export type GetColonyActionByMotionIdQuery = { __typename?: 'Query'; getColonyActionByMotionId?: { @@ -12544,11 +12183,16 @@ export type GetColonyActionByMotionIdQuery = { } | null>; } | null; }; +======= + +export type GetColonyActionByMotionIdQuery = { __typename?: 'Query', getColonyActionByMotionId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD ======= @@ -12641,31 +12285,23 @@ export type GetColonyMotionQuery = { }; <<<<<<< HEAD ======= +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; ->>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; }>; -export type GetVoterRewardsQuery = { - __typename?: 'Query'; - getVoterRewards?: { - __typename?: 'VoterRewardsReturn'; - min: string; - max: string; - reward: string; - } | null; -}; -<<<<<<< HEAD + +export type GetVoterRewardsQuery = { __typename?: 'Query', getVoterRewards?: { __typename?: 'VoterRewardsReturn', min: string, max: string, reward: string } | null }; export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; }>; +<<<<<<< HEAD export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query'; getColonyActionByMultiSigId?: { @@ -12734,11 +12370,16 @@ export type GetColonyActionByMultiSigIdQuery = { } | null>; } | null; }; +======= + +export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query', getColonyActionByMultiSigId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null } | null> } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyMultiSigQueryVariables = Exact<{ id: Scalars['ID']; }>; +<<<<<<< HEAD export type GetColonyMultiSigQuery = { __typename?: 'Query'; getColonyMultiSig?: { @@ -12776,6 +12417,10 @@ export type GetColonyMultiSigQuery = { action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; } | null; }; +======= + +export type GetColonyMultiSigQuery = { __typename?: 'Query', getColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null } | null }; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetUserMultiSigSignatureQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -12784,155 +12429,77 @@ export type GetUserMultiSigSignatureQueryVariables = Exact<{ role: Scalars['Int']; }>; -export type GetUserMultiSigSignatureQuery = { - __typename?: 'Query'; - getMultiSigUserSignatureByMultiSigId?: { - __typename?: 'ModelMultiSigUserSignatureConnection'; - items: Array<{ - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; - } | null>; - } | null; -}; + +export type GetUserMultiSigSignatureQuery = { __typename?: 'Query', getMultiSigUserSignatureByMultiSigId?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; export type GetAllMultiSigRolesQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetAllMultiSigRolesQuery = { - __typename?: 'Query'; - getRoleByColony?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ __typename?: 'ColonyRole'; id: string } | null>; - } | null; -}; + +export type GetAllMultiSigRolesQuery = { __typename?: 'Query', getRoleByColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string } | null> } | null }; export type GetActiveColonyMultisigsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetActiveColonyMultisigsQuery = { - __typename?: 'Query'; - getMultiSigByColonyAddress?: { - __typename?: 'ModelColonyMultiSigConnection'; - items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; - } | null; -}; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) + +export type GetActiveColonyMultisigsQuery = { __typename?: 'Query', getMultiSigByColonyAddress?: { __typename?: 'ModelColonyMultiSigConnection', items: Array<{ __typename?: 'ColonyMultiSig', id: string } | null> } | null }; export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyRoleQuery = { - __typename?: 'Query'; - getColonyRole?: { - __typename?: 'ColonyRole'; - id: string; - latestBlock: number; - role_0?: boolean | null; - role_1?: boolean | null; - role_2?: boolean | null; - role_3?: boolean | null; - role_5?: boolean | null; - role_6?: boolean | null; - } | null; -}; + +export type GetColonyRoleQuery = { __typename?: 'Query', getColonyRole?: { __typename?: 'ColonyRole', id: string, latestBlock: number, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null }; export type GetAllColonyRolesQueryVariables = Exact<{ targetAddress: Scalars['ID']; colonyAddress: Scalars['ID']; }>; -export type GetAllColonyRolesQuery = { - __typename?: 'Query'; - getRoleByTargetAddressAndColony?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ - __typename?: 'ColonyRole'; - id: string; - role_0?: boolean | null; - role_1?: boolean | null; - role_2?: boolean | null; - role_3?: boolean | null; - role_5?: boolean | null; - role_6?: boolean | null; - } | null>; - } | null; -}; + +export type GetAllColonyRolesQuery = { __typename?: 'Query', getRoleByTargetAddressAndColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null> } | null }; export type GetColonyHistoricRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyHistoricRoleQuery = { - __typename?: 'Query'; - getColonyHistoricRole?: { - __typename?: 'ColonyHistoricRole'; - id: string; - } | null; -}; + +export type GetColonyHistoricRoleQuery = { __typename?: 'Query', getColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; export type GetReputationMiningCycleMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetReputationMiningCycleMetadataQuery = { - __typename?: 'Query'; - getReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type GetReputationMiningCycleMetadataQuery = { __typename?: 'Query', getReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type GetSafeTransactionByTransactionHashQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; -export type GetSafeTransactionByTransactionHashQuery = { - __typename?: 'Query'; - getSafeTransaction?: { __typename?: 'SafeTransaction'; id: string } | null; -}; + +export type GetSafeTransactionByTransactionHashQuery = { __typename?: 'Query', getSafeTransaction?: { __typename?: 'SafeTransaction', id: string } | null }; export type GetUserStakeQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetUserStakeQuery = { - __typename?: 'Query'; - getUserStake?: { - __typename?: 'UserStake'; - id: string; - amount: string; - } | null; -}; -export type GetStatsQueryVariables = Exact<{ [key: string]: never }>; +export type GetUserStakeQuery = { __typename?: 'Query', getUserStake?: { __typename?: 'UserStake', id: string, amount: string } | null }; -export type GetStatsQuery = { - __typename?: 'Query'; - getIngestorStats?: { __typename?: 'IngestorStats'; value: string } | null; -}; +export type GetStatsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetStatsQuery = { __typename?: 'Query', getIngestorStats?: { __typename?: 'IngestorStats', value: string } | null }; export type GetTokenFromEverywhereQueryVariables = Exact<{ input: TokenFromEverywhereArguments; }>; -export type GetTokenFromEverywhereQuery = { - __typename?: 'Query'; - getTokenFromEverywhere?: { - __typename?: 'TokenFromEverywhereReturn'; - items?: Array<{ __typename?: 'Token'; id: string } | null> | null; - } | null; -}; +<<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD export type GetTokenByAddressQueryVariables = Exact<{ @@ -12979,93 +12546,55 @@ export type GetNotificationUsersQuery = { >>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) ======= >>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { - transactionHash - oldName - newName - oldColor - newColor - oldDescription - newDescription - } - } ======= -export const Token = gql` - fragment Token on Token { - tokenAddress: id - } -`; -export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token - } - tokens { - items { - id - tokenAddress: tokenID - } - } - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay - } - isClaimed - } - } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId - } - nextToken - } +export type GetTokenFromEverywhereQuery = { __typename?: 'Query', getTokenFromEverywhere?: { __typename?: 'TokenFromEverywhereReturn', items?: Array<{ __typename?: 'Token', id: string } | null> | null } | null }; + +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) +export const DomainMetadata = gql` + fragment DomainMetadata on DomainMetadata { + name + color + description + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription } - ${Token} ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -`; +} + `; export const ColonyMetadata = gql` - fragment ColonyMetadata on ColonyMetadata { - id - displayName - avatar - thumbnail + fragment ColonyMetadata on ColonyMetadata { + id + displayName + avatar + thumbnail + description + externalLinks { + name + link + } + objective { + title description - externalLinks { - name - link - } -<<<<<<< HEAD - objective { - title - description - progress - } -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) - changelog { - transactionHash - oldDisplayName - newDisplayName - hasAvatarChanged - hasDescriptionChanged - haveExternalLinksChanged -<<<<<<< HEAD - hasObjectiveChanged - } + progress } -`; + changelog { + transactionHash + oldDisplayName + newDisplayName + hasAvatarChanged + hasDescriptionChanged + haveExternalLinksChanged + hasObjectiveChanged + } +} + `; export const ActionMetadataInfo = gql` +<<<<<<< HEAD fragment ActionMetadataInfo on ColonyAction { id pendingDomainMetadata { @@ -13086,47 +12615,49 @@ export const ActionMetadataInfo = gql` recipientAddress } members - } - ${DomainMetadata} - ${ColonyMetadata} -`; +======= + fragment ActionMetadataInfo on ColonyAction { + id + pendingDomainMetadata { + ...DomainMetadata +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) + } + pendingColonyMetadata { + ...ColonyMetadata + } + colonyDecisionId + amount + networkFee + type +} + ${DomainMetadata} +${ColonyMetadata}`; export const Token = gql` +<<<<<<< HEAD fragment Token on Token { tokenAddress: id symbol } `; +======= + fragment Token on Token { + tokenAddress: id +} + `; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token - } - tokens { - items { - id - tokenAddress: tokenID - } - } - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay - } - isClaimed - } - } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId - } - nextToken + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token + } + tokens { + items { + id + tokenAddress: tokenID } } +<<<<<<< HEAD ${Token} `; <<<<<<< HEAD @@ -13177,37 +12708,123 @@ export const ExpenditureSlot = gql` payouts { tokenAddress amount +======= + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay + } +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) isClaimed - networkFee } } -`; -export const ExpenditureBalance = gql` - fragment ExpenditureBalance on ExpenditureBalance { + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId + } + nextToken + } +} + ${Token}`; +export const ExpenditureSlot = gql` + fragment ExpenditureSlot on ExpenditureSlot { + id + recipientAddress + claimDelay + payoutModifier + payouts { tokenAddress amount + isClaimed + networkFee } -`; +} + `; +export const ExpenditureBalance = gql` + fragment ExpenditureBalance on ExpenditureBalance { + tokenAddress + amount +} + `; export const Expenditure = gql` - fragment Expenditure on Expenditure { - id - slots { - ...ExpenditureSlot - } - motions { - items { - transactionHash - action { - type - } + fragment Expenditure on Expenditure { + id + slots { + ...ExpenditureSlot + } + motions { + items { + transactionHash + action { + type } } - balances { - ...ExpenditureBalance + } + balances { + ...ExpenditureBalance + } + status + ownerAddress + userStakeId + createdAt + firstEditTransactionHash + type +} + ${ExpenditureSlot} +${ExpenditureBalance}`; +export const StreamingPaymentMetadata = gql` + fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } +} + `; +export const StreamingPaymentChanges = gql` + fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount +} + `; +export const StreamingPayment = gql` + fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp + } + changelog { + transactionHash + oldValues { + ...StreamingPaymentChanges } +<<<<<<< HEAD metadata { distributionType } +======= + newValues { + ...StreamingPaymentChanges + } +<<<<<<< HEAD +>>>>>>> 0b8ef143 (Feat: Added changelog to streaming payment and streaming payment metadata) status ownerAddress userStakeId @@ -13221,117 +12838,96 @@ export const Expenditure = gql` id } } +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } - ${ExpenditureSlot} - ${ExpenditureBalance} -`; +} + ${StreamingPaymentMetadata} +${StreamingPaymentChanges}`; export const Extension = gql` - fragment Extension on ColonyExtension { - id - hash - colonyId - isInitialized - version - } -`; + fragment Extension on ColonyExtension { + id + hash + colonyId + isInitialized + version +} + `; export const MotionStakes = gql` - fragment MotionStakes on MotionStakes { + fragment MotionStakes on MotionStakes { + raw { + nay + yay + } + percentage { + nay + yay + } +} + `; +export const UserMotionStakes = gql` + fragment UserMotionStakes on UserMotionStakes { + address + stakes { raw { - nay yay + nay } percentage { - nay yay + nay } } -`; -export const UserMotionStakes = gql` - fragment UserMotionStakes on UserMotionStakes { - address - stakes { - raw { -<<<<<<< HEAD - yay - nay - } - percentage { - yay - nay - } - } - } -`; +} + `; export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay - } - isClaimed + fragment StakerReward on StakerRewards { + address + rewards { + yay + nay } -`; + isClaimed +} + `; export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote - } -`; + fragment VoterRecord on VoterRecord { + address + voteCount + vote +} + `; export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } -<<<<<<< HEAD - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward - } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay - } - percentage { - yay - nay - } + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes + } + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes + } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt + percentage { + yay + nay } - isDecision -======= } repSubmitted skillRep @@ -13360,6 +12956,7 @@ export const ColonyMotion = gql` ${UserMotionStakes} ${StakerReward} ${VoterRecord}`; +<<<<<<< HEAD export const DomainMetadata = gql` fragment DomainMetadata on DomainMetadata { name @@ -13375,35 +12972,37 @@ export const DomainMetadata = gql` ${StakerReward} ${VoterRecord} `; +======= +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const MultiSigUserSignature = gql` - fragment MultiSigUserSignature on MultiSigUserSignature { - id - multiSigId - role - colonyAddress - userAddress - vote - createdAt - } -`; + fragment MultiSigUserSignature on MultiSigUserSignature { + id + multiSigId + role + colonyAddress + userAddress + vote + createdAt +} + `; export const ColonyMultiSig = gql` - fragment ColonyMultiSig on ColonyMultiSig { - id - colonyAddress - nativeMultiSigId - multiSigDomainId - nativeMultiSigDomainId - requiredPermissions - transactionHash - isExecuted - isRejected - isDecision - hasActionCompleted - signatures { - items { - ...MultiSigUserSignature - } + fragment ColonyMultiSig on ColonyMultiSig { + id + colonyAddress + nativeMultiSigId + multiSigDomainId + nativeMultiSigDomainId + requiredPermissions + transactionHash + isExecuted + isRejected + isDecision + hasActionCompleted + signatures { + items { + ...MultiSigUserSignature } +<<<<<<< HEAD executedAt executedBy rejectedAt @@ -13426,188 +13025,185 @@ export const NotificationUser = gql` } ${NotificationsData} `; +======= + } + executedAt + executedBy + rejectedAt + rejectedBy + createdAt +} + ${MultiSigUserSignature}`; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id - } + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id } -`; +} + `; export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id - } + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id } -`; +} + `; export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id - } + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id } -`; +} + `; export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id - } + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id } -`; +} + `; export const CreateColonyDocument = gql` - mutation CreateColony( - $input: CreateColonyInput! - $condition: ModelColonyConditionInput - ) { - createColony(input: $input, condition: $condition) { - id - } + mutation CreateColony($input: CreateColonyInput!, $condition: ModelColonyConditionInput) { + createColony(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id - } + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id } -`; +} + `; export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id - } + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id } -`; +} + `; export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite( - $input: CreateColonyMemberInviteInput! - $condition: ModelColonyMemberInviteConditionInput - ) { - createColonyMemberInvite(input: $input, condition: $condition) { - id - } + mutation CreateColonyMemberInvite($input: CreateColonyMemberInviteInput!, $condition: ModelColonyMemberInviteConditionInput) { + createColonyMemberInvite(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id - } + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id } -`; +} + `; export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id - } + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id } -`; +} + `; export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id - } + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id } -`; +} + `; export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id - } + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id } -`; +} + `; export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id - } + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id } -`; +} + `; export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id - } + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id } -`; +} + `; export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: { id: $id, showInDecisionsList: $showInDecisionsList } - ) { - id - } + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: {id: $id, showInDecisionsList: $showInDecisionsList} + ) { + id } -`; +} + `; export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id - } + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id } -`; +} + `; export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id - } + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id } -`; +} + `; export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id - } + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id } -`; +} + `; export const CreateContractEventDocument = gql` - mutation CreateContractEvent( - $input: CreateContractEventInput! - $condition: ModelContractEventConditionInput - ) { - createContractEvent(input: $input, condition: $condition) { - id - } + mutation CreateContractEvent($input: CreateContractEventInput!, $condition: ModelContractEventConditionInput) { + createContractEvent(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id - } + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id } -`; +} + `; export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress - } + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress } -`; +} + `; export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id - } + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id } -`; +} + `; export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id - } + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id } -`; +} + `; export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id - } + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id } -<<<<<<< HEAD -`; -======= } `; export const UpdateStreamingPaymentMetadataDocument = gql` @@ -13617,232 +13213,210 @@ export const UpdateStreamingPaymentMetadataDocument = gql` } } `; ->>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id - } + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id } -`; +} + `; export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId - } + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId } -`; +} + `; export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount( - $input: CreateExtensionInstallationsCountInput! - ) { - createExtensionInstallationsCount(input: $input) { - id - } + mutation CreateExtensionInstallationsCount($input: CreateExtensionInstallationsCountInput!) { + createExtensionInstallationsCount(input: $input) { + id } -`; +} + `; export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount( - $input: UpdateExtensionInstallationsCountInput! - ) { - updateExtensionInstallationsCount(input: $input) { - id - } + mutation UpdateExtensionInstallationsCount($input: UpdateExtensionInstallationsCountInput!) { + updateExtensionInstallationsCount(input: $input) { + id } -`; +} + `; export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim( - $input: CreateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - createColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation CreateColonyFundsClaim($input: CreateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + createColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim( - $input: UpdateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation UpdateColonyFundsClaim($input: UpdateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim( - $input: DeleteColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation DeleteColonyFundsClaim($input: DeleteColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee( - $input: CreateCurrentNetworkInverseFeeInput! - ) { - createCurrentNetworkInverseFee(input: $input) { - id - } + mutation CreateCurrentNetworkInverseFee($input: CreateCurrentNetworkInverseFeeInput!) { + createCurrentNetworkInverseFee(input: $input) { + id } -`; +} + `; export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee( - $input: UpdateCurrentNetworkInverseFeeInput! - ) { - updateCurrentNetworkInverseFee(input: $input) { - id - } + mutation UpdateCurrentNetworkInverseFee($input: UpdateCurrentNetworkInverseFeeInput!) { + updateCurrentNetworkInverseFee(input: $input) { + id } -`; +} + `; export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id - } + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id } -`; +} + `; export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id - } + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id } -`; +} + `; export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id - } + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id } -`; +} + `; export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id - } + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id } -`; +} + `; export const CreateColonyMultiSigDocument = gql` - mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { - createColonyMultiSig(input: $input) { - id - } + mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { + createColonyMultiSig(input: $input) { + id } -`; +} + `; export const UpdateColonyMultiSigDocument = gql` - mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { - updateColonyMultiSig(input: $input) { - id - } + mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { + updateColonyMultiSig(input: $input) { + id } -`; +} + `; export const CreateMultiSigVoteDocument = gql` - mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { - createMultiSigUserSignature(input: $input) { - id - } + mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { + createMultiSigUserSignature(input: $input) { + id } -`; +} + `; export const RemoveMultiSigVoteDocument = gql` - mutation RemoveMultiSigVote($id: ID!) { - deleteMultiSigUserSignature(input: { id: $id }) { - id - } + mutation RemoveMultiSigVote($id: ID!) { + deleteMultiSigUserSignature(input: {id: $id}) { + id } -`; +} + `; export const RemoveMultiSigRoleDocument = gql` - mutation RemoveMultiSigRole($id: ID!) { - deleteColonyRole(input: { id: $id }) { - id - } + mutation RemoveMultiSigRole($id: ID!) { + deleteColonyRole(input: {id: $id}) { + id } -`; +} + `; export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id - } + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id } -`; +} + `; export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id - } + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id } -`; +} + `; export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id - } + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id } -`; +} + `; export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata( - $input: UpdateReputationMiningCycleMetadataInput! - ) { - updateReputationMiningCycleMetadata(input: $input) { - id - } + mutation UpdateReputationMiningCycleMetadata($input: UpdateReputationMiningCycleMetadataInput!) { + updateReputationMiningCycleMetadata(input: $input) { + id } -`; +} + `; export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata( - $input: CreateReputationMiningCycleMetadataInput! - ) { - createReputationMiningCycleMetadata(input: $input) { - id - } + mutation CreateReputationMiningCycleMetadata($input: CreateReputationMiningCycleMetadataInput!) { + createReputationMiningCycleMetadata(input: $input) { + id } -`; +} + `; export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id - } + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id } -`; +} + `; export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id - } + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id } -`; +} + `; export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: { id: "STATS", value: $value }) { - id - } + mutation CreateStats($value: String!) { + createIngestorStats(input: {id: "STATS", value: $value}) { + id } -`; +} + `; export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: { id: "STATS", value: $value }) { - id - } + mutation UpdateStats($value: String!) { + updateIngestorStats(input: {id: "STATS", value: $value}) { + id } -`; +} + `; export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id - } + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id } -`; +} + `; export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - } + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id } +<<<<<<< HEAD `; export const GetColonyArbitraryTransactionActionDocument = gql` query GetColonyArbitraryTransactionAction($transactionHash: ID!) { @@ -13855,74 +13429,64 @@ export const GetColonyArbitraryTransactionActionDocument = gql` } } `; +======= +} + `; +>>>>>>> 0b8ef143 (Feat: Added changelog to streaming payment and streaming payment metadata) export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id - } + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id } } -`; +} + `; export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId - } + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId } -`; +} + `; export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot - } + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot } } } - ${ExpenditureSlot} -`; +} + ${ExpenditureSlot}`; export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail - } + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail } } - ${ColonyMetadata} -`; +} + ${ColonyMetadata}`; export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony - } - getColonyByAddress(id: $id) { - items { - id - name - } - } - getColonyByType(type: METACOLONY) { - items { - id - name - } - } + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony } +<<<<<<< HEAD ${Colony} `; export const GetColonyByNameDocument = gql` @@ -14040,184 +13604,50 @@ export const GetDomainMetadataDocument = gql` getDomainMetadata(id: $id) { color description +======= + getColonyByAddress(id: $id) { + items { +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) id name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash - } } } -`; -export const GetDomainByNativeSkillIdDocument = gql` - query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { - getDomainByNativeSkillId( - nativeSkillId: $nativeSkillId - filter: { colonyId: { eq: $colonyAddress } } - ) { - items { - id - nativeSkillId - nativeId - } + getColonyByType(type: METACOLONY) { + items { + id + name } } -`; -export const GetDomainsByExtensionAddressDocument = gql` - query GetDomainsByExtensionAddress($extensionAddress: ID!) { - listColonyExtensions(filter: { id: { eq: $extensionAddress } }) { - items { - colony { - domains { - items { - nativeSkillId - nativeId - } - } - id - } - } +} + ${Colony}`; +export const GetColonyByNameDocument = gql` + query GetColonyByName($name: String!) { + getColonyByName(name: $name) { + items { + id + name } } -`; -export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { +} + `; +export const GetColonyByNativeTokenIdDocument = gql` + query GetColonyByNativeTokenId($nativeTokenId: ID!, $limit: Int, $nextToken: String) { + getColoniesByNativeTokenId( + nativeTokenId: $nativeTokenId + limit: $limit + nextToken: $nextToken + ) { + items { id - } - } -`; -export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure - } - } - ${Expenditure} -`; -export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony( - $nativeFundingPotId: Int! - $colonyAddress: ID! - ) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: { eq: $colonyAddress } - ) { - items { - ...Expenditure - } - } - } - ${Expenditure} -`; -export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - id - endTime - tokenAddress - amount - claims { - amount - timestamp - } - } - } -<<<<<<< HEAD -`; -======= -} - `; -export const GetPendingStreamingPaymentMetadataDocument = gql` - query getPendingStreamingPaymentMetadata($id: ID!) { - getPendingStreamingPaymentMetadata(id: $id) { - id - endCondition - } -} - `; ->>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) -export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension - } - } - ${Extension} -`; -export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension - } - } - } - ${Extension} -`; -export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: { isDeleted: { eq: false } } - ) { - nextToken - items { - ...Extension - } - } - } - ${Extension} -`; -export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony( - $colonyAddress: ID! - $extensionHash: String! - ) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: { eq: $extensionHash } - filter: { isDeleted: { eq: false } } - ) { - items { - id - } - } - } -`; -export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted - multiSigPermissions - } - } -`; -export const GetColonyExtensionByAddressDocument = gql` - query GetColonyExtensionByAddress($extensionAddress: ID!) { - getColonyExtension(id: $extensionAddress) { - params { - multiSig { - colonyThreshold - domainThresholds { - domainId - domainThreshold - } - } - } - colonyId + status { + nativeToken { + unlocked + unlockable + mintable + } +<<<<<<< HEAD + } + colonyId } } `; @@ -14241,954 +13671,352 @@ export const GetColonyUnclaimedFundsDocument = gql` ...Token } amount +======= + recovery +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } } + nextToken } +<<<<<<< HEAD ${Token} `; export const GetColonyUnclaimedFundDocument = gql` query GetColonyUnclaimedFund($claimId: ID!) { getColonyFundsClaim(id: $claimId) { +======= +} + `; +export const ListColoniesDocument = gql` + query ListColonies($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { id + nativeTokenId } } -`; -export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee - } - } - } -`; -export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - ...ActionMetadataInfo - } - } - } - ${ActionMetadataInfo} -`; -======= - yay - nay - } - percentage { - yay - nay - } - } +} + `; +export const GetColonyContributorDocument = gql` + query GetColonyContributor($id: ID!) { + getColonyContributor(id: $id) { + id + isVerified } -`; -export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay +} + `; +export const GetCurrentVersionDocument = gql` + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version } - isClaimed - } -`; -export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote } -`; -export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward - } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay - } - percentage { - yay - nay - } - } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt +} + `; +export const GetColonyDecisionByActionIdDocument = gql` + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) + id } - isDecision - transactionHash - streamingPaymentId - pendingStreamingPaymentMetadataId } - ${MotionStakes} - ${UserMotionStakes} - ${StakerReward} - ${VoterRecord} -`; -export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name +} + `; +export const GetDomainMetadataDocument = gql` + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { color description + id + name changelog { - transactionHash - oldName + newColor + newDescription newName oldColor - newColor oldDescription - newDescription - } - } -`; -export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id - } - } -`; -export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id - } - } -`; -export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id - } - } -`; -export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id - } - } -`; -export const CreateColonyDocument = gql` - mutation CreateColony( - $input: CreateColonyInput! - $condition: ModelColonyConditionInput - ) { - createColony(input: $input, condition: $condition) { - id - } - } -`; -export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id - } - } -`; -export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id - } - } -`; -export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite( - $input: CreateColonyMemberInviteInput! - $condition: ModelColonyMemberInviteConditionInput - ) { - createColonyMemberInvite(input: $input, condition: $condition) { - id - } - } -`; -export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id - } - } -`; -export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id - } - } -`; -export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id - } - } -`; -export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id - } - } -`; -export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id - } - } -`; -export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id - } - } -`; -export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: { id: $id, showInDecisionsList: $showInDecisionsList } - ) { - id - } - } -`; -export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id - } - } -`; -export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id - } - } -`; -export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id - } - } -`; -export const CreateContractEventDocument = gql` - mutation CreateContractEvent( - $input: CreateContractEventInput! - $condition: ModelContractEventConditionInput - ) { - createContractEvent(input: $input, condition: $condition) { - id - } - } -`; -export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id - } - } -`; -export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress - } - } -`; -export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id - } - } -`; -export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id - } - } -`; -export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id - } - } -`; -export const UpdateStreamingPaymentMetadataDocument = gql` - mutation UpdateStreamingPaymentMetadata( - $input: UpdateStreamingPaymentMetadataInput! - ) { - updateStreamingPaymentMetadata(input: $input) { - id - } - } -`; -export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id - } - } -`; -export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId - } - } -`; -export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount( - $input: CreateExtensionInstallationsCountInput! - ) { - createExtensionInstallationsCount(input: $input) { - id - } - } -`; -export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount( - $input: UpdateExtensionInstallationsCountInput! - ) { - updateExtensionInstallationsCount(input: $input) { - id - } - } -`; -export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim( - $input: CreateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - createColonyFundsClaim(input: $input, condition: $condition) { - id - } - } -`; -export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim( - $input: UpdateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id - } - } -`; -export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim( - $input: DeleteColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id - } - } -`; -export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee( - $input: CreateCurrentNetworkInverseFeeInput! - ) { - createCurrentNetworkInverseFee(input: $input) { - id - } - } -`; -export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee( - $input: UpdateCurrentNetworkInverseFeeInput! - ) { - updateCurrentNetworkInverseFee(input: $input) { - id - } - } -`; -export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id - } - } -`; -export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id - } - } -`; -export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id - } - } -`; -export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id - } - } -`; -export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id - } - } -`; -export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id - } - } -`; -export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id - } - } -`; -export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata( - $input: UpdateReputationMiningCycleMetadataInput! - ) { - updateReputationMiningCycleMetadata(input: $input) { - id - } - } -`; -export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata( - $input: CreateReputationMiningCycleMetadataInput! - ) { - createReputationMiningCycleMetadata(input: $input) { - id - } - } -`; -export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id - } - } -`; -export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id - } - } -`; -export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: { id: "STATS", value: $value }) { - id - } - } -`; -export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: { id: "STATS", value: $value }) { - id - } - } -`; -export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id - } - } -`; -export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - } - } -`; -export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id - } - } - } -`; -export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId - } - } -`; -export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot - } - } - } - } - ${ExpenditureSlot} -`; -export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail - } - } - } - ${ColonyMetadata} -`; -export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony - } - getColonyByAddress(id: $id) { - items { - id - name - } - } - getColonyByType(type: METACOLONY) { - items { - id - name - } - } - } - ${Colony} -`; -export const GetColonyByNameDocument = gql` - query GetColonyByName($name: String!) { - getColonyByName(name: $name) { - items { - id - name - } - } - } -`; -export const GetColonyByNativeTokenIdDocument = gql` - query GetColonyByNativeTokenId( - $nativeTokenId: ID! - $limit: Int - $nextToken: String - ) { - getColoniesByNativeTokenId( - nativeTokenId: $nativeTokenId - limit: $limit - nextToken: $nextToken - ) { - items { - id - status { - nativeToken { - unlocked - unlockable - mintable - } - recovery - } - } - nextToken - } - } -`; -export const ListColoniesDocument = gql` - query ListColonies($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - id - nativeTokenId - } + oldName + transactionHash } } -`; -export const GetColonyContributorDocument = gql` - query GetColonyContributor($id: ID!) { - getColonyContributor(id: $id) { +} + `; +export const GetDomainByNativeSkillIdDocument = gql` + query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { + getDomainByNativeSkillId( + nativeSkillId: $nativeSkillId + filter: {colonyId: {eq: $colonyAddress}} + ) { + items { id - isVerified - } - } -`; -export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version - } + nativeSkillId + nativeId } } -`; -export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { +} + `; +export const GetDomainsByExtensionAddressDocument = gql` + query GetDomainsByExtensionAddress($extensionAddress: ID!) { + listColonyExtensions(filter: {id: {eq: $extensionAddress}}) { + items { + colony { + domains { + items { + nativeSkillId + nativeId + } + } id } } } -`; -export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description - id - name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash - } - } - } -`; +} + `; export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { - id - } + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id } -`; +} + `; export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure - } + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure } - ${Expenditure} -`; +} + ${Expenditure}`; export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony( - $nativeFundingPotId: Int! - $colonyAddress: ID! + query GetExpenditureByNativeFundingPotIdAndColony($nativeFundingPotId: Int!, $colonyAddress: ID!) { + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: {eq: $colonyAddress} ) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: { eq: $colonyAddress } - ) { - items { - ...Expenditure - } + items { + ...Expenditure } } - ${Expenditure} -`; +} + ${Expenditure}`; export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - id - startTime - endTime - tokenAddress - amount - interval - metadata { - endCondition - } - claims { - amount - timestamp - } - } + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + ...StreamingPayment } -`; -export const GetPendingStreamingPaymentMetadataDocument = gql` - query getPendingStreamingPaymentMetadata($id: ID!) { - getPendingStreamingPaymentMetadata(id: $id) { - id - endCondition - } +} + ${StreamingPayment}`; +export const GetStreamingPaymentMetadataDocument = gql` + query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata } -`; +} + ${StreamingPaymentMetadata}`; export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension - } + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension } - ${Extension} -`; +} + ${Extension}`; export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension - } + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension } } - ${Extension} -`; +} + ${Extension}`; export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: { isDeleted: { eq: false } } - ) { - nextToken - items { - ...Extension - } + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: {isDeleted: {eq: false}} + ) { + nextToken + items { + ...Extension } } - ${Extension} -`; +} + ${Extension}`; export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony( - $colonyAddress: ID! - $extensionHash: String! + query GetColonyExtensionByHashAndColony($colonyAddress: ID!, $extensionHash: String!) { + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: {eq: $extensionHash} + filter: {isDeleted: {eq: false}} ) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: { eq: $extensionHash } - filter: { isDeleted: { eq: false } } - ) { - items { - id - } + items { + id } } -`; +} + `; export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + multiSigPermissions + } +} + `; +export const GetColonyExtensionByAddressDocument = gql` + query GetColonyExtensionByAddress($extensionAddress: ID!) { + getColonyExtension(id: $extensionAddress) { + params { + multiSig { + colonyThreshold + domainThresholds { + domainId + domainThreshold + } + } } + colonyId } -`; +} + `; export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds( - $colonyAddress: ID! - $tokenAddress: ID! - $upToBlock: Int = 1 + query GetColonyUnclaimedFunds($colonyAddress: ID!, $tokenAddress: ID!, $upToBlock: Int = 1) { + listColonyFundsClaims( + filter: {colonyFundsClaimsId: {eq: $colonyAddress}, colonyFundsClaimTokenId: {eq: $tokenAddress}, createdAtBlock: {le: $upToBlock}, isClaimed: {ne: true}} ) { - listColonyFundsClaims( - filter: { - colonyFundsClaimsId: { eq: $colonyAddress } - colonyFundsClaimTokenId: { eq: $tokenAddress } - createdAtBlock: { le: $upToBlock } - isClaimed: { ne: true } - } - ) { - items { - id - } + items { + id } } -`; +} + `; export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { - id - } + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id } -`; +} + `; export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee - } + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee } } -`; +} + `; export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - id - pendingDomainMetadata { - ...DomainMetadata - } - pendingColonyMetadata { - ...ColonyMetadata - } - colonyDecisionId - amount - networkFee - type - } + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + ...ActionMetadataInfo } } - ${DomainMetadata} - ${ColonyMetadata} -`; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +} + ${ActionMetadataInfo}`; export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion - } + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion } - ${ColonyMotion} -`; +} + ${ColonyMotion}`; export const GetVoterRewardsDocument = gql` - query GetVoterRewards($input: GetVoterRewardsInput!) { - getVoterRewards(input: $input) { - min - max - reward - } + query GetVoterRewards($input: GetVoterRewardsInput!) { + getVoterRewards(input: $input) { + min + max + reward } -`; -<<<<<<< HEAD +} + `; export const GetColonyActionByMultiSigIdDocument = gql` - query GetColonyActionByMultiSigId($multiSigId: ID!) { - getColonyActionByMultiSigId(multiSigId: $multiSigId) { - items { - ...ActionMetadataInfo - } + query GetColonyActionByMultiSigId($multiSigId: ID!) { + getColonyActionByMultiSigId(multiSigId: $multiSigId) { + items { + ...ActionMetadataInfo } } - ${ActionMetadataInfo} -`; +} + ${ActionMetadataInfo}`; export const GetColonyMultiSigDocument = gql` - query GetColonyMultiSig($id: ID!) { - getColonyMultiSig(id: $id) { - ...ColonyMultiSig - } + query GetColonyMultiSig($id: ID!) { + getColonyMultiSig(id: $id) { + ...ColonyMultiSig } - ${ColonyMultiSig} -`; +} + ${ColonyMultiSig}`; export const GetUserMultiSigSignatureDocument = gql` - query GetUserMultiSigSignature( - $multiSigId: ID! - $userAddress: ID! - $vote: MultiSigVote! - $role: Int! + query GetUserMultiSigSignature($multiSigId: ID!, $userAddress: ID!, $vote: MultiSigVote!, $role: Int!) { + getMultiSigUserSignatureByMultiSigId( + filter: {userAddress: {eq: $userAddress}, vote: {eq: $vote}, role: {eq: $role}} + multiSigId: $multiSigId ) { - getMultiSigUserSignatureByMultiSigId( - filter: { - userAddress: { eq: $userAddress } - vote: { eq: $vote } - role: { eq: $role } - } - multiSigId: $multiSigId - ) { - items { - ...MultiSigUserSignature - } + items { + ...MultiSigUserSignature } } - ${MultiSigUserSignature} -`; +} + ${MultiSigUserSignature}`; export const GetAllMultiSigRolesDocument = gql` - query GetAllMultiSigRoles($colonyAddress: ID!) { - getRoleByColony( - colonyAddress: $colonyAddress - limit: 9999 - filter: { isMultiSig: { eq: true } } - ) { - items { - id - } + query GetAllMultiSigRoles($colonyAddress: ID!) { + getRoleByColony( + colonyAddress: $colonyAddress + limit: 9999 + filter: {isMultiSig: {eq: true}} + ) { + items { + id } } -`; +} + `; export const GetActiveColonyMultisigsDocument = gql` - query GetActiveColonyMultisigs($colonyAddress: ID!) { - getMultiSigByColonyAddress( - colonyAddress: $colonyAddress - filter: { isExecuted: { eq: false }, isRejected: { eq: false } } - limit: 9999 - ) { - items { - id - } + query GetActiveColonyMultisigs($colonyAddress: ID!) { + getMultiSigByColonyAddress( + colonyAddress: $colonyAddress + filter: {isExecuted: {eq: false}, isRejected: {eq: false}} + limit: 9999 + ) { + items { + id } } -`; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) +} + `; export const GetColonyRoleDocument = gql` - query GetColonyRole($id: ID!) { - getColonyRole(id: $id) { + query GetColonyRole($id: ID!) { + getColonyRole(id: $id) { + id + latestBlock + role_0 + role_1 + role_2 + role_3 + role_5 + role_6 + } +} + `; +export const GetAllColonyRolesDocument = gql` + query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { + getRoleByTargetAddressAndColony( + targetAddress: $targetAddress + colonyAddress: {eq: $colonyAddress} + ) { + items { id - latestBlock role_0 role_1 role_2 @@ -15197,69 +14025,52 @@ export const GetColonyRoleDocument = gql` role_6 } } -`; -export const GetAllColonyRolesDocument = gql` - query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { - getRoleByTargetAddressAndColony( - targetAddress: $targetAddress - colonyAddress: { eq: $colonyAddress } - ) { - items { - id - role_0 - role_1 - role_2 - role_3 - role_5 - role_6 - } - } - } -`; +} + `; export const GetColonyHistoricRoleDocument = gql` - query GetColonyHistoricRole($id: ID!) { - getColonyHistoricRole(id: $id) { - id - } + query GetColonyHistoricRole($id: ID!) { + getColonyHistoricRole(id: $id) { + id } -`; +} + `; export const GetReputationMiningCycleMetadataDocument = gql` - query GetReputationMiningCycleMetadata($id: ID!) { - getReputationMiningCycleMetadata(id: $id) { - id - } + query GetReputationMiningCycleMetadata($id: ID!) { + getReputationMiningCycleMetadata(id: $id) { + id } -`; +} + `; export const GetSafeTransactionByTransactionHashDocument = gql` - query GetSafeTransactionByTransactionHash($transactionHash: ID!) { - getSafeTransaction(id: $transactionHash) { - id - } + query GetSafeTransactionByTransactionHash($transactionHash: ID!) { + getSafeTransaction(id: $transactionHash) { + id } -`; +} + `; export const GetUserStakeDocument = gql` - query GetUserStake($id: ID!) { - getUserStake(id: $id) { - id - amount - } + query GetUserStake($id: ID!) { + getUserStake(id: $id) { + id + amount } -`; +} + `; export const GetStatsDocument = gql` - query GetStats { - getIngestorStats(id: "STATS") { - value - } + query GetStats { + getIngestorStats(id: "STATS") { + value } -`; +} + `; export const GetTokenFromEverywhereDocument = gql` - query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { - getTokenFromEverywhere(input: $input) { - items { - id - } + query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { + getTokenFromEverywhere(input: $input) { + items { + id } } +<<<<<<< HEAD `; <<<<<<< HEAD export const GetTokenByAddressDocument = gql` @@ -15286,3 +14097,7 @@ export const GetNotificationUsersDocument = gql` `; ======= >>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) +======= +} + `; +>>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index ddfc3b974..a4ec015be 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -20,25 +20,12 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { - id - startTime - endTime - tokenAddress - amount - interval - metadata { - endCondition - } - claims { - amount - timestamp - } + ...StreamingPayment } } -query getPendingStreamingPaymentMetadata($id: ID!) { - getPendingStreamingPaymentMetadata(id: $id) { - id - endCondition +query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata } -} \ No newline at end of file +} diff --git a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts index eafaf0cdd..7b364f6ad 100644 --- a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts +++ b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts @@ -2,7 +2,7 @@ import { StreamingPaymentsClientV5 } from '@colony/colony-js'; import { utils } from 'ethers'; import { mutate } from '~amplifyClient'; import { - ColonyActionType, + StreamingPaymentFragment, UpdateStreamingPaymentDocument, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, @@ -15,7 +15,6 @@ import { mapLogToContractEvent, output, toNumber, - writeActionFromEvent, } from '~utils'; import { getStreamingPaymentFromDB } from './getExpenditure'; @@ -30,12 +29,6 @@ export const createEditStreamingPaymentAction = async ({ }): Promise => { const { transactionHash } = event; - const actionExists = await checkActionExists(transactionHash); - - if (actionExists) { - return; - } - const { blockNumber } = event; const { streamingPaymentId } = event.args; @@ -53,6 +46,15 @@ export const createEditStreamingPaymentAction = async ({ return; } + // If a changelog already exists with this transactionHash, then the action has already been processed + const changelogEntryExists = checkChangelogEntryExists( + transactionHash, + streamingPayment, + ); + if (changelogEntryExists) { + return; + } + const logs = await provider.getLogs({ fromBlock: blockNumber, toBlock: blockNumber, @@ -76,23 +78,18 @@ export const createEditStreamingPaymentAction = async ({ } } - const oldValues = { + const currentValues = { amount: streamingPayment.amount, interval: streamingPayment.interval, startTime: streamingPayment.startTime, endTime: streamingPayment.endTime, }; - const updatedStreamingPayment: { - amount?: string; - interval?: string; - startTime?: string; - endTime?: string; - } = { - amount: undefined, - interval: undefined, - startTime: undefined, - endTime: undefined, + const newValues = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, }; for (const actionEvent of actionEvents) { @@ -100,16 +97,24 @@ export const createEditStreamingPaymentAction = async ({ actionEvent.signature === ContractEventsSignatures.PaymentTokenUpdated ) { const { amount, interval } = actionEvent.args; - updatedStreamingPayment.amount = amount.toString(); - updatedStreamingPayment.interval = interval.toString(); + if (amount) { + newValues.amount = amount.toString(); + } + if (interval) { + newValues.interval = interval.toString(); + } } if (actionEvent.signature === ContractEventsSignatures.StartTimeSet) { const { startTime } = actionEvent.args; - updatedStreamingPayment.startTime = startTime.toString(); + if (startTime) { + newValues.startTime = startTime.toString(); + } } if (actionEvent.signature === ContractEventsSignatures.EndTimeSet) { const { endTime } = actionEvent.args; - updatedStreamingPayment.endTime = endTime.toString(); + if (endTime) { + newValues.endTime = endTime.toString(); + } } } @@ -119,22 +124,30 @@ export const createEditStreamingPaymentAction = async ({ >(UpdateStreamingPaymentDocument, { input: { id: databaseId, - startTime: updatedStreamingPayment.startTime, - endTime: updatedStreamingPayment.endTime, - amount: updatedStreamingPayment.amount, - interval: updatedStreamingPayment.interval, + startTime: newValues.startTime, + endTime: newValues.endTime, + amount: newValues.amount, + interval: newValues.interval, + changelog: [ + ...(streamingPayment.changelog ?? []), + { + transactionHash, + oldValues: currentValues, + newValues, + }, + ], }, }); +}; - const { agent: initiatorAddress } = event.args; - - await writeActionFromEvent(event, colonyAddress, { - type: ColonyActionType.EditStreamingPayment, - initiatorAddress, - streamingPaymentId: databaseId, - streamingPaymentChanges: { - oldValues, - newValues: updatedStreamingPayment, - }, - }); +const checkChangelogEntryExists = ( + transactionHash: string, + streamingPayment: StreamingPaymentFragment, +): boolean => { + if (!streamingPayment.changelog) { + return false; + } + return streamingPayment.changelog.some( + (item) => item.transactionHash === transactionHash, + ); }; diff --git a/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts index e3f10404f..410029e13 100644 --- a/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts +++ b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts @@ -40,16 +40,11 @@ export const editStreamingPaymentMotionHandler: MulticallHandler = async ({ return; } - const updatedStreamingPayment: { - amount?: string; - interval?: string; - startTime?: string; - endTime?: string; - } = { - amount: undefined, - interval: undefined, - startTime: undefined, - endTime: undefined, + const pendingStreamingPaymentChanges = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, }; for (const decodedFunction of decodedFunctions) { @@ -64,20 +59,20 @@ export const editStreamingPaymentMotionHandler: MulticallHandler = async ({ const amount = decodedFunction.args[7]; const interval = decodedFunction.args[8]; - updatedStreamingPayment.amount = amount.toString(); - updatedStreamingPayment.interval = interval.toString(); + pendingStreamingPaymentChanges.amount = amount.toString(); + pendingStreamingPaymentChanges.interval = interval.toString(); } else if ( decodedFunction.signature === ContractMethodSignatures.SetStartTime ) { const [, , , startTime] = decodedFunction.args; - updatedStreamingPayment.startTime = startTime.toString(); + pendingStreamingPaymentChanges.startTime = startTime.toString(); } else if ( decodedFunction.signature === ContractMethodSignatures.SetEndTime ) { const [, , , endTime] = decodedFunction.args; - updatedStreamingPayment.endTime = endTime.toString(); + pendingStreamingPaymentChanges.endTime = endTime.toString(); } } @@ -89,7 +84,7 @@ export const editStreamingPaymentMotionHandler: MulticallHandler = async ({ createMotionInDB(colonyAddress, event, { type: ColonyActionType.EditStreamingPaymentMotion, streamingPaymentId: streamingPayment.id, - streamingPaymentPendingChanges: updatedStreamingPayment, pendingStreamingPaymentMetadataId, + pendingStreamingPaymentChanges, }); }; diff --git a/src/handlers/motions/motionCreated/helpers.ts b/src/handlers/motions/motionCreated/helpers.ts index 0c40c5156..4185b1db0 100644 --- a/src/handlers/motions/motionCreated/helpers.ts +++ b/src/handlers/motions/motionCreated/helpers.ts @@ -179,8 +179,7 @@ type MotionFields = Omit< | 'expenditureSlotIds' | 'editedExpenditureSlots' | 'expenditureFunding' - | 'streamingPaymentId' - | 'streamingPaymentPendingChanges' + | 'pendingStreamingPaymentChanges' | 'pendingStreamingPaymentMetadataId' >; @@ -200,8 +199,7 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, - streamingPaymentId, - streamingPaymentPendingChanges, + pendingStreamingPaymentChanges, pendingStreamingPaymentMetadataId, ...actionFields } = motionFields; @@ -253,8 +251,8 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, - streamingPaymentId, - streamingPaymentPendingChanges, + streamingPaymentId: actionFields.streamingPaymentId, + pendingStreamingPaymentChanges, pendingStreamingPaymentMetadataId, }), createMotionMessage(initialMotionMessage), diff --git a/src/handlers/motions/motionFinalized/helpers.ts b/src/handlers/motions/motionFinalized/helpers.ts index 07e54a06d..babec330a 100644 --- a/src/handlers/motions/motionFinalized/helpers.ts +++ b/src/handlers/motions/motionFinalized/helpers.ts @@ -16,9 +16,9 @@ import { GetColonyActionByMotionIdDocument, GetColonyActionByMotionIdQuery, GetColonyActionByMotionIdQueryVariables, - GetPendingStreamingPaymentMetadataDocument, - GetPendingStreamingPaymentMetadataQuery, - GetPendingStreamingPaymentMetadataQueryVariables, + GetStreamingPaymentMetadataDocument, + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables, StakerReward, UpdateColonyActionDocument, UpdateColonyActionMutation, @@ -198,16 +198,16 @@ export const linkPendingStreamingPaymentMetadata = async ({ pendingStreamingPaymentMetadataId: string; streamingPaymentId: string; }): Promise => { - const { data } = + const { data: pendingStreamingPaymentMetadataQuery } = (await query< - GetPendingStreamingPaymentMetadataQuery, - GetPendingStreamingPaymentMetadataQueryVariables - >(GetPendingStreamingPaymentMetadataDocument, { + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables + >(GetStreamingPaymentMetadataDocument, { id: pendingStreamingPaymentMetadataId, })) ?? {}; const pendingStreamingPaymentMetadata = - data?.getPendingStreamingPaymentMetadata; + pendingStreamingPaymentMetadataQuery?.getStreamingPaymentMetadata; if (!pendingStreamingPaymentMetadata) { output( @@ -216,6 +216,30 @@ export const linkPendingStreamingPaymentMetadata = async ({ return; } + if (!pendingStreamingPaymentMetadata.changelog) { + output( + `Could not find the pending streaming payment metadata changelog with the id: ${pendingStreamingPaymentMetadataId}. This is a bug and should be investigated.`, + ); + return; + } + + const { data } = + (await query< + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables + >(GetStreamingPaymentMetadataDocument, { + id: streamingPaymentId, + })) ?? {}; + + const currentStreamingPaymentMetadata = data?.getStreamingPaymentMetadata; + + if (!currentStreamingPaymentMetadata) { + output( + `Could not find the streaming payment metadata with the id: ${streamingPaymentId}. This is a bug and should be investigated.`, + ); + return; + } + await mutate< UpdateStreamingPaymentMetadataMutation, UpdateStreamingPaymentMetadataMutationVariables @@ -223,6 +247,10 @@ export const linkPendingStreamingPaymentMetadata = async ({ input: { id: streamingPaymentId, endCondition: pendingStreamingPaymentMetadata.endCondition, + changelog: [ + ...(currentStreamingPaymentMetadata?.changelog ?? []), + pendingStreamingPaymentMetadata.changelog[0], + ], }, }); }; From 3e6ad7938eefd6003e168677afa40219f5477891 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:31:15 +0100 Subject: [PATCH 32/48] Fix: Store streaming payment changelog on colony action, and use streamingPaymentsInterface --- src/graphql/fragments/expenditures.graphql | 9 --- src/graphql/generated.ts | 46 ++++++++-------- .../createEditStreamingPaymentAction.ts | 55 ++++++++----------- .../expenditures/paymentTokenUpdated.ts | 15 +++-- .../streamingPaymentEndTimeSet.ts | 15 +++-- .../streamingPaymentStartTimeSet.ts | 15 +++-- src/interfaces.ts | 2 +- 7 files changed, 77 insertions(+), 80 deletions(-) diff --git a/src/graphql/fragments/expenditures.graphql b/src/graphql/fragments/expenditures.graphql index 7b12a5f1e..5e38983fc 100644 --- a/src/graphql/fragments/expenditures.graphql +++ b/src/graphql/fragments/expenditures.graphql @@ -66,15 +66,6 @@ fragment StreamingPayment on StreamingPayment { amount timestamp } - changelog { - transactionHash - oldValues { - ...StreamingPaymentChanges - } - newValues { - ...StreamingPaymentChanges - } - } } fragment StreamingPaymentMetadata on StreamingPaymentMetadata { diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index e69a6506a..50d04801a 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -529,6 +529,11 @@ export type ColonyAction = { showInActionsList: Scalars['Boolean']; /** Streaming payment associated with the action, if any */ streamingPayment?: Maybe; + /** + * Changes to the streaming payment associated with the action, if any + * Applicable to `EDIT_STREAMING_PAYMENT` action only + */ + streamingPaymentChanges?: Maybe; /** ID of the associated streaming payment, if any */ streamingPaymentId?: Maybe; /** The target Domain of the action, if applicable */ @@ -1491,6 +1496,7 @@ export type CreateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash: Scalars['String']; showInActionsList: Scalars['Boolean']; + streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -1888,7 +1894,6 @@ export type CreateSafeTransactionInput = { export type CreateStreamingPaymentInput = { amount: Scalars['String']; - changelog?: InputMaybe>; claims?: InputMaybe>; createdAt?: InputMaybe; endTime: Scalars['String']; @@ -8627,8 +8632,6 @@ export type StreamingPayment = { __typename?: 'StreamingPayment'; actions?: Maybe; amount: Scalars['String']; - /** List of Streaming Payment changelog entries */ - changelog?: Maybe>; claims?: Maybe>; createdAt: Scalars['AWSDateTime']; endTime: Scalars['String']; @@ -8665,20 +8668,17 @@ export type StreamingPaymentMotionsArgs = { sortDirection?: InputMaybe; }; -export type StreamingPaymentChangelog = { - __typename?: 'StreamingPaymentChangelog'; +export type StreamingPaymentChangeSet = { + __typename?: 'StreamingPaymentChangeSet'; /** The values before the change */ newValues: StreamingPaymentChanges; /** The values before the change */ oldValues: StreamingPaymentChanges; - /** Transaction hash associated with the changelog entry */ - transactionHash: Scalars['String']; }; -export type StreamingPaymentChangelogInput = { +export type StreamingPaymentChangeSetInput = { newValues: StreamingPaymentChangesInput; oldValues: StreamingPaymentChangesInput; - transactionHash: Scalars['String']; }; export type StreamingPaymentChanges = { @@ -9915,6 +9915,7 @@ export type UpdateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentChanges?: InputMaybe; streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; @@ -10318,7 +10319,6 @@ export type UpdateSafeTransactionInput = { export type UpdateStreamingPaymentInput = { amount?: InputMaybe; - changelog?: InputMaybe>; claims?: InputMaybe>; createdAt?: InputMaybe; endTime?: InputMaybe; @@ -10838,7 +10838,7 @@ export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, stat export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; -export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null, changelog?: Array<{ __typename?: 'StreamingPaymentChangelog', transactionHash: string, oldValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }, newValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string } }> | null }; +export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null }; export type StreamingPaymentMetadataFragment = { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null }; @@ -12015,7 +12015,7 @@ export type GetStreamingPaymentQueryVariables = Exact<{ }>; -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null, changelog?: Array<{ __typename?: 'StreamingPaymentChangelog', transactionHash: string, oldValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }, newValues: { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string } }> | null } | null }; +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null } | null }; export type GetStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; @@ -12787,14 +12787,6 @@ export const StreamingPaymentMetadata = gql` } } `; -export const StreamingPaymentChanges = gql` - fragment StreamingPaymentChanges on StreamingPaymentChanges { - startTime - endTime - interval - amount -} - `; export const StreamingPayment = gql` fragment StreamingPayment on StreamingPayment { id @@ -12810,6 +12802,7 @@ export const StreamingPayment = gql` amount timestamp } +<<<<<<< HEAD changelog { transactionHash oldValues { @@ -12841,9 +12834,18 @@ export const StreamingPayment = gql` ======= >>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } +======= +>>>>>>> fc7f8af (Fix: Store streaming payment changelog on colony action, and use streamingPaymentsInterface) +} + ${StreamingPaymentMetadata}`; +export const StreamingPaymentChanges = gql` + fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount } - ${StreamingPaymentMetadata} -${StreamingPaymentChanges}`; + `; export const Extension = gql` fragment Extension on ColonyExtension { id diff --git a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts index 7b364f6ad..2a51e6977 100644 --- a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts +++ b/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts @@ -1,8 +1,7 @@ -import { StreamingPaymentsClientV5 } from '@colony/colony-js'; import { utils } from 'ethers'; import { mutate } from '~amplifyClient'; import { - StreamingPaymentFragment, + ColonyActionType, UpdateStreamingPaymentDocument, UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables, @@ -15,20 +14,27 @@ import { mapLogToContractEvent, output, toNumber, + writeActionFromEvent, } from '~utils'; import { getStreamingPaymentFromDB } from './getExpenditure'; export const createEditStreamingPaymentAction = async ({ event, colonyAddress, - streamingPaymentsClient, + streamingPaymentsInterface, }: { event: ContractEvent; colonyAddress: string; - streamingPaymentsClient: StreamingPaymentsClientV5; + streamingPaymentsInterface: utils.Interface; }): Promise => { const { transactionHash } = event; + const actionExists = await checkActionExists(transactionHash); + + if (actionExists) { + return; + } + const { blockNumber } = event; const { streamingPaymentId } = event.args; @@ -46,15 +52,6 @@ export const createEditStreamingPaymentAction = async ({ return; } - // If a changelog already exists with this transactionHash, then the action has already been processed - const changelogEntryExists = checkChangelogEntryExists( - transactionHash, - streamingPayment, - ); - if (changelogEntryExists) { - return; - } - const logs = await provider.getLogs({ fromBlock: blockNumber, toBlock: blockNumber, @@ -71,7 +68,7 @@ export const createEditStreamingPaymentAction = async ({ for (const log of logs) { const mappedEvent = await mapLogToContractEvent( log, - streamingPaymentsClient.interface, + streamingPaymentsInterface, ); if (mappedEvent) { actionEvents.push(mappedEvent); @@ -128,26 +125,18 @@ export const createEditStreamingPaymentAction = async ({ endTime: newValues.endTime, amount: newValues.amount, interval: newValues.interval, - changelog: [ - ...(streamingPayment.changelog ?? []), - { - transactionHash, - oldValues: currentValues, - newValues, - }, - ], }, }); -}; -const checkChangelogEntryExists = ( - transactionHash: string, - streamingPayment: StreamingPaymentFragment, -): boolean => { - if (!streamingPayment.changelog) { - return false; - } - return streamingPayment.changelog.some( - (item) => item.transactionHash === transactionHash, - ); + const { agent: initiatorAddress } = event.args; + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.EditStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + streamingPaymentChanges: { + oldValues: currentValues, + newValues, + }, + }); }; diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 932897b66..cd56f49e0 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,8 +1,9 @@ -import { getStreamingPaymentsClient } from '~utils'; import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { Extension, getExtensionHash } from '@colony/colony-js'; +import { getInterfaceByExtensionHash } from '~interfaces'; export const handlePaymentTokenUpdated: EventHandler = async ( event, @@ -10,16 +11,20 @@ export const handlePaymentTokenUpdated: EventHandler = async ( ) => { const { colonyAddress } = listener as ExtensionEventListener; - const streamingPaymentsClient = await getStreamingPaymentsClient( - colonyAddress, + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, ); - if (!streamingPaymentsClient) { + + if (!streamingPaymentsInterface) { return; } await createEditStreamingPaymentAction({ event, - streamingPaymentsClient, + streamingPaymentsInterface, colonyAddress, }); }; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index 4a542a3b8..a61e2bc23 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -10,7 +10,6 @@ import { import { EventHandler } from '~types'; import { getExpenditureDatabaseId, - getStreamingPaymentsClient, output, toNumber, verbose, @@ -18,6 +17,8 @@ import { } from '~utils'; import { getStreamingPaymentFromDB } from './helpers'; import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { getInterfaceByExtensionHash } from '~interfaces'; +import { Extension, getExtensionHash } from '@colony/colony-js'; export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, @@ -66,15 +67,19 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( }, }); } else { - const streamingPaymentsClient = await getStreamingPaymentsClient( - colonyAddress, + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, ); - if (!streamingPaymentsClient) { + + if (!streamingPaymentsInterface) { return; } await createEditStreamingPaymentAction({ event, - streamingPaymentsClient, + streamingPaymentsInterface, colonyAddress, }); } diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index 16024f80f..e1b3d5e1f 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -1,7 +1,8 @@ import { EventHandler } from '~types'; -import { getStreamingPaymentsClient } from '~utils'; import { ExtensionEventListener } from '~eventListeners'; import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { Extension, getExtensionHash } from '@colony/colony-js'; +import { getInterfaceByExtensionHash } from '~interfaces'; export const handleStreamingPaymentStartTimeSet: EventHandler = async ( event, @@ -13,16 +14,20 @@ export const handleStreamingPaymentStartTimeSet: EventHandler = async ( return; } - const streamingPaymentsClient = await getStreamingPaymentsClient( - colonyAddress, + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, ); - if (!streamingPaymentsClient) { + + if (!streamingPaymentsInterface) { return; } await createEditStreamingPaymentAction({ event, - streamingPaymentsClient, + streamingPaymentsInterface, colonyAddress, }); }; diff --git a/src/interfaces.ts b/src/interfaces.ts index 8ca7b469c..4ad3ead06 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -49,7 +49,7 @@ export const getInterfaceByListener = ( } }; -const getInterfaceByExtensionHash = ( +export const getInterfaceByExtensionHash = ( extensionHash: string, ): utils.Interface | null => { switch (extensionHash) { From 330693e49e4462c9348af5b6f591c0214dc2ef33 Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:59:00 +0100 Subject: [PATCH 33/48] Feat: Handle cancel event when start time is in the future --- ...ndleEditOrCancelStreamingPaymentAction.ts} | 41 ++++++--- .../expenditures/paymentTokenUpdated.ts | 4 +- .../streamingPaymentEndTimeSet.ts | 83 ++++--------------- .../streamingPaymentStartTimeSet.ts | 4 +- 4 files changed, 48 insertions(+), 84 deletions(-) rename src/handlers/expenditures/helpers/{createEditStreamingPaymentAction.ts => handleEditOrCancelStreamingPaymentAction.ts} (76%) diff --git a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts similarity index 76% rename from src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts rename to src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts index 2a51e6977..57e04c8bc 100644 --- a/src/handlers/expenditures/helpers/createEditStreamingPaymentAction.ts +++ b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts @@ -1,4 +1,4 @@ -import { utils } from 'ethers'; +import { BigNumber, utils } from 'ethers'; import { mutate } from '~amplifyClient'; import { ColonyActionType, @@ -14,11 +14,12 @@ import { mapLogToContractEvent, output, toNumber, + verbose, writeActionFromEvent, } from '~utils'; import { getStreamingPaymentFromDB } from './getExpenditure'; -export const createEditStreamingPaymentAction = async ({ +export const handleEditOrCancelStreamingPaymentAction = async ({ event, colonyAddress, streamingPaymentsInterface, @@ -35,7 +36,7 @@ export const createEditStreamingPaymentAction = async ({ return; } - const { blockNumber } = event; + const { blockNumber, timestamp } = event; const { streamingPaymentId } = event.args; const convertedExpenditureId = toNumber(streamingPaymentId); @@ -128,15 +129,31 @@ export const createEditStreamingPaymentAction = async ({ }, }); + // When a streaming payment is cancelled, the endTime is set to the current block timestamp + // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action + const isCancelAction = BigNumber.from(timestamp).eq(newValues.endTime); + const { agent: initiatorAddress } = event.args; - await writeActionFromEvent(event, colonyAddress, { - type: ColonyActionType.EditStreamingPayment, - initiatorAddress, - streamingPaymentId: databaseId, - streamingPaymentChanges: { - oldValues: currentValues, - newValues, - }, - }); + if (isCancelAction) { + verbose(`Streaming payment with ID ${databaseId} cancelled`); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CancelStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + }); + } else { + verbose(`Streaming payment with ID ${databaseId} edited`); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.EditStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + streamingPaymentChanges: { + oldValues: currentValues, + newValues, + }, + }); + } }; diff --git a/src/handlers/expenditures/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index cd56f49e0..550bf93db 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,7 +1,7 @@ import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; -import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; import { Extension, getExtensionHash } from '@colony/colony-js'; import { getInterfaceByExtensionHash } from '~interfaces'; @@ -22,7 +22,7 @@ export const handlePaymentTokenUpdated: EventHandler = async ( return; } - await createEditStreamingPaymentAction({ + await handleEditOrCancelStreamingPaymentAction({ event, streamingPaymentsInterface, colonyAddress, diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts index a61e2bc23..c84edb629 100644 --- a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -1,22 +1,6 @@ -import { BigNumber } from 'ethers'; -import { mutate } from '~amplifyClient'; import { ExtensionEventListener } from '~eventListeners'; -import { - ColonyActionType, - UpdateStreamingPaymentDocument, - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables, -} from '~graphql'; import { EventHandler } from '~types'; -import { - getExpenditureDatabaseId, - output, - toNumber, - verbose, - writeActionFromEvent, -} from '~utils'; -import { getStreamingPaymentFromDB } from './helpers'; -import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; import { getInterfaceByExtensionHash } from '~interfaces'; import { Extension, getExtensionHash } from '@colony/colony-js'; @@ -24,63 +8,26 @@ export const handleStreamingPaymentEndTimeSet: EventHandler = async ( event, listener, ) => { - const { timestamp } = event; - const { agent: initiatorAddress, streamingPaymentId, endTime } = event.args; - const convertedNativeId = toNumber(streamingPaymentId); - const { colonyAddress } = listener as ExtensionEventListener; - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); - const streamingPayment = await getStreamingPaymentFromDB(databaseId); - if (!streamingPayment) { - output( - `Could not find streaming payment with ID: ${databaseId} in the db. This is a bug and needs investigating.`, - ); + if (!colonyAddress) { return; } - // When a streaming payment is cancelled, the endTime is set to the current block timestamp - // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action - const isCancelAction = BigNumber.from(timestamp).eq(endTime); + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, + ); - if (isCancelAction) { - verbose(`Streaming payment with ID ${databaseId} cancelled`); - } else { - verbose(`End time set for streaming payment with ID ${databaseId}`); + if (!streamingPaymentsInterface) { + return; } - if (isCancelAction) { - await writeActionFromEvent(event, colonyAddress, { - type: ColonyActionType.CancelStreamingPayment, - initiatorAddress, - streamingPaymentId: databaseId, - }); - - await mutate< - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables - >(UpdateStreamingPaymentDocument, { - input: { - id: databaseId, - endTime: endTime.toString(), - isCancelled: isCancelAction ? true : null, - }, - }); - } else { - const streamingPaymentsExtensionHash = getExtensionHash( - Extension.StreamingPayments, - ); - const streamingPaymentsInterface = getInterfaceByExtensionHash( - streamingPaymentsExtensionHash, - ); - - if (!streamingPaymentsInterface) { - return; - } - await createEditStreamingPaymentAction({ - event, - streamingPaymentsInterface, - colonyAddress, - }); - } + await handleEditOrCancelStreamingPaymentAction({ + event, + streamingPaymentsInterface, + colonyAddress, + }); }; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts index e1b3d5e1f..e02fcff7f 100644 --- a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -1,6 +1,6 @@ import { EventHandler } from '~types'; import { ExtensionEventListener } from '~eventListeners'; -import { createEditStreamingPaymentAction } from './helpers/createEditStreamingPaymentAction'; +import { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; import { Extension, getExtensionHash } from '@colony/colony-js'; import { getInterfaceByExtensionHash } from '~interfaces'; @@ -25,7 +25,7 @@ export const handleStreamingPaymentStartTimeSet: EventHandler = async ( return; } - await createEditStreamingPaymentAction({ + await handleEditOrCancelStreamingPaymentAction({ event, streamingPaymentsInterface, colonyAddress, From 8cfa0c591cfb8dd4942b2aed949b063d455cf56e Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:52:11 +0100 Subject: [PATCH 34/48] Feat: Only update streaming payment metadata changelog if end condition changes via motion --- src/handlers/motions/motionFinalized/helpers.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/handlers/motions/motionFinalized/helpers.ts b/src/handlers/motions/motionFinalized/helpers.ts index babec330a..2d44d9c75 100644 --- a/src/handlers/motions/motionFinalized/helpers.ts +++ b/src/handlers/motions/motionFinalized/helpers.ts @@ -240,6 +240,14 @@ export const linkPendingStreamingPaymentMetadata = async ({ return; } + const hasEndConditionChanged = + currentStreamingPaymentMetadata.endCondition !== + pendingStreamingPaymentMetadata.endCondition; + + if (!hasEndConditionChanged) { + return; + } + await mutate< UpdateStreamingPaymentMetadataMutation, UpdateStreamingPaymentMetadataMutationVariables From a00b4a3cd143fb4d6b2ebfd23a9045ea1d814ff4 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 17 Sep 2024 10:09:03 +0100 Subject: [PATCH 35/48] Add colonyId to streaming payment model --- src/handlers/expenditures/streamingPaymentCreated.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 1d150fb22..3c9464f6e 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -68,6 +68,7 @@ export const handleStreamingPaymentCreated: EventHandler = async ( interval: interval.toString(), tokenAddress, amount: amount.toString(), + colonyId: colonyAddress, }, }); From e3c3ecee7fa6343523cfca7cd6d2f778782a0fbf Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 17 Sep 2024 12:47:55 +0100 Subject: [PATCH 36/48] Feat: Save streaming payment recipient on the action object --- src/handlers/expenditures/streamingPaymentCreated.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 3c9464f6e..af2a4c8b5 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -77,5 +77,6 @@ export const handleStreamingPaymentCreated: EventHandler = async ( initiatorAddress, expenditureId: databaseId, fromDomainId: getDomainDatabaseId(colonyAddress, toNumber(domainId)), + recipientAddress, }); }; From c418cf6de8bbcf659d8d77bef6bd7f0155ba3bf7 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Mon, 23 Sep 2024 14:16:39 +0100 Subject: [PATCH 37/48] Fix: Set streaming payment isCancelled property --- .../helpers/handleEditOrCancelStreamingPaymentAction.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts index 57e04c8bc..9d5c9f09a 100644 --- a/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts +++ b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts @@ -116,6 +116,10 @@ export const handleEditOrCancelStreamingPaymentAction = async ({ } } + // When a streaming payment is cancelled, the endTime is set to the current block timestamp + // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action + const isCancelAction = BigNumber.from(timestamp).eq(newValues.endTime); + await mutate< UpdateStreamingPaymentMutation, UpdateStreamingPaymentMutationVariables @@ -126,13 +130,10 @@ export const handleEditOrCancelStreamingPaymentAction = async ({ endTime: newValues.endTime, amount: newValues.amount, interval: newValues.interval, + isCancelled: isCancelAction || undefined, }, }); - // When a streaming payment is cancelled, the endTime is set to the current block timestamp - // Therefore, if the endTime and timestamp are equal, we can assume this is a cancel action - const isCancelAction = BigNumber.from(timestamp).eq(newValues.endTime); - const { agent: initiatorAddress } = event.args; if (isCancelAction) { From f7c839603ffbf30ac896a4aec94336673091d89c Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 1 Oct 2024 01:43:09 +0100 Subject: [PATCH 38/48] Chore: fix rebase issues --- src/graphql/generated.ts | 4431 ++++++++--------- .../motionFinalized/motionFinalized.ts | 1 - 2 files changed, 2079 insertions(+), 2353 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 50d04801a..5731fec36 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1,9 +1,15 @@ 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 Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -277,7 +283,7 @@ export enum ClientType { TokenLockingClient = 'TokenLockingClient', TokenSupplierClient = 'TokenSupplierClient', VotingReputationClient = 'VotingReputationClient', - WhitelistClient = 'WhitelistClient' + WhitelistClient = 'WhitelistClient', } /** Represents a Colony within the Colony Network */ @@ -329,6 +335,7 @@ export type Colony = { roles?: Maybe; /** Status information for the Colony */ status?: Maybe; + streamingPayments?: Maybe; tokens?: Maybe; /** Type of the Colony (Regular or Metacolony) */ type?: Maybe; @@ -337,7 +344,6 @@ export type Colony = { version: Scalars['Int']; }; - /** Represents a Colony within the Colony Network */ export type ColonyActionsArgs = { filter?: InputMaybe; @@ -346,7 +352,6 @@ export type ColonyActionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyDomainsArgs = { filter?: InputMaybe; @@ -356,7 +361,6 @@ export type ColonyDomainsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExpendituresArgs = { createdAt?: InputMaybe; @@ -366,7 +370,6 @@ export type ColonyExpendituresArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExtensionsArgs = { filter?: InputMaybe; @@ -376,7 +379,6 @@ export type ColonyExtensionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyFundsClaimDataArgs = { createdAt?: InputMaybe; @@ -386,7 +388,6 @@ export type ColonyFundsClaimDataArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyRolesArgs = { filter?: InputMaybe; @@ -395,6 +396,14 @@ export type ColonyRolesArgs = { sortDirection?: InputMaybe; }; +/** Represents a Colony within the Colony Network */ +export type ColonyStreamingPaymentsArgs = { + createdAt?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; /** Represents a Colony within the Colony Network */ export type ColonyTokensArgs = { @@ -748,7 +757,7 @@ export enum ColonyActionType { /** An action related to upgrading a Colony's version via multiSig */ VersionUpgradeMultisig = 'VERSION_UPGRADE_MULTISIG', /** An action unrelated to the currently viewed Colony */ - WrongColony = 'WRONG_COLONY' + WrongColony = 'WRONG_COLONY', } /** Represents a Colony balance for a specific domain and token */ @@ -848,7 +857,6 @@ export type ColonyContributor = { user?: Maybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -858,7 +866,6 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1170,7 +1177,6 @@ export type ColonyMotion = { voterRewards?: Maybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1180,7 +1186,6 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1246,7 +1251,6 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; - /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1357,7 +1361,7 @@ export enum ColonyType { /** A regular Colony */ Colony = 'COLONY', /** The MetaColony, which governs the entire Colony Network */ - Metacolony = 'METACOLONY' + Metacolony = 'METACOLONY', } /** Unclaimed staking rewards for a motion */ @@ -1436,7 +1440,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP' + Top = 'TOP', } export type CreateAnnotationInput = { @@ -1895,6 +1899,7 @@ export type CreateSafeTransactionInput = { export type CreateStreamingPaymentInput = { amount: Scalars['String']; claims?: InputMaybe>; + colonyId: Scalars['ID']; createdAt?: InputMaybe; endTime: Scalars['String']; id?: InputMaybe; @@ -2333,7 +2338,7 @@ export enum DomainColor { /** The default domain color for the root domain. Only used by the root by default and cannot be selected by the user. */ Root = 'ROOT', /** A yellow color */ - Yellow = 'YELLOW' + Yellow = 'YELLOW', } /** Input type for specifying a Domain */ @@ -2444,7 +2449,6 @@ export type Expenditure = { userStakeId?: Maybe; }; - export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2452,7 +2456,6 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; - export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2568,16 +2571,15 @@ export enum ExpenditureStatus { Cancelled = 'CANCELLED', Draft = 'DRAFT', Finalized = 'FINALIZED', - Locked = 'LOCKED' + Locked = 'LOCKED', } export enum ExpenditureType { PaymentBuilder = 'PAYMENT_BUILDER', - Staged = 'STAGED' + Staged = 'STAGED', } export enum ExtendedSupportedCurrencies { -<<<<<<< HEAD Brl = 'BRL', Cad = 'CAD', Clny = 'CLNY', @@ -2589,9 +2591,6 @@ export enum ExtendedSupportedCurrencies { Krw = 'KRW', Usd = 'USD', Usdc = 'USDC', -======= - Usdc = 'USDC' ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } export type ExtensionInstallationsCount = { @@ -2645,7 +2644,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube' + Youtube = 'Youtube', } export type FailedTransaction = { @@ -2660,7 +2659,7 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION' + Union = 'UNION', } export type FunctionParam = { @@ -2806,7 +2805,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW' + UnderReview = 'UNDER_REVIEW', } /** @@ -2876,7 +2875,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet' + StringSet = 'stringSet', } export type ModelBooleanInput = { @@ -3556,10 +3555,14 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3749,11 +3752,15 @@ export type ModelExpenditureTypeInput = { }; export type ModelExtensionInstallationsCountConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3767,12 +3774,16 @@ export type ModelExtensionInstallationsCountConnection = { }; export type ModelExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4057,10 +4068,14 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4070,11 +4085,15 @@ export type ModelReputationMiningCycleMetadataConnection = { }; export type ModelReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSafeTransactionConditionInput = { @@ -4148,7 +4167,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC' + Desc = 'DESC', } export type ModelSplitPaymentDistributionTypeInput = { @@ -4159,6 +4178,7 @@ export type ModelSplitPaymentDistributionTypeInput = { export type ModelStreamingPaymentConditionInput = { amount?: InputMaybe; and?: InputMaybe>>; + colonyId?: InputMaybe; createdAt?: InputMaybe; endTime?: InputMaybe; interval?: InputMaybe; @@ -4187,6 +4207,7 @@ export type ModelStreamingPaymentEndConditionInput = { export type ModelStreamingPaymentFilterInput = { amount?: InputMaybe; and?: InputMaybe>>; + colonyId?: InputMaybe; createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; @@ -4203,10 +4224,14 @@ export type ModelStreamingPaymentFilterInput = { }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4321,14 +4346,20 @@ export type ModelSubscriptionColonyActionFilterInput = { }; export type ModelSubscriptionColonyActionMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; customTitle?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyContributorFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; colonyReputationPercentage?: InputMaybe; contributorAddress?: InputMaybe; @@ -4337,26 +4368,34 @@ export type ModelSubscriptionColonyContributorFilterInput = { id?: InputMaybe; isVerified?: InputMaybe; isWatching?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; type?: InputMaybe; }; export type ModelSubscriptionColonyDecisionFilterInput = { actionId?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; motionDomainId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; showInDecisionsList?: InputMaybe; title?: InputMaybe; walletAddress?: InputMaybe; }; export type ModelSubscriptionColonyExtensionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; hash?: InputMaybe; id?: InputMaybe; @@ -4365,7 +4404,9 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4386,30 +4427,32 @@ export type ModelSubscriptionColonyFilterInput = { export type ModelSubscriptionColonyFundsClaimFilterInput = { amount?: InputMaybe; -<<<<<<< HEAD and?: InputMaybe< Array> >; colonyFundsClaimsId?: InputMaybe; -======= - and?: InputMaybe>>; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) createdAt?: InputMaybe; createdAtBlock?: InputMaybe; id?: InputMaybe; isClaimed?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyHistoricRoleFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; blockNumber?: InputMaybe; colonyId?: InputMaybe; createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; isMultiSig?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role_0?: InputMaybe; role_1?: InputMaybe; role_2?: InputMaybe; @@ -4421,20 +4464,28 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { }; export type ModelSubscriptionColonyMemberInviteFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; id?: InputMaybe; invitesRemaining?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; avatar?: InputMaybe; description?: InputMaybe; displayName?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; thumbnail?: InputMaybe; }; @@ -4463,7 +4514,9 @@ export type ModelSubscriptionColonyMotionFilterInput = { }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4477,7 +4530,9 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4511,7 +4566,9 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4521,28 +4578,40 @@ export type ModelSubscriptionContractEventFilterInput = { }; export type ModelSubscriptionContributorReputationFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; contributorAddress?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationPercentage?: InputMaybe; reputationRaw?: InputMaybe; }; export type ModelSubscriptionCurrentNetworkInverseFeeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; inverseFee?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionCurrentVersionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; key?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4560,12 +4629,16 @@ export type ModelSubscriptionDomainFilterInput = { }; export type ModelSubscriptionDomainMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; color?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExpenditureFilterInput = { @@ -4590,21 +4663,29 @@ export type ModelSubscriptionExpenditureFilterInput = { }; export type ModelSubscriptionExpenditureMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; distributionType?: InputMaybe; expectedNumberOfPayouts?: InputMaybe; expectedNumberOfTokens?: InputMaybe; fundFromDomainNativeId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4639,7 +4720,9 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4658,17 +4741,23 @@ export type ModelSubscriptionIntInput = { }; export type ModelSubscriptionLiquidationAddressFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; chainId?: InputMaybe; id?: InputMaybe; liquidationAddress?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; export type ModelSubscriptionMotionMessageFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; createdAt?: InputMaybe; initiatorAddress?: InputMaybe; messageKey?: InputMaybe; @@ -4679,12 +4768,16 @@ export type ModelSubscriptionMotionMessageFilterInput = { }; export type ModelSubscriptionMultiSigUserSignatureFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; multiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; @@ -4707,9 +4800,13 @@ export type ModelSubscriptionNotificationsDataFilterInput = { }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; shareableInvites?: InputMaybe; userId?: InputMaybe; }; @@ -4732,20 +4829,28 @@ export type ModelSubscriptionProfileFilterInput = { }; export type ModelSubscriptionReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionSafeTransactionDataFilterInput = { abi?: InputMaybe; amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; contractFunction?: InputMaybe; data?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rawAmount?: InputMaybe; tokenAddress?: InputMaybe; transactionHash?: InputMaybe; @@ -4753,14 +4858,21 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStreamingPaymentFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + colonyId?: InputMaybe; createdAt?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; @@ -4769,17 +4881,23 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStringInput = { @@ -4884,12 +5002,16 @@ export type ModelSubscriptionUserTokensFilterInput = { export type ModelSubscriptionVoterRewardsHistoryFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; motionId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; @@ -5322,7 +5444,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject' + Reject = 'Reject', } /** Root mutation type */ @@ -5365,16 +5487,7 @@ export type Mutation = { createLiquidationAddress?: Maybe; createMotionMessage?: Maybe; createMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD createNotificationsData?: Maybe; -======= -======= - createPendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) createPrivateBetaInviteCode?: Maybe; createProfile?: Maybe; createReputationMiningCycleMetadata?: Maybe; @@ -5422,16 +5535,7 @@ export type Mutation = { deleteLiquidationAddress?: Maybe; deleteMotionMessage?: Maybe; deleteMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD deleteNotificationsData?: Maybe; -======= -======= - deletePendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) deletePrivateBetaInviteCode?: Maybe; deleteProfile?: Maybe; deleteReputationMiningCycleMetadata?: Maybe; @@ -5479,16 +5583,7 @@ export type Mutation = { updateLiquidationAddress?: Maybe; updateMotionMessage?: Maybe; updateMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD updateNotificationsData?: Maybe; -======= -======= - updatePendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) updatePrivateBetaInviteCode?: Maybe; updateProfile?: Maybe; updateReputationMiningCycleMetadata?: Maybe; @@ -5507,32 +5602,27 @@ export type Mutation = { validateUserInvite?: Maybe; }; - /** Root mutation type */ export type MutationBridgeCreateBankAccountArgs = { input: BridgeCreateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeUpdateBankAccountArgs = { input: BridgeUpdateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeXyzMutationArgs = { input: BridgeXyzMutationInput; }; - /** Root mutation type */ export type MutationCreateAnnotationArgs = { condition?: InputMaybe; input: CreateAnnotationInput; }; - /** Root mutation type */ export type MutationCreateCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -5545,273 +5635,221 @@ export type MutationCreateColonyArgs = { input: CreateColonyInput; }; - /** Root mutation type */ export type MutationCreateColonyActionArgs = { condition?: InputMaybe; input: CreateColonyActionInput; }; - /** Root mutation type */ export type MutationCreateColonyActionMetadataArgs = { condition?: InputMaybe; input: CreateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyContributorArgs = { condition?: InputMaybe; input: CreateColonyContributorInput; }; - /** Root mutation type */ export type MutationCreateColonyDecisionArgs = { condition?: InputMaybe; input: CreateColonyDecisionInput; }; - /** Root mutation type */ export type MutationCreateColonyEtherealMetadataArgs = { input: CreateColonyEtherealMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyExtensionArgs = { condition?: InputMaybe; input: CreateColonyExtensionInput; }; - /** Root mutation type */ export type MutationCreateColonyFundsClaimArgs = { condition?: InputMaybe; input: CreateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationCreateColonyHistoricRoleArgs = { condition?: InputMaybe; input: CreateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyMemberInviteArgs = { condition?: InputMaybe; input: CreateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationCreateColonyMetadataArgs = { condition?: InputMaybe; input: CreateColonyMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyMotionArgs = { condition?: InputMaybe; input: CreateColonyMotionInput; }; - /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; input: CreateColonyRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyTokensArgs = { condition?: InputMaybe; input: CreateColonyTokensInput; }; - /** Root mutation type */ export type MutationCreateContractEventArgs = { condition?: InputMaybe; input: CreateContractEventInput; }; - /** Root mutation type */ export type MutationCreateContributorReputationArgs = { condition?: InputMaybe; input: CreateContributorReputationInput; }; - /** Root mutation type */ export type MutationCreateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: CreateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationCreateCurrentVersionArgs = { condition?: InputMaybe; input: CreateCurrentVersionInput; }; - /** Root mutation type */ export type MutationCreateDomainArgs = { condition?: InputMaybe; input: CreateDomainInput; }; - /** Root mutation type */ export type MutationCreateDomainMetadataArgs = { condition?: InputMaybe; input: CreateDomainMetadataInput; }; - /** Root mutation type */ export type MutationCreateExpenditureArgs = { condition?: InputMaybe; input: CreateExpenditureInput; }; - /** Root mutation type */ export type MutationCreateExpenditureMetadataArgs = { condition?: InputMaybe; input: CreateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationCreateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: CreateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationCreateIngestorStatsArgs = { condition?: InputMaybe; input: CreateIngestorStatsInput; }; - /** Root mutation type */ export type MutationCreateLiquidationAddressArgs = { condition?: InputMaybe; input: CreateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationCreateMotionMessageArgs = { condition?: InputMaybe; input: CreateMotionMessageInput; }; - /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ -<<<<<<< HEAD export type MutationCreateNotificationsDataArgs = { condition?: InputMaybe; input: CreateNotificationsDataInput; }; -======= -export type MutationCreatePendingStreamingPaymentMetadataArgs = { - condition?: InputMaybe; - input: CreatePendingStreamingPaymentMetadataInput; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: CreatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationCreateProfileArgs = { condition?: InputMaybe; input: CreateProfileInput; }; - /** Root mutation type */ export type MutationCreateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: CreateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionArgs = { condition?: InputMaybe; input: CreateSafeTransactionInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionDataArgs = { condition?: InputMaybe; input: CreateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentArgs = { condition?: InputMaybe; input: CreateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationCreateTokenArgs = { condition?: InputMaybe; input: CreateTokenInput; }; - /** Root mutation type */ export type MutationCreateTokenExchangeRateArgs = { condition?: InputMaybe; @@ -5824,20 +5862,17 @@ export type MutationCreateTransactionArgs = { input: CreateTransactionInput; }; - /** Root mutation type */ export type MutationCreateUniqueUserArgs = { input?: InputMaybe; }; - /** Root mutation type */ export type MutationCreateUserArgs = { condition?: InputMaybe; input: CreateUserInput; }; - /** Root mutation type */ export type MutationCreateUserNotificationsDataArgs = { input: CreateUserNotificationsDataInput; @@ -5849,28 +5884,24 @@ export type MutationCreateUserStakeArgs = { input: CreateUserStakeInput; }; - /** Root mutation type */ export type MutationCreateUserTokensArgs = { condition?: InputMaybe; input: CreateUserTokensInput; }; - /** Root mutation type */ export type MutationCreateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: CreateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationDeleteAnnotationArgs = { condition?: InputMaybe; input: DeleteAnnotationInput; }; - /** Root mutation type */ export type MutationDeleteCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -5883,267 +5914,216 @@ export type MutationDeleteColonyArgs = { input: DeleteColonyInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionArgs = { condition?: InputMaybe; input: DeleteColonyActionInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionMetadataArgs = { condition?: InputMaybe; input: DeleteColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyContributorArgs = { condition?: InputMaybe; input: DeleteColonyContributorInput; }; - /** Root mutation type */ export type MutationDeleteColonyDecisionArgs = { condition?: InputMaybe; input: DeleteColonyDecisionInput; }; - /** Root mutation type */ export type MutationDeleteColonyExtensionArgs = { condition?: InputMaybe; input: DeleteColonyExtensionInput; }; - /** Root mutation type */ export type MutationDeleteColonyFundsClaimArgs = { condition?: InputMaybe; input: DeleteColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationDeleteColonyHistoricRoleArgs = { condition?: InputMaybe; input: DeleteColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyMemberInviteArgs = { condition?: InputMaybe; input: DeleteColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationDeleteColonyMetadataArgs = { condition?: InputMaybe; input: DeleteColonyMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyMotionArgs = { condition?: InputMaybe; input: DeleteColonyMotionInput; }; - /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; - /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; input: DeleteColonyRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyTokensArgs = { condition?: InputMaybe; input: DeleteColonyTokensInput; }; - /** Root mutation type */ export type MutationDeleteContractEventArgs = { condition?: InputMaybe; input: DeleteContractEventInput; }; - /** Root mutation type */ export type MutationDeleteContributorReputationArgs = { condition?: InputMaybe; input: DeleteContributorReputationInput; }; - /** Root mutation type */ export type MutationDeleteCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: DeleteCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationDeleteCurrentVersionArgs = { condition?: InputMaybe; input: DeleteCurrentVersionInput; }; - /** Root mutation type */ export type MutationDeleteDomainArgs = { condition?: InputMaybe; input: DeleteDomainInput; }; - /** Root mutation type */ export type MutationDeleteDomainMetadataArgs = { condition?: InputMaybe; input: DeleteDomainMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureArgs = { condition?: InputMaybe; input: DeleteExpenditureInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureMetadataArgs = { condition?: InputMaybe; input: DeleteExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExtensionInstallationsCountArgs = { condition?: InputMaybe; input: DeleteExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationDeleteIngestorStatsArgs = { condition?: InputMaybe; input: DeleteIngestorStatsInput; }; - /** Root mutation type */ export type MutationDeleteLiquidationAddressArgs = { condition?: InputMaybe; input: DeleteLiquidationAddressInput; }; - /** Root mutation type */ export type MutationDeleteMotionMessageArgs = { condition?: InputMaybe; input: DeleteMotionMessageInput; }; - /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ -<<<<<<< HEAD export type MutationDeleteNotificationsDataArgs = { condition?: InputMaybe; input: DeleteNotificationsDataInput; }; -======= -export type MutationDeletePendingStreamingPaymentMetadataArgs = { - condition?: InputMaybe; - input: DeletePendingStreamingPaymentMetadataInput; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: DeletePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationDeleteProfileArgs = { condition?: InputMaybe; input: DeleteProfileInput; }; - /** Root mutation type */ export type MutationDeleteReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: DeleteReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionArgs = { condition?: InputMaybe; input: DeleteSafeTransactionInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionDataArgs = { condition?: InputMaybe; input: DeleteSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationDeleteTokenArgs = { condition?: InputMaybe; input: DeleteTokenInput; }; - /** Root mutation type */ export type MutationDeleteTokenExchangeRateArgs = { condition?: InputMaybe; @@ -6156,48 +6136,41 @@ export type MutationDeleteTransactionArgs = { input: DeleteTransactionInput; }; - /** Root mutation type */ export type MutationDeleteUserArgs = { condition?: InputMaybe; input: DeleteUserInput; }; - /** Root mutation type */ export type MutationDeleteUserStakeArgs = { condition?: InputMaybe; input: DeleteUserStakeInput; }; - /** Root mutation type */ export type MutationDeleteUserTokensArgs = { condition?: InputMaybe; input: DeleteUserTokensInput; }; - /** Root mutation type */ export type MutationDeleteVoterRewardsHistoryArgs = { condition?: InputMaybe; input: DeleteVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; - /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; input: UpdateAnnotationInput; }; - /** Root mutation type */ export type MutationUpdateCacheTotalBalanceArgs = { condition?: InputMaybe; @@ -6210,273 +6183,221 @@ export type MutationUpdateColonyArgs = { input: UpdateColonyInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionArgs = { condition?: InputMaybe; input: UpdateColonyActionInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionMetadataArgs = { condition?: InputMaybe; input: UpdateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyContributorArgs = { condition?: InputMaybe; input: UpdateColonyContributorInput; }; - /** Root mutation type */ export type MutationUpdateColonyDecisionArgs = { condition?: InputMaybe; input: UpdateColonyDecisionInput; }; - /** Root mutation type */ export type MutationUpdateColonyExtensionArgs = { condition?: InputMaybe; input: UpdateColonyExtensionInput; }; - /** Root mutation type */ export type MutationUpdateColonyFundsClaimArgs = { condition?: InputMaybe; input: UpdateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationUpdateColonyHistoricRoleArgs = { condition?: InputMaybe; input: UpdateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyMemberInviteArgs = { condition?: InputMaybe; input: UpdateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationUpdateColonyMetadataArgs = { condition?: InputMaybe; input: UpdateColonyMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyMotionArgs = { condition?: InputMaybe; input: UpdateColonyMotionInput; }; - /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; input: UpdateColonyRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyTokensArgs = { condition?: InputMaybe; input: UpdateColonyTokensInput; }; - /** Root mutation type */ export type MutationUpdateContractEventArgs = { condition?: InputMaybe; input: UpdateContractEventInput; }; - /** Root mutation type */ export type MutationUpdateContributorReputationArgs = { condition?: InputMaybe; input: UpdateContributorReputationInput; }; - /** Root mutation type */ export type MutationUpdateContributorsWithReputationArgs = { input: UpdateContributorsWithReputationInput; }; - /** Root mutation type */ export type MutationUpdateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: UpdateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationUpdateCurrentVersionArgs = { condition?: InputMaybe; input: UpdateCurrentVersionInput; }; - /** Root mutation type */ export type MutationUpdateDomainArgs = { condition?: InputMaybe; input: UpdateDomainInput; }; - /** Root mutation type */ export type MutationUpdateDomainMetadataArgs = { condition?: InputMaybe; input: UpdateDomainMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureArgs = { condition?: InputMaybe; input: UpdateExpenditureInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureMetadataArgs = { condition?: InputMaybe; input: UpdateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: UpdateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationUpdateIngestorStatsArgs = { condition?: InputMaybe; input: UpdateIngestorStatsInput; }; - /** Root mutation type */ export type MutationUpdateLiquidationAddressArgs = { condition?: InputMaybe; input: UpdateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationUpdateMotionMessageArgs = { condition?: InputMaybe; input: UpdateMotionMessageInput; }; - /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ -<<<<<<< HEAD export type MutationUpdateNotificationsDataArgs = { condition?: InputMaybe; input: UpdateNotificationsDataInput; }; -======= -export type MutationUpdatePendingStreamingPaymentMetadataArgs = { - condition?: InputMaybe; - input: UpdatePendingStreamingPaymentMetadataInput; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: UpdatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationUpdateProfileArgs = { condition?: InputMaybe; input: UpdateProfileInput; }; - /** Root mutation type */ export type MutationUpdateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: UpdateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionArgs = { condition?: InputMaybe; input: UpdateSafeTransactionInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionDataArgs = { condition?: InputMaybe; input: UpdateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationUpdateTokenArgs = { condition?: InputMaybe; input: UpdateTokenInput; }; - /** Root mutation type */ export type MutationUpdateTokenExchangeRateArgs = { condition?: InputMaybe; @@ -6489,35 +6410,30 @@ export type MutationUpdateTransactionArgs = { input: UpdateTransactionInput; }; - /** Root mutation type */ export type MutationUpdateUserArgs = { condition?: InputMaybe; input: UpdateUserInput; }; - /** Root mutation type */ export type MutationUpdateUserStakeArgs = { condition?: InputMaybe; input: UpdateUserStakeInput; }; - /** Root mutation type */ export type MutationUpdateUserTokensArgs = { condition?: InputMaybe; input: UpdateUserTokensInput; }; - /** Root mutation type */ export type MutationUpdateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: UpdateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationValidateUserInviteArgs = { input: ValidateUserInviteInput; @@ -6605,7 +6521,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET' + Mainnet = 'MAINNET', } /** Type of notifications that can be sent */ @@ -6854,16 +6770,7 @@ export type Query = { getMultiSigByTransactionHash?: Maybe; getMultiSigUserSignature?: Maybe; getMultiSigUserSignatureByMultiSigId?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD getNotificationsData?: Maybe; -======= -======= - getPendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) getPrivateBetaInviteCode?: Maybe; getProfile?: Maybe; getProfileByEmail?: Maybe; @@ -6877,6 +6784,7 @@ export type Query = { getSafeTransactionStatus?: Maybe>; getStreamingPayment?: Maybe; getStreamingPaymentMetadata?: Maybe; + getStreamingPaymentsByColony?: Maybe; getToken?: Maybe; getTokenByAddress?: Maybe; getTokenExchangeRate?: Maybe; @@ -6933,16 +6841,7 @@ export type Query = { listLiquidationAddresses?: Maybe; listMotionMessages?: Maybe; listMultiSigUserSignatures?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD listNotificationsData?: Maybe; -======= -======= - listPendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) listPrivateBetaInviteCodes?: Maybe; listProfiles?: Maybe; listReputationMiningCycleMetadata?: Maybe; @@ -6962,13 +6861,11 @@ export type Query = { tokenExhangeRateByTokenId?: Maybe; }; - /** Root query type */ export type QueryBridgeGetUserLiquidationAddressArgs = { userAddress: Scalars['String']; }; - /** Root query type */ export type QueryCacheTotalBalanceByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -6988,7 +6885,6 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -6998,7 +6894,6 @@ export type QueryGetActionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -7009,13 +6904,11 @@ export type QueryGetActionsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetAnnotationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCacheTotalBalanceArgs = { id: Scalars['ID']; @@ -7030,19 +6923,16 @@ export type QueryGetColoniesByNativeTokenIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionByMotionIdArgs = { filter?: InputMaybe; @@ -7052,7 +6942,6 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -7062,13 +6951,11 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -7078,7 +6965,6 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -7088,7 +6974,6 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -7098,19 +6983,16 @@ export type QueryGetColonyByTypeArgs = { type: ColonyType; }; - /** Root query type */ export type QueryGetColonyContributorArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionByActionIdArgs = { actionId: Scalars['ID']; @@ -7120,7 +7002,6 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -7131,25 +7012,21 @@ export type QueryGetColonyDecisionByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyExtensionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyFundsClaimArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleByDateArgs = { createdAt?: InputMaybe; @@ -7160,55 +7037,46 @@ export type QueryGetColonyHistoricRoleByDateArgs = { type: Scalars['String']; }; - /** Root query type */ export type QueryGetColonyMemberInviteArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContractEventArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorReputationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorsByAddressArgs = { colonyReputationPercentage?: InputMaybe; @@ -7219,7 +7087,6 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7230,19 +7097,16 @@ export type QueryGetContributorsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetCurrentNetworkInverseFeeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionByKeyArgs = { filter?: InputMaybe; @@ -7252,13 +7116,11 @@ export type QueryGetCurrentVersionByKeyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; @@ -7274,13 +7136,11 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7296,13 +7156,11 @@ export type QueryGetExpenditureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpenditureMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpendituresByColonyArgs = { colonyId: Scalars['ID']; @@ -7313,7 +7171,6 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7324,7 +7181,6 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7335,13 +7191,11 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7351,7 +7205,6 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7367,13 +7220,11 @@ export type QueryGetIngestorStatsArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressesByUserAddressArgs = { filter?: InputMaybe; @@ -7383,7 +7234,6 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7393,7 +7243,6 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -7403,7 +7252,6 @@ export type QueryGetMotionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7413,13 +7261,11 @@ export type QueryGetMotionByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7430,19 +7276,16 @@ export type QueryGetMotionMessageByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionStateArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionTimeoutPeriodsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7453,7 +7296,6 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7463,7 +7305,6 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7482,13 +7323,11 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7498,39 +7337,21 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ -<<<<<<< HEAD export type QueryGetNotificationsDataArgs = { userAddress: Scalars['ID']; }; -======= -export type QueryGetPendingStreamingPaymentMetadataArgs = { - id: Scalars['ID']; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileByEmailArgs = { email: Scalars['AWSEmail']; @@ -7540,7 +7361,6 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7550,13 +7370,11 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7567,7 +7385,6 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7578,7 +7395,6 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7589,43 +7405,46 @@ export type QueryGetRoleByTargetAddressAndColonyArgs = { targetAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionDataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionStatusArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetStreamingPaymentArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; +/** Root query type */ +export type QueryGetStreamingPaymentsByColonyArgs = { + colonyId: Scalars['ID']; + createdAt?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; /** Root query type */ export type QueryGetTokenArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenByAddressArgs = { filter?: InputMaybe; @@ -7635,7 +7454,6 @@ export type QueryGetTokenByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTokenExchangeRateArgs = { id: Scalars['ID']; @@ -7646,7 +7464,6 @@ export type QueryGetTokenFromEverywhereArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetTokensByTypeArgs = { filter?: InputMaybe; @@ -7656,13 +7473,11 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; - /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7673,7 +7488,6 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7684,13 +7498,11 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7700,7 +7512,6 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7710,7 +7521,6 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7720,13 +7530,11 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7737,13 +7545,11 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7754,19 +7560,16 @@ export type QueryGetUserStakesArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserTokenBalanceArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7777,19 +7580,16 @@ export type QueryGetUserVoterRewardsArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetVoterRewardsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetVoterRewardsHistoryArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryListAnnotationsArgs = { filter?: InputMaybe; @@ -7797,7 +7597,6 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7812,7 +7611,6 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7820,7 +7618,6 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7828,7 +7625,6 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7836,7 +7632,6 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7844,7 +7639,6 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7852,7 +7646,6 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7860,7 +7653,6 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7868,7 +7660,6 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7876,7 +7667,6 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7884,7 +7674,6 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7892,7 +7681,6 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7900,7 +7688,6 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7908,7 +7695,6 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7916,7 +7702,6 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7924,7 +7709,6 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7932,7 +7716,6 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7940,7 +7723,6 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7948,7 +7730,6 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7956,7 +7737,6 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7964,7 +7744,6 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7972,7 +7751,6 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7980,7 +7758,6 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7988,7 +7765,6 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7996,7 +7772,6 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -8004,7 +7779,6 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -8012,7 +7786,6 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -8020,11 +7793,7 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ -<<<<<<< HEAD export type QueryListNotificationsDataArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8033,20 +7802,6 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; -======= -export type QueryListPendingStreamingPaymentMetadataArgs = { - filter?: InputMaybe; - limit?: InputMaybe; - nextToken?: InputMaybe; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -8054,7 +7809,6 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -8062,7 +7816,6 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -8070,7 +7823,6 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -8078,7 +7830,6 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -8086,7 +7837,6 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -8094,7 +7844,6 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -8102,7 +7851,6 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -8117,7 +7865,6 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -8125,7 +7872,6 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -8133,7 +7879,6 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -8141,7 +7886,6 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -8149,7 +7893,6 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -8157,10 +7900,11 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8168,10 +7912,11 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; - /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8222,7 +7967,6 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; - export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8256,7 +8000,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT' + TransferNft = 'TRANSFER_NFT', } export type SearchableAggregateBucketResult = { @@ -8270,7 +8014,9 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = + | SearchableAggregateBucketResult + | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8288,7 +8034,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms' + Terms = 'terms', } export type SearchableBooleanFilterInput = { @@ -8332,7 +8078,7 @@ export enum SearchableColonyActionAggregateField { ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyActionAggregationInput = { @@ -8431,7 +8177,7 @@ export enum SearchableColonyActionSortableFields { ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export enum SearchableColonyContributorAggregateField { @@ -8445,7 +8191,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyContributorAggregationInput = { @@ -8494,7 +8240,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableFloatFilterInput = { @@ -8536,7 +8282,7 @@ export type SearchableIntFilterInput = { export enum SearchableSortDirection { Asc = 'asc', - Desc = 'desc' + Desc = 'desc', } export type SearchableStringFilterInput = { @@ -8589,13 +8335,13 @@ export enum SortingMethod { /** Sort members by lowest reputation */ ByLowestRep = 'BY_LOWEST_REP', /** Sort members by having more permissions */ - ByMorePermissions = 'BY_MORE_PERMISSIONS' + ByMorePermissions = 'BY_MORE_PERMISSIONS', } export enum SplitPaymentDistributionType { Equal = 'EQUAL', Reputation = 'REPUTATION', - Unequal = 'UNEQUAL' + Unequal = 'UNEQUAL', } export type StakedExpenditureParams = { @@ -8633,6 +8379,10 @@ export type StreamingPayment = { actions?: Maybe; amount: Scalars['String']; claims?: Maybe>; + /** The Colony to which the expenditure belongs */ + colony: Colony; + /** Colony ID (address) to which the expenditure belongs */ + colonyId: Scalars['ID']; createdAt: Scalars['AWSDateTime']; endTime: Scalars['String']; id: Scalars['ID']; @@ -8644,6 +8394,7 @@ export type StreamingPayment = { metadata?: Maybe; motions?: Maybe; nativeDomainId: Scalars['Int']; + /** Native ID of the streaming payment within a colony */ nativeId: Scalars['Int']; recipientAddress: Scalars['String']; startTime: Scalars['String']; @@ -8652,7 +8403,6 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; - export type StreamingPaymentActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8660,7 +8410,6 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; - export type StreamingPaymentMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8710,7 +8459,7 @@ export type StreamingPaymentClaimInput = { export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', - WhenCancelled = 'WHEN_CANCELLED' + WhenCancelled = 'WHEN_CANCELLED', } export type StreamingPaymentMetadata = { @@ -8771,16 +8520,7 @@ export type Subscription = { onCreateLiquidationAddress?: Maybe; onCreateMotionMessage?: Maybe; onCreateMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD onCreateNotificationsData?: Maybe; -======= -======= - onCreatePendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onCreatePrivateBetaInviteCode?: Maybe; onCreateProfile?: Maybe; onCreateReputationMiningCycleMetadata?: Maybe; @@ -8824,16 +8564,7 @@ export type Subscription = { onDeleteLiquidationAddress?: Maybe; onDeleteMotionMessage?: Maybe; onDeleteMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD onDeleteNotificationsData?: Maybe; -======= -======= - onDeletePendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onDeletePrivateBetaInviteCode?: Maybe; onDeleteProfile?: Maybe; onDeleteReputationMiningCycleMetadata?: Maybe; @@ -8877,16 +8608,7 @@ export type Subscription = { onUpdateLiquidationAddress?: Maybe; onUpdateMotionMessage?: Maybe; onUpdateMultiSigUserSignature?: Maybe; -<<<<<<< HEAD -<<<<<<< HEAD onUpdateNotificationsData?: Maybe; -======= -======= - onUpdatePendingStreamingPaymentMetadata?: Maybe; ->>>>>>> a0923563 (Feat: Add editStreamingPaymentMotion multicall handler) ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) onUpdatePrivateBetaInviteCode?: Maybe; onUpdateProfile?: Maybe; onUpdateReputationMiningCycleMetadata?: Maybe; @@ -8903,719 +8625,530 @@ export type Subscription = { onUpdateVoterRewardsHistory?: Maybe; }; - export type SubscriptionOnCreateAnnotationArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnCreateCacheTotalBalanceArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnCreateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; -======= -======= -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -export type SubscriptionOnCreatePendingStreamingPaymentMetadataArgs = { - filter?: InputMaybe; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTokenArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnCreateTokenExchangeRateArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnCreateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteAnnotationArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnDeleteCacheTotalBalanceArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnDeleteColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; -======= -======= -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -export type SubscriptionOnDeletePendingStreamingPaymentMetadataArgs = { - filter?: InputMaybe; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTokenArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnDeleteTokenExchangeRateArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnDeleteTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateAnnotationArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnUpdateCacheTotalBalanceArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnUpdateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; -======= -======= -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -export type SubscriptionOnUpdatePendingStreamingPaymentMetadataArgs = { - filter?: InputMaybe; -}; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -<<<<<<< HEAD - ->>>>>>> 7a6f2da (Feat: Add editStreamingPaymentMotion multicall handler) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTokenArgs = { filter?: InputMaybe; }; -<<<<<<< HEAD export type SubscriptionOnUpdateTokenExchangeRateArgs = { filter?: InputMaybe; }; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type SubscriptionOnUpdateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; @@ -9631,7 +9164,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD' + Usd = 'USD', } /** Return type for domain balance for a timeframe item */ @@ -9679,7 +9212,6 @@ export type Token = { validated?: Maybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9688,7 +9220,6 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9745,7 +9276,7 @@ export enum TokenType { /** A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself */ Colony = 'COLONY', /** An ERC20-compatible token */ - Erc20 = 'ERC20' + Erc20 = 'ERC20', } /** Represents a transaction made in a colony by a user */ @@ -9824,7 +9355,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL' + Unsuccessful = 'UNSUCCESSFUL', } export type TransactionGroup = { @@ -9855,7 +9386,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED' + Succeeded = 'SUCCEEDED', } export type UpdateAnnotationInput = { @@ -10320,6 +9851,7 @@ export type UpdateSafeTransactionInput = { export type UpdateStreamingPaymentInput = { amount?: InputMaybe; claims?: InputMaybe>; + colonyId?: InputMaybe; createdAt?: InputMaybe; endTime?: InputMaybe; id: Scalars['ID']; @@ -10447,7 +9979,6 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; - /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -10456,7 +9987,6 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10466,7 +9996,6 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10475,7 +10004,6 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10523,7 +10051,7 @@ export type UserStake = { /** Type of stake a user can make */ export enum UserStakeType { Motion = 'MOTION', - StakedExpenditure = 'STAKED_EXPENDITURE' + StakedExpenditure = 'STAKED_EXPENDITURE', } export type UserTokens = { @@ -10641,8 +10169,6 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; -<<<<<<< HEAD -<<<<<<< HEAD export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction'; id: string; @@ -10735,15 +10261,37 @@ export type ColonyFragment = { } | null>; } | null; }; -======= -export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; - -export type ColonyFragment = { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) -export type ColonyMetadataFragment = { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null }; +export type ColonyMetadataFragment = { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; +}; -<<<<<<< HEAD export type ColonyWithRootRolesFragment = { __typename?: 'Colony'; id: string; @@ -10830,25 +10378,77 @@ export type ExpenditureFragment = { } | null>; } | null; }; -======= -export type ExpenditureBalanceFragment = { __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }; - -export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) -export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; - -export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null }; +export type ExpenditureSlotFragment = { + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; +}; -export type StreamingPaymentMetadataFragment = { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null }; +export type StreamingPaymentFragment = { + __typename?: 'StreamingPayment'; + id: string; + startTime: string; + endTime: string; + tokenAddress: string; + amount: string; + interval: string; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + timestamp: string; + }> | null; +}; -export type StreamingPaymentChangesFragment = { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }; +export type StreamingPaymentMetadataFragment = { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; +}; -export type ExtensionFragment = { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number }; +export type StreamingPaymentChangesFragment = { + __typename?: 'StreamingPaymentChanges'; + startTime: string; + endTime: string; + interval: string; + amount: string; +}; -export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; +export type ExtensionFragment = { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; +}; -<<<<<<< HEAD export type ColonyMotionFragment = { __typename?: 'ColonyMotion'; id: string; @@ -10866,6 +10466,8 @@ export type ColonyMotionFragment = { isDecision: boolean; transactionHash: string; expenditureId?: string | null; + streamingPaymentId?: string | null; + pendingStreamingPaymentMetadataId?: string | null; motionStakes: { __typename?: 'MotionStakes'; raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; @@ -10916,23 +10518,65 @@ export type ColonyMotionFragment = { finalizedAt?: string | null; }; }; -======= -export type VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) -export type StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; +export type VoterRecordFragment = { + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; +}; -export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; +export type StakerRewardFragment = { + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; +}; -export type UserMotionStakesFragment = { __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }; +export type MotionStakesFragment = { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; +}; -export type DomainMetadataFragment = { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null }; +export type UserMotionStakesFragment = { + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; +}; -export type MultiSigUserSignatureFragment = { __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string }; +export type DomainMetadataFragment = { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; +}; -export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; +export type MultiSigUserSignatureFragment = { + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; +}; -<<<<<<< HEAD export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig'; id: string; @@ -10968,7 +10612,6 @@ export type ColonyMultiSigFragment = { action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; }; -<<<<<<< HEAD export type TokenFragment = { __typename?: 'Token'; symbol: string; @@ -11000,639 +10643,571 @@ export type NotificationsDataFragment = { mentionNotificationsDisabled: boolean; adminNotificationsDisabled: boolean; }; -======= -======= -export type ColonyFragment = { - __typename?: 'Colony'; - colonyAddress: string; - nativeToken: { __typename?: 'Token'; tokenAddress: string }; - tokens?: { - __typename?: 'ModelColonyTokensConnection'; - items: Array<{ - __typename?: 'ColonyTokens'; - id: string; - tokenAddress: string; - } | null>; - } | null; - motionsWithUnclaimedStakes?: Array<{ - __typename?: 'ColonyUnclaimedStake'; - motionId: string; - unclaimedRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - }> | null; - domains?: { - __typename?: 'ModelDomainConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Domain'; - id: string; - nativeSkillId: string; - } | null>; - } | null; -}; -export type ColonyMetadataFragment = { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - }> | null; +export type CreateColonyActionMutationVariables = Exact<{ + input: CreateColonyActionInput; +}>; + +export type CreateColonyActionMutation = { + __typename?: 'Mutation'; + createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; }; -export type ExpenditureBalanceFragment = { - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; +export type UpdateColonyActionMutationVariables = Exact<{ + input: UpdateColonyActionInput; +}>; + +export type UpdateColonyActionMutation = { + __typename?: 'Mutation'; + updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; }; -export type ExpenditureFragment = { - __typename?: 'Expenditure'; - id: string; - status: ExpenditureStatus; - ownerAddress: string; - userStakeId?: string | null; - createdAt: string; - firstEditTransactionHash?: string | null; - type: ExpenditureType; - slots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - motions?: { - __typename?: 'ModelColonyMotionConnection'; - items: Array<{ - __typename?: 'ColonyMotion'; - transactionHash: string; - action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; - } | null>; - } | null; - balances?: Array<{ - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; - }> | null; -}; - -export type ExpenditureSlotFragment = { - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; -}; - -export type ExtensionFragment = { - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; -}; - -export type ColonyMotionFragment = { - __typename?: 'ColonyMotion'; - id: string; - nativeMotionId: string; - requiredStake: string; - remainingStakes: Array; - userMinStake: string; - nativeMotionDomainId: string; - isFinalized: boolean; - createdBy: string; - repSubmitted: string; - skillRep: string; - hasObjection: boolean; - motionDomainId: string; - isDecision: boolean; - transactionHash: string; - streamingPaymentId?: string | null; - pendingStreamingPaymentMetadataId?: string | null; - motionStakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - }; - usersStakes: Array<{ - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { - __typename?: 'MotionStakeValues'; - yay: string; - nay: string; - }; - }; - }>; - stakerRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - voterRecord: Array<{ - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; - }>; - revealedVotes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }; - motionStateHistory: { - __typename?: 'MotionStateHistory'; - hasVoted: boolean; - hasPassed: boolean; - hasFailed: boolean; - hasFailedNotFinalizable: boolean; - inRevealPhase: boolean; - yaySideFullyStakedAt?: string | null; - naySideFullyStakedAt?: string | null; - allVotesSubmittedAt?: string | null; - allVotesRevealedAt?: string | null; - endedAt?: string | null; - finalizedAt?: string | null; - }; -}; - -export type VoterRecordFragment = { - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; -}; - -export type StakerRewardFragment = { - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; -}; - -export type MotionStakesFragment = { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; -}; - -export type UserMotionStakesFragment = { - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }; -}; - -export type DomainMetadataFragment = { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; -}; - ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -export type TokenFragment = { __typename?: 'Token'; tokenAddress: string }; ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -======= -export type TokenFragment = { __typename?: 'Token', tokenAddress: string }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -export type CreateColonyActionMutationVariables = Exact<{ - input: CreateColonyActionInput; -}>; - - -export type CreateColonyActionMutation = { __typename?: 'Mutation', createColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; - -export type UpdateColonyActionMutationVariables = Exact<{ - input: UpdateColonyActionInput; -}>; - - -export type UpdateColonyActionMutation = { __typename?: 'Mutation', updateColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; - export type UpdateColonyMutationVariables = Exact<{ input: UpdateColonyInput; }>; - -export type UpdateColonyMutation = { __typename?: 'Mutation', updateColony?: { __typename?: 'Colony', id: string } | null }; +export type UpdateColonyMutation = { + __typename?: 'Mutation'; + updateColony?: { __typename?: 'Colony'; id: string } | null; +}; export type UpdateColonyMetadataMutationVariables = Exact<{ input: UpdateColonyMetadataInput; }>; - -export type UpdateColonyMetadataMutation = { __typename?: 'Mutation', updateColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type UpdateColonyMetadataMutation = { + __typename?: 'Mutation'; + updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMutationVariables = Exact<{ input: CreateColonyInput; condition?: InputMaybe; }>; - -export type CreateColonyMutation = { __typename?: 'Mutation', createColony?: { __typename?: 'Colony', id: string } | null }; +export type CreateColonyMutation = { + __typename?: 'Mutation'; + createColony?: { __typename?: 'Colony'; id: string } | null; +}; export type CreateColonyMetadataMutationVariables = Exact<{ input: CreateColonyMetadataInput; }>; - -export type CreateColonyMetadataMutation = { __typename?: 'Mutation', createColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type CreateColonyMetadataMutation = { + __typename?: 'Mutation'; + createColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type DeleteColonyMetadataMutationVariables = Exact<{ input: DeleteColonyMetadataInput; }>; - -export type DeleteColonyMetadataMutation = { __typename?: 'Mutation', deleteColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type DeleteColonyMetadataMutation = { + __typename?: 'Mutation'; + deleteColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMemberInviteMutationVariables = Exact<{ input: CreateColonyMemberInviteInput; condition?: InputMaybe; }>; - -export type CreateColonyMemberInviteMutation = { __typename?: 'Mutation', createColonyMemberInvite?: { __typename?: 'ColonyMemberInvite', id: string } | null }; +export type CreateColonyMemberInviteMutation = { + __typename?: 'Mutation'; + createColonyMemberInvite?: { + __typename?: 'ColonyMemberInvite'; + id: string; + } | null; +}; export type CreateColonyTokensMutationVariables = Exact<{ input: CreateColonyTokensInput; }>; - -export type CreateColonyTokensMutation = { __typename?: 'Mutation', createColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type CreateColonyTokensMutation = { + __typename?: 'Mutation'; + createColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type CreateColonyContributorMutationVariables = Exact<{ input: CreateColonyContributorInput; }>; - -export type CreateColonyContributorMutation = { __typename?: 'Mutation', createColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type CreateColonyContributorMutation = { + __typename?: 'Mutation'; + createColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type UpdateColonyContributorMutationVariables = Exact<{ input: UpdateColonyContributorInput; }>; - -export type UpdateColonyContributorMutation = { __typename?: 'Mutation', updateColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type UpdateColonyContributorMutation = { + __typename?: 'Mutation'; + updateColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type DeleteColonyContributorMutationVariables = Exact<{ input: DeleteColonyContributorInput; }>; - -export type DeleteColonyContributorMutation = { __typename?: 'Mutation', deleteColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type DeleteColonyContributorMutation = { + __typename?: 'Mutation'; + deleteColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type CreateCurrentVersionMutationVariables = Exact<{ input: CreateCurrentVersionInput; }>; - -export type CreateCurrentVersionMutation = { __typename?: 'Mutation', createCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type CreateCurrentVersionMutation = { + __typename?: 'Mutation'; + createCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateCurrentVersionMutationVariables = Exact<{ input: UpdateCurrentVersionInput; }>; - -export type UpdateCurrentVersionMutation = { __typename?: 'Mutation', updateCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type UpdateCurrentVersionMutation = { + __typename?: 'Mutation'; + updateCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateColonyDecisionMutationVariables = Exact<{ id: Scalars['ID']; showInDecisionsList: Scalars['Boolean']; }>; - -export type UpdateColonyDecisionMutation = { __typename?: 'Mutation', updateColonyDecision?: { __typename?: 'ColonyDecision', id: string } | null }; +export type UpdateColonyDecisionMutation = { + __typename?: 'Mutation'; + updateColonyDecision?: { __typename?: 'ColonyDecision'; id: string } | null; +}; export type CreateDomainMutationVariables = Exact<{ input: CreateDomainInput; }>; - -export type CreateDomainMutation = { __typename?: 'Mutation', createDomain?: { __typename?: 'Domain', id: string } | null }; +export type CreateDomainMutation = { + __typename?: 'Mutation'; + createDomain?: { __typename?: 'Domain'; id: string } | null; +}; export type CreateDomainMetadataMutationVariables = Exact<{ input: CreateDomainMetadataInput; }>; - -export type CreateDomainMetadataMutation = { __typename?: 'Mutation', createDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type CreateDomainMetadataMutation = { + __typename?: 'Mutation'; + createDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type UpdateDomainMetadataMutationVariables = Exact<{ input: UpdateDomainMetadataInput; }>; - -export type UpdateDomainMetadataMutation = { __typename?: 'Mutation', updateDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type UpdateDomainMetadataMutation = { + __typename?: 'Mutation'; + updateDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type CreateContractEventMutationVariables = Exact<{ input: CreateContractEventInput; condition?: InputMaybe; }>; - -export type CreateContractEventMutation = { __typename?: 'Mutation', createContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type CreateContractEventMutation = { + __typename?: 'Mutation'; + createContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type CreateExpenditureMutationVariables = Exact<{ input: CreateExpenditureInput; }>; - -export type CreateExpenditureMutation = { __typename?: 'Mutation', createExpenditure?: { __typename?: 'Expenditure', id: string } | null }; +export type CreateExpenditureMutation = { + __typename?: 'Mutation'; + createExpenditure?: { __typename?: 'Expenditure'; id: string } | null; +}; export type UpdateExpenditureMutationVariables = Exact<{ input: UpdateExpenditureInput; }>; - -export type UpdateExpenditureMutation = { __typename?: 'Mutation', updateExpenditure?: { __typename?: 'Expenditure', id: string, ownerAddress: string } | null }; +export type UpdateExpenditureMutation = { + __typename?: 'Mutation'; + updateExpenditure?: { + __typename?: 'Expenditure'; + id: string; + ownerAddress: string; + } | null; +}; export type UpdateExpenditureMetadataMutationVariables = Exact<{ input: UpdateExpenditureMetadataInput; }>; - -export type UpdateExpenditureMetadataMutation = { __typename?: 'Mutation', updateExpenditureMetadata?: { __typename?: 'ExpenditureMetadata', id: string } | null }; +export type UpdateExpenditureMetadataMutation = { + __typename?: 'Mutation'; + updateExpenditureMetadata?: { + __typename?: 'ExpenditureMetadata'; + id: string; + } | null; +}; export type CreateStreamingPaymentMutationVariables = Exact<{ input: CreateStreamingPaymentInput; }>; - -export type CreateStreamingPaymentMutation = { __typename?: 'Mutation', createStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type CreateStreamingPaymentMutation = { + __typename?: 'Mutation'; + createStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type UpdateStreamingPaymentMutationVariables = Exact<{ input: UpdateStreamingPaymentInput; }>; - -export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type UpdateStreamingPaymentMutation = { + __typename?: 'Mutation'; + updateStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ input: UpdateStreamingPaymentMetadataInput; }>; - -export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; +export type UpdateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + updateStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; - -export type CreateColonyExtensionMutation = { __typename?: 'Mutation', createColonyExtension?: { __typename?: 'ColonyExtension', id: string } | null }; +export type CreateColonyExtensionMutation = { + __typename?: 'Mutation'; + createColonyExtension?: { __typename?: 'ColonyExtension'; id: string } | null; +}; export type UpdateColonyExtensionByAddressMutationVariables = Exact<{ input: UpdateColonyExtensionInput; }>; - -export type UpdateColonyExtensionByAddressMutation = { __typename?: 'Mutation', updateColonyExtension?: { __typename?: 'ColonyExtension', id: string, extensionHash: string, colonyAddress: string } | null }; +export type UpdateColonyExtensionByAddressMutation = { + __typename?: 'Mutation'; + updateColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + extensionHash: string; + colonyAddress: string; + } | null; +}; export type CreateExtensionInstallationsCountMutationVariables = Exact<{ input: CreateExtensionInstallationsCountInput; }>; - -export type CreateExtensionInstallationsCountMutation = { __typename?: 'Mutation', createExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type CreateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + createExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type UpdateExtensionInstallationsCountMutationVariables = Exact<{ input: UpdateExtensionInstallationsCountInput; }>; - -export type UpdateExtensionInstallationsCountMutation = { __typename?: 'Mutation', updateExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type UpdateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + updateExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type CreateColonyFundsClaimMutationVariables = Exact<{ input: CreateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type CreateColonyFundsClaimMutation = { __typename?: 'Mutation', createColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type CreateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + createColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type UpdateColonyFundsClaimMutationVariables = Exact<{ input: UpdateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type UpdateColonyFundsClaimMutation = { __typename?: 'Mutation', updateColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type UpdateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + updateColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type DeleteColonyFundsClaimMutationVariables = Exact<{ input: DeleteColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type DeleteColonyFundsClaimMutation = { __typename?: 'Mutation', deleteColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type DeleteColonyFundsClaimMutation = { + __typename?: 'Mutation'; + deleteColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type CreateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: CreateCurrentNetworkInverseFeeInput; }>; - -export type CreateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', createCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type CreateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + createCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type UpdateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: UpdateCurrentNetworkInverseFeeInput; }>; - -export type UpdateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', updateCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type UpdateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + updateCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type CreateColonyMotionMutationVariables = Exact<{ input: CreateColonyMotionInput; }>; - -export type CreateColonyMotionMutation = { __typename?: 'Mutation', createColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type CreateColonyMotionMutation = { + __typename?: 'Mutation'; + createColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type UpdateColonyMotionMutationVariables = Exact<{ input: UpdateColonyMotionInput; }>; - -export type UpdateColonyMotionMutation = { __typename?: 'Mutation', updateColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type UpdateColonyMotionMutation = { + __typename?: 'Mutation'; + updateColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type CreateMotionMessageMutationVariables = Exact<{ input: CreateMotionMessageInput; }>; - -export type CreateMotionMessageMutation = { __typename?: 'Mutation', createMotionMessage?: { __typename?: 'MotionMessage', id: string } | null }; +export type CreateMotionMessageMutation = { + __typename?: 'Mutation'; + createMotionMessage?: { __typename?: 'MotionMessage'; id: string } | null; +}; export type CreateUserVoterRewardMutationVariables = Exact<{ input: CreateVoterRewardsHistoryInput; }>; - -export type CreateUserVoterRewardMutation = { __typename?: 'Mutation', createVoterRewardsHistory?: { __typename?: 'VoterRewardsHistory', id: string } | null }; +export type CreateUserVoterRewardMutation = { + __typename?: 'Mutation'; + createVoterRewardsHistory?: { + __typename?: 'VoterRewardsHistory'; + id: string; + } | null; +}; export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; }>; - -export type CreateColonyMultiSigMutation = { __typename?: 'Mutation', createColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type CreateColonyMultiSigMutation = { + __typename?: 'Mutation'; + createColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type UpdateColonyMultiSigMutationVariables = Exact<{ input: UpdateColonyMultiSigInput; }>; - -export type UpdateColonyMultiSigMutation = { __typename?: 'Mutation', updateColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type UpdateColonyMultiSigMutation = { + __typename?: 'Mutation'; + updateColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type CreateMultiSigVoteMutationVariables = Exact<{ input: CreateMultiSigUserSignatureInput; }>; - -export type CreateMultiSigVoteMutation = { __typename?: 'Mutation', createMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type CreateMultiSigVoteMutation = { + __typename?: 'Mutation'; + createMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigVoteMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigVoteMutation = { __typename?: 'Mutation', deleteMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type RemoveMultiSigVoteMutation = { + __typename?: 'Mutation'; + deleteMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigRoleMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation', deleteColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type RemoveMultiSigRoleMutation = { + __typename?: 'Mutation'; + deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; }>; - -export type CreateColonyRoleMutation = { __typename?: 'Mutation', createColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type CreateColonyRoleMutation = { + __typename?: 'Mutation'; + createColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type UpdateColonyRoleMutationVariables = Exact<{ input: UpdateColonyRoleInput; }>; - -export type UpdateColonyRoleMutation = { __typename?: 'Mutation', updateColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type UpdateColonyRoleMutation = { + __typename?: 'Mutation'; + updateColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyHistoricRoleMutationVariables = Exact<{ input: CreateColonyHistoricRoleInput; }>; - -export type CreateColonyHistoricRoleMutation = { __typename?: 'Mutation', createColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type CreateColonyHistoricRoleMutation = { + __typename?: 'Mutation'; + createColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type UpdateReputationMiningCycleMetadataMutationVariables = Exact<{ input: UpdateReputationMiningCycleMetadataInput; }>; - -export type UpdateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', updateReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type UpdateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + updateReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateReputationMiningCycleMetadataMutationVariables = Exact<{ input: CreateReputationMiningCycleMetadataInput; }>; - -export type CreateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', createReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type CreateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + createReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateUserStakeMutationVariables = Exact<{ input: CreateUserStakeInput; }>; - -export type CreateUserStakeMutation = { __typename?: 'Mutation', createUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type CreateUserStakeMutation = { + __typename?: 'Mutation'; + createUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type UpdateUserStakeMutationVariables = Exact<{ input: UpdateUserStakeInput; }>; - -export type UpdateUserStakeMutation = { __typename?: 'Mutation', updateUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type UpdateUserStakeMutation = { + __typename?: 'Mutation'; + updateUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type CreateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type CreateStatsMutation = { __typename?: 'Mutation', createIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type CreateStatsMutation = { + __typename?: 'Mutation'; + createIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type UpdateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type UpdateStatsMutation = { __typename?: 'Mutation', updateIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type UpdateStatsMutation = { + __typename?: 'Mutation'; + updateIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type DeleteColonyTokensMutationVariables = Exact<{ input: DeleteColonyTokensInput; }>; - -export type DeleteColonyTokensMutation = { __typename?: 'Mutation', deleteColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type DeleteColonyTokensMutation = { + __typename?: 'Mutation'; + deleteColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type GetColonyActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetColonyActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type GetColonyActionQuery = { + __typename?: 'Query'; + getColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type GetColonyArbitraryTransactionActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; @@ -11655,36 +11230,119 @@ export type GetMotionIdFromActionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetMotionIdFromActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', motionData?: { __typename?: 'ColonyMotion', id: string } | null } | null }; +export type GetMotionIdFromActionQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + motionData?: { __typename?: 'ColonyMotion'; id: string } | null; + } | null; +}; export type GetActionIdFromAnnotationQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionIdFromAnnotationQuery = { __typename?: 'Query', getAnnotation?: { __typename?: 'Annotation', actionId: string } | null }; +export type GetActionIdFromAnnotationQuery = { + __typename?: 'Query'; + getAnnotation?: { __typename?: 'Annotation'; actionId: string } | null; +}; export type GetActionByIdQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionByIdQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, type: ColonyActionType, expenditureSlotChanges?: { __typename?: 'ExpenditureSlotChanges', oldSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, newSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }> } | null } | null }; +export type GetActionByIdQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + id: string; + type: ColonyActionType; + expenditureSlotChanges?: { + __typename?: 'ExpenditureSlotChanges'; + oldSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + newSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + } | null; + } | null; +}; export type GetColonyMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMetadataQuery = { __typename?: 'Query', getColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, etherealData?: { __typename?: 'ColonyMetadataEtherealData', colonyAvatar?: string | null, colonyDisplayName: string, colonyName: string, colonyThumbnail?: string | null, initiatorAddress: string, tokenAvatar?: string | null, tokenThumbnail?: string | null } | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; +export type GetColonyMetadataQuery = { + __typename?: 'Query'; + getColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + etherealData?: { + __typename?: 'ColonyMetadataEtherealData'; + colonyAvatar?: string | null; + colonyDisplayName: string; + colonyName: string; + colonyThumbnail?: string | null; + initiatorAddress: string; + tokenAvatar?: string | null; + tokenThumbnail?: string | null; + } | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; +}; export type GetColonyQueryVariables = Exact<{ id: Scalars['ID']; nextToken?: InputMaybe; }>; -<<<<<<< HEAD export type GetColonyQuery = { __typename?: 'Query'; getColony?: { @@ -11728,17 +11386,18 @@ export type GetColonyQuery = { items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; } | null; }; -======= - -export type GetColonyQuery = { __typename?: 'Query', getColony?: { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null } | null, getColonyByAddress?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null, getColonyByType?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyByNameQueryVariables = Exact<{ name: Scalars['String']; }>; - -export type GetColonyByNameQuery = { __typename?: 'Query', getColonyByName?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +export type GetColonyByNameQuery = { + __typename?: 'Query'; + getColonyByName?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; +}; export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nativeTokenId: Scalars['ID']; @@ -11746,15 +11405,44 @@ export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type GetColonyByNativeTokenIdQuery = { __typename?: 'Query', getColoniesByNativeTokenId?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, status?: { __typename?: 'ColonyStatus', recovery?: boolean | null, nativeToken?: { __typename?: 'NativeTokenStatus', unlocked?: boolean | null, unlockable?: boolean | null, mintable?: boolean | null } | null } | null } | null> } | null }; +export type GetColonyByNativeTokenIdQuery = { + __typename?: 'Query'; + getColoniesByNativeTokenId?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + status?: { + __typename?: 'ColonyStatus'; + recovery?: boolean | null; + nativeToken?: { + __typename?: 'NativeTokenStatus'; + unlocked?: boolean | null; + unlockable?: boolean | null; + mintable?: boolean | null; + } | null; + } | null; + } | null>; + } | null; +}; export type ListColoniesQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type ListColoniesQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, nativeTokenId: string } | null> } | null }; +export type ListColoniesQuery = { + __typename?: 'Query'; + listColonies?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + nativeTokenId: string; + } | null>; + } | null; +}; export type ListColoniesWithRootPermissionHoldersQueryVariables = Exact<{ nextToken?: InputMaybe; @@ -11801,8 +11489,14 @@ export type GetColonyContributorQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyContributorQuery = { __typename?: 'Query', getColonyContributor?: { __typename?: 'ColonyContributor', id: string, isVerified: boolean } | null }; +export type GetColonyContributorQuery = { + __typename?: 'Query'; + getColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + isVerified: boolean; + } | null; +}; export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -11838,50 +11532,112 @@ export type GetCurrentVersionQueryVariables = Exact<{ key: Scalars['String']; }>; - -export type GetCurrentVersionQuery = { __typename?: 'Query', getCurrentVersionByKey?: { __typename?: 'ModelCurrentVersionConnection', items: Array<{ __typename?: 'CurrentVersion', id: string, version: number } | null> } | null }; +export type GetCurrentVersionQuery = { + __typename?: 'Query'; + getCurrentVersionByKey?: { + __typename?: 'ModelCurrentVersionConnection'; + items: Array<{ + __typename?: 'CurrentVersion'; + id: string; + version: number; + } | null>; + } | null; +}; export type GetColonyDecisionByActionIdQueryVariables = Exact<{ actionId: Scalars['ID']; }>; - -export type GetColonyDecisionByActionIdQuery = { __typename?: 'Query', getColonyDecisionByActionId?: { __typename?: 'ModelColonyDecisionConnection', items: Array<{ __typename?: 'ColonyDecision', id: string } | null> } | null }; +export type GetColonyDecisionByActionIdQuery = { + __typename?: 'Query'; + getColonyDecisionByActionId?: { + __typename?: 'ModelColonyDecisionConnection'; + items: Array<{ __typename?: 'ColonyDecision'; id: string } | null>; + } | null; +}; export type GetDomainMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetDomainMetadataQuery = { __typename?: 'Query', getDomainMetadata?: { __typename?: 'DomainMetadata', color: DomainColor, description?: string | null, id: string, name: string, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', newColor: DomainColor, newDescription?: string | null, newName: string, oldColor: DomainColor, oldDescription?: string | null, oldName: string, transactionHash: string }> | null } | null }; +export type GetDomainMetadataQuery = { + __typename?: 'Query'; + getDomainMetadata?: { + __typename?: 'DomainMetadata'; + color: DomainColor; + description?: string | null; + id: string; + name: string; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + newColor: DomainColor; + newDescription?: string | null; + newName: string; + oldColor: DomainColor; + oldDescription?: string | null; + oldName: string; + transactionHash: string; + }> | null; + } | null; +}; export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; colonyAddress: Scalars['ID']; }>; - -export type GetDomainByNativeSkillIdQuery = { __typename?: 'Query', getDomainByNativeSkillId?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string, nativeId: number } | null> } | null }; +export type GetDomainByNativeSkillIdQuery = { + __typename?: 'Query'; + getDomainByNativeSkillId?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; +}; export type GetDomainsByExtensionAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetDomainsByExtensionAddressQuery = { __typename?: 'Query', listColonyExtensions?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', colony: { __typename?: 'Colony', id: string, domains?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', nativeSkillId: string, nativeId: number } | null> } | null } } | null> } | null }; +export type GetDomainsByExtensionAddressQuery = { + __typename?: 'Query'; + listColonyExtensions?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + colony: { + __typename?: 'Colony'; + id: string; + domains?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; + }; + } | null>; + } | null; +}; export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetContractEventQuery = { __typename?: 'Query', getContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type GetContractEventQuery = { + __typename?: 'Query'; + getContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type GetExpenditureQueryVariables = Exact<{ id: Scalars['ID']; }>; -<<<<<<< HEAD export type GetExpenditureQuery = { __typename?: 'Query'; getExpenditure?: { @@ -11935,17 +11691,12 @@ export type GetExpenditureQuery = { } | null; } | null; }; -======= - -export type GetExpenditureQuery = { __typename?: 'Query', getExpenditure?: { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetExpenditureByNativeFundingPotIdAndColonyQueryVariables = Exact<{ nativeFundingPotId: Scalars['Int']; colonyAddress: Scalars['ID']; }>; -<<<<<<< HEAD export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query'; getExpendituresByNativeFundingPotIdAndColony?: { @@ -12005,68 +11756,168 @@ export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { } | null>; } | null; }; -======= - -export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query', getExpendituresByNativeFundingPotIdAndColony?: { __typename?: 'ModelExpenditureConnection', items: Array<{ __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null } | null }; +export type GetStreamingPaymentQuery = { + __typename?: 'Query'; + getStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + startTime: string; + endTime: string; + tokenAddress: string; + amount: string; + interval: string; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + timestamp: string; + }> | null; + } | null; +}; export type GetStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetStreamingPaymentMetadataQuery = { __typename?: 'Query', getStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null }; +export type GetStreamingPaymentMetadataQuery = { + __typename?: 'Query'; + getStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; +}; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyExtensionQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null }; +export type GetColonyExtensionQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null; +}; export type GetColonyExtensionsByColonyAddressQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetColonyExtensionsByColonyAddressQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type GetColonyExtensionsByColonyAddressQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type ListExtensionsQueryVariables = Exact<{ hash: Scalars['String']; nextToken?: InputMaybe; }>; - -export type ListExtensionsQuery = { __typename?: 'Query', getExtensionsByHash?: { __typename?: 'ModelColonyExtensionConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type ListExtensionsQuery = { + __typename?: 'Query'; + getExtensionsByHash?: { + __typename?: 'ModelColonyExtensionConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type GetColonyExtensionByHashAndColonyQueryVariables = Exact<{ colonyAddress: Scalars['ID']; extensionHash: Scalars['String']; }>; - -export type GetColonyExtensionByHashAndColonyQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string } | null> } | null }; +export type GetColonyExtensionByHashAndColonyQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ __typename?: 'ColonyExtension'; id: string } | null>; + } | null; +}; export type GetExtensionInstallationsCountQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetExtensionInstallationsCountQuery = { __typename?: 'Query', getExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', oneTxPayment: number, stakedExpenditure: number, stagedExpenditure: number, streamingPayments: number, reputationWeighted: number, multiSigPermissions: number } | null }; +export type GetExtensionInstallationsCountQuery = { + __typename?: 'Query'; + getExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + oneTxPayment: number; + stakedExpenditure: number; + stagedExpenditure: number; + streamingPayments: number; + reputationWeighted: number; + multiSigPermissions: number; + } | null; +}; export type GetColonyExtensionByAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetColonyExtensionByAddressQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', colonyId: string, params?: { __typename?: 'ExtensionParams', multiSig?: { __typename?: 'MultiSigParams', colonyThreshold: number, domainThresholds?: Array<{ __typename?: 'MultiSigDomainConfig', domainId: string, domainThreshold: number } | null> | null } | null } | null } | null }; +export type GetColonyExtensionByAddressQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + colonyId: string; + params?: { + __typename?: 'ExtensionParams'; + multiSig?: { + __typename?: 'MultiSigParams'; + colonyThreshold: number; + domainThresholds?: Array<{ + __typename?: 'MultiSigDomainConfig'; + domainId: string; + domainThreshold: number; + } | null> | null; + } | null; + } | null; + } | null; +}; export type GetColonyUnclaimedFundsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -12074,7 +11925,6 @@ export type GetColonyUnclaimedFundsQueryVariables = Exact<{ upToBlock?: InputMaybe; }>; -<<<<<<< HEAD export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query'; listColonyFundsClaims?: { @@ -12087,28 +11937,36 @@ export type GetColonyUnclaimedFundsQuery = { } | null>; } | null; }; -======= - -export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query', listColonyFundsClaims?: { __typename?: 'ModelColonyFundsClaimConnection', items: Array<{ __typename?: 'ColonyFundsClaim', id: string } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyUnclaimedFundQueryVariables = Exact<{ claimId: Scalars['ID']; }>; +export type GetColonyUnclaimedFundQuery = { + __typename?: 'Query'; + getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim'; id: string } | null; +}; -export type GetColonyUnclaimedFundQuery = { __typename?: 'Query', getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; - -export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type GetCurrentNetworkInverseFeeQuery = { __typename?: 'Query', listCurrentNetworkInverseFees?: { __typename?: 'ModelCurrentNetworkInverseFeeConnection', items: Array<{ __typename?: 'CurrentNetworkInverseFee', id: string, inverseFee: string } | null> } | null }; +export type GetCurrentNetworkInverseFeeQuery = { + __typename?: 'Query'; + listCurrentNetworkInverseFees?: { + __typename?: 'ModelCurrentNetworkInverseFeeConnection'; + items: Array<{ + __typename?: 'CurrentNetworkInverseFee'; + id: string; + inverseFee: string; + } | null>; + } | null; +}; export type GetColonyActionByMotionIdQueryVariables = Exact<{ motionId: Scalars['ID']; }>; -<<<<<<< HEAD export type GetColonyActionByMotionIdQuery = { __typename?: 'Query'; getColonyActionByMotionId?: { @@ -12153,15 +12011,12 @@ export type GetColonyActionByMotionIdQuery = { name: ExternalLinks; link: string; }> | null; -<<<<<<< HEAD objective?: { __typename?: 'ColonyObjective'; title: string; description: string; progress: number; } | null; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) changelog?: Array<{ __typename?: 'ColonyMetadataChangelog'; transactionHash: string; @@ -12170,10 +12025,7 @@ export type GetColonyActionByMotionIdQuery = { hasAvatarChanged: boolean; hasDescriptionChanged?: boolean | null; haveExternalLinksChanged?: boolean | null; -<<<<<<< HEAD hasObjectiveChanged?: boolean | null; -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) }> | null; } | null; payments?: Array<{ @@ -12183,20 +12035,11 @@ export type GetColonyActionByMotionIdQuery = { } | null>; } | null; }; -======= - -export type GetColonyActionByMotionIdQuery = { __typename?: 'Query', getColonyActionByMotionId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -======= ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export type GetColonyMotionQuery = { __typename?: 'Query'; getColonyMotion?: { @@ -12215,15 +12058,9 @@ export type GetColonyMotionQuery = { motionDomainId: string; isDecision: boolean; transactionHash: string; -<<<<<<< HEAD expenditureId?: string | null; -======= -<<<<<<< HEAD -======= streamingPaymentId?: string | null; pendingStreamingPaymentMetadataId?: string | null; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) motionStakes: { __typename?: 'MotionStakes'; raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; @@ -12283,25 +12120,25 @@ export type GetColonyMotionQuery = { }; } | null; }; -<<<<<<< HEAD -======= -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - -export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; }>; - -export type GetVoterRewardsQuery = { __typename?: 'Query', getVoterRewards?: { __typename?: 'VoterRewardsReturn', min: string, max: string, reward: string } | null }; +export type GetVoterRewardsQuery = { + __typename?: 'Query'; + getVoterRewards?: { + __typename?: 'VoterRewardsReturn'; + min: string; + max: string; + reward: string; + } | null; +}; export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; }>; -<<<<<<< HEAD export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query'; getColonyActionByMultiSigId?: { @@ -12370,16 +12207,11 @@ export type GetColonyActionByMultiSigIdQuery = { } | null>; } | null; }; -======= - -export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query', getColonyActionByMultiSigId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null } | null> } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetColonyMultiSigQueryVariables = Exact<{ id: Scalars['ID']; }>; -<<<<<<< HEAD export type GetColonyMultiSigQuery = { __typename?: 'Query'; getColonyMultiSig?: { @@ -12417,10 +12249,6 @@ export type GetColonyMultiSigQuery = { action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; } | null; }; -======= - -export type GetColonyMultiSigQuery = { __typename?: 'Query', getColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null } | null }; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export type GetUserMultiSigSignatureQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -12429,92 +12257,150 @@ export type GetUserMultiSigSignatureQueryVariables = Exact<{ role: Scalars['Int']; }>; - -export type GetUserMultiSigSignatureQuery = { __typename?: 'Query', getMultiSigUserSignatureByMultiSigId?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; +export type GetUserMultiSigSignatureQuery = { + __typename?: 'Query'; + getMultiSigUserSignatureByMultiSigId?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; +}; export type GetAllMultiSigRolesQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetAllMultiSigRolesQuery = { __typename?: 'Query', getRoleByColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string } | null> } | null }; +export type GetAllMultiSigRolesQuery = { + __typename?: 'Query'; + getRoleByColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ __typename?: 'ColonyRole'; id: string } | null>; + } | null; +}; export type GetActiveColonyMultisigsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetActiveColonyMultisigsQuery = { __typename?: 'Query', getMultiSigByColonyAddress?: { __typename?: 'ModelColonyMultiSigConnection', items: Array<{ __typename?: 'ColonyMultiSig', id: string } | null> } | null }; +export type GetActiveColonyMultisigsQuery = { + __typename?: 'Query'; + getMultiSigByColonyAddress?: { + __typename?: 'ModelColonyMultiSigConnection'; + items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; + } | null; +}; export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyRoleQuery = { __typename?: 'Query', getColonyRole?: { __typename?: 'ColonyRole', id: string, latestBlock: number, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null }; +export type GetColonyRoleQuery = { + __typename?: 'Query'; + getColonyRole?: { + __typename?: 'ColonyRole'; + id: string; + latestBlock: number; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null; +}; export type GetAllColonyRolesQueryVariables = Exact<{ targetAddress: Scalars['ID']; colonyAddress: Scalars['ID']; }>; - -export type GetAllColonyRolesQuery = { __typename?: 'Query', getRoleByTargetAddressAndColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null> } | null }; +export type GetAllColonyRolesQuery = { + __typename?: 'Query'; + getRoleByTargetAddressAndColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null>; + } | null; +}; export type GetColonyHistoricRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyHistoricRoleQuery = { __typename?: 'Query', getColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type GetColonyHistoricRoleQuery = { + __typename?: 'Query'; + getColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type GetReputationMiningCycleMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetReputationMiningCycleMetadataQuery = { __typename?: 'Query', getReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type GetReputationMiningCycleMetadataQuery = { + __typename?: 'Query'; + getReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type GetSafeTransactionByTransactionHashQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetSafeTransactionByTransactionHashQuery = { __typename?: 'Query', getSafeTransaction?: { __typename?: 'SafeTransaction', id: string } | null }; +export type GetSafeTransactionByTransactionHashQuery = { + __typename?: 'Query'; + getSafeTransaction?: { __typename?: 'SafeTransaction'; id: string } | null; +}; export type GetUserStakeQueryVariables = Exact<{ id: Scalars['ID']; }>; +export type GetUserStakeQuery = { + __typename?: 'Query'; + getUserStake?: { + __typename?: 'UserStake'; + id: string; + amount: string; + } | null; +}; -export type GetUserStakeQuery = { __typename?: 'Query', getUserStake?: { __typename?: 'UserStake', id: string, amount: string } | null }; - -export type GetStatsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetStatsQueryVariables = Exact<{ [key: string]: never }>; -export type GetStatsQuery = { __typename?: 'Query', getIngestorStats?: { __typename?: 'IngestorStats', value: string } | null }; +export type GetStatsQuery = { + __typename?: 'Query'; + getIngestorStats?: { __typename?: 'IngestorStats'; value: string } | null; +}; export type GetTokenFromEverywhereQueryVariables = Exact<{ input: TokenFromEverywhereArguments; }>; - -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -export type GetTokenByAddressQueryVariables = Exact<{ - address: Scalars['ID']; -}>; - -export type GetTokenByAddressQuery = { +export type GetTokenFromEverywhereQuery = { __typename?: 'Query'; - getTokenByAddress?: { - __typename?: 'ModelTokenConnection'; - items: Array<{ - __typename?: 'Token'; - decimals: number; - tokenAddress: string; - } | null>; + getTokenFromEverywhere?: { + __typename?: 'TokenFromEverywhereReturn'; + items?: Array<{ __typename?: 'Token'; id: string } | null> | null; } | null; }; @@ -12542,59 +12428,50 @@ export type GetNotificationUsersQuery = { } | null; }; -======= ->>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) -======= ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) -======= -export type GetTokenFromEverywhereQuery = { __typename?: 'Query', getTokenFromEverywhere?: { __typename?: 'TokenFromEverywhereReturn', items?: Array<{ __typename?: 'Token', id: string } | null> | null } | null }; - ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { - transactionHash - oldName - newName - oldColor - newColor - oldDescription - newDescription - } -} - `; -export const ColonyMetadata = gql` - fragment ColonyMetadata on ColonyMetadata { - id - displayName - avatar - thumbnail - description - externalLinks { + fragment DomainMetadata on DomainMetadata { name - link - } - objective { - title + color description - progress + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription + } } - changelog { - transactionHash - oldDisplayName - newDisplayName - hasAvatarChanged - hasDescriptionChanged - haveExternalLinksChanged - hasObjectiveChanged +`; +export const ColonyMetadata = gql` + fragment ColonyMetadata on ColonyMetadata { + id + displayName + avatar + thumbnail + description + externalLinks { + name + link + } + objective { + title + description + progress + } + changelog { + transactionHash + oldDisplayName + newDisplayName + hasAvatarChanged + hasDescriptionChanged + haveExternalLinksChanged + hasObjectiveChanged + } } -} - `; +`; export const ActionMetadataInfo = gql` -<<<<<<< HEAD fragment ActionMetadataInfo on ColonyAction { id pendingDomainMetadata { @@ -12615,52 +12492,49 @@ export const ActionMetadataInfo = gql` recipientAddress } members -======= - fragment ActionMetadataInfo on ColonyAction { - id - pendingDomainMetadata { - ...DomainMetadata ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - } - pendingColonyMetadata { - ...ColonyMetadata } - colonyDecisionId - amount - networkFee - type -} - ${DomainMetadata} -${ColonyMetadata}`; + ${DomainMetadata} + ${ColonyMetadata} +`; export const Token = gql` -<<<<<<< HEAD fragment Token on Token { tokenAddress: id symbol } `; -======= - fragment Token on Token { - tokenAddress: id -} - `; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token - } - tokens { - items { - id - tokenAddress: tokenID + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token + } + tokens { + items { + id + tokenAddress: tokenID + } + } + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay + } + isClaimed + } + } + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId + } + nextToken } } -<<<<<<< HEAD ${Token} `; -<<<<<<< HEAD export const NotificationsData = gql` fragment NotificationsData on NotificationsData { magicbellUserId @@ -12692,13 +12566,6 @@ export const ColonyWithRootRoles = gql` } ${NotificationsData} `; -======= -======= - } - } -`; ->>>>>>> 8442a344 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) ->>>>>>> 7ebe3a9 (Feat: Refactor editStreamingPayment handlers and ensure colony action is created) export const ExpenditureSlot = gql` fragment ExpenditureSlot on ExpenditureSlot { id @@ -12706,118 +12573,39 @@ export const ExpenditureSlot = gql` claimDelay payoutModifier payouts { - tokenAddress - amount -======= - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay - } ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - isClaimed - } - } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId - } - nextToken - } -} - ${Token}`; -export const ExpenditureSlot = gql` - fragment ExpenditureSlot on ExpenditureSlot { - id - recipientAddress - claimDelay - payoutModifier - payouts { - tokenAddress - amount - isClaimed - networkFee - } -} - `; -export const ExpenditureBalance = gql` - fragment ExpenditureBalance on ExpenditureBalance { - tokenAddress - amount -} - `; -export const Expenditure = gql` - fragment Expenditure on Expenditure { - id - slots { - ...ExpenditureSlot - } - motions { - items { - transactionHash - action { - type - } + tokenAddress + amount + isClaimed + networkFee } } - balances { - ...ExpenditureBalance - } - status - ownerAddress - userStakeId - createdAt - firstEditTransactionHash - type -} - ${ExpenditureSlot} -${ExpenditureBalance}`; -export const StreamingPaymentMetadata = gql` - fragment StreamingPaymentMetadata on StreamingPaymentMetadata { - id - endCondition - changelog { - transactionHash - oldEndCondition - newEndCondition - } -} - `; -export const StreamingPayment = gql` - fragment StreamingPayment on StreamingPayment { - id - startTime - endTime - tokenAddress - amount - interval - metadata { - ...StreamingPaymentMetadata - } - claims { +`; +export const ExpenditureBalance = gql` + fragment ExpenditureBalance on ExpenditureBalance { + tokenAddress amount - timestamp } -<<<<<<< HEAD - changelog { - transactionHash - oldValues { - ...StreamingPaymentChanges +`; +export const Expenditure = gql` + fragment Expenditure on Expenditure { + id + slots { + ...ExpenditureSlot + } + motions { + items { + transactionHash + action { + type + } + } + } + balances { + ...ExpenditureBalance } -<<<<<<< HEAD metadata { distributionType } -======= - newValues { - ...StreamingPaymentChanges - } -<<<<<<< HEAD ->>>>>>> 0b8ef143 (Feat: Added changelog to streaming payment and streaming payment metadata) status ownerAddress userStakeId @@ -12831,180 +12619,190 @@ export const StreamingPayment = gql` id } } -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } -======= ->>>>>>> fc7f8af (Fix: Store streaming payment changelog on colony action, and use streamingPaymentsInterface) -} - ${StreamingPaymentMetadata}`; + ${ExpenditureSlot} + ${ExpenditureBalance} +`; +export const StreamingPaymentMetadata = gql` + fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } + } +`; +export const StreamingPayment = gql` + fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp + } + } + ${StreamingPaymentMetadata} +`; export const StreamingPaymentChanges = gql` - fragment StreamingPaymentChanges on StreamingPaymentChanges { - startTime - endTime - interval - amount -} - `; -export const Extension = gql` - fragment Extension on ColonyExtension { - id - hash - colonyId - isInitialized - version -} - `; -export const MotionStakes = gql` - fragment MotionStakes on MotionStakes { - raw { - nay - yay + fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount } - percentage { - nay - yay +`; +export const Extension = gql` + fragment Extension on ColonyExtension { + id + hash + colonyId + isInitialized + version } -} - `; -export const UserMotionStakes = gql` - fragment UserMotionStakes on UserMotionStakes { - address - stakes { +`; +export const MotionStakes = gql` + fragment MotionStakes on MotionStakes { raw { - yay nay + yay } percentage { - yay nay + yay } } -} - `; -export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay - } - isClaimed -} - `; -export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote -} - `; -export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward - } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay +`; +export const UserMotionStakes = gql` + fragment UserMotionStakes on UserMotionStakes { + address + stakes { + raw { + yay + nay + } + percentage { + yay + nay + } } - percentage { + } +`; +export const StakerReward = gql` + fragment StakerReward on StakerRewards { + address + rewards { yay nay } + isClaimed } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt +`; +export const VoterRecord = gql` + fragment VoterRecord on VoterRecord { + address + voteCount + vote } - isDecision - transactionHash - streamingPaymentId - pendingStreamingPaymentMetadataId -} - ${MotionStakes} -${UserMotionStakes} -${StakerReward} -${VoterRecord}`; -<<<<<<< HEAD -export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { ->>>>>>> 2309a795 (Feat: Link pendingStreamingPaymentMetadata when a motion is finalized) +`; +export const ColonyMotion = gql` + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes + } + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes + } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay + } + percentage { + yay + nay + } + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision transactionHash expenditureId + streamingPaymentId + pendingStreamingPaymentMetadataId } ${MotionStakes} ${UserMotionStakes} ${StakerReward} ${VoterRecord} `; -======= ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const MultiSigUserSignature = gql` - fragment MultiSigUserSignature on MultiSigUserSignature { - id - multiSigId - role - colonyAddress - userAddress - vote - createdAt -} - `; + fragment MultiSigUserSignature on MultiSigUserSignature { + id + multiSigId + role + colonyAddress + userAddress + vote + createdAt + } +`; export const ColonyMultiSig = gql` - fragment ColonyMultiSig on ColonyMultiSig { - id - colonyAddress - nativeMultiSigId - multiSigDomainId - nativeMultiSigDomainId - requiredPermissions - transactionHash - isExecuted - isRejected - isDecision - hasActionCompleted - signatures { - items { - ...MultiSigUserSignature - } -<<<<<<< HEAD + fragment ColonyMultiSig on ColonyMultiSig { + id + colonyAddress + nativeMultiSigId + multiSigDomainId + nativeMultiSigDomainId + requiredPermissions + transactionHash + isExecuted + isRejected + isDecision + hasActionCompleted + signatures { + items { + ...MultiSigUserSignature + } + } executedAt executedBy rejectedAt @@ -13027,398 +12825,420 @@ export const NotificationUser = gql` } ${NotificationsData} `; -======= - } - executedAt - executedBy - rejectedAt - rejectedBy - createdAt -} - ${MultiSigUserSignature}`; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyDocument = gql` - mutation CreateColony($input: CreateColonyInput!, $condition: ModelColonyConditionInput) { - createColony(input: $input, condition: $condition) { - id + mutation CreateColony( + $input: CreateColonyInput! + $condition: ModelColonyConditionInput + ) { + createColony(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id + } } -} - `; +`; export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite($input: CreateColonyMemberInviteInput!, $condition: ModelColonyMemberInviteConditionInput) { - createColonyMemberInvite(input: $input, condition: $condition) { - id + mutation CreateColonyMemberInvite( + $input: CreateColonyMemberInviteInput! + $condition: ModelColonyMemberInviteConditionInput + ) { + createColonyMemberInvite(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id + } } -} - `; +`; export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id + } } -} - `; +`; export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id + } } -} - `; +`; export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id + } } -} - `; +`; export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: {id: $id, showInDecisionsList: $showInDecisionsList} - ) { - id + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: { id: $id, showInDecisionsList: $showInDecisionsList } + ) { + id + } } -} - `; +`; export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id + } } -} - `; +`; export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id + } } -} - `; +`; export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id + } } -} - `; +`; export const CreateContractEventDocument = gql` - mutation CreateContractEvent($input: CreateContractEventInput!, $condition: ModelContractEventConditionInput) { - createContractEvent(input: $input, condition: $condition) { - id + mutation CreateContractEvent( + $input: CreateContractEventInput! + $condition: ModelContractEventConditionInput + ) { + createContractEvent(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id + } } -} - `; +`; export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress + } } -} - `; +`; export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id + } } -} - `; +`; export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id + } } -} - `; +`; export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id + } } -} - `; +`; export const UpdateStreamingPaymentMetadataDocument = gql` - mutation UpdateStreamingPaymentMetadata($input: UpdateStreamingPaymentMetadataInput!) { - updateStreamingPaymentMetadata(input: $input) { - id + mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! + ) { + updateStreamingPaymentMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id + } } -} - `; +`; export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId + } } -} - `; +`; export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount($input: CreateExtensionInstallationsCountInput!) { - createExtensionInstallationsCount(input: $input) { - id + mutation CreateExtensionInstallationsCount( + $input: CreateExtensionInstallationsCountInput! + ) { + createExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount($input: UpdateExtensionInstallationsCountInput!) { - updateExtensionInstallationsCount(input: $input) { - id + mutation UpdateExtensionInstallationsCount( + $input: UpdateExtensionInstallationsCountInput! + ) { + updateExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim($input: CreateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - createColonyFundsClaim(input: $input, condition: $condition) { - id + mutation CreateColonyFundsClaim( + $input: CreateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + createColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim($input: UpdateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id + mutation UpdateColonyFundsClaim( + $input: UpdateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim($input: DeleteColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id + mutation DeleteColonyFundsClaim( + $input: DeleteColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee($input: CreateCurrentNetworkInverseFeeInput!) { - createCurrentNetworkInverseFee(input: $input) { - id + mutation CreateCurrentNetworkInverseFee( + $input: CreateCurrentNetworkInverseFeeInput! + ) { + createCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee($input: UpdateCurrentNetworkInverseFeeInput!) { - updateCurrentNetworkInverseFee(input: $input) { - id + mutation UpdateCurrentNetworkInverseFee( + $input: UpdateCurrentNetworkInverseFeeInput! + ) { + updateCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id + } } -} - `; +`; export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id + } } -} - `; +`; export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id + } } -} - `; +`; export const CreateColonyMultiSigDocument = gql` - mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { - createColonyMultiSig(input: $input) { - id + mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { + createColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMultiSigDocument = gql` - mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { - updateColonyMultiSig(input: $input) { - id + mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { + updateColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const CreateMultiSigVoteDocument = gql` - mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { - createMultiSigUserSignature(input: $input) { - id + mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { + createMultiSigUserSignature(input: $input) { + id + } } -} - `; +`; export const RemoveMultiSigVoteDocument = gql` - mutation RemoveMultiSigVote($id: ID!) { - deleteMultiSigUserSignature(input: {id: $id}) { - id + mutation RemoveMultiSigVote($id: ID!) { + deleteMultiSigUserSignature(input: { id: $id }) { + id + } } -} - `; +`; export const RemoveMultiSigRoleDocument = gql` - mutation RemoveMultiSigRole($id: ID!) { - deleteColonyRole(input: {id: $id}) { - id + mutation RemoveMultiSigRole($id: ID!) { + deleteColonyRole(input: { id: $id }) { + id + } } -} - `; +`; export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id + } } -} - `; +`; export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id + } } -} - `; +`; export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id + } } -} - `; +`; export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata($input: UpdateReputationMiningCycleMetadataInput!) { - updateReputationMiningCycleMetadata(input: $input) { - id + mutation UpdateReputationMiningCycleMetadata( + $input: UpdateReputationMiningCycleMetadataInput! + ) { + updateReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata($input: CreateReputationMiningCycleMetadataInput!) { - createReputationMiningCycleMetadata(input: $input) { - id + mutation CreateReputationMiningCycleMetadata( + $input: CreateReputationMiningCycleMetadataInput! + ) { + createReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id + } } -} - `; +`; export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id + } } -} - `; +`; export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation CreateStats($value: String!) { + createIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation UpdateStats($value: String!) { + updateIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id + } } -} - `; +`; export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + } } -<<<<<<< HEAD `; export const GetColonyArbitraryTransactionActionDocument = gql` query GetColonyArbitraryTransactionAction($transactionHash: ID!) { @@ -13431,64 +13251,74 @@ export const GetColonyArbitraryTransactionActionDocument = gql` } } `; -======= -} - `; ->>>>>>> 0b8ef143 (Feat: Added changelog to streaming payment and streaming payment metadata) export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id + } } } -} - `; +`; export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId + } } -} - `; +`; export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot + } } } } -} - ${ExpenditureSlot}`; + ${ExpenditureSlot} +`; export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail + } } } -} - ${ColonyMetadata}`; + ${ColonyMetadata} +`; export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony + } + getColonyByAddress(id: $id) { + items { + id + name + } + } + getColonyByType(type: METACOLONY) { + items { + id + name + } + } } -<<<<<<< HEAD ${Colony} `; export const GetColonyByNameDocument = gql` @@ -13567,458 +13397,355 @@ export const GetColonyContributorsNotificationDataDocument = gql` getContributorsByColony( colonyAddress: $colonyAddress sortDirection: $sortDirection - limit: $limit - nextToken: $nextToken - ) { - items { - user { - notificationsData { - ...NotificationsData - } - } - } - nextToken - } - } - ${NotificationsData} -`; -export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version - } - } - } -`; -export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { - id - } - } - } -`; -export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description -======= - getColonyByAddress(id: $id) { - items { ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - id - name - } - } - getColonyByType(type: METACOLONY) { - items { - id - name - } - } -} - ${Colony}`; -export const GetColonyByNameDocument = gql` - query GetColonyByName($name: String!) { - getColonyByName(name: $name) { - items { - id - name - } - } -} - `; -export const GetColonyByNativeTokenIdDocument = gql` - query GetColonyByNativeTokenId($nativeTokenId: ID!, $limit: Int, $nextToken: String) { - getColoniesByNativeTokenId( - nativeTokenId: $nativeTokenId - limit: $limit - nextToken: $nextToken - ) { - items { - id - status { - nativeToken { - unlocked - unlockable - mintable - } -<<<<<<< HEAD - } - colonyId - } - } -`; -export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds( - $colonyAddress: ID! - $tokenAddress: ID! - $upToBlock: Int = 1 - ) { - listColonyFundsClaims( - filter: { - colonyFundsClaimsId: { eq: $colonyAddress } - colonyFundsClaimTokenId: { eq: $tokenAddress } - createdAtBlock: { le: $upToBlock } - isClaimed: { ne: true } - } + limit: $limit + nextToken: $nextToken ) { items { - id - token { - ...Token + user { + notificationsData { + ...NotificationsData + } } - amount -======= - recovery ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) } + nextToken } - nextToken } -<<<<<<< HEAD - ${Token} + ${NotificationsData} `; -export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { -======= -} - `; -export const ListColoniesDocument = gql` - query ListColonies($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - id - nativeTokenId - } - } -} - `; -export const GetColonyContributorDocument = gql` - query GetColonyContributor($id: ID!) { - getColonyContributor(id: $id) { - id - isVerified - } -} - `; export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version + } } } -} - `; +`; export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) - id + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { + id + } } } -} - `; +`; export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description - id - name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { + color + description + id + name + changelog { + newColor + newDescription + newName + oldColor + oldDescription + oldName + transactionHash + } } } -} - `; +`; export const GetDomainByNativeSkillIdDocument = gql` - query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { - getDomainByNativeSkillId( - nativeSkillId: $nativeSkillId - filter: {colonyId: {eq: $colonyAddress}} - ) { - items { - id - nativeSkillId - nativeId + query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { + getDomainByNativeSkillId( + nativeSkillId: $nativeSkillId + filter: { colonyId: { eq: $colonyAddress } } + ) { + items { + id + nativeSkillId + nativeId + } } } -} - `; +`; export const GetDomainsByExtensionAddressDocument = gql` - query GetDomainsByExtensionAddress($extensionAddress: ID!) { - listColonyExtensions(filter: {id: {eq: $extensionAddress}}) { - items { - colony { - domains { - items { - nativeSkillId - nativeId + query GetDomainsByExtensionAddress($extensionAddress: ID!) { + listColonyExtensions(filter: { id: { eq: $extensionAddress } }) { + items { + colony { + domains { + items { + nativeSkillId + nativeId + } } + id } - id } } } -} - `; +`; export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { - id + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id + } } -} - `; +`; export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure + } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony($nativeFundingPotId: Int!, $colonyAddress: ID!) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: {eq: $colonyAddress} + query GetExpenditureByNativeFundingPotIdAndColony( + $nativeFundingPotId: Int! + $colonyAddress: ID! ) { - items { - ...Expenditure + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: { eq: $colonyAddress } + ) { + items { + ...Expenditure + } } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - ...StreamingPayment + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + ...StreamingPayment + } } -} - ${StreamingPayment}`; + ${StreamingPayment} +`; export const GetStreamingPaymentMetadataDocument = gql` - query GetStreamingPaymentMetadata($id: ID!) { - getStreamingPaymentMetadata(id: $id) { - ...StreamingPaymentMetadata + query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata + } } -} - ${StreamingPaymentMetadata}`; + ${StreamingPaymentMetadata} +`; export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension + } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: {isDeleted: {eq: false}} - ) { - nextToken - items { - ...Extension + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: { isDeleted: { eq: false } } + ) { + nextToken + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony($colonyAddress: ID!, $extensionHash: String!) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: {eq: $extensionHash} - filter: {isDeleted: {eq: false}} + query GetColonyExtensionByHashAndColony( + $colonyAddress: ID! + $extensionHash: String! ) { - items { - id + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: { eq: $extensionHash } + filter: { isDeleted: { eq: false } } + ) { + items { + id + } } } -} - `; +`; export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted - multiSigPermissions + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + multiSigPermissions + } } -} - `; +`; export const GetColonyExtensionByAddressDocument = gql` - query GetColonyExtensionByAddress($extensionAddress: ID!) { - getColonyExtension(id: $extensionAddress) { - params { - multiSig { - colonyThreshold - domainThresholds { - domainId - domainThreshold + query GetColonyExtensionByAddress($extensionAddress: ID!) { + getColonyExtension(id: $extensionAddress) { + params { + multiSig { + colonyThreshold + domainThresholds { + domainId + domainThreshold + } } } + colonyId } - colonyId } -} - `; +`; export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds($colonyAddress: ID!, $tokenAddress: ID!, $upToBlock: Int = 1) { - listColonyFundsClaims( - filter: {colonyFundsClaimsId: {eq: $colonyAddress}, colonyFundsClaimTokenId: {eq: $tokenAddress}, createdAtBlock: {le: $upToBlock}, isClaimed: {ne: true}} + query GetColonyUnclaimedFunds( + $colonyAddress: ID! + $tokenAddress: ID! + $upToBlock: Int = 1 ) { - items { - id + listColonyFundsClaims( + filter: { + colonyFundsClaimsId: { eq: $colonyAddress } + colonyFundsClaimTokenId: { eq: $tokenAddress } + createdAtBlock: { le: $upToBlock } + isClaimed: { ne: true } + } + ) { + items { + id + token { + ...Token + } + amount + } } } -} - `; + ${Token} +`; export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { - id + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id + } } -} - `; +`; export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee + } } } -} - `; +`; export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion + } } -} - ${ColonyMotion}`; + ${ColonyMotion} +`; export const GetVoterRewardsDocument = gql` - query GetVoterRewards($input: GetVoterRewardsInput!) { - getVoterRewards(input: $input) { - min - max - reward + query GetVoterRewards($input: GetVoterRewardsInput!) { + getVoterRewards(input: $input) { + min + max + reward + } } -} - `; +`; export const GetColonyActionByMultiSigIdDocument = gql` - query GetColonyActionByMultiSigId($multiSigId: ID!) { - getColonyActionByMultiSigId(multiSigId: $multiSigId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMultiSigId($multiSigId: ID!) { + getColonyActionByMultiSigId(multiSigId: $multiSigId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMultiSigDocument = gql` - query GetColonyMultiSig($id: ID!) { - getColonyMultiSig(id: $id) { - ...ColonyMultiSig + query GetColonyMultiSig($id: ID!) { + getColonyMultiSig(id: $id) { + ...ColonyMultiSig + } } -} - ${ColonyMultiSig}`; + ${ColonyMultiSig} +`; export const GetUserMultiSigSignatureDocument = gql` - query GetUserMultiSigSignature($multiSigId: ID!, $userAddress: ID!, $vote: MultiSigVote!, $role: Int!) { - getMultiSigUserSignatureByMultiSigId( - filter: {userAddress: {eq: $userAddress}, vote: {eq: $vote}, role: {eq: $role}} - multiSigId: $multiSigId + query GetUserMultiSigSignature( + $multiSigId: ID! + $userAddress: ID! + $vote: MultiSigVote! + $role: Int! ) { - items { - ...MultiSigUserSignature + getMultiSigUserSignatureByMultiSigId( + filter: { + userAddress: { eq: $userAddress } + vote: { eq: $vote } + role: { eq: $role } + } + multiSigId: $multiSigId + ) { + items { + ...MultiSigUserSignature + } } } -} - ${MultiSigUserSignature}`; + ${MultiSigUserSignature} +`; export const GetAllMultiSigRolesDocument = gql` - query GetAllMultiSigRoles($colonyAddress: ID!) { - getRoleByColony( - colonyAddress: $colonyAddress - limit: 9999 - filter: {isMultiSig: {eq: true}} - ) { - items { - id + query GetAllMultiSigRoles($colonyAddress: ID!) { + getRoleByColony( + colonyAddress: $colonyAddress + limit: 9999 + filter: { isMultiSig: { eq: true } } + ) { + items { + id + } } } -} - `; +`; export const GetActiveColonyMultisigsDocument = gql` - query GetActiveColonyMultisigs($colonyAddress: ID!) { - getMultiSigByColonyAddress( - colonyAddress: $colonyAddress - filter: {isExecuted: {eq: false}, isRejected: {eq: false}} - limit: 9999 - ) { - items { - id + query GetActiveColonyMultisigs($colonyAddress: ID!) { + getMultiSigByColonyAddress( + colonyAddress: $colonyAddress + filter: { isExecuted: { eq: false }, isRejected: { eq: false } } + limit: 9999 + ) { + items { + id + } } } -} - `; +`; export const GetColonyRoleDocument = gql` - query GetColonyRole($id: ID!) { - getColonyRole(id: $id) { - id - latestBlock - role_0 - role_1 - role_2 - role_3 - role_5 - role_6 - } -} - `; -export const GetAllColonyRolesDocument = gql` - query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { - getRoleByTargetAddressAndColony( - targetAddress: $targetAddress - colonyAddress: {eq: $colonyAddress} - ) { - items { + query GetColonyRole($id: ID!) { + getColonyRole(id: $id) { id + latestBlock role_0 role_1 role_2 @@ -14027,60 +13754,66 @@ export const GetAllColonyRolesDocument = gql` role_6 } } -} - `; +`; +export const GetAllColonyRolesDocument = gql` + query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { + getRoleByTargetAddressAndColony( + targetAddress: $targetAddress + colonyAddress: { eq: $colonyAddress } + ) { + items { + id + role_0 + role_1 + role_2 + role_3 + role_5 + role_6 + } + } + } +`; export const GetColonyHistoricRoleDocument = gql` - query GetColonyHistoricRole($id: ID!) { - getColonyHistoricRole(id: $id) { - id + query GetColonyHistoricRole($id: ID!) { + getColonyHistoricRole(id: $id) { + id + } } -} - `; +`; export const GetReputationMiningCycleMetadataDocument = gql` - query GetReputationMiningCycleMetadata($id: ID!) { - getReputationMiningCycleMetadata(id: $id) { - id + query GetReputationMiningCycleMetadata($id: ID!) { + getReputationMiningCycleMetadata(id: $id) { + id + } } -} - `; +`; export const GetSafeTransactionByTransactionHashDocument = gql` - query GetSafeTransactionByTransactionHash($transactionHash: ID!) { - getSafeTransaction(id: $transactionHash) { - id + query GetSafeTransactionByTransactionHash($transactionHash: ID!) { + getSafeTransaction(id: $transactionHash) { + id + } } -} - `; +`; export const GetUserStakeDocument = gql` - query GetUserStake($id: ID!) { - getUserStake(id: $id) { - id - amount + query GetUserStake($id: ID!) { + getUserStake(id: $id) { + id + amount + } } -} - `; +`; export const GetStatsDocument = gql` - query GetStats { - getIngestorStats(id: "STATS") { - value - } -} - `; -export const GetTokenFromEverywhereDocument = gql` - query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { - getTokenFromEverywhere(input: $input) { - items { - id + query GetStats { + getIngestorStats(id: "STATS") { + value } } -<<<<<<< HEAD `; -<<<<<<< HEAD -export const GetTokenByAddressDocument = gql` - query GetTokenByAddress($address: ID!) { - getTokenByAddress(id: $address) { +export const GetTokenFromEverywhereDocument = gql` + query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { + getTokenFromEverywhere(input: $input) { items { - decimals - tokenAddress: id + id } } } @@ -14097,9 +13830,3 @@ export const GetNotificationUsersDocument = gql` } ${NotificationsData} `; -======= ->>>>>>> 28a498d (Feat: Remove limitAmount from streamingPaymentMetadata) -======= -} - `; ->>>>>>> 01b6f83 (Feat: Added changelog to streaming payment and streaming payment metadata) diff --git a/src/handlers/motions/motionFinalized/motionFinalized.ts b/src/handlers/motions/motionFinalized/motionFinalized.ts index dfdcae29f..b763397fb 100644 --- a/src/handlers/motions/motionFinalized/motionFinalized.ts +++ b/src/handlers/motions/motionFinalized/motionFinalized.ts @@ -15,7 +15,6 @@ import { import { getStakerReward, - linkPendingMetadata, linkPendingStreamingPaymentMetadata, updateColonyUnclaimedStakes, updateAmountToExcludeNetworkFee, From ab9ce644147ea7d4abd2bbb6bb976c7a0c8e3e70 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Fri, 4 Oct 2024 12:36:10 +0100 Subject: [PATCH 39/48] Store creatorAddress of a streaming payment --- src/graphql/generated.ts | 7 +++++++ src/handlers/expenditures/streamingPaymentCreated.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 5731fec36..ef330d1b8 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1901,6 +1901,7 @@ export type CreateStreamingPaymentInput = { claims?: InputMaybe>; colonyId: Scalars['ID']; createdAt?: InputMaybe; + creatorAddress: Scalars['ID']; endTime: Scalars['String']; id?: InputMaybe; interval: Scalars['String']; @@ -4180,6 +4181,7 @@ export type ModelStreamingPaymentConditionInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -4209,6 +4211,7 @@ export type ModelStreamingPaymentFilterInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -4874,6 +4877,7 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { >; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -8384,6 +8388,8 @@ export type StreamingPayment = { /** Colony ID (address) to which the expenditure belongs */ colonyId: Scalars['ID']; createdAt: Scalars['AWSDateTime']; + /** Address of the stream creator, can be a user or an extension */ + creatorAddress: Scalars['ID']; endTime: Scalars['String']; id: Scalars['ID']; interval: Scalars['String']; @@ -9853,6 +9859,7 @@ export type UpdateStreamingPaymentInput = { claims?: InputMaybe>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index af2a4c8b5..426ecc531 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -69,6 +69,7 @@ export const handleStreamingPaymentCreated: EventHandler = async ( tokenAddress, amount: amount.toString(), colonyId: colonyAddress, + creatorAddress: initiatorAddress, }, }); From 3eb18424681f38e1589033ad0711eea1e19f04c9 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Fri, 4 Oct 2024 14:57:25 +0100 Subject: [PATCH 40/48] Fix: Link stream create action with correct streaming payment --- src/handlers/expenditures/streamingPaymentCreated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 426ecc531..80ac6a071 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -76,7 +76,7 @@ export const handleStreamingPaymentCreated: EventHandler = async ( await writeActionFromEvent(event, colonyAddress, { type: ColonyActionType.CreateStreamingPayment, initiatorAddress, - expenditureId: databaseId, + streamingPaymentId: databaseId, fromDomainId: getDomainDatabaseId(colonyAddress, toNumber(domainId)), recipientAddress, }); From 6d6d3c0b3a927393992cb5435ac406df8a424dae Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Wed, 6 Nov 2024 12:54:37 +0000 Subject: [PATCH 41/48] Chore: update generated.ts after rebase --- src/graphql/generated.ts | 4860 ++++++++++++++------------------------ 1 file changed, 1786 insertions(+), 3074 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index ef330d1b8..068393f0d 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1,15 +1,9 @@ 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 Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -283,7 +277,7 @@ export enum ClientType { TokenLockingClient = 'TokenLockingClient', TokenSupplierClient = 'TokenSupplierClient', VotingReputationClient = 'VotingReputationClient', - WhitelistClient = 'WhitelistClient', + WhitelistClient = 'WhitelistClient' } /** Represents a Colony within the Colony Network */ @@ -344,6 +338,7 @@ export type Colony = { version: Scalars['Int']; }; + /** Represents a Colony within the Colony Network */ export type ColonyActionsArgs = { filter?: InputMaybe; @@ -352,6 +347,7 @@ export type ColonyActionsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyDomainsArgs = { filter?: InputMaybe; @@ -361,6 +357,7 @@ export type ColonyDomainsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyExpendituresArgs = { createdAt?: InputMaybe; @@ -370,6 +367,7 @@ export type ColonyExpendituresArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyExtensionsArgs = { filter?: InputMaybe; @@ -379,6 +377,7 @@ export type ColonyExtensionsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyFundsClaimDataArgs = { createdAt?: InputMaybe; @@ -388,6 +387,7 @@ export type ColonyFundsClaimDataArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyRolesArgs = { filter?: InputMaybe; @@ -396,6 +396,7 @@ export type ColonyRolesArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyStreamingPaymentsArgs = { createdAt?: InputMaybe; @@ -405,6 +406,7 @@ export type ColonyStreamingPaymentsArgs = { sortDirection?: InputMaybe; }; + /** Represents a Colony within the Colony Network */ export type ColonyTokensArgs = { filter?: InputMaybe; @@ -757,7 +759,7 @@ export enum ColonyActionType { /** An action related to upgrading a Colony's version via multiSig */ VersionUpgradeMultisig = 'VERSION_UPGRADE_MULTISIG', /** An action unrelated to the currently viewed Colony */ - WrongColony = 'WRONG_COLONY', + WrongColony = 'WRONG_COLONY' } /** Represents a Colony balance for a specific domain and token */ @@ -857,6 +859,7 @@ export type ColonyContributor = { user?: Maybe; }; + /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -866,6 +869,7 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; + /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1177,6 +1181,7 @@ export type ColonyMotion = { voterRewards?: Maybe; }; + /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1186,6 +1191,7 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; + /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1251,6 +1257,7 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; + /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1361,7 +1368,7 @@ export enum ColonyType { /** A regular Colony */ Colony = 'COLONY', /** The MetaColony, which governs the entire Colony Network */ - Metacolony = 'METACOLONY', + Metacolony = 'METACOLONY' } /** Unclaimed staking rewards for a motion */ @@ -1440,7 +1447,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP', + Top = 'TOP' } export type CreateAnnotationInput = { @@ -1466,9 +1473,7 @@ export type CreateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe< - Array - >; + arbitraryTransactions?: InputMaybe>; blockNumber: Scalars['Int']; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -1901,7 +1906,6 @@ export type CreateStreamingPaymentInput = { claims?: InputMaybe>; colonyId: Scalars['ID']; createdAt?: InputMaybe; - creatorAddress: Scalars['ID']; endTime: Scalars['String']; id?: InputMaybe; interval: Scalars['String']; @@ -2339,7 +2343,7 @@ export enum DomainColor { /** The default domain color for the root domain. Only used by the root by default and cannot be selected by the user. */ Root = 'ROOT', /** A yellow color */ - Yellow = 'YELLOW', + Yellow = 'YELLOW' } /** Input type for specifying a Domain */ @@ -2450,6 +2454,7 @@ export type Expenditure = { userStakeId?: Maybe; }; + export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2457,6 +2462,7 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; + export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2572,12 +2578,12 @@ export enum ExpenditureStatus { Cancelled = 'CANCELLED', Draft = 'DRAFT', Finalized = 'FINALIZED', - Locked = 'LOCKED', + Locked = 'LOCKED' } export enum ExpenditureType { PaymentBuilder = 'PAYMENT_BUILDER', - Staged = 'STAGED', + Staged = 'STAGED' } export enum ExtendedSupportedCurrencies { @@ -2591,7 +2597,7 @@ export enum ExtendedSupportedCurrencies { Jpy = 'JPY', Krw = 'KRW', Usd = 'USD', - Usdc = 'USDC', + Usdc = 'USDC' } export type ExtensionInstallationsCount = { @@ -2645,7 +2651,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube', + Youtube = 'Youtube' } export type FailedTransaction = { @@ -2660,7 +2666,7 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION', + Union = 'UNION' } export type FunctionParam = { @@ -2806,7 +2812,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW', + UnderReview = 'UNDER_REVIEW' } /** @@ -2876,7 +2882,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet', + StringSet = 'stringSet' } export type ModelBooleanInput = { @@ -3556,14 +3562,10 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3753,15 +3755,11 @@ export type ModelExpenditureTypeInput = { }; export type ModelExtensionInstallationsCountConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3775,16 +3773,12 @@ export type ModelExtensionInstallationsCountConnection = { }; export type ModelExtensionInstallationsCountFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4069,14 +4063,10 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4086,15 +4076,11 @@ export type ModelReputationMiningCycleMetadataConnection = { }; export type ModelReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSafeTransactionConditionInput = { @@ -4168,7 +4154,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC', + Desc = 'DESC' } export type ModelSplitPaymentDistributionTypeInput = { @@ -4181,7 +4167,6 @@ export type ModelStreamingPaymentConditionInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; - creatorAddress?: InputMaybe; endTime?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -4211,7 +4196,6 @@ export type ModelStreamingPaymentFilterInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; - creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -4227,14 +4211,10 @@ export type ModelStreamingPaymentFilterInput = { }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; endCondition?: InputMaybe; not?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4292,16 +4272,12 @@ export type ModelSubscriptionBooleanInput = { }; export type ModelSubscriptionCacheTotalBalanceFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; date?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; timeframePeriod?: InputMaybe; timeframeType?: InputMaybe; totalUSDC?: InputMaybe; @@ -4349,20 +4325,14 @@ export type ModelSubscriptionColonyActionFilterInput = { }; export type ModelSubscriptionColonyActionMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; customTitle?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyContributorFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; colonyReputationPercentage?: InputMaybe; contributorAddress?: InputMaybe; @@ -4371,34 +4341,26 @@ export type ModelSubscriptionColonyContributorFilterInput = { id?: InputMaybe; isVerified?: InputMaybe; isWatching?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; type?: InputMaybe; }; export type ModelSubscriptionColonyDecisionFilterInput = { actionId?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; motionDomainId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; showInDecisionsList?: InputMaybe; title?: InputMaybe; walletAddress?: InputMaybe; }; export type ModelSubscriptionColonyExtensionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyId?: InputMaybe; hash?: InputMaybe; id?: InputMaybe; @@ -4407,9 +4369,7 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; version?: InputMaybe; }; @@ -4430,32 +4390,24 @@ export type ModelSubscriptionColonyFilterInput = { export type ModelSubscriptionColonyFundsClaimFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyFundsClaimsId?: InputMaybe; createdAt?: InputMaybe; createdAtBlock?: InputMaybe; id?: InputMaybe; isClaimed?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyHistoricRoleFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; blockNumber?: InputMaybe; colonyId?: InputMaybe; createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; isMultiSig?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; role_0?: InputMaybe; role_1?: InputMaybe; role_2?: InputMaybe; @@ -4467,28 +4419,20 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { }; export type ModelSubscriptionColonyMemberInviteFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyId?: InputMaybe; id?: InputMaybe; invitesRemaining?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionColonyMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; avatar?: InputMaybe; description?: InputMaybe; displayName?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; thumbnail?: InputMaybe; }; @@ -4517,9 +4461,7 @@ export type ModelSubscriptionColonyMotionFilterInput = { }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4533,9 +4475,7 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4569,9 +4509,7 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4581,40 +4519,28 @@ export type ModelSubscriptionContractEventFilterInput = { }; export type ModelSubscriptionContributorReputationFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; contributorAddress?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationPercentage?: InputMaybe; reputationRaw?: InputMaybe; }; export type ModelSubscriptionCurrentNetworkInverseFeeFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; inverseFee?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionCurrentVersionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; key?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; version?: InputMaybe; }; @@ -4632,16 +4558,12 @@ export type ModelSubscriptionDomainFilterInput = { }; export type ModelSubscriptionDomainMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; color?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionExpenditureFilterInput = { @@ -4666,29 +4588,21 @@ export type ModelSubscriptionExpenditureFilterInput = { }; export type ModelSubscriptionExpenditureMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; distributionType?: InputMaybe; expectedNumberOfPayouts?: InputMaybe; expectedNumberOfTokens?: InputMaybe; fundFromDomainNativeId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionExtensionInstallationsCountFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; multiSigPermissions?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4723,9 +4637,7 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4744,23 +4656,17 @@ export type ModelSubscriptionIntInput = { }; export type ModelSubscriptionLiquidationAddressFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; chainId?: InputMaybe; id?: InputMaybe; liquidationAddress?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; userAddress?: InputMaybe; }; export type ModelSubscriptionMotionMessageFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; createdAt?: InputMaybe; initiatorAddress?: InputMaybe; messageKey?: InputMaybe; @@ -4771,16 +4677,12 @@ export type ModelSubscriptionMotionMessageFilterInput = { }; export type ModelSubscriptionMultiSigUserSignatureFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; multiSigId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; @@ -4788,28 +4690,20 @@ export type ModelSubscriptionMultiSigUserSignatureFilterInput = { export type ModelSubscriptionNotificationsDataFilterInput = { adminNotificationsDisabled?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; magicbellUserId?: InputMaybe; mentionNotificationsDisabled?: InputMaybe; mutedColonyAddresses?: InputMaybe; notificationsDisabled?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; paymentNotificationsDisabled?: InputMaybe; userAddress?: InputMaybe; }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; shareableInvites?: InputMaybe; userId?: InputMaybe; }; @@ -4832,28 +4726,20 @@ export type ModelSubscriptionProfileFilterInput = { }; export type ModelSubscriptionReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; lastCompletedAt?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionSafeTransactionDataFilterInput = { abi?: InputMaybe; amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; contractFunction?: InputMaybe; data?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; rawAmount?: InputMaybe; tokenAddress?: InputMaybe; transactionHash?: InputMaybe; @@ -4861,23 +4747,16 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionStreamingPaymentFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; - creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -4885,23 +4764,17 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; endCondition?: InputMaybe; id?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; }; export type ModelSubscriptionStringInput = { @@ -4920,13 +4793,9 @@ export type ModelSubscriptionStringInput = { }; export type ModelSubscriptionTokenExchangeRateFilterInput = { - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; date?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; tokenId?: InputMaybe; }; @@ -5006,16 +4875,12 @@ export type ModelSubscriptionUserTokensFilterInput = { export type ModelSubscriptionVoterRewardsHistoryFilterInput = { amount?: InputMaybe; - and?: InputMaybe< - Array> - >; + and?: InputMaybe>>; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; motionId?: InputMaybe; - or?: InputMaybe< - Array> - >; + or?: InputMaybe>>; userAddress?: InputMaybe; }; @@ -5448,7 +5313,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject', + Reject = 'Reject' } /** Root mutation type */ @@ -5606,838 +5471,979 @@ export type Mutation = { validateUserInvite?: Maybe; }; + /** Root mutation type */ export type MutationBridgeCreateBankAccountArgs = { input: BridgeCreateBankAccountInput; }; + /** Root mutation type */ export type MutationBridgeUpdateBankAccountArgs = { input: BridgeUpdateBankAccountInput; }; + /** Root mutation type */ export type MutationBridgeXyzMutationArgs = { input: BridgeXyzMutationInput; }; + /** Root mutation type */ export type MutationCreateAnnotationArgs = { condition?: InputMaybe; input: CreateAnnotationInput; }; + /** Root mutation type */ export type MutationCreateCacheTotalBalanceArgs = { condition?: InputMaybe; input: CreateCacheTotalBalanceInput; }; + /** Root mutation type */ export type MutationCreateColonyArgs = { condition?: InputMaybe; input: CreateColonyInput; }; + /** Root mutation type */ export type MutationCreateColonyActionArgs = { condition?: InputMaybe; input: CreateColonyActionInput; }; + /** Root mutation type */ export type MutationCreateColonyActionMetadataArgs = { condition?: InputMaybe; input: CreateColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyContributorArgs = { condition?: InputMaybe; input: CreateColonyContributorInput; }; + /** Root mutation type */ export type MutationCreateColonyDecisionArgs = { condition?: InputMaybe; input: CreateColonyDecisionInput; }; + /** Root mutation type */ export type MutationCreateColonyEtherealMetadataArgs = { input: CreateColonyEtherealMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyExtensionArgs = { condition?: InputMaybe; input: CreateColonyExtensionInput; }; + /** Root mutation type */ export type MutationCreateColonyFundsClaimArgs = { condition?: InputMaybe; input: CreateColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationCreateColonyHistoricRoleArgs = { condition?: InputMaybe; input: CreateColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationCreateColonyMemberInviteArgs = { condition?: InputMaybe; input: CreateColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationCreateColonyMetadataArgs = { condition?: InputMaybe; input: CreateColonyMetadataInput; }; + /** Root mutation type */ export type MutationCreateColonyMotionArgs = { condition?: InputMaybe; input: CreateColonyMotionInput; }; + /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; + /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; input: CreateColonyRoleInput; }; + /** Root mutation type */ export type MutationCreateColonyTokensArgs = { condition?: InputMaybe; input: CreateColonyTokensInput; }; + /** Root mutation type */ export type MutationCreateContractEventArgs = { condition?: InputMaybe; input: CreateContractEventInput; }; + /** Root mutation type */ export type MutationCreateContributorReputationArgs = { condition?: InputMaybe; input: CreateContributorReputationInput; }; + /** Root mutation type */ export type MutationCreateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: CreateCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationCreateCurrentVersionArgs = { condition?: InputMaybe; input: CreateCurrentVersionInput; }; + /** Root mutation type */ export type MutationCreateDomainArgs = { condition?: InputMaybe; input: CreateDomainInput; }; + /** Root mutation type */ export type MutationCreateDomainMetadataArgs = { condition?: InputMaybe; input: CreateDomainMetadataInput; }; + /** Root mutation type */ export type MutationCreateExpenditureArgs = { condition?: InputMaybe; input: CreateExpenditureInput; }; + /** Root mutation type */ export type MutationCreateExpenditureMetadataArgs = { condition?: InputMaybe; input: CreateExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationCreateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: CreateExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationCreateIngestorStatsArgs = { condition?: InputMaybe; input: CreateIngestorStatsInput; }; + /** Root mutation type */ export type MutationCreateLiquidationAddressArgs = { condition?: InputMaybe; input: CreateLiquidationAddressInput; }; + /** Root mutation type */ export type MutationCreateMotionMessageArgs = { condition?: InputMaybe; input: CreateMotionMessageInput; }; + /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; + /** Root mutation type */ export type MutationCreateNotificationsDataArgs = { condition?: InputMaybe; input: CreateNotificationsDataInput; }; + /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: CreatePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationCreateProfileArgs = { condition?: InputMaybe; input: CreateProfileInput; }; + /** Root mutation type */ export type MutationCreateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: CreateReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationCreateSafeTransactionArgs = { condition?: InputMaybe; input: CreateSafeTransactionInput; }; + /** Root mutation type */ export type MutationCreateSafeTransactionDataArgs = { condition?: InputMaybe; input: CreateSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationCreateStreamingPaymentArgs = { condition?: InputMaybe; input: CreateStreamingPaymentInput; }; + /** Root mutation type */ export type MutationCreateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreateStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationCreateTokenArgs = { condition?: InputMaybe; input: CreateTokenInput; }; + /** Root mutation type */ export type MutationCreateTokenExchangeRateArgs = { condition?: InputMaybe; input: CreateTokenExchangeRateInput; }; + /** Root mutation type */ export type MutationCreateTransactionArgs = { condition?: InputMaybe; input: CreateTransactionInput; }; + /** Root mutation type */ export type MutationCreateUniqueUserArgs = { input?: InputMaybe; }; + /** Root mutation type */ export type MutationCreateUserArgs = { condition?: InputMaybe; input: CreateUserInput; }; + /** Root mutation type */ export type MutationCreateUserNotificationsDataArgs = { input: CreateUserNotificationsDataInput; }; + /** Root mutation type */ export type MutationCreateUserStakeArgs = { condition?: InputMaybe; input: CreateUserStakeInput; }; + /** Root mutation type */ export type MutationCreateUserTokensArgs = { condition?: InputMaybe; input: CreateUserTokensInput; }; + /** Root mutation type */ export type MutationCreateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: CreateVoterRewardsHistoryInput; }; + /** Root mutation type */ export type MutationDeleteAnnotationArgs = { condition?: InputMaybe; input: DeleteAnnotationInput; }; + /** Root mutation type */ export type MutationDeleteCacheTotalBalanceArgs = { condition?: InputMaybe; input: DeleteCacheTotalBalanceInput; }; + /** Root mutation type */ export type MutationDeleteColonyArgs = { condition?: InputMaybe; input: DeleteColonyInput; }; + /** Root mutation type */ export type MutationDeleteColonyActionArgs = { condition?: InputMaybe; input: DeleteColonyActionInput; }; + /** Root mutation type */ export type MutationDeleteColonyActionMetadataArgs = { condition?: InputMaybe; input: DeleteColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationDeleteColonyContributorArgs = { condition?: InputMaybe; input: DeleteColonyContributorInput; }; + /** Root mutation type */ export type MutationDeleteColonyDecisionArgs = { condition?: InputMaybe; input: DeleteColonyDecisionInput; }; + /** Root mutation type */ export type MutationDeleteColonyExtensionArgs = { condition?: InputMaybe; input: DeleteColonyExtensionInput; }; + /** Root mutation type */ export type MutationDeleteColonyFundsClaimArgs = { condition?: InputMaybe; input: DeleteColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationDeleteColonyHistoricRoleArgs = { condition?: InputMaybe; input: DeleteColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationDeleteColonyMemberInviteArgs = { condition?: InputMaybe; input: DeleteColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationDeleteColonyMetadataArgs = { condition?: InputMaybe; input: DeleteColonyMetadataInput; }; + /** Root mutation type */ export type MutationDeleteColonyMotionArgs = { condition?: InputMaybe; input: DeleteColonyMotionInput; }; + /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; + /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; input: DeleteColonyRoleInput; }; + /** Root mutation type */ export type MutationDeleteColonyTokensArgs = { condition?: InputMaybe; input: DeleteColonyTokensInput; }; + /** Root mutation type */ export type MutationDeleteContractEventArgs = { condition?: InputMaybe; input: DeleteContractEventInput; }; + /** Root mutation type */ export type MutationDeleteContributorReputationArgs = { condition?: InputMaybe; input: DeleteContributorReputationInput; }; + /** Root mutation type */ export type MutationDeleteCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: DeleteCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationDeleteCurrentVersionArgs = { condition?: InputMaybe; input: DeleteCurrentVersionInput; }; + /** Root mutation type */ export type MutationDeleteDomainArgs = { condition?: InputMaybe; input: DeleteDomainInput; }; + /** Root mutation type */ export type MutationDeleteDomainMetadataArgs = { condition?: InputMaybe; input: DeleteDomainMetadataInput; }; + /** Root mutation type */ export type MutationDeleteExpenditureArgs = { condition?: InputMaybe; input: DeleteExpenditureInput; }; + /** Root mutation type */ export type MutationDeleteExpenditureMetadataArgs = { condition?: InputMaybe; input: DeleteExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationDeleteExtensionInstallationsCountArgs = { condition?: InputMaybe; input: DeleteExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationDeleteIngestorStatsArgs = { condition?: InputMaybe; input: DeleteIngestorStatsInput; }; + /** Root mutation type */ export type MutationDeleteLiquidationAddressArgs = { condition?: InputMaybe; input: DeleteLiquidationAddressInput; }; + /** Root mutation type */ export type MutationDeleteMotionMessageArgs = { condition?: InputMaybe; input: DeleteMotionMessageInput; }; + /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; + /** Root mutation type */ export type MutationDeleteNotificationsDataArgs = { condition?: InputMaybe; input: DeleteNotificationsDataInput; }; + /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: DeletePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationDeleteProfileArgs = { condition?: InputMaybe; input: DeleteProfileInput; }; + /** Root mutation type */ export type MutationDeleteReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: DeleteReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationDeleteSafeTransactionArgs = { condition?: InputMaybe; input: DeleteSafeTransactionInput; }; + /** Root mutation type */ export type MutationDeleteSafeTransactionDataArgs = { condition?: InputMaybe; input: DeleteSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationDeleteStreamingPaymentArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentInput; }; + /** Root mutation type */ export type MutationDeleteStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationDeleteTokenArgs = { condition?: InputMaybe; input: DeleteTokenInput; }; + /** Root mutation type */ export type MutationDeleteTokenExchangeRateArgs = { condition?: InputMaybe; input: DeleteTokenExchangeRateInput; }; + /** Root mutation type */ export type MutationDeleteTransactionArgs = { condition?: InputMaybe; input: DeleteTransactionInput; }; + /** Root mutation type */ export type MutationDeleteUserArgs = { condition?: InputMaybe; input: DeleteUserInput; }; + /** Root mutation type */ export type MutationDeleteUserStakeArgs = { condition?: InputMaybe; input: DeleteUserStakeInput; }; + /** Root mutation type */ export type MutationDeleteUserTokensArgs = { condition?: InputMaybe; input: DeleteUserTokensInput; }; + /** Root mutation type */ export type MutationDeleteVoterRewardsHistoryArgs = { condition?: InputMaybe; input: DeleteVoterRewardsHistoryInput; }; + /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; + /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; input: UpdateAnnotationInput; }; + /** Root mutation type */ export type MutationUpdateCacheTotalBalanceArgs = { condition?: InputMaybe; input: UpdateCacheTotalBalanceInput; }; + /** Root mutation type */ export type MutationUpdateColonyArgs = { condition?: InputMaybe; input: UpdateColonyInput; }; + /** Root mutation type */ export type MutationUpdateColonyActionArgs = { condition?: InputMaybe; input: UpdateColonyActionInput; }; + /** Root mutation type */ export type MutationUpdateColonyActionMetadataArgs = { condition?: InputMaybe; input: UpdateColonyActionMetadataInput; }; + /** Root mutation type */ export type MutationUpdateColonyContributorArgs = { condition?: InputMaybe; input: UpdateColonyContributorInput; }; + /** Root mutation type */ export type MutationUpdateColonyDecisionArgs = { condition?: InputMaybe; input: UpdateColonyDecisionInput; }; + /** Root mutation type */ export type MutationUpdateColonyExtensionArgs = { condition?: InputMaybe; input: UpdateColonyExtensionInput; }; + /** Root mutation type */ export type MutationUpdateColonyFundsClaimArgs = { condition?: InputMaybe; input: UpdateColonyFundsClaimInput; }; + /** Root mutation type */ export type MutationUpdateColonyHistoricRoleArgs = { condition?: InputMaybe; input: UpdateColonyHistoricRoleInput; }; + /** Root mutation type */ export type MutationUpdateColonyMemberInviteArgs = { condition?: InputMaybe; input: UpdateColonyMemberInviteInput; }; + /** Root mutation type */ export type MutationUpdateColonyMetadataArgs = { condition?: InputMaybe; input: UpdateColonyMetadataInput; }; + /** Root mutation type */ export type MutationUpdateColonyMotionArgs = { condition?: InputMaybe; input: UpdateColonyMotionInput; }; + /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; + /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; input: UpdateColonyRoleInput; }; + /** Root mutation type */ export type MutationUpdateColonyTokensArgs = { condition?: InputMaybe; input: UpdateColonyTokensInput; }; + /** Root mutation type */ export type MutationUpdateContractEventArgs = { condition?: InputMaybe; input: UpdateContractEventInput; }; + /** Root mutation type */ export type MutationUpdateContributorReputationArgs = { condition?: InputMaybe; input: UpdateContributorReputationInput; }; + /** Root mutation type */ export type MutationUpdateContributorsWithReputationArgs = { input: UpdateContributorsWithReputationInput; }; + /** Root mutation type */ export type MutationUpdateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: UpdateCurrentNetworkInverseFeeInput; }; + /** Root mutation type */ export type MutationUpdateCurrentVersionArgs = { condition?: InputMaybe; input: UpdateCurrentVersionInput; }; + /** Root mutation type */ export type MutationUpdateDomainArgs = { condition?: InputMaybe; input: UpdateDomainInput; }; + /** Root mutation type */ export type MutationUpdateDomainMetadataArgs = { condition?: InputMaybe; input: UpdateDomainMetadataInput; }; + /** Root mutation type */ export type MutationUpdateExpenditureArgs = { condition?: InputMaybe; input: UpdateExpenditureInput; }; + /** Root mutation type */ export type MutationUpdateExpenditureMetadataArgs = { condition?: InputMaybe; input: UpdateExpenditureMetadataInput; }; + /** Root mutation type */ export type MutationUpdateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: UpdateExtensionInstallationsCountInput; }; + /** Root mutation type */ export type MutationUpdateIngestorStatsArgs = { condition?: InputMaybe; input: UpdateIngestorStatsInput; }; + /** Root mutation type */ export type MutationUpdateLiquidationAddressArgs = { condition?: InputMaybe; input: UpdateLiquidationAddressInput; }; + /** Root mutation type */ export type MutationUpdateMotionMessageArgs = { condition?: InputMaybe; input: UpdateMotionMessageInput; }; + /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; + /** Root mutation type */ export type MutationUpdateNotificationsDataArgs = { condition?: InputMaybe; input: UpdateNotificationsDataInput; }; + /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: UpdatePrivateBetaInviteCodeInput; }; + /** Root mutation type */ export type MutationUpdateProfileArgs = { condition?: InputMaybe; input: UpdateProfileInput; }; + /** Root mutation type */ export type MutationUpdateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: UpdateReputationMiningCycleMetadataInput; }; + /** Root mutation type */ export type MutationUpdateSafeTransactionArgs = { condition?: InputMaybe; input: UpdateSafeTransactionInput; }; + /** Root mutation type */ export type MutationUpdateSafeTransactionDataArgs = { condition?: InputMaybe; input: UpdateSafeTransactionDataInput; }; + /** Root mutation type */ export type MutationUpdateStreamingPaymentArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentInput; }; + /** Root mutation type */ export type MutationUpdateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentMetadataInput; }; + /** Root mutation type */ export type MutationUpdateTokenArgs = { condition?: InputMaybe; input: UpdateTokenInput; }; + /** Root mutation type */ export type MutationUpdateTokenExchangeRateArgs = { condition?: InputMaybe; input: UpdateTokenExchangeRateInput; }; + /** Root mutation type */ export type MutationUpdateTransactionArgs = { condition?: InputMaybe; input: UpdateTransactionInput; }; + /** Root mutation type */ export type MutationUpdateUserArgs = { condition?: InputMaybe; input: UpdateUserInput; }; + /** Root mutation type */ export type MutationUpdateUserStakeArgs = { condition?: InputMaybe; input: UpdateUserStakeInput; }; + /** Root mutation type */ export type MutationUpdateUserTokensArgs = { condition?: InputMaybe; input: UpdateUserTokensInput; }; + /** Root mutation type */ export type MutationUpdateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: UpdateVoterRewardsHistoryInput; }; + /** Root mutation type */ export type MutationValidateUserInviteArgs = { input: ValidateUserInviteInput; @@ -6525,7 +6531,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET', + Mainnet = 'MAINNET' } /** Type of notifications that can be sent */ @@ -6556,7 +6562,7 @@ export enum NotificationType { MultisigActionRejected = 'MULTISIG_ACTION_REJECTED', NewColonyVersion = 'NEW_COLONY_VERSION', NewExtensionVersion = 'NEW_EXTENSION_VERSION', - PermissionsAction = 'PERMISSIONS_ACTION', + PermissionsAction = 'PERMISSIONS_ACTION' } /** Holds the notifications data for the user, such as their unique Magicbell user id, and their notifications preferences. */ @@ -6865,11 +6871,13 @@ export type Query = { tokenExhangeRateByTokenId?: Maybe; }; + /** Root query type */ export type QueryBridgeGetUserLiquidationAddressArgs = { userAddress: Scalars['String']; }; + /** Root query type */ export type QueryCacheTotalBalanceByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -6880,6 +6888,7 @@ export type QueryCacheTotalBalanceByColonyAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetActionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -6889,6 +6898,7 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetActionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -6898,6 +6908,7 @@ export type QueryGetActionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; + /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -6908,16 +6919,19 @@ export type QueryGetActionsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetAnnotationArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCacheTotalBalanceArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColoniesByNativeTokenIdArgs = { filter?: InputMaybe; @@ -6927,16 +6941,19 @@ export type QueryGetColoniesByNativeTokenIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyActionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyActionByMotionIdArgs = { filter?: InputMaybe; @@ -6946,6 +6963,7 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -6955,11 +6973,13 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -6969,6 +6989,7 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -6978,6 +6999,7 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -6987,16 +7009,19 @@ export type QueryGetColonyByTypeArgs = { type: ColonyType; }; + /** Root query type */ export type QueryGetColonyContributorArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyDecisionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyDecisionByActionIdArgs = { actionId: Scalars['ID']; @@ -7006,6 +7031,7 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -7016,21 +7042,25 @@ export type QueryGetColonyDecisionByColonyAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetColonyExtensionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyFundsClaimArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyHistoricRoleArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyHistoricRoleByDateArgs = { createdAt?: InputMaybe; @@ -7041,46 +7071,55 @@ export type QueryGetColonyHistoricRoleByDateArgs = { type: Scalars['String']; }; + /** Root query type */ export type QueryGetColonyMemberInviteArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetColonyTokensArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContractEventArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContributorReputationArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetContributorsByAddressArgs = { colonyReputationPercentage?: InputMaybe; @@ -7091,6 +7130,7 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7101,16 +7141,19 @@ export type QueryGetContributorsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetCurrentNetworkInverseFeeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCurrentVersionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetCurrentVersionByKeyArgs = { filter?: InputMaybe; @@ -7120,16 +7163,19 @@ export type QueryGetCurrentVersionByKeyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetDomainArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; }; + /** Root query type */ export type QueryGetDomainByNativeSkillIdArgs = { filter?: InputMaybe; @@ -7140,11 +7186,13 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7155,16 +7203,19 @@ export type QueryGetDomainsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExpenditureArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExpenditureMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExpendituresByColonyArgs = { colonyId: Scalars['ID']; @@ -7175,6 +7226,7 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7185,6 +7237,7 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7195,11 +7248,13 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7209,6 +7264,7 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7219,16 +7275,19 @@ export type QueryGetFundsClaimsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetIngestorStatsArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetLiquidationAddressArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetLiquidationAddressesByUserAddressArgs = { filter?: InputMaybe; @@ -7238,6 +7297,7 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7247,6 +7307,7 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -7256,6 +7317,7 @@ export type QueryGetMotionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7265,11 +7327,13 @@ export type QueryGetMotionByTransactionHashArgs = { transactionHash: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7280,16 +7344,19 @@ export type QueryGetMotionMessageByMotionIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionStateArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionTimeoutPeriodsArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7300,6 +7367,7 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7309,6 +7377,7 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7318,6 +7387,7 @@ export type QueryGetMultiSigByExpenditureIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetMultiSigByTransactionHashArgs = { filter?: InputMaybe; @@ -7327,11 +7397,13 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; + /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7341,21 +7413,25 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetNotificationsDataArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetProfileArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetProfileByEmailArgs = { email: Scalars['AWSEmail']; @@ -7365,6 +7441,7 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7374,11 +7451,13 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7389,6 +7468,7 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7399,6 +7479,7 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7409,31 +7490,37 @@ export type QueryGetRoleByTargetAddressAndColonyArgs = { targetAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionDataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetSafeTransactionStatusArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetStreamingPaymentArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetStreamingPaymentsByColonyArgs = { colonyId: Scalars['ID']; @@ -7444,11 +7531,13 @@ export type QueryGetStreamingPaymentsByColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetTokenArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTokenByAddressArgs = { filter?: InputMaybe; @@ -7458,16 +7547,19 @@ export type QueryGetTokenByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetTokenExchangeRateArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTokenFromEverywhereArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetTokensByTypeArgs = { filter?: InputMaybe; @@ -7477,11 +7569,13 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; + /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7492,6 +7586,7 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7502,11 +7597,13 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7516,6 +7613,7 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7525,6 +7623,7 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7534,11 +7633,13 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7549,11 +7650,13 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; + /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7564,16 +7667,19 @@ export type QueryGetUserStakesArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserTokenBalanceArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetUserTokensArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryGetUserVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7584,16 +7690,19 @@ export type QueryGetUserVoterRewardsArgs = { userAddress: Scalars['ID']; }; + /** Root query type */ export type QueryGetVoterRewardsArgs = { input?: InputMaybe; }; + /** Root query type */ export type QueryGetVoterRewardsHistoryArgs = { id: Scalars['ID']; }; + /** Root query type */ export type QueryListAnnotationsArgs = { filter?: InputMaybe; @@ -7601,6 +7710,7 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7608,6 +7718,7 @@ export type QueryListCacheTotalBalancesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColoniesArgs = { filter?: InputMaybe; @@ -7615,6 +7726,7 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7622,6 +7734,7 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7629,6 +7742,7 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7636,6 +7750,7 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7643,6 +7758,7 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7650,6 +7766,7 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7657,6 +7774,7 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7664,6 +7782,7 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7671,6 +7790,7 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7678,6 +7798,7 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7685,6 +7806,7 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7692,6 +7814,7 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7699,6 +7822,7 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7706,6 +7830,7 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7713,6 +7838,7 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7720,6 +7846,7 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7727,6 +7854,7 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7734,6 +7862,7 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7741,6 +7870,7 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7748,6 +7878,7 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7755,6 +7886,7 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7762,6 +7894,7 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7769,6 +7902,7 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7776,6 +7910,7 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -7783,6 +7918,7 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -7790,6 +7926,7 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -7797,6 +7934,7 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListNotificationsDataArgs = { filter?: InputMaybe; @@ -7806,6 +7944,7 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; + /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -7813,6 +7952,7 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -7820,6 +7960,7 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -7827,6 +7968,7 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -7834,6 +7976,7 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -7841,6 +7984,7 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -7848,6 +7992,7 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -7855,6 +8000,7 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -7862,6 +8008,7 @@ export type QueryListTokenExchangeRatesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListTokensArgs = { filter?: InputMaybe; @@ -7869,6 +8016,7 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -7876,6 +8024,7 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -7883,6 +8032,7 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -7890,6 +8040,7 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -7897,6 +8048,7 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -7904,11 +8056,10 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; + /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe< - Array> - >; + aggregates?: InputMaybe>>; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -7916,11 +8067,10 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; + /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe< - Array> - >; + aggregates?: InputMaybe>>; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -7928,6 +8078,7 @@ export type QuerySearchColonyContributorsArgs = { sort?: InputMaybe>>; }; + /** Root query type */ export type QueryTokenExhangeRateByTokenIdArgs = { date?: InputMaybe; @@ -7971,6 +8122,7 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; + export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8004,7 +8156,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT', + TransferNft = 'TRANSFER_NFT' } export type SearchableAggregateBucketResult = { @@ -8018,9 +8170,7 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = - | SearchableAggregateBucketResult - | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8038,7 +8188,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms', + Terms = 'terms' } export type SearchableBooleanFilterInput = { @@ -8082,7 +8232,7 @@ export enum SearchableColonyActionAggregateField { ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableColonyActionAggregationInput = { @@ -8181,7 +8331,7 @@ export enum SearchableColonyActionSortableFields { ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export enum SearchableColonyContributorAggregateField { @@ -8195,7 +8345,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableColonyContributorAggregationInput = { @@ -8244,7 +8394,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } export type SearchableFloatFilterInput = { @@ -8286,7 +8436,7 @@ export type SearchableIntFilterInput = { export enum SearchableSortDirection { Asc = 'asc', - Desc = 'desc', + Desc = 'desc' } export type SearchableStringFilterInput = { @@ -8339,13 +8489,13 @@ export enum SortingMethod { /** Sort members by lowest reputation */ ByLowestRep = 'BY_LOWEST_REP', /** Sort members by having more permissions */ - ByMorePermissions = 'BY_MORE_PERMISSIONS', + ByMorePermissions = 'BY_MORE_PERMISSIONS' } export enum SplitPaymentDistributionType { Equal = 'EQUAL', Reputation = 'REPUTATION', - Unequal = 'UNEQUAL', + Unequal = 'UNEQUAL' } export type StakedExpenditureParams = { @@ -8388,8 +8538,6 @@ export type StreamingPayment = { /** Colony ID (address) to which the expenditure belongs */ colonyId: Scalars['ID']; createdAt: Scalars['AWSDateTime']; - /** Address of the stream creator, can be a user or an extension */ - creatorAddress: Scalars['ID']; endTime: Scalars['String']; id: Scalars['ID']; interval: Scalars['String']; @@ -8409,6 +8557,7 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; + export type StreamingPaymentActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8416,6 +8565,7 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; + export type StreamingPaymentMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8465,7 +8615,7 @@ export type StreamingPaymentClaimInput = { export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', - WhenCancelled = 'WHEN_CANCELLED', + WhenCancelled = 'WHEN_CANCELLED' } export type StreamingPaymentMetadata = { @@ -8631,530 +8781,662 @@ export type Subscription = { onUpdateVoterRewardsHistory?: Maybe; }; + export type SubscriptionOnCreateAnnotationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateCacheTotalBalanceArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateTokenArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateTokenExchangeRateArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnCreateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteAnnotationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteCacheTotalBalanceArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteTokenArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteTokenExchangeRateArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnDeleteVoterRewardsHistoryArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateAnnotationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateCacheTotalBalanceArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyActionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyActionMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyContributorArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyDecisionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyExtensionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyFundsClaimArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyHistoricRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMemberInviteArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateColonyTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateContractEventArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateContributorReputationArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateCurrentVersionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateDomainArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateDomainMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExpenditureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExpenditureMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateIngestorStatsArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateLiquidationAddressArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateProfileArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateSafeTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateSafeTransactionDataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateStreamingPaymentArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateTokenArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateTokenExchangeRateArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateTransactionArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserStakeArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateUserTokensArgs = { filter?: InputMaybe; }; + export type SubscriptionOnUpdateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; @@ -9170,7 +9452,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD', + Usd = 'USD' } /** Return type for domain balance for a timeframe item */ @@ -9187,7 +9469,7 @@ export enum TimeframeType { Daily = 'DAILY', Monthly = 'MONTHLY', Total = 'TOTAL', - Weekly = 'WEEKLY', + Weekly = 'WEEKLY' } /** Represents an ERC20-compatible token that is used by Colonies and users */ @@ -9218,6 +9500,7 @@ export type Token = { validated?: Maybe; }; + /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9226,6 +9509,7 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; + /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9282,7 +9566,7 @@ export enum TokenType { /** A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself */ Colony = 'COLONY', /** An ERC20-compatible token */ - Erc20 = 'ERC20', + Erc20 = 'ERC20' } /** Represents a transaction made in a colony by a user */ @@ -9361,7 +9645,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL', + Unsuccessful = 'UNSUCCESSFUL' } export type TransactionGroup = { @@ -9392,7 +9676,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED', + Succeeded = 'SUCCEEDED' } export type UpdateAnnotationInput = { @@ -9418,9 +9702,7 @@ export type UpdateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe< - Array - >; + arbitraryTransactions?: InputMaybe>; blockNumber?: InputMaybe; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -9859,7 +10141,6 @@ export type UpdateStreamingPaymentInput = { claims?: InputMaybe>; colonyId?: InputMaybe; createdAt?: InputMaybe; - creatorAddress?: InputMaybe; endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; @@ -9986,6 +10267,7 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; + /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -9994,6 +10276,7 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10003,6 +10286,7 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10011,6 +10295,7 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; + /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10058,7 +10343,7 @@ export type UserStake = { /** Type of stake a user can make */ export enum UserStakeType { Motion = 'MOTION', - StakedExpenditure = 'STAKED_EXPENDITURE', + StakedExpenditure = 'STAKED_EXPENDITURE' } export type UserTokens = { @@ -10176,1235 +10461,484 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; -export type ActionMetadataInfoFragment = { - __typename?: 'ColonyAction'; - id: string; - colonyDecisionId?: string | null; - amount?: string | null; - networkFee?: string | null; - type: ColonyActionType; - showInActionsList: boolean; - colonyId: string; - initiatorAddress: string; - recipientAddress?: string | null; - members?: Array | null; - pendingDomainMetadata?: { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; - } | null; - pendingColonyMetadata?: { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; - } | null; - payments?: Array<{ __typename?: 'Payment'; recipientAddress: string }> | null; -}; - -export type ColonyFragment = { - __typename?: 'Colony'; - colonyAddress: string; - nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; - tokens?: { - __typename?: 'ModelColonyTokensConnection'; - items: Array<{ - __typename?: 'ColonyTokens'; - id: string; - tokenAddress: string; - } | null>; - } | null; - motionsWithUnclaimedStakes?: Array<{ - __typename?: 'ColonyUnclaimedStake'; - motionId: string; - unclaimedRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - }> | null; - domains?: { - __typename?: 'ModelDomainConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Domain'; - id: string; - nativeSkillId: string; - } | null>; - } | null; -}; - -export type ColonyMetadataFragment = { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; -}; - -export type ColonyWithRootRolesFragment = { - __typename?: 'Colony'; - id: string; - roles?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ - __typename?: 'ColonyRole'; - id: string; - targetUser?: { - __typename?: 'User'; - id: string; - profile?: { - __typename?: 'Profile'; - displayName?: string | null; - id: string; - } | null; - notificationsData?: { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; - } | null; - } | null; - } | null>; - } | null; -}; - -export type ExpenditureBalanceFragment = { - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; -}; +export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null }; -export type ExpenditureFragment = { - __typename?: 'Expenditure'; - id: string; - status: ExpenditureStatus; - ownerAddress: string; - userStakeId?: string | null; - createdAt: string; - firstEditTransactionHash?: string | null; - splitPaymentPayoutClaimedNotificationSent?: boolean | null; - type: ExpenditureType; - slots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - motions?: { - __typename?: 'ModelColonyMotionConnection'; - items: Array<{ - __typename?: 'ColonyMotion'; - transactionHash: string; - action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; - } | null>; - } | null; - balances?: Array<{ - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; - }> | null; - metadata?: { - __typename?: 'ExpenditureMetadata'; - distributionType?: SplitPaymentDistributionType | null; - } | null; - actions?: { - __typename?: 'ModelColonyActionConnection'; - items: Array<{ - __typename?: 'ColonyAction'; - type: ColonyActionType; - id: string; - } | null>; - } | null; -}; - -export type ExpenditureSlotFragment = { - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; -}; - -export type StreamingPaymentFragment = { - __typename?: 'StreamingPayment'; - id: string; - startTime: string; - endTime: string; - tokenAddress: string; - amount: string; - interval: string; - metadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - endCondition: StreamingPaymentEndCondition; - changelog?: Array<{ - __typename?: 'StreamingPaymentMetadataChangelog'; - transactionHash: string; - oldEndCondition: StreamingPaymentEndCondition; - newEndCondition: StreamingPaymentEndCondition; - }> | null; - } | null; - claims?: Array<{ - __typename?: 'StreamingPaymentClaim'; - amount: string; - timestamp: string; - }> | null; -}; - -export type StreamingPaymentMetadataFragment = { - __typename?: 'StreamingPaymentMetadata'; - id: string; - endCondition: StreamingPaymentEndCondition; - changelog?: Array<{ - __typename?: 'StreamingPaymentMetadataChangelog'; - transactionHash: string; - oldEndCondition: StreamingPaymentEndCondition; - newEndCondition: StreamingPaymentEndCondition; - }> | null; -}; +export type ColonyFragment = { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null }; -export type StreamingPaymentChangesFragment = { - __typename?: 'StreamingPaymentChanges'; - startTime: string; - endTime: string; - interval: string; - amount: string; -}; +export type ColonyMetadataFragment = { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null }; -export type ExtensionFragment = { - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; -}; +export type ColonyWithRootRolesFragment = { __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; -export type ColonyMotionFragment = { - __typename?: 'ColonyMotion'; - id: string; - nativeMotionId: string; - requiredStake: string; - remainingStakes: Array; - userMinStake: string; - nativeMotionDomainId: string; - isFinalized: boolean; - createdBy: string; - repSubmitted: string; - skillRep: string; - hasObjection: boolean; - motionDomainId: string; - isDecision: boolean; - transactionHash: string; - expenditureId?: string | null; - streamingPaymentId?: string | null; - pendingStreamingPaymentMetadataId?: string | null; - motionStakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - }; - usersStakes: Array<{ - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { - __typename?: 'MotionStakeValues'; - yay: string; - nay: string; - }; - }; - }>; - stakerRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - voterRecord: Array<{ - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; - }>; - revealedVotes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }; - motionStateHistory: { - __typename?: 'MotionStateHistory'; - hasVoted: boolean; - hasPassed: boolean; - hasFailed: boolean; - hasFailedNotFinalizable: boolean; - inRevealPhase: boolean; - yaySideFullyStakedAt?: string | null; - naySideFullyStakedAt?: string | null; - allVotesSubmittedAt?: string | null; - allVotesRevealedAt?: string | null; - endedAt?: string | null; - finalizedAt?: string | null; - }; -}; - -export type VoterRecordFragment = { - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; -}; +export type ExpenditureBalanceFragment = { __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }; -export type StakerRewardFragment = { - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; -}; +export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null }; -export type MotionStakesFragment = { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; -}; +export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; -export type UserMotionStakesFragment = { - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }; -}; +export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null }; -export type DomainMetadataFragment = { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; -}; - -export type MultiSigUserSignatureFragment = { - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; -}; +export type StreamingPaymentMetadataFragment = { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null }; -export type ColonyMultiSigFragment = { - __typename?: 'ColonyMultiSig'; - id: string; - colonyAddress: string; - nativeMultiSigId: string; - multiSigDomainId: string; - nativeMultiSigDomainId: string; - requiredPermissions: number; - transactionHash: string; - isExecuted: boolean; - isRejected: boolean; - isDecision: boolean; - hasActionCompleted: boolean; - executedAt?: string | null; - executedBy?: string | null; - rejectedAt?: string | null; - rejectedBy?: string | null; - createdAt: string; - expenditureId?: string | null; - signatures?: { - __typename?: 'ModelMultiSigUserSignatureConnection'; - items: Array<{ - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; - } | null>; - } | null; - action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; -}; - -export type TokenFragment = { - __typename?: 'Token'; - symbol: string; - tokenAddress: string; -}; +export type StreamingPaymentChangesFragment = { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }; -export type NotificationUserFragment = { - __typename?: 'ColonyContributor'; - user?: { - __typename?: 'User'; - notificationsData?: { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; - } | null; - } | null; -}; - -export type NotificationsDataFragment = { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; -}; +export type ExtensionFragment = { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number }; + +export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; + +export type VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }; + +export type StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; + +export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; + +export type UserMotionStakesFragment = { __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }; + +export type DomainMetadataFragment = { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null }; + +export type MultiSigUserSignatureFragment = { __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string }; + +export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null }; + +export type TokenFragment = { __typename?: 'Token', symbol: string, tokenAddress: string }; + +export type NotificationUserFragment = { __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null }; + +export type NotificationsDataFragment = { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean }; export type CreateColonyActionMutationVariables = Exact<{ input: CreateColonyActionInput; }>; -export type CreateColonyActionMutation = { - __typename?: 'Mutation'; - createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type CreateColonyActionMutation = { __typename?: 'Mutation', createColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type UpdateColonyActionMutationVariables = Exact<{ input: UpdateColonyActionInput; }>; -export type UpdateColonyActionMutation = { - __typename?: 'Mutation'; - updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type UpdateColonyActionMutation = { __typename?: 'Mutation', updateColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type UpdateColonyMutationVariables = Exact<{ input: UpdateColonyInput; }>; -export type UpdateColonyMutation = { - __typename?: 'Mutation'; - updateColony?: { __typename?: 'Colony'; id: string } | null; -}; + +export type UpdateColonyMutation = { __typename?: 'Mutation', updateColony?: { __typename?: 'Colony', id: string } | null }; export type UpdateColonyMetadataMutationVariables = Exact<{ input: UpdateColonyMetadataInput; }>; -export type UpdateColonyMetadataMutation = { - __typename?: 'Mutation'; - updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type UpdateColonyMetadataMutation = { __typename?: 'Mutation', updateColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type CreateColonyMutationVariables = Exact<{ input: CreateColonyInput; condition?: InputMaybe; }>; -export type CreateColonyMutation = { - __typename?: 'Mutation'; - createColony?: { __typename?: 'Colony'; id: string } | null; -}; + +export type CreateColonyMutation = { __typename?: 'Mutation', createColony?: { __typename?: 'Colony', id: string } | null }; export type CreateColonyMetadataMutationVariables = Exact<{ input: CreateColonyMetadataInput; }>; -export type CreateColonyMetadataMutation = { - __typename?: 'Mutation'; - createColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type CreateColonyMetadataMutation = { __typename?: 'Mutation', createColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type DeleteColonyMetadataMutationVariables = Exact<{ input: DeleteColonyMetadataInput; }>; -export type DeleteColonyMetadataMutation = { - __typename?: 'Mutation'; - deleteColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; -}; + +export type DeleteColonyMetadataMutation = { __typename?: 'Mutation', deleteColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; export type CreateColonyMemberInviteMutationVariables = Exact<{ input: CreateColonyMemberInviteInput; condition?: InputMaybe; }>; -export type CreateColonyMemberInviteMutation = { - __typename?: 'Mutation'; - createColonyMemberInvite?: { - __typename?: 'ColonyMemberInvite'; - id: string; - } | null; -}; + +export type CreateColonyMemberInviteMutation = { __typename?: 'Mutation', createColonyMemberInvite?: { __typename?: 'ColonyMemberInvite', id: string } | null }; export type CreateColonyTokensMutationVariables = Exact<{ input: CreateColonyTokensInput; }>; -export type CreateColonyTokensMutation = { - __typename?: 'Mutation'; - createColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; -}; + +export type CreateColonyTokensMutation = { __typename?: 'Mutation', createColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; export type CreateColonyContributorMutationVariables = Exact<{ input: CreateColonyContributorInput; }>; -export type CreateColonyContributorMutation = { - __typename?: 'Mutation'; - createColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type CreateColonyContributorMutation = { __typename?: 'Mutation', createColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type UpdateColonyContributorMutationVariables = Exact<{ input: UpdateColonyContributorInput; }>; -export type UpdateColonyContributorMutation = { - __typename?: 'Mutation'; - updateColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type UpdateColonyContributorMutation = { __typename?: 'Mutation', updateColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type DeleteColonyContributorMutationVariables = Exact<{ input: DeleteColonyContributorInput; }>; -export type DeleteColonyContributorMutation = { - __typename?: 'Mutation'; - deleteColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - } | null; -}; + +export type DeleteColonyContributorMutation = { __typename?: 'Mutation', deleteColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; export type CreateCurrentVersionMutationVariables = Exact<{ input: CreateCurrentVersionInput; }>; -export type CreateCurrentVersionMutation = { - __typename?: 'Mutation'; - createCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; -}; + +export type CreateCurrentVersionMutation = { __typename?: 'Mutation', createCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; export type UpdateCurrentVersionMutationVariables = Exact<{ input: UpdateCurrentVersionInput; }>; -export type UpdateCurrentVersionMutation = { - __typename?: 'Mutation'; - updateCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; -}; + +export type UpdateCurrentVersionMutation = { __typename?: 'Mutation', updateCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; export type UpdateColonyDecisionMutationVariables = Exact<{ id: Scalars['ID']; showInDecisionsList: Scalars['Boolean']; }>; -export type UpdateColonyDecisionMutation = { - __typename?: 'Mutation'; - updateColonyDecision?: { __typename?: 'ColonyDecision'; id: string } | null; -}; + +export type UpdateColonyDecisionMutation = { __typename?: 'Mutation', updateColonyDecision?: { __typename?: 'ColonyDecision', id: string } | null }; export type CreateDomainMutationVariables = Exact<{ input: CreateDomainInput; }>; -export type CreateDomainMutation = { - __typename?: 'Mutation'; - createDomain?: { __typename?: 'Domain'; id: string } | null; -}; + +export type CreateDomainMutation = { __typename?: 'Mutation', createDomain?: { __typename?: 'Domain', id: string } | null }; export type CreateDomainMetadataMutationVariables = Exact<{ input: CreateDomainMetadataInput; }>; -export type CreateDomainMetadataMutation = { - __typename?: 'Mutation'; - createDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; -}; + +export type CreateDomainMetadataMutation = { __typename?: 'Mutation', createDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; export type UpdateDomainMetadataMutationVariables = Exact<{ input: UpdateDomainMetadataInput; }>; -export type UpdateDomainMetadataMutation = { - __typename?: 'Mutation'; - updateDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; -}; + +export type UpdateDomainMetadataMutation = { __typename?: 'Mutation', updateDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; export type CreateContractEventMutationVariables = Exact<{ input: CreateContractEventInput; condition?: InputMaybe; }>; -export type CreateContractEventMutation = { - __typename?: 'Mutation'; - createContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; -}; + +export type CreateContractEventMutation = { __typename?: 'Mutation', createContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; export type CreateExpenditureMutationVariables = Exact<{ input: CreateExpenditureInput; }>; -export type CreateExpenditureMutation = { - __typename?: 'Mutation'; - createExpenditure?: { __typename?: 'Expenditure'; id: string } | null; -}; + +export type CreateExpenditureMutation = { __typename?: 'Mutation', createExpenditure?: { __typename?: 'Expenditure', id: string } | null }; export type UpdateExpenditureMutationVariables = Exact<{ input: UpdateExpenditureInput; }>; -export type UpdateExpenditureMutation = { - __typename?: 'Mutation'; - updateExpenditure?: { - __typename?: 'Expenditure'; - id: string; - ownerAddress: string; - } | null; -}; + +export type UpdateExpenditureMutation = { __typename?: 'Mutation', updateExpenditure?: { __typename?: 'Expenditure', id: string, ownerAddress: string } | null }; export type UpdateExpenditureMetadataMutationVariables = Exact<{ input: UpdateExpenditureMetadataInput; }>; -export type UpdateExpenditureMetadataMutation = { - __typename?: 'Mutation'; - updateExpenditureMetadata?: { - __typename?: 'ExpenditureMetadata'; - id: string; - } | null; -}; + +export type UpdateExpenditureMetadataMutation = { __typename?: 'Mutation', updateExpenditureMetadata?: { __typename?: 'ExpenditureMetadata', id: string } | null }; export type CreateStreamingPaymentMutationVariables = Exact<{ input: CreateStreamingPaymentInput; }>; -export type CreateStreamingPaymentMutation = { - __typename?: 'Mutation'; - createStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - } | null; -}; + +export type CreateStreamingPaymentMutation = { __typename?: 'Mutation', createStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; export type UpdateStreamingPaymentMutationVariables = Exact<{ input: UpdateStreamingPaymentInput; }>; -export type UpdateStreamingPaymentMutation = { - __typename?: 'Mutation'; - updateStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - } | null; -}; + +export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ input: UpdateStreamingPaymentMetadataInput; }>; -export type UpdateStreamingPaymentMetadataMutation = { - __typename?: 'Mutation'; - updateStreamingPaymentMetadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - } | null; -}; + +export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; -export type CreateColonyExtensionMutation = { - __typename?: 'Mutation'; - createColonyExtension?: { __typename?: 'ColonyExtension'; id: string } | null; -}; + +export type CreateColonyExtensionMutation = { __typename?: 'Mutation', createColonyExtension?: { __typename?: 'ColonyExtension', id: string } | null }; export type UpdateColonyExtensionByAddressMutationVariables = Exact<{ input: UpdateColonyExtensionInput; }>; -export type UpdateColonyExtensionByAddressMutation = { - __typename?: 'Mutation'; - updateColonyExtension?: { - __typename?: 'ColonyExtension'; - id: string; - extensionHash: string; - colonyAddress: string; - } | null; -}; + +export type UpdateColonyExtensionByAddressMutation = { __typename?: 'Mutation', updateColonyExtension?: { __typename?: 'ColonyExtension', id: string, extensionHash: string, colonyAddress: string } | null }; export type CreateExtensionInstallationsCountMutationVariables = Exact<{ input: CreateExtensionInstallationsCountInput; }>; -export type CreateExtensionInstallationsCountMutation = { - __typename?: 'Mutation'; - createExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - id: string; - } | null; -}; + +export type CreateExtensionInstallationsCountMutation = { __typename?: 'Mutation', createExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; export type UpdateExtensionInstallationsCountMutationVariables = Exact<{ input: UpdateExtensionInstallationsCountInput; }>; -export type UpdateExtensionInstallationsCountMutation = { - __typename?: 'Mutation'; - updateExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - id: string; - } | null; -}; + +export type UpdateExtensionInstallationsCountMutation = { __typename?: 'Mutation', updateExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; export type CreateColonyFundsClaimMutationVariables = Exact<{ input: CreateColonyFundsClaimInput; condition?: InputMaybe; }>; -export type CreateColonyFundsClaimMutation = { - __typename?: 'Mutation'; - createColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type CreateColonyFundsClaimMutation = { __typename?: 'Mutation', createColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type UpdateColonyFundsClaimMutationVariables = Exact<{ input: UpdateColonyFundsClaimInput; condition?: InputMaybe; }>; -export type UpdateColonyFundsClaimMutation = { - __typename?: 'Mutation'; - updateColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type UpdateColonyFundsClaimMutation = { __typename?: 'Mutation', updateColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type DeleteColonyFundsClaimMutationVariables = Exact<{ input: DeleteColonyFundsClaimInput; condition?: InputMaybe; }>; -export type DeleteColonyFundsClaimMutation = { - __typename?: 'Mutation'; - deleteColonyFundsClaim?: { - __typename?: 'ColonyFundsClaim'; - id: string; - } | null; -}; + +export type DeleteColonyFundsClaimMutation = { __typename?: 'Mutation', deleteColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; export type CreateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: CreateCurrentNetworkInverseFeeInput; }>; -export type CreateCurrentNetworkInverseFeeMutation = { - __typename?: 'Mutation'; - createCurrentNetworkInverseFee?: { - __typename?: 'CurrentNetworkInverseFee'; - id: string; - } | null; -}; + +export type CreateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', createCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; export type UpdateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: UpdateCurrentNetworkInverseFeeInput; }>; -export type UpdateCurrentNetworkInverseFeeMutation = { - __typename?: 'Mutation'; - updateCurrentNetworkInverseFee?: { - __typename?: 'CurrentNetworkInverseFee'; - id: string; - } | null; -}; + +export type UpdateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', updateCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; export type CreateColonyMotionMutationVariables = Exact<{ input: CreateColonyMotionInput; }>; -export type CreateColonyMotionMutation = { - __typename?: 'Mutation'; - createColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; -}; + +export type CreateColonyMotionMutation = { __typename?: 'Mutation', createColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; export type UpdateColonyMotionMutationVariables = Exact<{ input: UpdateColonyMotionInput; }>; -export type UpdateColonyMotionMutation = { - __typename?: 'Mutation'; - updateColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; -}; + +export type UpdateColonyMotionMutation = { __typename?: 'Mutation', updateColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; export type CreateMotionMessageMutationVariables = Exact<{ input: CreateMotionMessageInput; }>; -export type CreateMotionMessageMutation = { - __typename?: 'Mutation'; - createMotionMessage?: { __typename?: 'MotionMessage'; id: string } | null; -}; + +export type CreateMotionMessageMutation = { __typename?: 'Mutation', createMotionMessage?: { __typename?: 'MotionMessage', id: string } | null }; export type CreateUserVoterRewardMutationVariables = Exact<{ input: CreateVoterRewardsHistoryInput; }>; -export type CreateUserVoterRewardMutation = { - __typename?: 'Mutation'; - createVoterRewardsHistory?: { - __typename?: 'VoterRewardsHistory'; - id: string; - } | null; -}; + +export type CreateUserVoterRewardMutation = { __typename?: 'Mutation', createVoterRewardsHistory?: { __typename?: 'VoterRewardsHistory', id: string } | null }; export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; }>; -export type CreateColonyMultiSigMutation = { - __typename?: 'Mutation'; - createColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; -}; + +export type CreateColonyMultiSigMutation = { __typename?: 'Mutation', createColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; export type UpdateColonyMultiSigMutationVariables = Exact<{ input: UpdateColonyMultiSigInput; }>; -export type UpdateColonyMultiSigMutation = { - __typename?: 'Mutation'; - updateColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; -}; + +export type UpdateColonyMultiSigMutation = { __typename?: 'Mutation', updateColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; export type CreateMultiSigVoteMutationVariables = Exact<{ input: CreateMultiSigUserSignatureInput; }>; -export type CreateMultiSigVoteMutation = { - __typename?: 'Mutation'; - createMultiSigUserSignature?: { - __typename?: 'MultiSigUserSignature'; - id: string; - } | null; -}; + +export type CreateMultiSigVoteMutation = { __typename?: 'Mutation', createMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; export type RemoveMultiSigVoteMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type RemoveMultiSigVoteMutation = { - __typename?: 'Mutation'; - deleteMultiSigUserSignature?: { - __typename?: 'MultiSigUserSignature'; - id: string; - } | null; -}; + +export type RemoveMultiSigVoteMutation = { __typename?: 'Mutation', deleteMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; export type RemoveMultiSigRoleMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type RemoveMultiSigRoleMutation = { - __typename?: 'Mutation'; - deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; + +export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation', deleteColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; }>; -export type CreateColonyRoleMutation = { - __typename?: 'Mutation'; - createColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; + +export type CreateColonyRoleMutation = { __typename?: 'Mutation', createColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type UpdateColonyRoleMutationVariables = Exact<{ input: UpdateColonyRoleInput; }>; -export type UpdateColonyRoleMutation = { - __typename?: 'Mutation'; - updateColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; -}; + +export type UpdateColonyRoleMutation = { __typename?: 'Mutation', updateColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; export type CreateColonyHistoricRoleMutationVariables = Exact<{ input: CreateColonyHistoricRoleInput; }>; -export type CreateColonyHistoricRoleMutation = { - __typename?: 'Mutation'; - createColonyHistoricRole?: { - __typename?: 'ColonyHistoricRole'; - id: string; - } | null; -}; + +export type CreateColonyHistoricRoleMutation = { __typename?: 'Mutation', createColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; export type UpdateReputationMiningCycleMetadataMutationVariables = Exact<{ input: UpdateReputationMiningCycleMetadataInput; }>; -export type UpdateReputationMiningCycleMetadataMutation = { - __typename?: 'Mutation'; - updateReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type UpdateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', updateReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type CreateReputationMiningCycleMetadataMutationVariables = Exact<{ input: CreateReputationMiningCycleMetadataInput; }>; -export type CreateReputationMiningCycleMetadataMutation = { - __typename?: 'Mutation'; - createReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type CreateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', createReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type CreateUserStakeMutationVariables = Exact<{ input: CreateUserStakeInput; }>; -export type CreateUserStakeMutation = { - __typename?: 'Mutation'; - createUserStake?: { __typename?: 'UserStake'; id: string } | null; -}; + +export type CreateUserStakeMutation = { __typename?: 'Mutation', createUserStake?: { __typename?: 'UserStake', id: string } | null }; export type UpdateUserStakeMutationVariables = Exact<{ input: UpdateUserStakeInput; }>; -export type UpdateUserStakeMutation = { - __typename?: 'Mutation'; - updateUserStake?: { __typename?: 'UserStake'; id: string } | null; -}; + +export type UpdateUserStakeMutation = { __typename?: 'Mutation', updateUserStake?: { __typename?: 'UserStake', id: string } | null }; export type CreateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; -export type CreateStatsMutation = { - __typename?: 'Mutation'; - createIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; -}; + +export type CreateStatsMutation = { __typename?: 'Mutation', createIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; export type UpdateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; -export type UpdateStatsMutation = { - __typename?: 'Mutation'; - updateIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; -}; + +export type UpdateStatsMutation = { __typename?: 'Mutation', updateIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; export type DeleteColonyTokensMutationVariables = Exact<{ input: DeleteColonyTokensInput; }>; -export type DeleteColonyTokensMutation = { - __typename?: 'Mutation'; - deleteColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; -}; + +export type DeleteColonyTokensMutation = { __typename?: 'Mutation', deleteColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; export type GetColonyActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; -export type GetColonyActionQuery = { - __typename?: 'Query'; - getColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; -}; + +export type GetColonyActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; export type GetColonyArbitraryTransactionActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; -export type GetColonyArbitraryTransactionActionQuery = { - __typename?: 'Query'; - getColonyAction?: { - __typename?: 'ColonyAction'; - id: string; - arbitraryTransactions?: Array<{ - __typename?: 'ColonyActionArbitraryTransaction'; - contractAddress: string; - encodedFunction: string; - }> | null; - } | null; -}; + +export type GetColonyArbitraryTransactionActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, arbitraryTransactions?: Array<{ __typename?: 'ColonyActionArbitraryTransaction', contractAddress: string, encodedFunction: string }> | null } | null }; export type GetMotionIdFromActionQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetMotionIdFromActionQuery = { - __typename?: 'Query'; - getColonyAction?: { - __typename?: 'ColonyAction'; - motionData?: { __typename?: 'ColonyMotion'; id: string } | null; - } | null; -}; + +export type GetMotionIdFromActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', motionData?: { __typename?: 'ColonyMotion', id: string } | null } | null }; export type GetActionIdFromAnnotationQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetActionIdFromAnnotationQuery = { - __typename?: 'Query'; - getAnnotation?: { __typename?: 'Annotation'; actionId: string } | null; -}; + +export type GetActionIdFromAnnotationQuery = { __typename?: 'Query', getAnnotation?: { __typename?: 'Annotation', actionId: string } | null }; export type GetActionByIdQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetActionByIdQuery = { - __typename?: 'Query'; - getColonyAction?: { - __typename?: 'ColonyAction'; - id: string; - type: ColonyActionType; - expenditureSlotChanges?: { - __typename?: 'ExpenditureSlotChanges'; - oldSlots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - newSlots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - } | null; - } | null; -}; + +export type GetActionByIdQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, type: ColonyActionType, expenditureSlotChanges?: { __typename?: 'ExpenditureSlotChanges', oldSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, newSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }> } | null } | null }; export type GetColonyMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyMetadataQuery = { - __typename?: 'Query'; - getColonyMetadata?: { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - etherealData?: { - __typename?: 'ColonyMetadataEtherealData'; - colonyAvatar?: string | null; - colonyDisplayName: string; - colonyName: string; - colonyThumbnail?: string | null; - initiatorAddress: string; - tokenAvatar?: string | null; - tokenThumbnail?: string | null; - } | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; - } | null; -}; + +export type GetColonyMetadataQuery = { __typename?: 'Query', getColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, etherealData?: { __typename?: 'ColonyMetadataEtherealData', colonyAvatar?: string | null, colonyDisplayName: string, colonyName: string, colonyThumbnail?: string | null, initiatorAddress: string, tokenAvatar?: string | null, tokenThumbnail?: string | null } | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; export type GetColonyQueryVariables = Exact<{ id: Scalars['ID']; nextToken?: InputMaybe; }>; -export type GetColonyQuery = { - __typename?: 'Query'; - getColony?: { - __typename?: 'Colony'; - colonyAddress: string; - nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; - tokens?: { - __typename?: 'ModelColonyTokensConnection'; - items: Array<{ - __typename?: 'ColonyTokens'; - id: string; - tokenAddress: string; - } | null>; - } | null; - motionsWithUnclaimedStakes?: Array<{ - __typename?: 'ColonyUnclaimedStake'; - motionId: string; - unclaimedRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - }> | null; - domains?: { - __typename?: 'ModelDomainConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Domain'; - id: string; - nativeSkillId: string; - } | null>; - } | null; - } | null; - getColonyByAddress?: { - __typename?: 'ModelColonyConnection'; - items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; - } | null; - getColonyByType?: { - __typename?: 'ModelColonyConnection'; - items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; - } | null; -}; + +export type GetColonyQuery = { __typename?: 'Query', getColony?: { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null } | null, getColonyByAddress?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null, getColonyByType?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; export type GetColonyByNameQueryVariables = Exact<{ name: Scalars['String']; }>; -export type GetColonyByNameQuery = { - __typename?: 'Query'; - getColonyByName?: { - __typename?: 'ModelColonyConnection'; - items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; - } | null; -}; + +export type GetColonyByNameQuery = { __typename?: 'Query', getColonyByName?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nativeTokenId: Scalars['ID']; @@ -11412,98 +10946,29 @@ export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type GetColonyByNativeTokenIdQuery = { - __typename?: 'Query'; - getColoniesByNativeTokenId?: { - __typename?: 'ModelColonyConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Colony'; - id: string; - status?: { - __typename?: 'ColonyStatus'; - recovery?: boolean | null; - nativeToken?: { - __typename?: 'NativeTokenStatus'; - unlocked?: boolean | null; - unlockable?: boolean | null; - mintable?: boolean | null; - } | null; - } | null; - } | null>; - } | null; -}; + +export type GetColonyByNativeTokenIdQuery = { __typename?: 'Query', getColoniesByNativeTokenId?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, status?: { __typename?: 'ColonyStatus', recovery?: boolean | null, nativeToken?: { __typename?: 'NativeTokenStatus', unlocked?: boolean | null, unlockable?: boolean | null, mintable?: boolean | null } | null } | null } | null> } | null }; export type ListColoniesQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type ListColoniesQuery = { - __typename?: 'Query'; - listColonies?: { - __typename?: 'ModelColonyConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Colony'; - id: string; - nativeTokenId: string; - } | null>; - } | null; -}; + +export type ListColoniesQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, nativeTokenId: string } | null> } | null }; export type ListColoniesWithRootPermissionHoldersQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type ListColoniesWithRootPermissionHoldersQuery = { - __typename?: 'Query'; - listColonies?: { - __typename?: 'ModelColonyConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'Colony'; - id: string; - roles?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ - __typename?: 'ColonyRole'; - id: string; - targetUser?: { - __typename?: 'User'; - id: string; - profile?: { - __typename?: 'Profile'; - displayName?: string | null; - id: string; - } | null; - notificationsData?: { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; - } | null; - } | null; - } | null>; - } | null; - } | null>; - } | null; -}; + +export type ListColoniesWithRootPermissionHoldersQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null } | null> } | null }; export type GetColonyContributorQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyContributorQuery = { - __typename?: 'Query'; - getColonyContributor?: { - __typename?: 'ColonyContributor'; - id: string; - isVerified: boolean; - } | null; -}; + +export type GetColonyContributorQuery = { __typename?: 'Query', getColonyContributor?: { __typename?: 'ColonyContributor', id: string, isVerified: boolean } | null }; export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -11512,419 +10977,124 @@ export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ nextToken?: InputMaybe; }>; -export type GetColonyContributorsNotificationDataQuery = { - __typename?: 'Query'; - getContributorsByColony?: { - __typename?: 'ModelColonyContributorConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'ColonyContributor'; - user?: { - __typename?: 'User'; - notificationsData?: { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; - } | null; - } | null; - } | null>; - } | null; -}; + +export type GetColonyContributorsNotificationDataQuery = { __typename?: 'Query', getContributorsByColony?: { __typename?: 'ModelColonyContributorConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; export type GetCurrentVersionQueryVariables = Exact<{ key: Scalars['String']; }>; -export type GetCurrentVersionQuery = { - __typename?: 'Query'; - getCurrentVersionByKey?: { - __typename?: 'ModelCurrentVersionConnection'; - items: Array<{ - __typename?: 'CurrentVersion'; - id: string; - version: number; - } | null>; - } | null; -}; + +export type GetCurrentVersionQuery = { __typename?: 'Query', getCurrentVersionByKey?: { __typename?: 'ModelCurrentVersionConnection', items: Array<{ __typename?: 'CurrentVersion', id: string, version: number } | null> } | null }; export type GetColonyDecisionByActionIdQueryVariables = Exact<{ actionId: Scalars['ID']; }>; -export type GetColonyDecisionByActionIdQuery = { - __typename?: 'Query'; - getColonyDecisionByActionId?: { - __typename?: 'ModelColonyDecisionConnection'; - items: Array<{ __typename?: 'ColonyDecision'; id: string } | null>; - } | null; -}; + +export type GetColonyDecisionByActionIdQuery = { __typename?: 'Query', getColonyDecisionByActionId?: { __typename?: 'ModelColonyDecisionConnection', items: Array<{ __typename?: 'ColonyDecision', id: string } | null> } | null }; export type GetDomainMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetDomainMetadataQuery = { - __typename?: 'Query'; - getDomainMetadata?: { - __typename?: 'DomainMetadata'; - color: DomainColor; - description?: string | null; - id: string; - name: string; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - newColor: DomainColor; - newDescription?: string | null; - newName: string; - oldColor: DomainColor; - oldDescription?: string | null; - oldName: string; - transactionHash: string; - }> | null; - } | null; -}; + +export type GetDomainMetadataQuery = { __typename?: 'Query', getDomainMetadata?: { __typename?: 'DomainMetadata', color: DomainColor, description?: string | null, id: string, name: string, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', newColor: DomainColor, newDescription?: string | null, newName: string, oldColor: DomainColor, oldDescription?: string | null, oldName: string, transactionHash: string }> | null } | null }; export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; colonyAddress: Scalars['ID']; }>; -export type GetDomainByNativeSkillIdQuery = { - __typename?: 'Query'; - getDomainByNativeSkillId?: { - __typename?: 'ModelDomainConnection'; - items: Array<{ - __typename?: 'Domain'; - id: string; - nativeSkillId: string; - nativeId: number; - } | null>; - } | null; -}; + +export type GetDomainByNativeSkillIdQuery = { __typename?: 'Query', getDomainByNativeSkillId?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string, nativeId: number } | null> } | null }; export type GetDomainsByExtensionAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; -export type GetDomainsByExtensionAddressQuery = { - __typename?: 'Query'; - listColonyExtensions?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ - __typename?: 'ColonyExtension'; - colony: { - __typename?: 'Colony'; - id: string; - domains?: { - __typename?: 'ModelDomainConnection'; - items: Array<{ - __typename?: 'Domain'; - nativeSkillId: string; - nativeId: number; - } | null>; - } | null; - }; - } | null>; - } | null; -}; + +export type GetDomainsByExtensionAddressQuery = { __typename?: 'Query', listColonyExtensions?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', colony: { __typename?: 'Colony', id: string, domains?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', nativeSkillId: string, nativeId: number } | null> } | null } } | null> } | null }; export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetContractEventQuery = { - __typename?: 'Query'; - getContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; -}; + +export type GetContractEventQuery = { __typename?: 'Query', getContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; export type GetExpenditureQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetExpenditureQuery = { - __typename?: 'Query'; - getExpenditure?: { - __typename?: 'Expenditure'; - id: string; - status: ExpenditureStatus; - ownerAddress: string; - userStakeId?: string | null; - createdAt: string; - firstEditTransactionHash?: string | null; - splitPaymentPayoutClaimedNotificationSent?: boolean | null; - type: ExpenditureType; - slots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - motions?: { - __typename?: 'ModelColonyMotionConnection'; - items: Array<{ - __typename?: 'ColonyMotion'; - transactionHash: string; - action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; - } | null>; - } | null; - balances?: Array<{ - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; - }> | null; - metadata?: { - __typename?: 'ExpenditureMetadata'; - distributionType?: SplitPaymentDistributionType | null; - } | null; - actions?: { - __typename?: 'ModelColonyActionConnection'; - items: Array<{ - __typename?: 'ColonyAction'; - type: ColonyActionType; - id: string; - } | null>; - } | null; - } | null; -}; + +export type GetExpenditureQuery = { __typename?: 'Query', getExpenditure?: { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null }; export type GetExpenditureByNativeFundingPotIdAndColonyQueryVariables = Exact<{ nativeFundingPotId: Scalars['Int']; colonyAddress: Scalars['ID']; }>; -export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { - __typename?: 'Query'; - getExpendituresByNativeFundingPotIdAndColony?: { - __typename?: 'ModelExpenditureConnection'; - items: Array<{ - __typename?: 'Expenditure'; - id: string; - status: ExpenditureStatus; - ownerAddress: string; - userStakeId?: string | null; - createdAt: string; - firstEditTransactionHash?: string | null; - splitPaymentPayoutClaimedNotificationSent?: boolean | null; - type: ExpenditureType; - slots: Array<{ - __typename?: 'ExpenditureSlot'; - id: number; - recipientAddress?: string | null; - claimDelay?: string | null; - payoutModifier?: number | null; - payouts?: Array<{ - __typename?: 'ExpenditurePayout'; - tokenAddress: string; - amount: string; - isClaimed: boolean; - networkFee?: string | null; - }> | null; - }>; - motions?: { - __typename?: 'ModelColonyMotionConnection'; - items: Array<{ - __typename?: 'ColonyMotion'; - transactionHash: string; - action?: { - __typename?: 'ColonyAction'; - type: ColonyActionType; - } | null; - } | null>; - } | null; - balances?: Array<{ - __typename?: 'ExpenditureBalance'; - tokenAddress: string; - amount: string; - }> | null; - metadata?: { - __typename?: 'ExpenditureMetadata'; - distributionType?: SplitPaymentDistributionType | null; - } | null; - actions?: { - __typename?: 'ModelColonyActionConnection'; - items: Array<{ - __typename?: 'ColonyAction'; - type: ColonyActionType; - id: string; - } | null>; - } | null; - } | null>; - } | null; -}; + +export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query', getExpendituresByNativeFundingPotIdAndColony?: { __typename?: 'ModelExpenditureConnection', items: Array<{ __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null> } | null }; export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetStreamingPaymentQuery = { - __typename?: 'Query'; - getStreamingPayment?: { - __typename?: 'StreamingPayment'; - id: string; - startTime: string; - endTime: string; - tokenAddress: string; - amount: string; - interval: string; - metadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - endCondition: StreamingPaymentEndCondition; - changelog?: Array<{ - __typename?: 'StreamingPaymentMetadataChangelog'; - transactionHash: string; - oldEndCondition: StreamingPaymentEndCondition; - newEndCondition: StreamingPaymentEndCondition; - }> | null; - } | null; - claims?: Array<{ - __typename?: 'StreamingPaymentClaim'; - amount: string; - timestamp: string; - }> | null; - } | null; -}; + +export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null } | null }; export type GetStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetStreamingPaymentMetadataQuery = { - __typename?: 'Query'; - getStreamingPaymentMetadata?: { - __typename?: 'StreamingPaymentMetadata'; - id: string; - endCondition: StreamingPaymentEndCondition; - changelog?: Array<{ - __typename?: 'StreamingPaymentMetadataChangelog'; - transactionHash: string; - oldEndCondition: StreamingPaymentEndCondition; - newEndCondition: StreamingPaymentEndCondition; - }> | null; - } | null; -}; + +export type GetStreamingPaymentMetadataQuery = { __typename?: 'Query', getStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null }; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyExtensionQuery = { - __typename?: 'Query'; - getColonyExtension?: { - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null; -}; + +export type GetColonyExtensionQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null }; export type GetColonyExtensionsByColonyAddressQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetColonyExtensionsByColonyAddressQuery = { - __typename?: 'Query'; - getExtensionByColonyAndHash?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null>; - } | null; -}; + +export type GetColonyExtensionsByColonyAddressQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; export type ListExtensionsQueryVariables = Exact<{ hash: Scalars['String']; nextToken?: InputMaybe; }>; -export type ListExtensionsQuery = { - __typename?: 'Query'; - getExtensionsByHash?: { - __typename?: 'ModelColonyExtensionConnection'; - nextToken?: string | null; - items: Array<{ - __typename?: 'ColonyExtension'; - id: string; - hash: string; - colonyId: string; - isInitialized: boolean; - version: number; - } | null>; - } | null; -}; + +export type ListExtensionsQuery = { __typename?: 'Query', getExtensionsByHash?: { __typename?: 'ModelColonyExtensionConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; export type GetColonyExtensionByHashAndColonyQueryVariables = Exact<{ colonyAddress: Scalars['ID']; extensionHash: Scalars['String']; }>; -export type GetColonyExtensionByHashAndColonyQuery = { - __typename?: 'Query'; - getExtensionByColonyAndHash?: { - __typename?: 'ModelColonyExtensionConnection'; - items: Array<{ __typename?: 'ColonyExtension'; id: string } | null>; - } | null; -}; + +export type GetColonyExtensionByHashAndColonyQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string } | null> } | null }; export type GetExtensionInstallationsCountQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetExtensionInstallationsCountQuery = { - __typename?: 'Query'; - getExtensionInstallationsCount?: { - __typename?: 'ExtensionInstallationsCount'; - oneTxPayment: number; - stakedExpenditure: number; - stagedExpenditure: number; - streamingPayments: number; - reputationWeighted: number; - multiSigPermissions: number; - } | null; -}; + +export type GetExtensionInstallationsCountQuery = { __typename?: 'Query', getExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', oneTxPayment: number, stakedExpenditure: number, stagedExpenditure: number, streamingPayments: number, reputationWeighted: number, multiSigPermissions: number } | null }; export type GetColonyExtensionByAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; -export type GetColonyExtensionByAddressQuery = { - __typename?: 'Query'; - getColonyExtension?: { - __typename?: 'ColonyExtension'; - colonyId: string; - params?: { - __typename?: 'ExtensionParams'; - multiSig?: { - __typename?: 'MultiSigParams'; - colonyThreshold: number; - domainThresholds?: Array<{ - __typename?: 'MultiSigDomainConfig'; - domainId: string; - domainThreshold: number; - } | null> | null; - } | null; - } | null; - } | null; -}; + +export type GetColonyExtensionByAddressQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', colonyId: string, params?: { __typename?: 'ExtensionParams', multiSig?: { __typename?: 'MultiSigParams', colonyThreshold: number, domainThresholds?: Array<{ __typename?: 'MultiSigDomainConfig', domainId: string, domainThreshold: number } | null> | null } | null } | null } | null }; export type GetColonyUnclaimedFundsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -11932,330 +11102,55 @@ export type GetColonyUnclaimedFundsQueryVariables = Exact<{ upToBlock?: InputMaybe; }>; -export type GetColonyUnclaimedFundsQuery = { - __typename?: 'Query'; - listColonyFundsClaims?: { - __typename?: 'ModelColonyFundsClaimConnection'; - items: Array<{ - __typename?: 'ColonyFundsClaim'; - id: string; - amount: string; - token: { __typename?: 'Token'; symbol: string; tokenAddress: string }; - } | null>; - } | null; -}; + +export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query', listColonyFundsClaims?: { __typename?: 'ModelColonyFundsClaimConnection', items: Array<{ __typename?: 'ColonyFundsClaim', id: string, amount: string, token: { __typename?: 'Token', symbol: string, tokenAddress: string } } | null> } | null }; export type GetColonyUnclaimedFundQueryVariables = Exact<{ claimId: Scalars['ID']; }>; -export type GetColonyUnclaimedFundQuery = { - __typename?: 'Query'; - getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim'; id: string } | null; -}; -export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ - [key: string]: never; -}>; +export type GetColonyUnclaimedFundQuery = { __typename?: 'Query', getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; -export type GetCurrentNetworkInverseFeeQuery = { - __typename?: 'Query'; - listCurrentNetworkInverseFees?: { - __typename?: 'ModelCurrentNetworkInverseFeeConnection'; - items: Array<{ - __typename?: 'CurrentNetworkInverseFee'; - id: string; - inverseFee: string; - } | null>; - } | null; -}; +export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCurrentNetworkInverseFeeQuery = { __typename?: 'Query', listCurrentNetworkInverseFees?: { __typename?: 'ModelCurrentNetworkInverseFeeConnection', items: Array<{ __typename?: 'CurrentNetworkInverseFee', id: string, inverseFee: string } | null> } | null }; export type GetColonyActionByMotionIdQueryVariables = Exact<{ motionId: Scalars['ID']; }>; -export type GetColonyActionByMotionIdQuery = { - __typename?: 'Query'; - getColonyActionByMotionId?: { - __typename?: 'ModelColonyActionConnection'; - items: Array<{ - __typename?: 'ColonyAction'; - id: string; - colonyDecisionId?: string | null; - amount?: string | null; - networkFee?: string | null; - type: ColonyActionType; - showInActionsList: boolean; - colonyId: string; - initiatorAddress: string; - recipientAddress?: string | null; - members?: Array | null; - pendingDomainMetadata?: { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; - } | null; - pendingColonyMetadata?: { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; - } | null; - payments?: Array<{ - __typename?: 'Payment'; - recipientAddress: string; - }> | null; - } | null>; - } | null; -}; + +export type GetColonyActionByMotionIdQuery = { __typename?: 'Query', getColonyActionByMotionId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyMotionQuery = { - __typename?: 'Query'; - getColonyMotion?: { - __typename?: 'ColonyMotion'; - id: string; - nativeMotionId: string; - requiredStake: string; - remainingStakes: Array; - userMinStake: string; - nativeMotionDomainId: string; - isFinalized: boolean; - createdBy: string; - repSubmitted: string; - skillRep: string; - hasObjection: boolean; - motionDomainId: string; - isDecision: boolean; - transactionHash: string; - expenditureId?: string | null; - streamingPaymentId?: string | null; - pendingStreamingPaymentMetadataId?: string | null; - motionStakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; - percentage: { - __typename?: 'MotionStakeValues'; - nay: string; - yay: string; - }; - }; - usersStakes: Array<{ - __typename?: 'UserMotionStakes'; - address: string; - stakes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { - __typename?: 'MotionStakeValues'; - yay: string; - nay: string; - }; - }; - }>; - stakerRewards: Array<{ - __typename?: 'StakerRewards'; - address: string; - isClaimed: boolean; - rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - }>; - voterRecord: Array<{ - __typename?: 'VoterRecord'; - address: string; - voteCount: string; - vote?: number | null; - }>; - revealedVotes: { - __typename?: 'MotionStakes'; - raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; - percentage: { - __typename?: 'MotionStakeValues'; - yay: string; - nay: string; - }; - }; - motionStateHistory: { - __typename?: 'MotionStateHistory'; - hasVoted: boolean; - hasPassed: boolean; - hasFailed: boolean; - hasFailedNotFinalizable: boolean; - inRevealPhase: boolean; - yaySideFullyStakedAt?: string | null; - naySideFullyStakedAt?: string | null; - allVotesSubmittedAt?: string | null; - allVotesRevealedAt?: string | null; - endedAt?: string | null; - finalizedAt?: string | null; - }; - } | null; -}; + +export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; }>; -export type GetVoterRewardsQuery = { - __typename?: 'Query'; - getVoterRewards?: { - __typename?: 'VoterRewardsReturn'; - min: string; - max: string; - reward: string; - } | null; -}; + +export type GetVoterRewardsQuery = { __typename?: 'Query', getVoterRewards?: { __typename?: 'VoterRewardsReturn', min: string, max: string, reward: string } | null }; export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; }>; -export type GetColonyActionByMultiSigIdQuery = { - __typename?: 'Query'; - getColonyActionByMultiSigId?: { - __typename?: 'ModelColonyActionConnection'; - items: Array<{ - __typename?: 'ColonyAction'; - id: string; - colonyDecisionId?: string | null; - amount?: string | null; - networkFee?: string | null; - type: ColonyActionType; - showInActionsList: boolean; - colonyId: string; - initiatorAddress: string; - recipientAddress?: string | null; - members?: Array | null; - pendingDomainMetadata?: { - __typename?: 'DomainMetadata'; - name: string; - color: DomainColor; - description?: string | null; - changelog?: Array<{ - __typename?: 'DomainMetadataChangelog'; - transactionHash: string; - oldName: string; - newName: string; - oldColor: DomainColor; - newColor: DomainColor; - oldDescription?: string | null; - newDescription?: string | null; - }> | null; - } | null; - pendingColonyMetadata?: { - __typename?: 'ColonyMetadata'; - id: string; - displayName: string; - avatar?: string | null; - thumbnail?: string | null; - description?: string | null; - externalLinks?: Array<{ - __typename?: 'ExternalLink'; - name: ExternalLinks; - link: string; - }> | null; - objective?: { - __typename?: 'ColonyObjective'; - title: string; - description: string; - progress: number; - } | null; - changelog?: Array<{ - __typename?: 'ColonyMetadataChangelog'; - transactionHash: string; - oldDisplayName: string; - newDisplayName: string; - hasAvatarChanged: boolean; - hasDescriptionChanged?: boolean | null; - haveExternalLinksChanged?: boolean | null; - hasObjectiveChanged?: boolean | null; - }> | null; - } | null; - payments?: Array<{ - __typename?: 'Payment'; - recipientAddress: string; - }> | null; - } | null>; - } | null; -}; + +export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query', getColonyActionByMultiSigId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; export type GetColonyMultiSigQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyMultiSigQuery = { - __typename?: 'Query'; - getColonyMultiSig?: { - __typename?: 'ColonyMultiSig'; - id: string; - colonyAddress: string; - nativeMultiSigId: string; - multiSigDomainId: string; - nativeMultiSigDomainId: string; - requiredPermissions: number; - transactionHash: string; - isExecuted: boolean; - isRejected: boolean; - isDecision: boolean; - hasActionCompleted: boolean; - executedAt?: string | null; - executedBy?: string | null; - rejectedAt?: string | null; - rejectedBy?: string | null; - createdAt: string; - expenditureId?: string | null; - signatures?: { - __typename?: 'ModelMultiSigUserSignatureConnection'; - items: Array<{ - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; - } | null>; - } | null; - action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; - } | null; -}; + +export type GetColonyMultiSigQuery = { __typename?: 'Query', getColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null }; export type GetUserMultiSigSignatureQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -12264,1495 +11159,1330 @@ export type GetUserMultiSigSignatureQueryVariables = Exact<{ role: Scalars['Int']; }>; -export type GetUserMultiSigSignatureQuery = { - __typename?: 'Query'; - getMultiSigUserSignatureByMultiSigId?: { - __typename?: 'ModelMultiSigUserSignatureConnection'; - items: Array<{ - __typename?: 'MultiSigUserSignature'; - id: string; - multiSigId: string; - role: number; - colonyAddress: string; - userAddress: string; - vote: MultiSigVote; - createdAt: string; - } | null>; - } | null; -}; + +export type GetUserMultiSigSignatureQuery = { __typename?: 'Query', getMultiSigUserSignatureByMultiSigId?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; export type GetAllMultiSigRolesQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetAllMultiSigRolesQuery = { - __typename?: 'Query'; - getRoleByColony?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ __typename?: 'ColonyRole'; id: string } | null>; - } | null; -}; + +export type GetAllMultiSigRolesQuery = { __typename?: 'Query', getRoleByColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string } | null> } | null }; export type GetActiveColonyMultisigsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; -export type GetActiveColonyMultisigsQuery = { - __typename?: 'Query'; - getMultiSigByColonyAddress?: { - __typename?: 'ModelColonyMultiSigConnection'; - items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; - } | null; -}; + +export type GetActiveColonyMultisigsQuery = { __typename?: 'Query', getMultiSigByColonyAddress?: { __typename?: 'ModelColonyMultiSigConnection', items: Array<{ __typename?: 'ColonyMultiSig', id: string } | null> } | null }; export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyRoleQuery = { - __typename?: 'Query'; - getColonyRole?: { - __typename?: 'ColonyRole'; - id: string; - latestBlock: number; - role_0?: boolean | null; - role_1?: boolean | null; - role_2?: boolean | null; - role_3?: boolean | null; - role_5?: boolean | null; - role_6?: boolean | null; - } | null; -}; + +export type GetColonyRoleQuery = { __typename?: 'Query', getColonyRole?: { __typename?: 'ColonyRole', id: string, latestBlock: number, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null }; export type GetAllColonyRolesQueryVariables = Exact<{ targetAddress: Scalars['ID']; colonyAddress: Scalars['ID']; }>; -export type GetAllColonyRolesQuery = { - __typename?: 'Query'; - getRoleByTargetAddressAndColony?: { - __typename?: 'ModelColonyRoleConnection'; - items: Array<{ - __typename?: 'ColonyRole'; - id: string; - role_0?: boolean | null; - role_1?: boolean | null; - role_2?: boolean | null; - role_3?: boolean | null; - role_5?: boolean | null; - role_6?: boolean | null; - } | null>; - } | null; -}; + +export type GetAllColonyRolesQuery = { __typename?: 'Query', getRoleByTargetAddressAndColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null> } | null }; export type GetColonyHistoricRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetColonyHistoricRoleQuery = { - __typename?: 'Query'; - getColonyHistoricRole?: { - __typename?: 'ColonyHistoricRole'; - id: string; - } | null; -}; + +export type GetColonyHistoricRoleQuery = { __typename?: 'Query', getColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; export type GetReputationMiningCycleMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetReputationMiningCycleMetadataQuery = { - __typename?: 'Query'; - getReputationMiningCycleMetadata?: { - __typename?: 'ReputationMiningCycleMetadata'; - id: string; - } | null; -}; + +export type GetReputationMiningCycleMetadataQuery = { __typename?: 'Query', getReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; export type GetSafeTransactionByTransactionHashQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; -export type GetSafeTransactionByTransactionHashQuery = { - __typename?: 'Query'; - getSafeTransaction?: { __typename?: 'SafeTransaction'; id: string } | null; -}; + +export type GetSafeTransactionByTransactionHashQuery = { __typename?: 'Query', getSafeTransaction?: { __typename?: 'SafeTransaction', id: string } | null }; export type GetUserStakeQueryVariables = Exact<{ id: Scalars['ID']; }>; -export type GetUserStakeQuery = { - __typename?: 'Query'; - getUserStake?: { - __typename?: 'UserStake'; - id: string; - amount: string; - } | null; -}; -export type GetStatsQueryVariables = Exact<{ [key: string]: never }>; +export type GetUserStakeQuery = { __typename?: 'Query', getUserStake?: { __typename?: 'UserStake', id: string, amount: string } | null }; -export type GetStatsQuery = { - __typename?: 'Query'; - getIngestorStats?: { __typename?: 'IngestorStats'; value: string } | null; -}; +export type GetStatsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetStatsQuery = { __typename?: 'Query', getIngestorStats?: { __typename?: 'IngestorStats', value: string } | null }; export type GetTokenFromEverywhereQueryVariables = Exact<{ input: TokenFromEverywhereArguments; }>; -export type GetTokenFromEverywhereQuery = { - __typename?: 'Query'; - getTokenFromEverywhere?: { - __typename?: 'TokenFromEverywhereReturn'; - items?: Array<{ __typename?: 'Token'; id: string } | null> | null; - } | null; -}; + +export type GetTokenFromEverywhereQuery = { __typename?: 'Query', getTokenFromEverywhere?: { __typename?: 'TokenFromEverywhereReturn', items?: Array<{ __typename?: 'Token', id: string } | null> | null } | null }; export type GetNotificationUsersQueryVariables = Exact<{ filter?: InputMaybe; limit?: InputMaybe; }>; -export type GetNotificationUsersQuery = { - __typename?: 'Query'; - listUsers?: { - __typename?: 'ModelUserConnection'; - items: Array<{ - __typename?: 'User'; - notificationsData?: { - __typename?: 'NotificationsData'; - magicbellUserId: string; - notificationsDisabled: boolean; - mutedColonyAddresses: Array; - paymentNotificationsDisabled: boolean; - mentionNotificationsDisabled: boolean; - adminNotificationsDisabled: boolean; - } | null; - } | null>; - } | null; -}; + +export type GetNotificationUsersQuery = { __typename?: 'Query', listUsers?: { __typename?: 'ModelUserConnection', items: Array<{ __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null> } | null }; export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { - transactionHash - oldName - newName - oldColor - newColor - oldDescription - newDescription - } + fragment DomainMetadata on DomainMetadata { + name + color + description + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription } -`; +} + `; export const ColonyMetadata = gql` - fragment ColonyMetadata on ColonyMetadata { - id - displayName - avatar - thumbnail + fragment ColonyMetadata on ColonyMetadata { + id + displayName + avatar + thumbnail + description + externalLinks { + name + link + } + objective { + title description - externalLinks { - name - link - } - objective { - title - description - progress - } - changelog { - transactionHash - oldDisplayName - newDisplayName - hasAvatarChanged - hasDescriptionChanged - haveExternalLinksChanged - hasObjectiveChanged - } + progress } -`; + changelog { + transactionHash + oldDisplayName + newDisplayName + hasAvatarChanged + hasDescriptionChanged + haveExternalLinksChanged + hasObjectiveChanged + } +} + `; export const ActionMetadataInfo = gql` - fragment ActionMetadataInfo on ColonyAction { - id - pendingDomainMetadata { - ...DomainMetadata - } - pendingColonyMetadata { - ...ColonyMetadata - } - colonyDecisionId - amount - networkFee - type - showInActionsList - colonyId - initiatorAddress + fragment ActionMetadataInfo on ColonyAction { + id + pendingDomainMetadata { + ...DomainMetadata + } + pendingColonyMetadata { + ...ColonyMetadata + } + colonyDecisionId + amount + networkFee + type + showInActionsList + colonyId + initiatorAddress + recipientAddress + payments { recipientAddress - payments { - recipientAddress - } - members } - ${DomainMetadata} - ${ColonyMetadata} -`; + members +} + ${DomainMetadata} +${ColonyMetadata}`; export const Token = gql` - fragment Token on Token { - tokenAddress: id - symbol - } -`; + fragment Token on Token { + tokenAddress: id + symbol +} + `; export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token - } - tokens { - items { - id - tokenAddress: tokenID - } + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token + } + tokens { + items { + id + tokenAddress: tokenID } - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay - } - isClaimed + } + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay } + isClaimed } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId - } - nextToken + } + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId } + nextToken } - ${Token} -`; +} + ${Token}`; export const NotificationsData = gql` - fragment NotificationsData on NotificationsData { - magicbellUserId - notificationsDisabled - mutedColonyAddresses - paymentNotificationsDisabled - mentionNotificationsDisabled - adminNotificationsDisabled - } -`; + fragment NotificationsData on NotificationsData { + magicbellUserId + notificationsDisabled + mutedColonyAddresses + paymentNotificationsDisabled + mentionNotificationsDisabled + adminNotificationsDisabled +} + `; export const ColonyWithRootRoles = gql` - fragment ColonyWithRootRoles on Colony { - id - roles(filter: { role_1: { eq: true } }, limit: 1000) { - items { + fragment ColonyWithRootRoles on Colony { + id + roles(filter: {role_1: {eq: true}}, limit: 1000) { + items { + id + targetUser { id - targetUser { + profile { + displayName id - profile { - displayName - id - } - notificationsData { - ...NotificationsData - } + } + notificationsData { + ...NotificationsData } } } } - ${NotificationsData} -`; +} + ${NotificationsData}`; export const ExpenditureSlot = gql` - fragment ExpenditureSlot on ExpenditureSlot { - id - recipientAddress - claimDelay - payoutModifier - payouts { - tokenAddress - amount - isClaimed - networkFee - } - } -`; -export const ExpenditureBalance = gql` - fragment ExpenditureBalance on ExpenditureBalance { + fragment ExpenditureSlot on ExpenditureSlot { + id + recipientAddress + claimDelay + payoutModifier + payouts { tokenAddress amount + isClaimed + networkFee } -`; +} + `; +export const ExpenditureBalance = gql` + fragment ExpenditureBalance on ExpenditureBalance { + tokenAddress + amount +} + `; export const Expenditure = gql` - fragment Expenditure on Expenditure { - id - slots { - ...ExpenditureSlot - } - motions { - items { - transactionHash - action { - type - } - } - } - balances { - ...ExpenditureBalance - } - metadata { - distributionType - } - status - ownerAddress - userStakeId - createdAt - firstEditTransactionHash - splitPaymentPayoutClaimedNotificationSent - type - actions { - items { + fragment Expenditure on Expenditure { + id + slots { + ...ExpenditureSlot + } + motions { + items { + transactionHash + action { type - id } } } - ${ExpenditureSlot} - ${ExpenditureBalance} -`; -export const StreamingPaymentMetadata = gql` - fragment StreamingPaymentMetadata on StreamingPaymentMetadata { - id - endCondition - changelog { - transactionHash - oldEndCondition - newEndCondition + balances { + ...ExpenditureBalance + } + metadata { + distributionType + } + status + ownerAddress + userStakeId + createdAt + firstEditTransactionHash + splitPaymentPayoutClaimedNotificationSent + type + actions { + items { + type + id } } -`; +} + ${ExpenditureSlot} +${ExpenditureBalance}`; +export const StreamingPaymentMetadata = gql` + fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } +} + `; export const StreamingPayment = gql` - fragment StreamingPayment on StreamingPayment { - id - startTime - endTime - tokenAddress - amount - interval - metadata { - ...StreamingPaymentMetadata - } - claims { - amount - timestamp - } + fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata } - ${StreamingPaymentMetadata} -`; -export const StreamingPaymentChanges = gql` - fragment StreamingPaymentChanges on StreamingPaymentChanges { - startTime - endTime - interval + claims { amount + timestamp } -`; +} + ${StreamingPaymentMetadata}`; +export const StreamingPaymentChanges = gql` + fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount +} + `; export const Extension = gql` - fragment Extension on ColonyExtension { - id - hash - colonyId - isInitialized - version - } -`; + fragment Extension on ColonyExtension { + id + hash + colonyId + isInitialized + version +} + `; export const MotionStakes = gql` - fragment MotionStakes on MotionStakes { + fragment MotionStakes on MotionStakes { + raw { + nay + yay + } + percentage { + nay + yay + } +} + `; +export const UserMotionStakes = gql` + fragment UserMotionStakes on UserMotionStakes { + address + stakes { raw { - nay yay + nay } percentage { - nay yay + nay } } -`; -export const UserMotionStakes = gql` - fragment UserMotionStakes on UserMotionStakes { - address - stakes { - raw { - yay - nay - } - percentage { - yay - nay - } - } - } -`; +} + `; export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay - } - isClaimed + fragment StakerReward on StakerRewards { + address + rewards { + yay + nay } -`; + isClaimed +} + `; export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote - } -`; + fragment VoterRecord on VoterRecord { + address + voteCount + vote +} + `; export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward - } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay - } - percentage { - yay - nay - } + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes + } + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes + } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt + percentage { + yay + nay } - isDecision - transactionHash - expenditureId - streamingPaymentId - pendingStreamingPaymentMetadataId - } - ${MotionStakes} - ${UserMotionStakes} - ${StakerReward} - ${VoterRecord} -`; + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision + transactionHash + expenditureId + streamingPaymentId + pendingStreamingPaymentMetadataId +} + ${MotionStakes} +${UserMotionStakes} +${StakerReward} +${VoterRecord}`; export const MultiSigUserSignature = gql` - fragment MultiSigUserSignature on MultiSigUserSignature { - id - multiSigId - role - colonyAddress - userAddress - vote - createdAt - } -`; + fragment MultiSigUserSignature on MultiSigUserSignature { + id + multiSigId + role + colonyAddress + userAddress + vote + createdAt +} + `; export const ColonyMultiSig = gql` - fragment ColonyMultiSig on ColonyMultiSig { - id - colonyAddress - nativeMultiSigId - multiSigDomainId - nativeMultiSigDomainId - requiredPermissions - transactionHash - isExecuted - isRejected - isDecision - hasActionCompleted - signatures { - items { - ...MultiSigUserSignature - } + fragment ColonyMultiSig on ColonyMultiSig { + id + colonyAddress + nativeMultiSigId + multiSigDomainId + nativeMultiSigDomainId + requiredPermissions + transactionHash + isExecuted + isRejected + isDecision + hasActionCompleted + signatures { + items { + ...MultiSigUserSignature } - executedAt - executedBy - rejectedAt - rejectedBy - createdAt - action { - type - } - expenditureId } - ${MultiSigUserSignature} -`; + executedAt + executedBy + rejectedAt + rejectedBy + createdAt + action { + type + } + expenditureId +} + ${MultiSigUserSignature}`; export const NotificationUser = gql` - fragment NotificationUser on ColonyContributor { - user { - notificationsData { - ...NotificationsData - } + fragment NotificationUser on ColonyContributor { + user { + notificationsData { + ...NotificationsData } } - ${NotificationsData} -`; +} + ${NotificationsData}`; export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id - } + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id } -`; +} + `; export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id - } + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id } -`; +} + `; export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id - } + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id } -`; +} + `; export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id - } + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id } -`; +} + `; export const CreateColonyDocument = gql` - mutation CreateColony( - $input: CreateColonyInput! - $condition: ModelColonyConditionInput - ) { - createColony(input: $input, condition: $condition) { - id - } + mutation CreateColony($input: CreateColonyInput!, $condition: ModelColonyConditionInput) { + createColony(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id - } + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id } -`; +} + `; export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id - } + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id } -`; +} + `; export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite( - $input: CreateColonyMemberInviteInput! - $condition: ModelColonyMemberInviteConditionInput - ) { - createColonyMemberInvite(input: $input, condition: $condition) { - id - } + mutation CreateColonyMemberInvite($input: CreateColonyMemberInviteInput!, $condition: ModelColonyMemberInviteConditionInput) { + createColonyMemberInvite(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id - } + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id } -`; +} + `; export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id - } + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id } -`; +} + `; export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id - } + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id } -`; +} + `; export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id - } + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id } -`; +} + `; export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id - } + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id } -`; +} + `; export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id - } + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id } -`; +} + `; export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: { id: $id, showInDecisionsList: $showInDecisionsList } - ) { - id - } + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: {id: $id, showInDecisionsList: $showInDecisionsList} + ) { + id } -`; +} + `; export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id - } + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id } -`; +} + `; export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id - } + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id } -`; +} + `; export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id - } + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id } -`; +} + `; export const CreateContractEventDocument = gql` - mutation CreateContractEvent( - $input: CreateContractEventInput! - $condition: ModelContractEventConditionInput - ) { - createContractEvent(input: $input, condition: $condition) { - id - } + mutation CreateContractEvent($input: CreateContractEventInput!, $condition: ModelContractEventConditionInput) { + createContractEvent(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id - } + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id } -`; +} + `; export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress - } + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress } -`; +} + `; export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id - } + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id } -`; +} + `; export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id - } + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id } -`; +} + `; export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id - } + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id } -`; +} + `; export const UpdateStreamingPaymentMetadataDocument = gql` - mutation UpdateStreamingPaymentMetadata( - $input: UpdateStreamingPaymentMetadataInput! - ) { - updateStreamingPaymentMetadata(input: $input) { - id - } + mutation UpdateStreamingPaymentMetadata($input: UpdateStreamingPaymentMetadataInput!) { + updateStreamingPaymentMetadata(input: $input) { + id } -`; +} + `; export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id - } + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id } -`; +} + `; export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId - } + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId } -`; +} + `; export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount( - $input: CreateExtensionInstallationsCountInput! - ) { - createExtensionInstallationsCount(input: $input) { - id - } + mutation CreateExtensionInstallationsCount($input: CreateExtensionInstallationsCountInput!) { + createExtensionInstallationsCount(input: $input) { + id } -`; +} + `; export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount( - $input: UpdateExtensionInstallationsCountInput! - ) { - updateExtensionInstallationsCount(input: $input) { - id - } + mutation UpdateExtensionInstallationsCount($input: UpdateExtensionInstallationsCountInput!) { + updateExtensionInstallationsCount(input: $input) { + id } -`; +} + `; export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim( - $input: CreateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - createColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation CreateColonyFundsClaim($input: CreateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + createColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim( - $input: UpdateColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation UpdateColonyFundsClaim($input: UpdateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim( - $input: DeleteColonyFundsClaimInput! - $condition: ModelColonyFundsClaimConditionInput - ) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id - } + mutation DeleteColonyFundsClaim($input: DeleteColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id } -`; +} + `; export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee( - $input: CreateCurrentNetworkInverseFeeInput! - ) { - createCurrentNetworkInverseFee(input: $input) { - id - } + mutation CreateCurrentNetworkInverseFee($input: CreateCurrentNetworkInverseFeeInput!) { + createCurrentNetworkInverseFee(input: $input) { + id } -`; +} + `; export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee( - $input: UpdateCurrentNetworkInverseFeeInput! - ) { - updateCurrentNetworkInverseFee(input: $input) { - id - } + mutation UpdateCurrentNetworkInverseFee($input: UpdateCurrentNetworkInverseFeeInput!) { + updateCurrentNetworkInverseFee(input: $input) { + id } -`; +} + `; export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id - } + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id } -`; +} + `; export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id - } + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id } -`; +} + `; export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id - } + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id } -`; +} + `; export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id - } + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id } -`; +} + `; export const CreateColonyMultiSigDocument = gql` - mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { - createColonyMultiSig(input: $input) { - id - } + mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { + createColonyMultiSig(input: $input) { + id } -`; +} + `; export const UpdateColonyMultiSigDocument = gql` - mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { - updateColonyMultiSig(input: $input) { - id - } + mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { + updateColonyMultiSig(input: $input) { + id } -`; +} + `; export const CreateMultiSigVoteDocument = gql` - mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { - createMultiSigUserSignature(input: $input) { - id - } + mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { + createMultiSigUserSignature(input: $input) { + id } -`; +} + `; export const RemoveMultiSigVoteDocument = gql` - mutation RemoveMultiSigVote($id: ID!) { - deleteMultiSigUserSignature(input: { id: $id }) { - id - } + mutation RemoveMultiSigVote($id: ID!) { + deleteMultiSigUserSignature(input: {id: $id}) { + id } -`; +} + `; export const RemoveMultiSigRoleDocument = gql` - mutation RemoveMultiSigRole($id: ID!) { - deleteColonyRole(input: { id: $id }) { - id - } + mutation RemoveMultiSigRole($id: ID!) { + deleteColonyRole(input: {id: $id}) { + id } -`; +} + `; export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id - } + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id } -`; +} + `; export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id - } + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id } -`; +} + `; export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id - } + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id } -`; +} + `; export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata( - $input: UpdateReputationMiningCycleMetadataInput! - ) { - updateReputationMiningCycleMetadata(input: $input) { - id - } + mutation UpdateReputationMiningCycleMetadata($input: UpdateReputationMiningCycleMetadataInput!) { + updateReputationMiningCycleMetadata(input: $input) { + id } -`; +} + `; export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata( - $input: CreateReputationMiningCycleMetadataInput! - ) { - createReputationMiningCycleMetadata(input: $input) { - id - } + mutation CreateReputationMiningCycleMetadata($input: CreateReputationMiningCycleMetadataInput!) { + createReputationMiningCycleMetadata(input: $input) { + id } -`; +} + `; export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id - } + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id } -`; +} + `; export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id - } + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id } -`; +} + `; export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: { id: "STATS", value: $value }) { - id - } + mutation CreateStats($value: String!) { + createIngestorStats(input: {id: "STATS", value: $value}) { + id } -`; +} + `; export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: { id: "STATS", value: $value }) { - id - } + mutation UpdateStats($value: String!) { + updateIngestorStats(input: {id: "STATS", value: $value}) { + id } -`; +} + `; export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id - } + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id } -`; +} + `; export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - } + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id } -`; +} + `; export const GetColonyArbitraryTransactionActionDocument = gql` - query GetColonyArbitraryTransactionAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - arbitraryTransactions { - contractAddress - encodedFunction - } + query GetColonyArbitraryTransactionAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + arbitraryTransactions { + contractAddress + encodedFunction } } -`; +} + `; export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id - } + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id } } -`; +} + `; export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId - } + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId } -`; +} + `; export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot - } + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot } } } - ${ExpenditureSlot} -`; +} + ${ExpenditureSlot}`; export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail - } + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail } } - ${ColonyMetadata} -`; +} + ${ColonyMetadata}`; export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony - } - getColonyByAddress(id: $id) { - items { - id - name - } + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony + } + getColonyByAddress(id: $id) { + items { + id + name } - getColonyByType(type: METACOLONY) { - items { - id - name - } + } + getColonyByType(type: METACOLONY) { + items { + id + name } } - ${Colony} -`; +} + ${Colony}`; export const GetColonyByNameDocument = gql` - query GetColonyByName($name: String!) { - getColonyByName(name: $name) { - items { - id - name - } + query GetColonyByName($name: String!) { + getColonyByName(name: $name) { + items { + id + name } } -`; +} + `; export const GetColonyByNativeTokenIdDocument = gql` - query GetColonyByNativeTokenId( - $nativeTokenId: ID! - $limit: Int - $nextToken: String + query GetColonyByNativeTokenId($nativeTokenId: ID!, $limit: Int, $nextToken: String) { + getColoniesByNativeTokenId( + nativeTokenId: $nativeTokenId + limit: $limit + nextToken: $nextToken ) { - getColoniesByNativeTokenId( - nativeTokenId: $nativeTokenId - limit: $limit - nextToken: $nextToken - ) { - items { - id - status { - nativeToken { - unlocked - unlockable - mintable - } - recovery + items { + id + status { + nativeToken { + unlocked + unlockable + mintable } + recovery } - nextToken } + nextToken } -`; +} + `; export const ListColoniesDocument = gql` - query ListColonies($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - id - nativeTokenId - } + query ListColonies($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + id + nativeTokenId } } -`; +} + `; export const ListColoniesWithRootPermissionHoldersDocument = gql` - query ListColoniesWithRootPermissionHolders($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - ...ColonyWithRootRoles - } + query ListColoniesWithRootPermissionHolders($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + ...ColonyWithRootRoles } } - ${ColonyWithRootRoles} -`; +} + ${ColonyWithRootRoles}`; export const GetColonyContributorDocument = gql` - query GetColonyContributor($id: ID!) { - getColonyContributor(id: $id) { - id - isVerified - } + query GetColonyContributor($id: ID!) { + getColonyContributor(id: $id) { + id + isVerified } -`; +} + `; export const GetColonyContributorsNotificationDataDocument = gql` - query GetColonyContributorsNotificationData( - $colonyAddress: ID! - $sortDirection: ModelSortDirection = ASC - $limit: Int = 100 - $nextToken: String + query GetColonyContributorsNotificationData($colonyAddress: ID!, $sortDirection: ModelSortDirection = ASC, $limit: Int = 100, $nextToken: String) { + getContributorsByColony( + colonyAddress: $colonyAddress + sortDirection: $sortDirection + limit: $limit + nextToken: $nextToken ) { - getContributorsByColony( - colonyAddress: $colonyAddress - sortDirection: $sortDirection - limit: $limit - nextToken: $nextToken - ) { - items { - user { - notificationsData { - ...NotificationsData - } + items { + user { + notificationsData { + ...NotificationsData } } - nextToken } + nextToken } - ${NotificationsData} -`; +} + ${NotificationsData}`; export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version - } + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version } } -`; +} + `; export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { - id - } + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { + id } } -`; +} + `; export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description - id - name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash - } + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { + color + description + id + name + changelog { + newColor + newDescription + newName + oldColor + oldDescription + oldName + transactionHash } } -`; +} + `; export const GetDomainByNativeSkillIdDocument = gql` - query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { - getDomainByNativeSkillId( - nativeSkillId: $nativeSkillId - filter: { colonyId: { eq: $colonyAddress } } - ) { - items { - id - nativeSkillId - nativeId - } + query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { + getDomainByNativeSkillId( + nativeSkillId: $nativeSkillId + filter: {colonyId: {eq: $colonyAddress}} + ) { + items { + id + nativeSkillId + nativeId } } -`; +} + `; export const GetDomainsByExtensionAddressDocument = gql` - query GetDomainsByExtensionAddress($extensionAddress: ID!) { - listColonyExtensions(filter: { id: { eq: $extensionAddress } }) { - items { - colony { - domains { - items { - nativeSkillId - nativeId - } + query GetDomainsByExtensionAddress($extensionAddress: ID!) { + listColonyExtensions(filter: {id: {eq: $extensionAddress}}) { + items { + colony { + domains { + items { + nativeSkillId + nativeId } - id } + id } } } -`; +} + `; export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { - id - } + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id } -`; +} + `; export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure - } + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure } - ${Expenditure} -`; +} + ${Expenditure}`; export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony( - $nativeFundingPotId: Int! - $colonyAddress: ID! + query GetExpenditureByNativeFundingPotIdAndColony($nativeFundingPotId: Int!, $colonyAddress: ID!) { + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: {eq: $colonyAddress} ) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: { eq: $colonyAddress } - ) { - items { - ...Expenditure - } + items { + ...Expenditure } } - ${Expenditure} -`; +} + ${Expenditure}`; export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - ...StreamingPayment - } + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + ...StreamingPayment } - ${StreamingPayment} -`; +} + ${StreamingPayment}`; export const GetStreamingPaymentMetadataDocument = gql` - query GetStreamingPaymentMetadata($id: ID!) { - getStreamingPaymentMetadata(id: $id) { - ...StreamingPaymentMetadata - } + query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata } - ${StreamingPaymentMetadata} -`; +} + ${StreamingPaymentMetadata}`; export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension - } + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension } - ${Extension} -`; +} + ${Extension}`; export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension - } + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension } } - ${Extension} -`; +} + ${Extension}`; export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: { isDeleted: { eq: false } } - ) { - nextToken - items { - ...Extension - } + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: {isDeleted: {eq: false}} + ) { + nextToken + items { + ...Extension } } - ${Extension} -`; +} + ${Extension}`; export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony( - $colonyAddress: ID! - $extensionHash: String! + query GetColonyExtensionByHashAndColony($colonyAddress: ID!, $extensionHash: String!) { + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: {eq: $extensionHash} + filter: {isDeleted: {eq: false}} ) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: { eq: $extensionHash } - filter: { isDeleted: { eq: false } } - ) { - items { - id - } + items { + id } } -`; +} + `; export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted - multiSigPermissions - } + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + multiSigPermissions } -`; +} + `; export const GetColonyExtensionByAddressDocument = gql` - query GetColonyExtensionByAddress($extensionAddress: ID!) { - getColonyExtension(id: $extensionAddress) { - params { - multiSig { - colonyThreshold - domainThresholds { - domainId - domainThreshold - } + query GetColonyExtensionByAddress($extensionAddress: ID!) { + getColonyExtension(id: $extensionAddress) { + params { + multiSig { + colonyThreshold + domainThresholds { + domainId + domainThreshold } } - colonyId } + colonyId } -`; +} + `; export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds( - $colonyAddress: ID! - $tokenAddress: ID! - $upToBlock: Int = 1 + query GetColonyUnclaimedFunds($colonyAddress: ID!, $tokenAddress: ID!, $upToBlock: Int = 1) { + listColonyFundsClaims( + filter: {colonyFundsClaimsId: {eq: $colonyAddress}, colonyFundsClaimTokenId: {eq: $tokenAddress}, createdAtBlock: {le: $upToBlock}, isClaimed: {ne: true}} ) { - listColonyFundsClaims( - filter: { - colonyFundsClaimsId: { eq: $colonyAddress } - colonyFundsClaimTokenId: { eq: $tokenAddress } - createdAtBlock: { le: $upToBlock } - isClaimed: { ne: true } - } - ) { - items { - id - token { - ...Token - } - amount + items { + id + token { + ...Token } + amount } } - ${Token} -`; +} + ${Token}`; export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { - id - } + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id } -`; +} + `; export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee - } + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee } } -`; +} + `; export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - ...ActionMetadataInfo - } + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + ...ActionMetadataInfo } } - ${ActionMetadataInfo} -`; +} + ${ActionMetadataInfo}`; export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion - } + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion } - ${ColonyMotion} -`; +} + ${ColonyMotion}`; export const GetVoterRewardsDocument = gql` - query GetVoterRewards($input: GetVoterRewardsInput!) { - getVoterRewards(input: $input) { - min - max - reward - } + query GetVoterRewards($input: GetVoterRewardsInput!) { + getVoterRewards(input: $input) { + min + max + reward } -`; +} + `; export const GetColonyActionByMultiSigIdDocument = gql` - query GetColonyActionByMultiSigId($multiSigId: ID!) { - getColonyActionByMultiSigId(multiSigId: $multiSigId) { - items { - ...ActionMetadataInfo - } + query GetColonyActionByMultiSigId($multiSigId: ID!) { + getColonyActionByMultiSigId(multiSigId: $multiSigId) { + items { + ...ActionMetadataInfo } } - ${ActionMetadataInfo} -`; +} + ${ActionMetadataInfo}`; export const GetColonyMultiSigDocument = gql` - query GetColonyMultiSig($id: ID!) { - getColonyMultiSig(id: $id) { - ...ColonyMultiSig - } + query GetColonyMultiSig($id: ID!) { + getColonyMultiSig(id: $id) { + ...ColonyMultiSig } - ${ColonyMultiSig} -`; +} + ${ColonyMultiSig}`; export const GetUserMultiSigSignatureDocument = gql` - query GetUserMultiSigSignature( - $multiSigId: ID! - $userAddress: ID! - $vote: MultiSigVote! - $role: Int! + query GetUserMultiSigSignature($multiSigId: ID!, $userAddress: ID!, $vote: MultiSigVote!, $role: Int!) { + getMultiSigUserSignatureByMultiSigId( + filter: {userAddress: {eq: $userAddress}, vote: {eq: $vote}, role: {eq: $role}} + multiSigId: $multiSigId ) { - getMultiSigUserSignatureByMultiSigId( - filter: { - userAddress: { eq: $userAddress } - vote: { eq: $vote } - role: { eq: $role } - } - multiSigId: $multiSigId - ) { - items { - ...MultiSigUserSignature - } + items { + ...MultiSigUserSignature } } - ${MultiSigUserSignature} -`; +} + ${MultiSigUserSignature}`; export const GetAllMultiSigRolesDocument = gql` - query GetAllMultiSigRoles($colonyAddress: ID!) { - getRoleByColony( - colonyAddress: $colonyAddress - limit: 9999 - filter: { isMultiSig: { eq: true } } - ) { - items { - id - } + query GetAllMultiSigRoles($colonyAddress: ID!) { + getRoleByColony( + colonyAddress: $colonyAddress + limit: 9999 + filter: {isMultiSig: {eq: true}} + ) { + items { + id } } -`; +} + `; export const GetActiveColonyMultisigsDocument = gql` - query GetActiveColonyMultisigs($colonyAddress: ID!) { - getMultiSigByColonyAddress( - colonyAddress: $colonyAddress - filter: { isExecuted: { eq: false }, isRejected: { eq: false } } - limit: 9999 - ) { - items { - id - } + query GetActiveColonyMultisigs($colonyAddress: ID!) { + getMultiSigByColonyAddress( + colonyAddress: $colonyAddress + filter: {isExecuted: {eq: false}, isRejected: {eq: false}} + limit: 9999 + ) { + items { + id } } -`; +} + `; export const GetColonyRoleDocument = gql` - query GetColonyRole($id: ID!) { - getColonyRole(id: $id) { + query GetColonyRole($id: ID!) { + getColonyRole(id: $id) { + id + latestBlock + role_0 + role_1 + role_2 + role_3 + role_5 + role_6 + } +} + `; +export const GetAllColonyRolesDocument = gql` + query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { + getRoleByTargetAddressAndColony( + targetAddress: $targetAddress + colonyAddress: {eq: $colonyAddress} + ) { + items { id - latestBlock role_0 role_1 role_2 @@ -13761,79 +12491,61 @@ export const GetColonyRoleDocument = gql` role_6 } } -`; -export const GetAllColonyRolesDocument = gql` - query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { - getRoleByTargetAddressAndColony( - targetAddress: $targetAddress - colonyAddress: { eq: $colonyAddress } - ) { - items { - id - role_0 - role_1 - role_2 - role_3 - role_5 - role_6 - } - } - } -`; +} + `; export const GetColonyHistoricRoleDocument = gql` - query GetColonyHistoricRole($id: ID!) { - getColonyHistoricRole(id: $id) { - id - } + query GetColonyHistoricRole($id: ID!) { + getColonyHistoricRole(id: $id) { + id } -`; +} + `; export const GetReputationMiningCycleMetadataDocument = gql` - query GetReputationMiningCycleMetadata($id: ID!) { - getReputationMiningCycleMetadata(id: $id) { - id - } + query GetReputationMiningCycleMetadata($id: ID!) { + getReputationMiningCycleMetadata(id: $id) { + id } -`; +} + `; export const GetSafeTransactionByTransactionHashDocument = gql` - query GetSafeTransactionByTransactionHash($transactionHash: ID!) { - getSafeTransaction(id: $transactionHash) { - id - } + query GetSafeTransactionByTransactionHash($transactionHash: ID!) { + getSafeTransaction(id: $transactionHash) { + id } -`; +} + `; export const GetUserStakeDocument = gql` - query GetUserStake($id: ID!) { - getUserStake(id: $id) { - id - amount - } + query GetUserStake($id: ID!) { + getUserStake(id: $id) { + id + amount } -`; +} + `; export const GetStatsDocument = gql` - query GetStats { - getIngestorStats(id: "STATS") { - value - } + query GetStats { + getIngestorStats(id: "STATS") { + value } -`; +} + `; export const GetTokenFromEverywhereDocument = gql` - query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { - getTokenFromEverywhere(input: $input) { - items { - id - } + query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { + getTokenFromEverywhere(input: $input) { + items { + id } } -`; +} + `; export const GetNotificationUsersDocument = gql` - query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { - listUsers(filter: $filter, limit: $limit) { - items { - notificationsData { - ...NotificationsData - } + query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { + listUsers(filter: $filter, limit: $limit) { + items { + notificationsData { + ...NotificationsData } } } - ${NotificationsData} -`; +} + ${NotificationsData}`; \ No newline at end of file From 055283e51296d95d89f156e1a5fc00d95d3a2d2c Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Wed, 6 Nov 2024 13:46:57 +0000 Subject: [PATCH 42/48] Feat: Use block timestamp as streaming payment createdAt date --- src/handlers/expenditures/streamingPaymentCreated.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 80ac6a071..906ec58a7 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -15,12 +15,13 @@ import { verbose, writeActionFromEvent, } from '~utils'; +import { getBlockChainTimestampISODate } from '~utils/dates'; export const handleStreamingPaymentCreated: EventHandler = async ( event, listener, ) => { - const { blockNumber } = event; + const { blockNumber, timestamp } = event; const { streamingPaymentId, agent: initiatorAddress } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -70,6 +71,7 @@ export const handleStreamingPaymentCreated: EventHandler = async ( amount: amount.toString(), colonyId: colonyAddress, creatorAddress: initiatorAddress, + createdAt: getBlockChainTimestampISODate(timestamp), }, }); From d8f4322802282527948be050326c7a6381f58604 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Thu, 16 Jan 2025 22:25:36 +0000 Subject: [PATCH 43/48] Chore: update generated GraphQL types --- src/graphql/generated.ts | 4951 ++++++++++++++++++++++++-------------- 1 file changed, 3164 insertions(+), 1787 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 068393f0d..4da943dba 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -1,9 +1,15 @@ 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 Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -277,7 +283,7 @@ export enum ClientType { TokenLockingClient = 'TokenLockingClient', TokenSupplierClient = 'TokenSupplierClient', VotingReputationClient = 'VotingReputationClient', - WhitelistClient = 'WhitelistClient' + WhitelistClient = 'WhitelistClient', } /** Represents a Colony within the Colony Network */ @@ -338,7 +344,6 @@ export type Colony = { version: Scalars['Int']; }; - /** Represents a Colony within the Colony Network */ export type ColonyActionsArgs = { filter?: InputMaybe; @@ -347,7 +352,6 @@ export type ColonyActionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyDomainsArgs = { filter?: InputMaybe; @@ -357,7 +361,6 @@ export type ColonyDomainsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExpendituresArgs = { createdAt?: InputMaybe; @@ -367,7 +370,6 @@ export type ColonyExpendituresArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyExtensionsArgs = { filter?: InputMaybe; @@ -377,7 +379,6 @@ export type ColonyExtensionsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyFundsClaimDataArgs = { createdAt?: InputMaybe; @@ -387,7 +388,6 @@ export type ColonyFundsClaimDataArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyRolesArgs = { filter?: InputMaybe; @@ -396,7 +396,6 @@ export type ColonyRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyStreamingPaymentsArgs = { createdAt?: InputMaybe; @@ -406,7 +405,6 @@ export type ColonyStreamingPaymentsArgs = { sortDirection?: InputMaybe; }; - /** Represents a Colony within the Colony Network */ export type ColonyTokensArgs = { filter?: InputMaybe; @@ -759,7 +757,7 @@ export enum ColonyActionType { /** An action related to upgrading a Colony's version via multiSig */ VersionUpgradeMultisig = 'VERSION_UPGRADE_MULTISIG', /** An action unrelated to the currently viewed Colony */ - WrongColony = 'WRONG_COLONY' + WrongColony = 'WRONG_COLONY', } /** Represents a Colony balance for a specific domain and token */ @@ -859,7 +857,6 @@ export type ColonyContributor = { user?: Maybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -869,7 +866,6 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1181,7 +1177,6 @@ export type ColonyMotion = { voterRewards?: Maybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1191,7 +1186,6 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1257,7 +1251,6 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; - /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1368,7 +1361,7 @@ export enum ColonyType { /** A regular Colony */ Colony = 'COLONY', /** The MetaColony, which governs the entire Colony Network */ - Metacolony = 'METACOLONY' + Metacolony = 'METACOLONY', } /** Unclaimed staking rewards for a motion */ @@ -1447,7 +1440,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP' + Top = 'TOP', } export type CreateAnnotationInput = { @@ -1473,7 +1466,9 @@ export type CreateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber: Scalars['Int']; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -1906,6 +1901,7 @@ export type CreateStreamingPaymentInput = { claims?: InputMaybe>; colonyId: Scalars['ID']; createdAt?: InputMaybe; + creatorAddress: Scalars['ID']; endTime: Scalars['String']; id?: InputMaybe; interval: Scalars['String']; @@ -2343,7 +2339,7 @@ export enum DomainColor { /** The default domain color for the root domain. Only used by the root by default and cannot be selected by the user. */ Root = 'ROOT', /** A yellow color */ - Yellow = 'YELLOW' + Yellow = 'YELLOW', } /** Input type for specifying a Domain */ @@ -2454,7 +2450,6 @@ export type Expenditure = { userStakeId?: Maybe; }; - export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2462,7 +2457,6 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; - export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2578,12 +2572,12 @@ export enum ExpenditureStatus { Cancelled = 'CANCELLED', Draft = 'DRAFT', Finalized = 'FINALIZED', - Locked = 'LOCKED' + Locked = 'LOCKED', } export enum ExpenditureType { PaymentBuilder = 'PAYMENT_BUILDER', - Staged = 'STAGED' + Staged = 'STAGED', } export enum ExtendedSupportedCurrencies { @@ -2597,7 +2591,7 @@ export enum ExtendedSupportedCurrencies { Jpy = 'JPY', Krw = 'KRW', Usd = 'USD', - Usdc = 'USDC' + Usdc = 'USDC', } export type ExtensionInstallationsCount = { @@ -2651,7 +2645,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube' + Youtube = 'Youtube', } export type FailedTransaction = { @@ -2666,7 +2660,7 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION' + Union = 'UNION', } export type FunctionParam = { @@ -2812,7 +2806,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW' + UnderReview = 'UNDER_REVIEW', } /** @@ -2882,7 +2876,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet' + StringSet = 'stringSet', } export type ModelBooleanInput = { @@ -3562,10 +3556,14 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3755,11 +3753,15 @@ export type ModelExpenditureTypeInput = { }; export type ModelExtensionInstallationsCountConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -3773,12 +3775,16 @@ export type ModelExtensionInstallationsCountConnection = { }; export type ModelExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; not?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4063,10 +4069,14 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4076,11 +4086,15 @@ export type ModelReputationMiningCycleMetadataConnection = { }; export type ModelReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSafeTransactionConditionInput = { @@ -4154,7 +4168,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC' + Desc = 'DESC', } export type ModelSplitPaymentDistributionTypeInput = { @@ -4167,6 +4181,7 @@ export type ModelStreamingPaymentConditionInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; interval?: InputMaybe; isCancelled?: InputMaybe; @@ -4196,6 +4211,7 @@ export type ModelStreamingPaymentFilterInput = { and?: InputMaybe>>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -4211,10 +4227,14 @@ export type ModelStreamingPaymentFilterInput = { }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4272,12 +4292,16 @@ export type ModelSubscriptionBooleanInput = { }; export type ModelSubscriptionCacheTotalBalanceFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; date?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; timeframePeriod?: InputMaybe; timeframeType?: InputMaybe; totalUSDC?: InputMaybe; @@ -4325,14 +4349,20 @@ export type ModelSubscriptionColonyActionFilterInput = { }; export type ModelSubscriptionColonyActionMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; customTitle?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyContributorFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; colonyReputationPercentage?: InputMaybe; contributorAddress?: InputMaybe; @@ -4341,26 +4371,34 @@ export type ModelSubscriptionColonyContributorFilterInput = { id?: InputMaybe; isVerified?: InputMaybe; isWatching?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; type?: InputMaybe; }; export type ModelSubscriptionColonyDecisionFilterInput = { actionId?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; description?: InputMaybe; id?: InputMaybe; motionDomainId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; showInDecisionsList?: InputMaybe; title?: InputMaybe; walletAddress?: InputMaybe; }; export type ModelSubscriptionColonyExtensionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; hash?: InputMaybe; id?: InputMaybe; @@ -4369,7 +4407,9 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4390,24 +4430,32 @@ export type ModelSubscriptionColonyFilterInput = { export type ModelSubscriptionColonyFundsClaimFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyFundsClaimsId?: InputMaybe; createdAt?: InputMaybe; createdAtBlock?: InputMaybe; id?: InputMaybe; isClaimed?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyHistoricRoleFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; blockNumber?: InputMaybe; colonyId?: InputMaybe; createdAt?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; isMultiSig?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role_0?: InputMaybe; role_1?: InputMaybe; role_2?: InputMaybe; @@ -4419,20 +4467,28 @@ export type ModelSubscriptionColonyHistoricRoleFilterInput = { }; export type ModelSubscriptionColonyMemberInviteFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; id?: InputMaybe; invitesRemaining?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionColonyMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; avatar?: InputMaybe; description?: InputMaybe; displayName?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; thumbnail?: InputMaybe; }; @@ -4461,7 +4517,9 @@ export type ModelSubscriptionColonyMotionFilterInput = { }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4475,7 +4533,9 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4509,7 +4569,9 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4519,28 +4581,40 @@ export type ModelSubscriptionContractEventFilterInput = { }; export type ModelSubscriptionContributorReputationFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; contributorAddress?: InputMaybe; domainId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationPercentage?: InputMaybe; reputationRaw?: InputMaybe; }; export type ModelSubscriptionCurrentNetworkInverseFeeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; inverseFee?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionCurrentVersionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; key?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4558,12 +4632,16 @@ export type ModelSubscriptionDomainFilterInput = { }; export type ModelSubscriptionDomainMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; color?: InputMaybe; description?: InputMaybe; id?: InputMaybe; name?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExpenditureFilterInput = { @@ -4588,21 +4666,29 @@ export type ModelSubscriptionExpenditureFilterInput = { }; export type ModelSubscriptionExpenditureMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; distributionType?: InputMaybe; expectedNumberOfPayouts?: InputMaybe; expectedNumberOfTokens?: InputMaybe; fundFromDomainNativeId?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionExtensionInstallationsCountFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; multiSigPermissions?: InputMaybe; oneTxPayment?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; reputationWeighted?: InputMaybe; stagedExpenditure?: InputMaybe; stakedExpenditure?: InputMaybe; @@ -4637,7 +4723,9 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4656,17 +4744,23 @@ export type ModelSubscriptionIntInput = { }; export type ModelSubscriptionLiquidationAddressFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; chainId?: InputMaybe; id?: InputMaybe; liquidationAddress?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; export type ModelSubscriptionMotionMessageFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; createdAt?: InputMaybe; initiatorAddress?: InputMaybe; messageKey?: InputMaybe; @@ -4677,12 +4771,16 @@ export type ModelSubscriptionMotionMessageFilterInput = { }; export type ModelSubscriptionMultiSigUserSignatureFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; multiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; role?: InputMaybe; userAddress?: InputMaybe; vote?: InputMaybe; @@ -4690,20 +4788,28 @@ export type ModelSubscriptionMultiSigUserSignatureFilterInput = { export type ModelSubscriptionNotificationsDataFilterInput = { adminNotificationsDisabled?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; magicbellUserId?: InputMaybe; mentionNotificationsDisabled?: InputMaybe; mutedColonyAddresses?: InputMaybe; notificationsDisabled?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; paymentNotificationsDisabled?: InputMaybe; userAddress?: InputMaybe; }; export type ModelSubscriptionPrivateBetaInviteCodeFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; shareableInvites?: InputMaybe; userId?: InputMaybe; }; @@ -4726,20 +4832,28 @@ export type ModelSubscriptionProfileFilterInput = { }; export type ModelSubscriptionReputationMiningCycleMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; lastCompletedAt?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionSafeTransactionDataFilterInput = { abi?: InputMaybe; amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; contractFunction?: InputMaybe; data?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rawAmount?: InputMaybe; tokenAddress?: InputMaybe; transactionHash?: InputMaybe; @@ -4747,16 +4861,23 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStreamingPaymentFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; @@ -4764,17 +4885,23 @@ export type ModelSubscriptionStreamingPaymentFilterInput = { isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; recipientAddress?: InputMaybe; startTime?: InputMaybe; tokenAddress?: InputMaybe; }; export type ModelSubscriptionStreamingPaymentMetadataFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStringInput = { @@ -4793,9 +4920,13 @@ export type ModelSubscriptionStringInput = { }; export type ModelSubscriptionTokenExchangeRateFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; date?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; tokenId?: InputMaybe; }; @@ -4875,12 +5006,16 @@ export type ModelSubscriptionUserTokensFilterInput = { export type ModelSubscriptionVoterRewardsHistoryFilterInput = { amount?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; motionId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; userAddress?: InputMaybe; }; @@ -5313,7 +5448,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject' + Reject = 'Reject', } /** Root mutation type */ @@ -5471,979 +5606,838 @@ export type Mutation = { validateUserInvite?: Maybe; }; - /** Root mutation type */ export type MutationBridgeCreateBankAccountArgs = { input: BridgeCreateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeUpdateBankAccountArgs = { input: BridgeUpdateBankAccountInput; }; - /** Root mutation type */ export type MutationBridgeXyzMutationArgs = { input: BridgeXyzMutationInput; }; - /** Root mutation type */ export type MutationCreateAnnotationArgs = { condition?: InputMaybe; input: CreateAnnotationInput; }; - /** Root mutation type */ export type MutationCreateCacheTotalBalanceArgs = { condition?: InputMaybe; input: CreateCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationCreateColonyArgs = { condition?: InputMaybe; input: CreateColonyInput; }; - /** Root mutation type */ export type MutationCreateColonyActionArgs = { condition?: InputMaybe; input: CreateColonyActionInput; }; - /** Root mutation type */ export type MutationCreateColonyActionMetadataArgs = { condition?: InputMaybe; input: CreateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyContributorArgs = { condition?: InputMaybe; input: CreateColonyContributorInput; }; - /** Root mutation type */ export type MutationCreateColonyDecisionArgs = { condition?: InputMaybe; input: CreateColonyDecisionInput; }; - /** Root mutation type */ export type MutationCreateColonyEtherealMetadataArgs = { input: CreateColonyEtherealMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyExtensionArgs = { condition?: InputMaybe; input: CreateColonyExtensionInput; }; - /** Root mutation type */ export type MutationCreateColonyFundsClaimArgs = { condition?: InputMaybe; input: CreateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationCreateColonyHistoricRoleArgs = { condition?: InputMaybe; input: CreateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyMemberInviteArgs = { condition?: InputMaybe; input: CreateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationCreateColonyMetadataArgs = { condition?: InputMaybe; input: CreateColonyMetadataInput; }; - /** Root mutation type */ export type MutationCreateColonyMotionArgs = { condition?: InputMaybe; input: CreateColonyMotionInput; }; - /** Root mutation type */ export type MutationCreateColonyMultiSigArgs = { condition?: InputMaybe; input: CreateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationCreateColonyRoleArgs = { condition?: InputMaybe; input: CreateColonyRoleInput; }; - /** Root mutation type */ export type MutationCreateColonyTokensArgs = { condition?: InputMaybe; input: CreateColonyTokensInput; }; - /** Root mutation type */ export type MutationCreateContractEventArgs = { condition?: InputMaybe; input: CreateContractEventInput; }; - /** Root mutation type */ export type MutationCreateContributorReputationArgs = { condition?: InputMaybe; input: CreateContributorReputationInput; }; - /** Root mutation type */ export type MutationCreateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: CreateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationCreateCurrentVersionArgs = { condition?: InputMaybe; input: CreateCurrentVersionInput; }; - /** Root mutation type */ export type MutationCreateDomainArgs = { condition?: InputMaybe; input: CreateDomainInput; }; - /** Root mutation type */ export type MutationCreateDomainMetadataArgs = { condition?: InputMaybe; input: CreateDomainMetadataInput; }; - /** Root mutation type */ export type MutationCreateExpenditureArgs = { condition?: InputMaybe; input: CreateExpenditureInput; }; - /** Root mutation type */ export type MutationCreateExpenditureMetadataArgs = { condition?: InputMaybe; input: CreateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationCreateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: CreateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationCreateIngestorStatsArgs = { condition?: InputMaybe; input: CreateIngestorStatsInput; }; - /** Root mutation type */ export type MutationCreateLiquidationAddressArgs = { condition?: InputMaybe; input: CreateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationCreateMotionMessageArgs = { condition?: InputMaybe; input: CreateMotionMessageInput; }; - /** Root mutation type */ export type MutationCreateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: CreateMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationCreateNotificationsDataArgs = { condition?: InputMaybe; input: CreateNotificationsDataInput; }; - /** Root mutation type */ export type MutationCreatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: CreatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationCreateProfileArgs = { condition?: InputMaybe; input: CreateProfileInput; }; - /** Root mutation type */ export type MutationCreateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: CreateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionArgs = { condition?: InputMaybe; input: CreateSafeTransactionInput; }; - /** Root mutation type */ export type MutationCreateSafeTransactionDataArgs = { condition?: InputMaybe; input: CreateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentArgs = { condition?: InputMaybe; input: CreateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationCreateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: CreateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationCreateTokenArgs = { condition?: InputMaybe; input: CreateTokenInput; }; - /** Root mutation type */ export type MutationCreateTokenExchangeRateArgs = { condition?: InputMaybe; input: CreateTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationCreateTransactionArgs = { condition?: InputMaybe; input: CreateTransactionInput; }; - /** Root mutation type */ export type MutationCreateUniqueUserArgs = { input?: InputMaybe; }; - /** Root mutation type */ export type MutationCreateUserArgs = { condition?: InputMaybe; input: CreateUserInput; }; - /** Root mutation type */ export type MutationCreateUserNotificationsDataArgs = { input: CreateUserNotificationsDataInput; }; - /** Root mutation type */ export type MutationCreateUserStakeArgs = { condition?: InputMaybe; input: CreateUserStakeInput; }; - /** Root mutation type */ export type MutationCreateUserTokensArgs = { condition?: InputMaybe; input: CreateUserTokensInput; }; - /** Root mutation type */ export type MutationCreateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: CreateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationDeleteAnnotationArgs = { condition?: InputMaybe; input: DeleteAnnotationInput; }; - /** Root mutation type */ export type MutationDeleteCacheTotalBalanceArgs = { condition?: InputMaybe; input: DeleteCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationDeleteColonyArgs = { condition?: InputMaybe; input: DeleteColonyInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionArgs = { condition?: InputMaybe; input: DeleteColonyActionInput; }; - /** Root mutation type */ export type MutationDeleteColonyActionMetadataArgs = { condition?: InputMaybe; input: DeleteColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyContributorArgs = { condition?: InputMaybe; input: DeleteColonyContributorInput; }; - /** Root mutation type */ export type MutationDeleteColonyDecisionArgs = { condition?: InputMaybe; input: DeleteColonyDecisionInput; }; - /** Root mutation type */ export type MutationDeleteColonyExtensionArgs = { condition?: InputMaybe; input: DeleteColonyExtensionInput; }; - /** Root mutation type */ export type MutationDeleteColonyFundsClaimArgs = { condition?: InputMaybe; input: DeleteColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationDeleteColonyHistoricRoleArgs = { condition?: InputMaybe; input: DeleteColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyMemberInviteArgs = { condition?: InputMaybe; input: DeleteColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationDeleteColonyMetadataArgs = { condition?: InputMaybe; input: DeleteColonyMetadataInput; }; - /** Root mutation type */ export type MutationDeleteColonyMotionArgs = { condition?: InputMaybe; input: DeleteColonyMotionInput; }; - /** Root mutation type */ export type MutationDeleteColonyMultiSigArgs = { condition?: InputMaybe; input: DeleteColonyMultiSigInput; }; - /** Root mutation type */ export type MutationDeleteColonyRoleArgs = { condition?: InputMaybe; input: DeleteColonyRoleInput; }; - /** Root mutation type */ export type MutationDeleteColonyTokensArgs = { condition?: InputMaybe; input: DeleteColonyTokensInput; }; - /** Root mutation type */ export type MutationDeleteContractEventArgs = { condition?: InputMaybe; input: DeleteContractEventInput; }; - /** Root mutation type */ export type MutationDeleteContributorReputationArgs = { condition?: InputMaybe; input: DeleteContributorReputationInput; }; - /** Root mutation type */ export type MutationDeleteCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: DeleteCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationDeleteCurrentVersionArgs = { condition?: InputMaybe; input: DeleteCurrentVersionInput; }; - /** Root mutation type */ export type MutationDeleteDomainArgs = { condition?: InputMaybe; input: DeleteDomainInput; }; - /** Root mutation type */ export type MutationDeleteDomainMetadataArgs = { condition?: InputMaybe; input: DeleteDomainMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureArgs = { condition?: InputMaybe; input: DeleteExpenditureInput; }; - /** Root mutation type */ export type MutationDeleteExpenditureMetadataArgs = { condition?: InputMaybe; input: DeleteExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationDeleteExtensionInstallationsCountArgs = { condition?: InputMaybe; input: DeleteExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationDeleteIngestorStatsArgs = { condition?: InputMaybe; input: DeleteIngestorStatsInput; }; - /** Root mutation type */ export type MutationDeleteLiquidationAddressArgs = { condition?: InputMaybe; input: DeleteLiquidationAddressInput; }; - /** Root mutation type */ export type MutationDeleteMotionMessageArgs = { condition?: InputMaybe; input: DeleteMotionMessageInput; }; - /** Root mutation type */ export type MutationDeleteMultiSigUserSignatureArgs = { condition?: InputMaybe; input: DeleteMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationDeleteNotificationsDataArgs = { condition?: InputMaybe; input: DeleteNotificationsDataInput; }; - /** Root mutation type */ export type MutationDeletePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: DeletePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationDeleteProfileArgs = { condition?: InputMaybe; input: DeleteProfileInput; }; - /** Root mutation type */ export type MutationDeleteReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: DeleteReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionArgs = { condition?: InputMaybe; input: DeleteSafeTransactionInput; }; - /** Root mutation type */ export type MutationDeleteSafeTransactionDataArgs = { condition?: InputMaybe; input: DeleteSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentInput; }; - /** Root mutation type */ export type MutationDeleteStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: DeleteStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationDeleteTokenArgs = { condition?: InputMaybe; input: DeleteTokenInput; }; - /** Root mutation type */ export type MutationDeleteTokenExchangeRateArgs = { condition?: InputMaybe; input: DeleteTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationDeleteTransactionArgs = { condition?: InputMaybe; input: DeleteTransactionInput; }; - /** Root mutation type */ export type MutationDeleteUserArgs = { condition?: InputMaybe; input: DeleteUserInput; }; - /** Root mutation type */ export type MutationDeleteUserStakeArgs = { condition?: InputMaybe; input: DeleteUserStakeInput; }; - /** Root mutation type */ export type MutationDeleteUserTokensArgs = { condition?: InputMaybe; input: DeleteUserTokensInput; }; - /** Root mutation type */ export type MutationDeleteVoterRewardsHistoryArgs = { condition?: InputMaybe; input: DeleteVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationInitializeUserArgs = { input: InitializeUserInput; }; - /** Root mutation type */ export type MutationUpdateAnnotationArgs = { condition?: InputMaybe; input: UpdateAnnotationInput; }; - /** Root mutation type */ export type MutationUpdateCacheTotalBalanceArgs = { condition?: InputMaybe; input: UpdateCacheTotalBalanceInput; }; - /** Root mutation type */ export type MutationUpdateColonyArgs = { condition?: InputMaybe; input: UpdateColonyInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionArgs = { condition?: InputMaybe; input: UpdateColonyActionInput; }; - /** Root mutation type */ export type MutationUpdateColonyActionMetadataArgs = { condition?: InputMaybe; input: UpdateColonyActionMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyContributorArgs = { condition?: InputMaybe; input: UpdateColonyContributorInput; }; - /** Root mutation type */ export type MutationUpdateColonyDecisionArgs = { condition?: InputMaybe; input: UpdateColonyDecisionInput; }; - /** Root mutation type */ export type MutationUpdateColonyExtensionArgs = { condition?: InputMaybe; input: UpdateColonyExtensionInput; }; - /** Root mutation type */ export type MutationUpdateColonyFundsClaimArgs = { condition?: InputMaybe; input: UpdateColonyFundsClaimInput; }; - /** Root mutation type */ export type MutationUpdateColonyHistoricRoleArgs = { condition?: InputMaybe; input: UpdateColonyHistoricRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyMemberInviteArgs = { condition?: InputMaybe; input: UpdateColonyMemberInviteInput; }; - /** Root mutation type */ export type MutationUpdateColonyMetadataArgs = { condition?: InputMaybe; input: UpdateColonyMetadataInput; }; - /** Root mutation type */ export type MutationUpdateColonyMotionArgs = { condition?: InputMaybe; input: UpdateColonyMotionInput; }; - /** Root mutation type */ export type MutationUpdateColonyMultiSigArgs = { condition?: InputMaybe; input: UpdateColonyMultiSigInput; }; - /** Root mutation type */ export type MutationUpdateColonyRoleArgs = { condition?: InputMaybe; input: UpdateColonyRoleInput; }; - /** Root mutation type */ export type MutationUpdateColonyTokensArgs = { condition?: InputMaybe; input: UpdateColonyTokensInput; }; - /** Root mutation type */ export type MutationUpdateContractEventArgs = { condition?: InputMaybe; input: UpdateContractEventInput; }; - /** Root mutation type */ export type MutationUpdateContributorReputationArgs = { condition?: InputMaybe; input: UpdateContributorReputationInput; }; - /** Root mutation type */ export type MutationUpdateContributorsWithReputationArgs = { input: UpdateContributorsWithReputationInput; }; - /** Root mutation type */ export type MutationUpdateCurrentNetworkInverseFeeArgs = { condition?: InputMaybe; input: UpdateCurrentNetworkInverseFeeInput; }; - /** Root mutation type */ export type MutationUpdateCurrentVersionArgs = { condition?: InputMaybe; input: UpdateCurrentVersionInput; }; - /** Root mutation type */ export type MutationUpdateDomainArgs = { condition?: InputMaybe; input: UpdateDomainInput; }; - /** Root mutation type */ export type MutationUpdateDomainMetadataArgs = { condition?: InputMaybe; input: UpdateDomainMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureArgs = { condition?: InputMaybe; input: UpdateExpenditureInput; }; - /** Root mutation type */ export type MutationUpdateExpenditureMetadataArgs = { condition?: InputMaybe; input: UpdateExpenditureMetadataInput; }; - /** Root mutation type */ export type MutationUpdateExtensionInstallationsCountArgs = { condition?: InputMaybe; input: UpdateExtensionInstallationsCountInput; }; - /** Root mutation type */ export type MutationUpdateIngestorStatsArgs = { condition?: InputMaybe; input: UpdateIngestorStatsInput; }; - /** Root mutation type */ export type MutationUpdateLiquidationAddressArgs = { condition?: InputMaybe; input: UpdateLiquidationAddressInput; }; - /** Root mutation type */ export type MutationUpdateMotionMessageArgs = { condition?: InputMaybe; input: UpdateMotionMessageInput; }; - /** Root mutation type */ export type MutationUpdateMultiSigUserSignatureArgs = { condition?: InputMaybe; input: UpdateMultiSigUserSignatureInput; }; - /** Root mutation type */ export type MutationUpdateNotificationsDataArgs = { condition?: InputMaybe; input: UpdateNotificationsDataInput; }; - /** Root mutation type */ export type MutationUpdatePrivateBetaInviteCodeArgs = { condition?: InputMaybe; input: UpdatePrivateBetaInviteCodeInput; }; - /** Root mutation type */ export type MutationUpdateProfileArgs = { condition?: InputMaybe; input: UpdateProfileInput; }; - /** Root mutation type */ export type MutationUpdateReputationMiningCycleMetadataArgs = { condition?: InputMaybe; input: UpdateReputationMiningCycleMetadataInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionArgs = { condition?: InputMaybe; input: UpdateSafeTransactionInput; }; - /** Root mutation type */ export type MutationUpdateSafeTransactionDataArgs = { condition?: InputMaybe; input: UpdateSafeTransactionDataInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentInput; }; - /** Root mutation type */ export type MutationUpdateStreamingPaymentMetadataArgs = { condition?: InputMaybe; input: UpdateStreamingPaymentMetadataInput; }; - /** Root mutation type */ export type MutationUpdateTokenArgs = { condition?: InputMaybe; input: UpdateTokenInput; }; - /** Root mutation type */ export type MutationUpdateTokenExchangeRateArgs = { condition?: InputMaybe; input: UpdateTokenExchangeRateInput; }; - /** Root mutation type */ export type MutationUpdateTransactionArgs = { condition?: InputMaybe; input: UpdateTransactionInput; }; - /** Root mutation type */ export type MutationUpdateUserArgs = { condition?: InputMaybe; input: UpdateUserInput; }; - /** Root mutation type */ export type MutationUpdateUserStakeArgs = { condition?: InputMaybe; input: UpdateUserStakeInput; }; - /** Root mutation type */ export type MutationUpdateUserTokensArgs = { condition?: InputMaybe; input: UpdateUserTokensInput; }; - /** Root mutation type */ export type MutationUpdateVoterRewardsHistoryArgs = { condition?: InputMaybe; input: UpdateVoterRewardsHistoryInput; }; - /** Root mutation type */ export type MutationValidateUserInviteArgs = { input: ValidateUserInviteInput; @@ -6531,7 +6525,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET' + Mainnet = 'MAINNET', } /** Type of notifications that can be sent */ @@ -6562,7 +6556,7 @@ export enum NotificationType { MultisigActionRejected = 'MULTISIG_ACTION_REJECTED', NewColonyVersion = 'NEW_COLONY_VERSION', NewExtensionVersion = 'NEW_EXTENSION_VERSION', - PermissionsAction = 'PERMISSIONS_ACTION' + PermissionsAction = 'PERMISSIONS_ACTION', } /** Holds the notifications data for the user, such as their unique Magicbell user id, and their notifications preferences. */ @@ -6868,16 +6862,15 @@ export type Query = { listVoterRewardsHistories?: Maybe; searchColonyActions?: Maybe; searchColonyContributors?: Maybe; + searchStreamingPayments?: Maybe; tokenExhangeRateByTokenId?: Maybe; }; - /** Root query type */ export type QueryBridgeGetUserLiquidationAddressArgs = { userAddress: Scalars['String']; }; - /** Root query type */ export type QueryCacheTotalBalanceByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -6888,7 +6881,6 @@ export type QueryCacheTotalBalanceByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -6898,7 +6890,6 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -6908,7 +6899,6 @@ export type QueryGetActionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetActionsByColonyArgs = { colonyId: Scalars['ID']; @@ -6919,19 +6909,16 @@ export type QueryGetActionsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetAnnotationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCacheTotalBalanceArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColoniesByNativeTokenIdArgs = { filter?: InputMaybe; @@ -6941,19 +6928,16 @@ export type QueryGetColoniesByNativeTokenIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyActionByMotionIdArgs = { filter?: InputMaybe; @@ -6963,7 +6947,6 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -6973,13 +6956,11 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -6989,7 +6970,6 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -6999,7 +6979,6 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -7009,19 +6988,16 @@ export type QueryGetColonyByTypeArgs = { type: ColonyType; }; - /** Root query type */ export type QueryGetColonyContributorArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyDecisionByActionIdArgs = { actionId: Scalars['ID']; @@ -7031,7 +7007,6 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -7042,25 +7017,21 @@ export type QueryGetColonyDecisionByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyExtensionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyFundsClaimArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyHistoricRoleByDateArgs = { createdAt?: InputMaybe; @@ -7071,55 +7042,46 @@ export type QueryGetColonyHistoricRoleByDateArgs = { type: Scalars['String']; }; - /** Root query type */ export type QueryGetColonyMemberInviteArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMotionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyMultiSigArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyRoleArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContractEventArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorReputationArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetContributorsByAddressArgs = { colonyReputationPercentage?: InputMaybe; @@ -7130,7 +7092,6 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7141,19 +7102,16 @@ export type QueryGetContributorsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetCurrentNetworkInverseFeeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetCurrentVersionByKeyArgs = { filter?: InputMaybe; @@ -7163,19 +7121,16 @@ export type QueryGetCurrentVersionByKeyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainBalanceArgs = { input: DomainBalanceArguments; }; - /** Root query type */ export type QueryGetDomainByNativeSkillIdArgs = { filter?: InputMaybe; @@ -7186,13 +7141,11 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7203,19 +7156,16 @@ export type QueryGetDomainsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpenditureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpenditureMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExpendituresByColonyArgs = { colonyId: Scalars['ID']; @@ -7226,7 +7176,6 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7237,7 +7186,6 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7248,13 +7196,11 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7264,7 +7210,6 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7275,19 +7220,16 @@ export type QueryGetFundsClaimsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetIngestorStatsArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetLiquidationAddressesByUserAddressArgs = { filter?: InputMaybe; @@ -7297,7 +7239,6 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7307,7 +7248,6 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionByStreamingPaymentIdArgs = { filter?: InputMaybe; @@ -7317,7 +7257,6 @@ export type QueryGetMotionByStreamingPaymentIdArgs = { streamingPaymentId: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByTransactionHashArgs = { filter?: InputMaybe; @@ -7327,13 +7266,11 @@ export type QueryGetMotionByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7344,19 +7281,16 @@ export type QueryGetMotionMessageByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionStateArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionTimeoutPeriodsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7367,7 +7301,6 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7377,7 +7310,6 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7387,7 +7319,6 @@ export type QueryGetMultiSigByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByTransactionHashArgs = { filter?: InputMaybe; @@ -7397,13 +7328,11 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7413,25 +7342,21 @@ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetNotificationsDataArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetPrivateBetaInviteCodeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetProfileByEmailArgs = { email: Scalars['AWSEmail']; @@ -7441,7 +7366,6 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7451,13 +7375,11 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7468,7 +7390,6 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7479,7 +7400,6 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7490,37 +7410,31 @@ export type QueryGetRoleByTargetAddressAndColonyArgs = { targetAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionDataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetSafeTransactionStatusArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetStreamingPaymentArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetStreamingPaymentMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetStreamingPaymentsByColonyArgs = { colonyId: Scalars['ID']; @@ -7531,13 +7445,11 @@ export type QueryGetStreamingPaymentsByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTokenArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenByAddressArgs = { filter?: InputMaybe; @@ -7547,19 +7459,16 @@ export type QueryGetTokenByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTokenExchangeRateArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTokenFromEverywhereArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetTokensByTypeArgs = { filter?: InputMaybe; @@ -7569,13 +7478,11 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; - /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7586,7 +7493,6 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7597,13 +7503,11 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7613,7 +7517,6 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7623,7 +7526,6 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7633,13 +7535,11 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7650,13 +7550,11 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7667,19 +7565,16 @@ export type QueryGetUserStakesArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserTokenBalanceArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserTokensArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserVoterRewardsArgs = { createdAt?: InputMaybe; @@ -7690,19 +7585,16 @@ export type QueryGetUserVoterRewardsArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetVoterRewardsArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetVoterRewardsHistoryArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryListAnnotationsArgs = { filter?: InputMaybe; @@ -7710,7 +7602,6 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7718,7 +7609,6 @@ export type QueryListCacheTotalBalancesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColoniesArgs = { filter?: InputMaybe; @@ -7726,7 +7616,6 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7734,7 +7623,6 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7742,7 +7630,6 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7750,7 +7637,6 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7758,7 +7644,6 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7766,7 +7651,6 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7774,7 +7658,6 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7782,7 +7665,6 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7790,7 +7672,6 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7798,7 +7679,6 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7806,7 +7686,6 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7814,7 +7693,6 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7822,7 +7700,6 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7830,7 +7707,6 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7838,7 +7714,6 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7846,7 +7721,6 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7854,7 +7728,6 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7862,7 +7735,6 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7870,7 +7742,6 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7878,7 +7749,6 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7886,7 +7756,6 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7894,7 +7763,6 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7902,7 +7770,6 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7910,7 +7777,6 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -7918,7 +7784,6 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -7926,7 +7791,6 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -7934,7 +7798,6 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListNotificationsDataArgs = { filter?: InputMaybe; @@ -7944,7 +7807,6 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; - /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -7952,7 +7814,6 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -7960,7 +7821,6 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -7968,7 +7828,6 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -7976,7 +7835,6 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -7984,7 +7842,6 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -7992,7 +7849,6 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -8000,7 +7856,6 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -8008,7 +7863,6 @@ export type QueryListTokenExchangeRatesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokensArgs = { filter?: InputMaybe; @@ -8016,7 +7870,6 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -8024,7 +7877,6 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -8032,7 +7884,6 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -8040,7 +7891,6 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -8048,7 +7898,6 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -8056,10 +7905,11 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8067,10 +7917,11 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; - /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -8078,6 +7929,17 @@ export type QuerySearchColonyContributorsArgs = { sort?: InputMaybe>>; }; +/** Root query type */ +export type QuerySearchStreamingPaymentsArgs = { + aggregates?: InputMaybe< + Array> + >; + filter?: InputMaybe; + from?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sort?: InputMaybe>>; +}; /** Root query type */ export type QueryTokenExhangeRateByTokenIdArgs = { @@ -8122,7 +7984,6 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; - export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8156,7 +8017,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT' + TransferNft = 'TRANSFER_NFT', } export type SearchableAggregateBucketResult = { @@ -8170,7 +8031,9 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = + | SearchableAggregateBucketResult + | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8188,7 +8051,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms' + Terms = 'terms', } export type SearchableBooleanFilterInput = { @@ -8232,7 +8095,7 @@ export enum SearchableColonyActionAggregateField { ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyActionAggregationInput = { @@ -8331,7 +8194,7 @@ export enum SearchableColonyActionSortableFields { ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export enum SearchableColonyContributorAggregateField { @@ -8345,7 +8208,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyContributorAggregationInput = { @@ -8394,7 +8257,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableFloatFilterInput = { @@ -8436,7 +8299,83 @@ export type SearchableIntFilterInput = { export enum SearchableSortDirection { Asc = 'asc', - Desc = 'desc' + Desc = 'desc', +} + +export enum SearchableStreamingPaymentAggregateField { + Amount = 'amount', + ColonyId = 'colonyId', + CreatedAt = 'createdAt', + CreatorAddress = 'creatorAddress', + EndTime = 'endTime', + Id = 'id', + Interval = 'interval', + IsCancelled = 'isCancelled', + IsWaived = 'isWaived', + NativeDomainId = 'nativeDomainId', + NativeId = 'nativeId', + RecipientAddress = 'recipientAddress', + StartTime = 'startTime', + TokenAddress = 'tokenAddress', + UpdatedAt = 'updatedAt', +} + +export type SearchableStreamingPaymentAggregationInput = { + field: SearchableStreamingPaymentAggregateField; + name: Scalars['String']; + type: SearchableAggregateType; +}; + +export type SearchableStreamingPaymentConnection = { + __typename?: 'SearchableStreamingPaymentConnection'; + aggregateItems: Array>; + items: Array>; + nextToken?: Maybe; + total?: Maybe; +}; + +export type SearchableStreamingPaymentFilterInput = { + amount?: InputMaybe; + and?: InputMaybe>>; + colonyId?: InputMaybe; + createdAt?: InputMaybe; + creatorAddress?: InputMaybe; + endTime?: InputMaybe; + id?: InputMaybe; + interval?: InputMaybe; + isCancelled?: InputMaybe; + isWaived?: InputMaybe; + nativeDomainId?: InputMaybe; + nativeId?: InputMaybe; + not?: InputMaybe; + or?: InputMaybe>>; + recipientAddress?: InputMaybe; + startTime?: InputMaybe; + tokenAddress?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type SearchableStreamingPaymentSortInput = { + direction?: InputMaybe; + field?: InputMaybe; +}; + +export enum SearchableStreamingPaymentSortableFields { + Amount = 'amount', + ColonyId = 'colonyId', + CreatedAt = 'createdAt', + CreatorAddress = 'creatorAddress', + EndTime = 'endTime', + Id = 'id', + Interval = 'interval', + IsCancelled = 'isCancelled', + IsWaived = 'isWaived', + NativeDomainId = 'nativeDomainId', + NativeId = 'nativeId', + RecipientAddress = 'recipientAddress', + StartTime = 'startTime', + TokenAddress = 'tokenAddress', + UpdatedAt = 'updatedAt', } export type SearchableStringFilterInput = { @@ -8489,13 +8428,13 @@ export enum SortingMethod { /** Sort members by lowest reputation */ ByLowestRep = 'BY_LOWEST_REP', /** Sort members by having more permissions */ - ByMorePermissions = 'BY_MORE_PERMISSIONS' + ByMorePermissions = 'BY_MORE_PERMISSIONS', } export enum SplitPaymentDistributionType { Equal = 'EQUAL', Reputation = 'REPUTATION', - Unequal = 'UNEQUAL' + Unequal = 'UNEQUAL', } export type StakedExpenditureParams = { @@ -8538,6 +8477,8 @@ export type StreamingPayment = { /** Colony ID (address) to which the expenditure belongs */ colonyId: Scalars['ID']; createdAt: Scalars['AWSDateTime']; + /** Address of the stream creator, can be a user or an extension */ + creatorAddress: Scalars['ID']; endTime: Scalars['String']; id: Scalars['ID']; interval: Scalars['String']; @@ -8557,7 +8498,6 @@ export type StreamingPayment = { updatedAt: Scalars['AWSDateTime']; }; - export type StreamingPaymentActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8565,7 +8505,6 @@ export type StreamingPaymentActionsArgs = { sortDirection?: InputMaybe; }; - export type StreamingPaymentMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -8615,7 +8554,7 @@ export type StreamingPaymentClaimInput = { export enum StreamingPaymentEndCondition { FixedTime = 'FIXED_TIME', LimitReached = 'LIMIT_REACHED', - WhenCancelled = 'WHEN_CANCELLED' + WhenCancelled = 'WHEN_CANCELLED', } export type StreamingPaymentMetadata = { @@ -8781,662 +8720,530 @@ export type Subscription = { onUpdateVoterRewardsHistory?: Maybe; }; - export type SubscriptionOnCreateAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnCreateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeletePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnDeleteVoterRewardsHistoryArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateAnnotationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCacheTotalBalanceArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyActionMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyContributorArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyDecisionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyExtensionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyFundsClaimArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyHistoricRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMemberInviteArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMotionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyMultiSigArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyRoleArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateColonyTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContractEventArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateContributorReputationArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentNetworkInverseFeeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateCurrentVersionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateDomainMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExpenditureMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateExtensionInstallationsCountArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateIngestorStatsArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateLiquidationAddressArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMotionMessageArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateMultiSigUserSignatureArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateNotificationsDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdatePrivateBetaInviteCodeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateProfileArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateReputationMiningCycleMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateSafeTransactionDataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateStreamingPaymentMetadataArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTokenArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTokenExchangeRateArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateTransactionArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserStakeArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateUserTokensArgs = { filter?: InputMaybe; }; - export type SubscriptionOnUpdateVoterRewardsHistoryArgs = { filter?: InputMaybe; }; @@ -9452,7 +9259,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD' + Usd = 'USD', } /** Return type for domain balance for a timeframe item */ @@ -9469,7 +9276,7 @@ export enum TimeframeType { Daily = 'DAILY', Monthly = 'MONTHLY', Total = 'TOTAL', - Weekly = 'WEEKLY' + Weekly = 'WEEKLY', } /** Represents an ERC20-compatible token that is used by Colonies and users */ @@ -9500,7 +9307,6 @@ export type Token = { validated?: Maybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9509,7 +9315,6 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9566,7 +9371,7 @@ export enum TokenType { /** A (ERC20-compatible) token that was deployed with Colony. It has a few more features, like minting through the Colony itself */ Colony = 'COLONY', /** An ERC20-compatible token */ - Erc20 = 'ERC20' + Erc20 = 'ERC20', } /** Represents a transaction made in a colony by a user */ @@ -9645,7 +9450,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL' + Unsuccessful = 'UNSUCCESSFUL', } export type TransactionGroup = { @@ -9676,7 +9481,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED' + Succeeded = 'SUCCEEDED', } export type UpdateAnnotationInput = { @@ -9702,7 +9507,9 @@ export type UpdateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber?: InputMaybe; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -10141,6 +9948,7 @@ export type UpdateStreamingPaymentInput = { claims?: InputMaybe>; colonyId?: InputMaybe; createdAt?: InputMaybe; + creatorAddress?: InputMaybe; endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; @@ -10267,7 +10075,6 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; - /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -10276,7 +10083,6 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10286,7 +10092,6 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10295,7 +10100,6 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10343,7 +10147,7 @@ export type UserStake = { /** Type of stake a user can make */ export enum UserStakeType { Motion = 'MOTION', - StakedExpenditure = 'STAKED_EXPENDITURE' + StakedExpenditure = 'STAKED_EXPENDITURE', } export type UserTokens = { @@ -10461,484 +10265,1235 @@ export type VotingReputationParamsInput = { voterRewardFraction: Scalars['String']; }; -export type ActionMetadataInfoFragment = { __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null }; - -export type ColonyFragment = { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null }; - -export type ColonyMetadataFragment = { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null }; +export type ActionMetadataInfoFragment = { + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ __typename?: 'Payment'; recipientAddress: string }> | null; +}; + +export type ColonyFragment = { + __typename?: 'Colony'; + colonyAddress: string; + nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + tokens?: { + __typename?: 'ModelColonyTokensConnection'; + items: Array<{ + __typename?: 'ColonyTokens'; + id: string; + tokenAddress: string; + } | null>; + } | null; + motionsWithUnclaimedStakes?: Array<{ + __typename?: 'ColonyUnclaimedStake'; + motionId: string; + unclaimedRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + }> | null; + domains?: { + __typename?: 'ModelDomainConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + } | null>; + } | null; +}; + +export type ColonyMetadataFragment = { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; +}; + +export type ColonyWithRootRolesFragment = { + __typename?: 'Colony'; + id: string; + roles?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + targetUser?: { + __typename?: 'User'; + id: string; + profile?: { + __typename?: 'Profile'; + displayName?: string | null; + id: string; + } | null; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; +}; + +export type ExpenditureBalanceFragment = { + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; +}; -export type ColonyWithRootRolesFragment = { __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; +export type ExpenditureFragment = { + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; +}; + +export type ExpenditureSlotFragment = { + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; +}; + +export type StreamingPaymentFragment = { + __typename?: 'StreamingPayment'; + id: string; + startTime: string; + endTime: string; + tokenAddress: string; + amount: string; + interval: string; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + timestamp: string; + }> | null; +}; + +export type StreamingPaymentMetadataFragment = { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; +}; -export type ExpenditureBalanceFragment = { __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }; +export type StreamingPaymentChangesFragment = { + __typename?: 'StreamingPaymentChanges'; + startTime: string; + endTime: string; + interval: string; + amount: string; +}; -export type ExpenditureFragment = { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null }; +export type ExtensionFragment = { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; +}; -export type ExpenditureSlotFragment = { __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }; - -export type StreamingPaymentFragment = { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null }; - -export type StreamingPaymentMetadataFragment = { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null }; - -export type StreamingPaymentChangesFragment = { __typename?: 'StreamingPaymentChanges', startTime: string, endTime: string, interval: string, amount: string }; - -export type ExtensionFragment = { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number }; - -export type ColonyMotionFragment = { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } }; - -export type VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }; - -export type StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; - -export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; - -export type UserMotionStakesFragment = { __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }; +export type ColonyMotionFragment = { + __typename?: 'ColonyMotion'; + id: string; + nativeMotionId: string; + requiredStake: string; + remainingStakes: Array; + userMinStake: string; + nativeMotionDomainId: string; + isFinalized: boolean; + createdBy: string; + repSubmitted: string; + skillRep: string; + hasObjection: boolean; + motionDomainId: string; + isDecision: boolean; + transactionHash: string; + expenditureId?: string | null; + streamingPaymentId?: string | null; + pendingStreamingPaymentMetadataId?: string | null; + motionStakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + }; + usersStakes: Array<{ + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + }>; + stakerRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + voterRecord: Array<{ + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; + }>; + revealedVotes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; + motionStateHistory: { + __typename?: 'MotionStateHistory'; + hasVoted: boolean; + hasPassed: boolean; + hasFailed: boolean; + hasFailedNotFinalizable: boolean; + inRevealPhase: boolean; + yaySideFullyStakedAt?: string | null; + naySideFullyStakedAt?: string | null; + allVotesSubmittedAt?: string | null; + allVotesRevealedAt?: string | null; + endedAt?: string | null; + finalizedAt?: string | null; + }; +}; + +export type VoterRecordFragment = { + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; +}; -export type DomainMetadataFragment = { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null }; +export type StakerRewardFragment = { + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; +}; -export type MultiSigUserSignatureFragment = { __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string }; +export type MotionStakesFragment = { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; +}; -export type ColonyMultiSigFragment = { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null }; +export type UserMotionStakesFragment = { + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }; +}; -export type TokenFragment = { __typename?: 'Token', symbol: string, tokenAddress: string }; +export type DomainMetadataFragment = { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; +}; + +export type MultiSigUserSignatureFragment = { + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; +}; -export type NotificationUserFragment = { __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null }; +export type ColonyMultiSigFragment = { + __typename?: 'ColonyMultiSig'; + id: string; + colonyAddress: string; + nativeMultiSigId: string; + multiSigDomainId: string; + nativeMultiSigDomainId: string; + requiredPermissions: number; + transactionHash: string; + isExecuted: boolean; + isRejected: boolean; + isDecision: boolean; + hasActionCompleted: boolean; + executedAt?: string | null; + executedBy?: string | null; + rejectedAt?: string | null; + rejectedBy?: string | null; + createdAt: string; + expenditureId?: string | null; + signatures?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; +}; + +export type TokenFragment = { + __typename?: 'Token'; + symbol: string; + tokenAddress: string; +}; -export type NotificationsDataFragment = { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean }; +export type NotificationUserFragment = { + __typename?: 'ColonyContributor'; + user?: { + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; +}; + +export type NotificationsDataFragment = { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; +}; export type CreateColonyActionMutationVariables = Exact<{ input: CreateColonyActionInput; }>; - -export type CreateColonyActionMutation = { __typename?: 'Mutation', createColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type CreateColonyActionMutation = { + __typename?: 'Mutation'; + createColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type UpdateColonyActionMutationVariables = Exact<{ input: UpdateColonyActionInput; }>; - -export type UpdateColonyActionMutation = { __typename?: 'Mutation', updateColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type UpdateColonyActionMutation = { + __typename?: 'Mutation'; + updateColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type UpdateColonyMutationVariables = Exact<{ input: UpdateColonyInput; }>; - -export type UpdateColonyMutation = { __typename?: 'Mutation', updateColony?: { __typename?: 'Colony', id: string } | null }; +export type UpdateColonyMutation = { + __typename?: 'Mutation'; + updateColony?: { __typename?: 'Colony'; id: string } | null; +}; export type UpdateColonyMetadataMutationVariables = Exact<{ input: UpdateColonyMetadataInput; }>; - -export type UpdateColonyMetadataMutation = { __typename?: 'Mutation', updateColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type UpdateColonyMetadataMutation = { + __typename?: 'Mutation'; + updateColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMutationVariables = Exact<{ input: CreateColonyInput; condition?: InputMaybe; }>; - -export type CreateColonyMutation = { __typename?: 'Mutation', createColony?: { __typename?: 'Colony', id: string } | null }; +export type CreateColonyMutation = { + __typename?: 'Mutation'; + createColony?: { __typename?: 'Colony'; id: string } | null; +}; export type CreateColonyMetadataMutationVariables = Exact<{ input: CreateColonyMetadataInput; }>; - -export type CreateColonyMetadataMutation = { __typename?: 'Mutation', createColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type CreateColonyMetadataMutation = { + __typename?: 'Mutation'; + createColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type DeleteColonyMetadataMutationVariables = Exact<{ input: DeleteColonyMetadataInput; }>; - -export type DeleteColonyMetadataMutation = { __typename?: 'Mutation', deleteColonyMetadata?: { __typename?: 'ColonyMetadata', id: string } | null }; +export type DeleteColonyMetadataMutation = { + __typename?: 'Mutation'; + deleteColonyMetadata?: { __typename?: 'ColonyMetadata'; id: string } | null; +}; export type CreateColonyMemberInviteMutationVariables = Exact<{ input: CreateColonyMemberInviteInput; condition?: InputMaybe; }>; - -export type CreateColonyMemberInviteMutation = { __typename?: 'Mutation', createColonyMemberInvite?: { __typename?: 'ColonyMemberInvite', id: string } | null }; +export type CreateColonyMemberInviteMutation = { + __typename?: 'Mutation'; + createColonyMemberInvite?: { + __typename?: 'ColonyMemberInvite'; + id: string; + } | null; +}; export type CreateColonyTokensMutationVariables = Exact<{ input: CreateColonyTokensInput; }>; - -export type CreateColonyTokensMutation = { __typename?: 'Mutation', createColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type CreateColonyTokensMutation = { + __typename?: 'Mutation'; + createColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type CreateColonyContributorMutationVariables = Exact<{ input: CreateColonyContributorInput; }>; - -export type CreateColonyContributorMutation = { __typename?: 'Mutation', createColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type CreateColonyContributorMutation = { + __typename?: 'Mutation'; + createColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type UpdateColonyContributorMutationVariables = Exact<{ input: UpdateColonyContributorInput; }>; - -export type UpdateColonyContributorMutation = { __typename?: 'Mutation', updateColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type UpdateColonyContributorMutation = { + __typename?: 'Mutation'; + updateColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type DeleteColonyContributorMutationVariables = Exact<{ input: DeleteColonyContributorInput; }>; - -export type DeleteColonyContributorMutation = { __typename?: 'Mutation', deleteColonyContributor?: { __typename?: 'ColonyContributor', id: string } | null }; +export type DeleteColonyContributorMutation = { + __typename?: 'Mutation'; + deleteColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + } | null; +}; export type CreateCurrentVersionMutationVariables = Exact<{ input: CreateCurrentVersionInput; }>; - -export type CreateCurrentVersionMutation = { __typename?: 'Mutation', createCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type CreateCurrentVersionMutation = { + __typename?: 'Mutation'; + createCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateCurrentVersionMutationVariables = Exact<{ input: UpdateCurrentVersionInput; }>; - -export type UpdateCurrentVersionMutation = { __typename?: 'Mutation', updateCurrentVersion?: { __typename?: 'CurrentVersion', id: string } | null }; +export type UpdateCurrentVersionMutation = { + __typename?: 'Mutation'; + updateCurrentVersion?: { __typename?: 'CurrentVersion'; id: string } | null; +}; export type UpdateColonyDecisionMutationVariables = Exact<{ id: Scalars['ID']; showInDecisionsList: Scalars['Boolean']; }>; - -export type UpdateColonyDecisionMutation = { __typename?: 'Mutation', updateColonyDecision?: { __typename?: 'ColonyDecision', id: string } | null }; +export type UpdateColonyDecisionMutation = { + __typename?: 'Mutation'; + updateColonyDecision?: { __typename?: 'ColonyDecision'; id: string } | null; +}; export type CreateDomainMutationVariables = Exact<{ input: CreateDomainInput; }>; - -export type CreateDomainMutation = { __typename?: 'Mutation', createDomain?: { __typename?: 'Domain', id: string } | null }; +export type CreateDomainMutation = { + __typename?: 'Mutation'; + createDomain?: { __typename?: 'Domain'; id: string } | null; +}; export type CreateDomainMetadataMutationVariables = Exact<{ input: CreateDomainMetadataInput; }>; - -export type CreateDomainMetadataMutation = { __typename?: 'Mutation', createDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type CreateDomainMetadataMutation = { + __typename?: 'Mutation'; + createDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type UpdateDomainMetadataMutationVariables = Exact<{ input: UpdateDomainMetadataInput; }>; - -export type UpdateDomainMetadataMutation = { __typename?: 'Mutation', updateDomainMetadata?: { __typename?: 'DomainMetadata', id: string } | null }; +export type UpdateDomainMetadataMutation = { + __typename?: 'Mutation'; + updateDomainMetadata?: { __typename?: 'DomainMetadata'; id: string } | null; +}; export type CreateContractEventMutationVariables = Exact<{ input: CreateContractEventInput; condition?: InputMaybe; }>; - -export type CreateContractEventMutation = { __typename?: 'Mutation', createContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type CreateContractEventMutation = { + __typename?: 'Mutation'; + createContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type CreateExpenditureMutationVariables = Exact<{ input: CreateExpenditureInput; }>; - -export type CreateExpenditureMutation = { __typename?: 'Mutation', createExpenditure?: { __typename?: 'Expenditure', id: string } | null }; +export type CreateExpenditureMutation = { + __typename?: 'Mutation'; + createExpenditure?: { __typename?: 'Expenditure'; id: string } | null; +}; export type UpdateExpenditureMutationVariables = Exact<{ input: UpdateExpenditureInput; }>; - -export type UpdateExpenditureMutation = { __typename?: 'Mutation', updateExpenditure?: { __typename?: 'Expenditure', id: string, ownerAddress: string } | null }; +export type UpdateExpenditureMutation = { + __typename?: 'Mutation'; + updateExpenditure?: { + __typename?: 'Expenditure'; + id: string; + ownerAddress: string; + } | null; +}; export type UpdateExpenditureMetadataMutationVariables = Exact<{ input: UpdateExpenditureMetadataInput; }>; - -export type UpdateExpenditureMetadataMutation = { __typename?: 'Mutation', updateExpenditureMetadata?: { __typename?: 'ExpenditureMetadata', id: string } | null }; +export type UpdateExpenditureMetadataMutation = { + __typename?: 'Mutation'; + updateExpenditureMetadata?: { + __typename?: 'ExpenditureMetadata'; + id: string; + } | null; +}; export type CreateStreamingPaymentMutationVariables = Exact<{ input: CreateStreamingPaymentInput; }>; - -export type CreateStreamingPaymentMutation = { __typename?: 'Mutation', createStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type CreateStreamingPaymentMutation = { + __typename?: 'Mutation'; + createStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type UpdateStreamingPaymentMutationVariables = Exact<{ input: UpdateStreamingPaymentInput; }>; - -export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type UpdateStreamingPaymentMutation = { + __typename?: 'Mutation'; + updateStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + } | null; +}; export type UpdateStreamingPaymentMetadataMutationVariables = Exact<{ input: UpdateStreamingPaymentMetadataInput; }>; - -export type UpdateStreamingPaymentMetadataMutation = { __typename?: 'Mutation', updateStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string } | null }; +export type UpdateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + updateStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; - -export type CreateColonyExtensionMutation = { __typename?: 'Mutation', createColonyExtension?: { __typename?: 'ColonyExtension', id: string } | null }; +export type CreateColonyExtensionMutation = { + __typename?: 'Mutation'; + createColonyExtension?: { __typename?: 'ColonyExtension'; id: string } | null; +}; export type UpdateColonyExtensionByAddressMutationVariables = Exact<{ input: UpdateColonyExtensionInput; }>; - -export type UpdateColonyExtensionByAddressMutation = { __typename?: 'Mutation', updateColonyExtension?: { __typename?: 'ColonyExtension', id: string, extensionHash: string, colonyAddress: string } | null }; +export type UpdateColonyExtensionByAddressMutation = { + __typename?: 'Mutation'; + updateColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + extensionHash: string; + colonyAddress: string; + } | null; +}; export type CreateExtensionInstallationsCountMutationVariables = Exact<{ input: CreateExtensionInstallationsCountInput; }>; - -export type CreateExtensionInstallationsCountMutation = { __typename?: 'Mutation', createExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type CreateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + createExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type UpdateExtensionInstallationsCountMutationVariables = Exact<{ input: UpdateExtensionInstallationsCountInput; }>; - -export type UpdateExtensionInstallationsCountMutation = { __typename?: 'Mutation', updateExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', id: string } | null }; +export type UpdateExtensionInstallationsCountMutation = { + __typename?: 'Mutation'; + updateExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + id: string; + } | null; +}; export type CreateColonyFundsClaimMutationVariables = Exact<{ input: CreateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type CreateColonyFundsClaimMutation = { __typename?: 'Mutation', createColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type CreateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + createColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type UpdateColonyFundsClaimMutationVariables = Exact<{ input: UpdateColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type UpdateColonyFundsClaimMutation = { __typename?: 'Mutation', updateColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type UpdateColonyFundsClaimMutation = { + __typename?: 'Mutation'; + updateColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type DeleteColonyFundsClaimMutationVariables = Exact<{ input: DeleteColonyFundsClaimInput; condition?: InputMaybe; }>; - -export type DeleteColonyFundsClaimMutation = { __typename?: 'Mutation', deleteColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; +export type DeleteColonyFundsClaimMutation = { + __typename?: 'Mutation'; + deleteColonyFundsClaim?: { + __typename?: 'ColonyFundsClaim'; + id: string; + } | null; +}; export type CreateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: CreateCurrentNetworkInverseFeeInput; }>; - -export type CreateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', createCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type CreateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + createCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type UpdateCurrentNetworkInverseFeeMutationVariables = Exact<{ input: UpdateCurrentNetworkInverseFeeInput; }>; - -export type UpdateCurrentNetworkInverseFeeMutation = { __typename?: 'Mutation', updateCurrentNetworkInverseFee?: { __typename?: 'CurrentNetworkInverseFee', id: string } | null }; +export type UpdateCurrentNetworkInverseFeeMutation = { + __typename?: 'Mutation'; + updateCurrentNetworkInverseFee?: { + __typename?: 'CurrentNetworkInverseFee'; + id: string; + } | null; +}; export type CreateColonyMotionMutationVariables = Exact<{ input: CreateColonyMotionInput; }>; - -export type CreateColonyMotionMutation = { __typename?: 'Mutation', createColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type CreateColonyMotionMutation = { + __typename?: 'Mutation'; + createColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type UpdateColonyMotionMutationVariables = Exact<{ input: UpdateColonyMotionInput; }>; - -export type UpdateColonyMotionMutation = { __typename?: 'Mutation', updateColonyMotion?: { __typename?: 'ColonyMotion', id: string } | null }; +export type UpdateColonyMotionMutation = { + __typename?: 'Mutation'; + updateColonyMotion?: { __typename?: 'ColonyMotion'; id: string } | null; +}; export type CreateMotionMessageMutationVariables = Exact<{ input: CreateMotionMessageInput; }>; - -export type CreateMotionMessageMutation = { __typename?: 'Mutation', createMotionMessage?: { __typename?: 'MotionMessage', id: string } | null }; +export type CreateMotionMessageMutation = { + __typename?: 'Mutation'; + createMotionMessage?: { __typename?: 'MotionMessage'; id: string } | null; +}; export type CreateUserVoterRewardMutationVariables = Exact<{ input: CreateVoterRewardsHistoryInput; }>; - -export type CreateUserVoterRewardMutation = { __typename?: 'Mutation', createVoterRewardsHistory?: { __typename?: 'VoterRewardsHistory', id: string } | null }; +export type CreateUserVoterRewardMutation = { + __typename?: 'Mutation'; + createVoterRewardsHistory?: { + __typename?: 'VoterRewardsHistory'; + id: string; + } | null; +}; export type CreateColonyMultiSigMutationVariables = Exact<{ input: CreateColonyMultiSigInput; }>; - -export type CreateColonyMultiSigMutation = { __typename?: 'Mutation', createColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type CreateColonyMultiSigMutation = { + __typename?: 'Mutation'; + createColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type UpdateColonyMultiSigMutationVariables = Exact<{ input: UpdateColonyMultiSigInput; }>; - -export type UpdateColonyMultiSigMutation = { __typename?: 'Mutation', updateColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string } | null }; +export type UpdateColonyMultiSigMutation = { + __typename?: 'Mutation'; + updateColonyMultiSig?: { __typename?: 'ColonyMultiSig'; id: string } | null; +}; export type CreateMultiSigVoteMutationVariables = Exact<{ input: CreateMultiSigUserSignatureInput; }>; - -export type CreateMultiSigVoteMutation = { __typename?: 'Mutation', createMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type CreateMultiSigVoteMutation = { + __typename?: 'Mutation'; + createMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigVoteMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigVoteMutation = { __typename?: 'Mutation', deleteMultiSigUserSignature?: { __typename?: 'MultiSigUserSignature', id: string } | null }; +export type RemoveMultiSigVoteMutation = { + __typename?: 'Mutation'; + deleteMultiSigUserSignature?: { + __typename?: 'MultiSigUserSignature'; + id: string; + } | null; +}; export type RemoveMultiSigRoleMutationVariables = Exact<{ id: Scalars['ID']; }>; - -export type RemoveMultiSigRoleMutation = { __typename?: 'Mutation', deleteColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type RemoveMultiSigRoleMutation = { + __typename?: 'Mutation'; + deleteColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyRoleMutationVariables = Exact<{ input: CreateColonyRoleInput; }>; - -export type CreateColonyRoleMutation = { __typename?: 'Mutation', createColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type CreateColonyRoleMutation = { + __typename?: 'Mutation'; + createColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type UpdateColonyRoleMutationVariables = Exact<{ input: UpdateColonyRoleInput; }>; - -export type UpdateColonyRoleMutation = { __typename?: 'Mutation', updateColonyRole?: { __typename?: 'ColonyRole', id: string } | null }; +export type UpdateColonyRoleMutation = { + __typename?: 'Mutation'; + updateColonyRole?: { __typename?: 'ColonyRole'; id: string } | null; +}; export type CreateColonyHistoricRoleMutationVariables = Exact<{ input: CreateColonyHistoricRoleInput; }>; - -export type CreateColonyHistoricRoleMutation = { __typename?: 'Mutation', createColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type CreateColonyHistoricRoleMutation = { + __typename?: 'Mutation'; + createColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type UpdateReputationMiningCycleMetadataMutationVariables = Exact<{ input: UpdateReputationMiningCycleMetadataInput; }>; - -export type UpdateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', updateReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type UpdateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + updateReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateReputationMiningCycleMetadataMutationVariables = Exact<{ input: CreateReputationMiningCycleMetadataInput; }>; - -export type CreateReputationMiningCycleMetadataMutation = { __typename?: 'Mutation', createReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type CreateReputationMiningCycleMetadataMutation = { + __typename?: 'Mutation'; + createReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type CreateUserStakeMutationVariables = Exact<{ input: CreateUserStakeInput; }>; - -export type CreateUserStakeMutation = { __typename?: 'Mutation', createUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type CreateUserStakeMutation = { + __typename?: 'Mutation'; + createUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type UpdateUserStakeMutationVariables = Exact<{ input: UpdateUserStakeInput; }>; - -export type UpdateUserStakeMutation = { __typename?: 'Mutation', updateUserStake?: { __typename?: 'UserStake', id: string } | null }; +export type UpdateUserStakeMutation = { + __typename?: 'Mutation'; + updateUserStake?: { __typename?: 'UserStake'; id: string } | null; +}; export type CreateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type CreateStatsMutation = { __typename?: 'Mutation', createIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type CreateStatsMutation = { + __typename?: 'Mutation'; + createIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type UpdateStatsMutationVariables = Exact<{ value: Scalars['String']; }>; - -export type UpdateStatsMutation = { __typename?: 'Mutation', updateIngestorStats?: { __typename?: 'IngestorStats', id: string } | null }; +export type UpdateStatsMutation = { + __typename?: 'Mutation'; + updateIngestorStats?: { __typename?: 'IngestorStats'; id: string } | null; +}; export type DeleteColonyTokensMutationVariables = Exact<{ input: DeleteColonyTokensInput; }>; - -export type DeleteColonyTokensMutation = { __typename?: 'Mutation', deleteColonyTokens?: { __typename?: 'ColonyTokens', id: string } | null }; +export type DeleteColonyTokensMutation = { + __typename?: 'Mutation'; + deleteColonyTokens?: { __typename?: 'ColonyTokens'; id: string } | null; +}; export type GetColonyActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetColonyActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string } | null }; +export type GetColonyActionQuery = { + __typename?: 'Query'; + getColonyAction?: { __typename?: 'ColonyAction'; id: string } | null; +}; export type GetColonyArbitraryTransactionActionQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetColonyArbitraryTransactionActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, arbitraryTransactions?: Array<{ __typename?: 'ColonyActionArbitraryTransaction', contractAddress: string, encodedFunction: string }> | null } | null }; +export type GetColonyArbitraryTransactionActionQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + id: string; + arbitraryTransactions?: Array<{ + __typename?: 'ColonyActionArbitraryTransaction'; + contractAddress: string; + encodedFunction: string; + }> | null; + } | null; +}; export type GetMotionIdFromActionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetMotionIdFromActionQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', motionData?: { __typename?: 'ColonyMotion', id: string } | null } | null }; +export type GetMotionIdFromActionQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + motionData?: { __typename?: 'ColonyMotion'; id: string } | null; + } | null; +}; export type GetActionIdFromAnnotationQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionIdFromAnnotationQuery = { __typename?: 'Query', getAnnotation?: { __typename?: 'Annotation', actionId: string } | null }; +export type GetActionIdFromAnnotationQuery = { + __typename?: 'Query'; + getAnnotation?: { __typename?: 'Annotation'; actionId: string } | null; +}; export type GetActionByIdQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetActionByIdQuery = { __typename?: 'Query', getColonyAction?: { __typename?: 'ColonyAction', id: string, type: ColonyActionType, expenditureSlotChanges?: { __typename?: 'ExpenditureSlotChanges', oldSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, newSlots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }> } | null } | null }; +export type GetActionByIdQuery = { + __typename?: 'Query'; + getColonyAction?: { + __typename?: 'ColonyAction'; + id: string; + type: ColonyActionType; + expenditureSlotChanges?: { + __typename?: 'ExpenditureSlotChanges'; + oldSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + newSlots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + } | null; + } | null; +}; export type GetColonyMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMetadataQuery = { __typename?: 'Query', getColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, etherealData?: { __typename?: 'ColonyMetadataEtherealData', colonyAvatar?: string | null, colonyDisplayName: string, colonyName: string, colonyThumbnail?: string | null, initiatorAddress: string, tokenAvatar?: string | null, tokenThumbnail?: string | null } | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null }; +export type GetColonyMetadataQuery = { + __typename?: 'Query'; + getColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + etherealData?: { + __typename?: 'ColonyMetadataEtherealData'; + colonyAvatar?: string | null; + colonyDisplayName: string; + colonyName: string; + colonyThumbnail?: string | null; + initiatorAddress: string; + tokenAvatar?: string | null; + tokenThumbnail?: string | null; + } | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; +}; export type GetColonyQueryVariables = Exact<{ id: Scalars['ID']; nextToken?: InputMaybe; }>; - -export type GetColonyQuery = { __typename?: 'Query', getColony?: { __typename?: 'Colony', colonyAddress: string, nativeToken: { __typename?: 'Token', symbol: string, tokenAddress: string }, tokens?: { __typename?: 'ModelColonyTokensConnection', items: Array<{ __typename?: 'ColonyTokens', id: string, tokenAddress: string } | null> } | null, motionsWithUnclaimedStakes?: Array<{ __typename?: 'ColonyUnclaimedStake', motionId: string, unclaimedRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }> }> | null, domains?: { __typename?: 'ModelDomainConnection', nextToken?: string | null, items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string } | null> } | null } | null, getColonyByAddress?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null, getColonyByType?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +export type GetColonyQuery = { + __typename?: 'Query'; + getColony?: { + __typename?: 'Colony'; + colonyAddress: string; + nativeToken: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + tokens?: { + __typename?: 'ModelColonyTokensConnection'; + items: Array<{ + __typename?: 'ColonyTokens'; + id: string; + tokenAddress: string; + } | null>; + } | null; + motionsWithUnclaimedStakes?: Array<{ + __typename?: 'ColonyUnclaimedStake'; + motionId: string; + unclaimedRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + }> | null; + domains?: { + __typename?: 'ModelDomainConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + } | null>; + } | null; + } | null; + getColonyByAddress?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; + getColonyByType?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; +}; export type GetColonyByNameQueryVariables = Exact<{ name: Scalars['String']; }>; - -export type GetColonyByNameQuery = { __typename?: 'Query', getColonyByName?: { __typename?: 'ModelColonyConnection', items: Array<{ __typename?: 'Colony', id: string, name: string } | null> } | null }; +export type GetColonyByNameQuery = { + __typename?: 'Query'; + getColonyByName?: { + __typename?: 'ModelColonyConnection'; + items: Array<{ __typename?: 'Colony'; id: string; name: string } | null>; + } | null; +}; export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nativeTokenId: Scalars['ID']; @@ -10946,29 +11501,98 @@ export type GetColonyByNativeTokenIdQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type GetColonyByNativeTokenIdQuery = { __typename?: 'Query', getColoniesByNativeTokenId?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, status?: { __typename?: 'ColonyStatus', recovery?: boolean | null, nativeToken?: { __typename?: 'NativeTokenStatus', unlocked?: boolean | null, unlockable?: boolean | null, mintable?: boolean | null } | null } | null } | null> } | null }; +export type GetColonyByNativeTokenIdQuery = { + __typename?: 'Query'; + getColoniesByNativeTokenId?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + status?: { + __typename?: 'ColonyStatus'; + recovery?: boolean | null; + nativeToken?: { + __typename?: 'NativeTokenStatus'; + unlocked?: boolean | null; + unlockable?: boolean | null; + mintable?: boolean | null; + } | null; + } | null; + } | null>; + } | null; +}; export type ListColoniesQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type ListColoniesQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, nativeTokenId: string } | null> } | null }; +export type ListColoniesQuery = { + __typename?: 'Query'; + listColonies?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + nativeTokenId: string; + } | null>; + } | null; +}; export type ListColoniesWithRootPermissionHoldersQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type ListColoniesWithRootPermissionHoldersQuery = { __typename?: 'Query', listColonies?: { __typename?: 'ModelColonyConnection', nextToken?: string | null, items: Array<{ __typename?: 'Colony', id: string, roles?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, targetUser?: { __typename?: 'User', id: string, profile?: { __typename?: 'Profile', displayName?: string | null, id: string } | null, notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null } | null> } | null }; +export type ListColoniesWithRootPermissionHoldersQuery = { + __typename?: 'Query'; + listColonies?: { + __typename?: 'ModelColonyConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'Colony'; + id: string; + roles?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + targetUser?: { + __typename?: 'User'; + id: string; + profile?: { + __typename?: 'Profile'; + displayName?: string | null; + id: string; + } | null; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; + } | null>; + } | null; +}; export type GetColonyContributorQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyContributorQuery = { __typename?: 'Query', getColonyContributor?: { __typename?: 'ColonyContributor', id: string, isVerified: boolean } | null }; +export type GetColonyContributorQuery = { + __typename?: 'Query'; + getColonyContributor?: { + __typename?: 'ColonyContributor'; + id: string; + isVerified: boolean; + } | null; +}; export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -10977,124 +11601,419 @@ export type GetColonyContributorsNotificationDataQueryVariables = Exact<{ nextToken?: InputMaybe; }>; - -export type GetColonyContributorsNotificationDataQuery = { __typename?: 'Query', getContributorsByColony?: { __typename?: 'ModelColonyContributorConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyContributor', user?: { __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null } | null> } | null }; +export type GetColonyContributorsNotificationDataQuery = { + __typename?: 'Query'; + getContributorsByColony?: { + __typename?: 'ModelColonyContributorConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'ColonyContributor'; + user?: { + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null; + } | null>; + } | null; +}; export type GetCurrentVersionQueryVariables = Exact<{ key: Scalars['String']; }>; - -export type GetCurrentVersionQuery = { __typename?: 'Query', getCurrentVersionByKey?: { __typename?: 'ModelCurrentVersionConnection', items: Array<{ __typename?: 'CurrentVersion', id: string, version: number } | null> } | null }; +export type GetCurrentVersionQuery = { + __typename?: 'Query'; + getCurrentVersionByKey?: { + __typename?: 'ModelCurrentVersionConnection'; + items: Array<{ + __typename?: 'CurrentVersion'; + id: string; + version: number; + } | null>; + } | null; +}; export type GetColonyDecisionByActionIdQueryVariables = Exact<{ actionId: Scalars['ID']; }>; - -export type GetColonyDecisionByActionIdQuery = { __typename?: 'Query', getColonyDecisionByActionId?: { __typename?: 'ModelColonyDecisionConnection', items: Array<{ __typename?: 'ColonyDecision', id: string } | null> } | null }; +export type GetColonyDecisionByActionIdQuery = { + __typename?: 'Query'; + getColonyDecisionByActionId?: { + __typename?: 'ModelColonyDecisionConnection'; + items: Array<{ __typename?: 'ColonyDecision'; id: string } | null>; + } | null; +}; export type GetDomainMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetDomainMetadataQuery = { __typename?: 'Query', getDomainMetadata?: { __typename?: 'DomainMetadata', color: DomainColor, description?: string | null, id: string, name: string, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', newColor: DomainColor, newDescription?: string | null, newName: string, oldColor: DomainColor, oldDescription?: string | null, oldName: string, transactionHash: string }> | null } | null }; +export type GetDomainMetadataQuery = { + __typename?: 'Query'; + getDomainMetadata?: { + __typename?: 'DomainMetadata'; + color: DomainColor; + description?: string | null; + id: string; + name: string; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + newColor: DomainColor; + newDescription?: string | null; + newName: string; + oldColor: DomainColor; + oldDescription?: string | null; + oldName: string; + transactionHash: string; + }> | null; + } | null; +}; export type GetDomainByNativeSkillIdQueryVariables = Exact<{ nativeSkillId: Scalars['String']; colonyAddress: Scalars['ID']; }>; - -export type GetDomainByNativeSkillIdQuery = { __typename?: 'Query', getDomainByNativeSkillId?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', id: string, nativeSkillId: string, nativeId: number } | null> } | null }; +export type GetDomainByNativeSkillIdQuery = { + __typename?: 'Query'; + getDomainByNativeSkillId?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + id: string; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; +}; export type GetDomainsByExtensionAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetDomainsByExtensionAddressQuery = { __typename?: 'Query', listColonyExtensions?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', colony: { __typename?: 'Colony', id: string, domains?: { __typename?: 'ModelDomainConnection', items: Array<{ __typename?: 'Domain', nativeSkillId: string, nativeId: number } | null> } | null } } | null> } | null }; +export type GetDomainsByExtensionAddressQuery = { + __typename?: 'Query'; + listColonyExtensions?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + colony: { + __typename?: 'Colony'; + id: string; + domains?: { + __typename?: 'ModelDomainConnection'; + items: Array<{ + __typename?: 'Domain'; + nativeSkillId: string; + nativeId: number; + } | null>; + } | null; + }; + } | null>; + } | null; +}; export type GetContractEventQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetContractEventQuery = { __typename?: 'Query', getContractEvent?: { __typename?: 'ContractEvent', id: string } | null }; +export type GetContractEventQuery = { + __typename?: 'Query'; + getContractEvent?: { __typename?: 'ContractEvent'; id: string } | null; +}; export type GetExpenditureQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetExpenditureQuery = { __typename?: 'Query', getExpenditure?: { __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null }; +export type GetExpenditureQuery = { + __typename?: 'Query'; + getExpenditure?: { + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; + } | null; +}; export type GetExpenditureByNativeFundingPotIdAndColonyQueryVariables = Exact<{ nativeFundingPotId: Scalars['Int']; colonyAddress: Scalars['ID']; }>; - -export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { __typename?: 'Query', getExpendituresByNativeFundingPotIdAndColony?: { __typename?: 'ModelExpenditureConnection', items: Array<{ __typename?: 'Expenditure', id: string, status: ExpenditureStatus, ownerAddress: string, userStakeId?: string | null, createdAt: string, firstEditTransactionHash?: string | null, splitPaymentPayoutClaimedNotificationSent?: boolean | null, type: ExpenditureType, slots: Array<{ __typename?: 'ExpenditureSlot', id: number, recipientAddress?: string | null, claimDelay?: string | null, payoutModifier?: number | null, payouts?: Array<{ __typename?: 'ExpenditurePayout', tokenAddress: string, amount: string, isClaimed: boolean, networkFee?: string | null }> | null }>, motions?: { __typename?: 'ModelColonyMotionConnection', items: Array<{ __typename?: 'ColonyMotion', transactionHash: string, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null> } | null, balances?: Array<{ __typename?: 'ExpenditureBalance', tokenAddress: string, amount: string }> | null, metadata?: { __typename?: 'ExpenditureMetadata', distributionType?: SplitPaymentDistributionType | null } | null, actions?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', type: ColonyActionType, id: string } | null> } | null } | null> } | null }; +export type GetExpenditureByNativeFundingPotIdAndColonyQuery = { + __typename?: 'Query'; + getExpendituresByNativeFundingPotIdAndColony?: { + __typename?: 'ModelExpenditureConnection'; + items: Array<{ + __typename?: 'Expenditure'; + id: string; + status: ExpenditureStatus; + ownerAddress: string; + userStakeId?: string | null; + createdAt: string; + firstEditTransactionHash?: string | null; + splitPaymentPayoutClaimedNotificationSent?: boolean | null; + type: ExpenditureType; + slots: Array<{ + __typename?: 'ExpenditureSlot'; + id: number; + recipientAddress?: string | null; + claimDelay?: string | null; + payoutModifier?: number | null; + payouts?: Array<{ + __typename?: 'ExpenditurePayout'; + tokenAddress: string; + amount: string; + isClaimed: boolean; + networkFee?: string | null; + }> | null; + }>; + motions?: { + __typename?: 'ModelColonyMotionConnection'; + items: Array<{ + __typename?: 'ColonyMotion'; + transactionHash: string; + action?: { + __typename?: 'ColonyAction'; + type: ColonyActionType; + } | null; + } | null>; + } | null; + balances?: Array<{ + __typename?: 'ExpenditureBalance'; + tokenAddress: string; + amount: string; + }> | null; + metadata?: { + __typename?: 'ExpenditureMetadata'; + distributionType?: SplitPaymentDistributionType | null; + } | null; + actions?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + type: ColonyActionType; + id: string; + } | null>; + } | null; + } | null>; + } | null; +}; export type GetStreamingPaymentQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, startTime: string, endTime: string, tokenAddress: string, amount: string, interval: string, metadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null, claims?: Array<{ __typename?: 'StreamingPaymentClaim', amount: string, timestamp: string }> | null } | null }; +export type GetStreamingPaymentQuery = { + __typename?: 'Query'; + getStreamingPayment?: { + __typename?: 'StreamingPayment'; + id: string; + startTime: string; + endTime: string; + tokenAddress: string; + amount: string; + interval: string; + metadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; + claims?: Array<{ + __typename?: 'StreamingPaymentClaim'; + amount: string; + timestamp: string; + }> | null; + } | null; +}; export type GetStreamingPaymentMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetStreamingPaymentMetadataQuery = { __typename?: 'Query', getStreamingPaymentMetadata?: { __typename?: 'StreamingPaymentMetadata', id: string, endCondition: StreamingPaymentEndCondition, changelog?: Array<{ __typename?: 'StreamingPaymentMetadataChangelog', transactionHash: string, oldEndCondition: StreamingPaymentEndCondition, newEndCondition: StreamingPaymentEndCondition }> | null } | null }; +export type GetStreamingPaymentMetadataQuery = { + __typename?: 'Query'; + getStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + endCondition: StreamingPaymentEndCondition; + changelog?: Array<{ + __typename?: 'StreamingPaymentMetadataChangelog'; + transactionHash: string; + oldEndCondition: StreamingPaymentEndCondition; + newEndCondition: StreamingPaymentEndCondition; + }> | null; + } | null; +}; export type GetColonyExtensionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyExtensionQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null }; +export type GetColonyExtensionQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null; +}; export type GetColonyExtensionsByColonyAddressQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetColonyExtensionsByColonyAddressQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type GetColonyExtensionsByColonyAddressQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type ListExtensionsQueryVariables = Exact<{ hash: Scalars['String']; nextToken?: InputMaybe; }>; - -export type ListExtensionsQuery = { __typename?: 'Query', getExtensionsByHash?: { __typename?: 'ModelColonyExtensionConnection', nextToken?: string | null, items: Array<{ __typename?: 'ColonyExtension', id: string, hash: string, colonyId: string, isInitialized: boolean, version: number } | null> } | null }; +export type ListExtensionsQuery = { + __typename?: 'Query'; + getExtensionsByHash?: { + __typename?: 'ModelColonyExtensionConnection'; + nextToken?: string | null; + items: Array<{ + __typename?: 'ColonyExtension'; + id: string; + hash: string; + colonyId: string; + isInitialized: boolean; + version: number; + } | null>; + } | null; +}; export type GetColonyExtensionByHashAndColonyQueryVariables = Exact<{ colonyAddress: Scalars['ID']; extensionHash: Scalars['String']; }>; - -export type GetColonyExtensionByHashAndColonyQuery = { __typename?: 'Query', getExtensionByColonyAndHash?: { __typename?: 'ModelColonyExtensionConnection', items: Array<{ __typename?: 'ColonyExtension', id: string } | null> } | null }; +export type GetColonyExtensionByHashAndColonyQuery = { + __typename?: 'Query'; + getExtensionByColonyAndHash?: { + __typename?: 'ModelColonyExtensionConnection'; + items: Array<{ __typename?: 'ColonyExtension'; id: string } | null>; + } | null; +}; export type GetExtensionInstallationsCountQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetExtensionInstallationsCountQuery = { __typename?: 'Query', getExtensionInstallationsCount?: { __typename?: 'ExtensionInstallationsCount', oneTxPayment: number, stakedExpenditure: number, stagedExpenditure: number, streamingPayments: number, reputationWeighted: number, multiSigPermissions: number } | null }; +export type GetExtensionInstallationsCountQuery = { + __typename?: 'Query'; + getExtensionInstallationsCount?: { + __typename?: 'ExtensionInstallationsCount'; + oneTxPayment: number; + stakedExpenditure: number; + stagedExpenditure: number; + streamingPayments: number; + reputationWeighted: number; + multiSigPermissions: number; + } | null; +}; export type GetColonyExtensionByAddressQueryVariables = Exact<{ extensionAddress: Scalars['ID']; }>; - -export type GetColonyExtensionByAddressQuery = { __typename?: 'Query', getColonyExtension?: { __typename?: 'ColonyExtension', colonyId: string, params?: { __typename?: 'ExtensionParams', multiSig?: { __typename?: 'MultiSigParams', colonyThreshold: number, domainThresholds?: Array<{ __typename?: 'MultiSigDomainConfig', domainId: string, domainThreshold: number } | null> | null } | null } | null } | null }; +export type GetColonyExtensionByAddressQuery = { + __typename?: 'Query'; + getColonyExtension?: { + __typename?: 'ColonyExtension'; + colonyId: string; + params?: { + __typename?: 'ExtensionParams'; + multiSig?: { + __typename?: 'MultiSigParams'; + colonyThreshold: number; + domainThresholds?: Array<{ + __typename?: 'MultiSigDomainConfig'; + domainId: string; + domainThreshold: number; + } | null> | null; + } | null; + } | null; + } | null; +}; export type GetColonyUnclaimedFundsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; @@ -11102,55 +12021,330 @@ export type GetColonyUnclaimedFundsQueryVariables = Exact<{ upToBlock?: InputMaybe; }>; - -export type GetColonyUnclaimedFundsQuery = { __typename?: 'Query', listColonyFundsClaims?: { __typename?: 'ModelColonyFundsClaimConnection', items: Array<{ __typename?: 'ColonyFundsClaim', id: string, amount: string, token: { __typename?: 'Token', symbol: string, tokenAddress: string } } | null> } | null }; +export type GetColonyUnclaimedFundsQuery = { + __typename?: 'Query'; + listColonyFundsClaims?: { + __typename?: 'ModelColonyFundsClaimConnection'; + items: Array<{ + __typename?: 'ColonyFundsClaim'; + id: string; + amount: string; + token: { __typename?: 'Token'; symbol: string; tokenAddress: string }; + } | null>; + } | null; +}; export type GetColonyUnclaimedFundQueryVariables = Exact<{ claimId: Scalars['ID']; }>; +export type GetColonyUnclaimedFundQuery = { + __typename?: 'Query'; + getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim'; id: string } | null; +}; -export type GetColonyUnclaimedFundQuery = { __typename?: 'Query', getColonyFundsClaim?: { __typename?: 'ColonyFundsClaim', id: string } | null }; - -export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCurrentNetworkInverseFeeQueryVariables = Exact<{ + [key: string]: never; +}>; -export type GetCurrentNetworkInverseFeeQuery = { __typename?: 'Query', listCurrentNetworkInverseFees?: { __typename?: 'ModelCurrentNetworkInverseFeeConnection', items: Array<{ __typename?: 'CurrentNetworkInverseFee', id: string, inverseFee: string } | null> } | null }; +export type GetCurrentNetworkInverseFeeQuery = { + __typename?: 'Query'; + listCurrentNetworkInverseFees?: { + __typename?: 'ModelCurrentNetworkInverseFeeConnection'; + items: Array<{ + __typename?: 'CurrentNetworkInverseFee'; + id: string; + inverseFee: string; + } | null>; + } | null; +}; export type GetColonyActionByMotionIdQueryVariables = Exact<{ motionId: Scalars['ID']; }>; - -export type GetColonyActionByMotionIdQuery = { __typename?: 'Query', getColonyActionByMotionId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; +export type GetColonyActionByMotionIdQuery = { + __typename?: 'Query'; + getColonyActionByMotionId?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ + __typename?: 'Payment'; + recipientAddress: string; + }> | null; + } | null>; + } | null; +}; export type GetColonyMotionQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMotionQuery = { __typename?: 'Query', getColonyMotion?: { __typename?: 'ColonyMotion', id: string, nativeMotionId: string, requiredStake: string, remainingStakes: Array, userMinStake: string, nativeMotionDomainId: string, isFinalized: boolean, createdBy: string, repSubmitted: string, skillRep: string, hasObjection: boolean, motionDomainId: string, isDecision: boolean, transactionHash: string, expenditureId?: string | null, streamingPaymentId?: string | null, pendingStreamingPaymentMetadataId?: string | null, motionStakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }, usersStakes: Array<{ __typename?: 'UserMotionStakes', address: string, stakes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } } }>, stakerRewards: Array<{ __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }>, voterRecord: Array<{ __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | null }>, revealedVotes: { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', yay: string, nay: string }, percentage: { __typename?: 'MotionStakeValues', yay: string, nay: string } }, motionStateHistory: { __typename?: 'MotionStateHistory', hasVoted: boolean, hasPassed: boolean, hasFailed: boolean, hasFailedNotFinalizable: boolean, inRevealPhase: boolean, yaySideFullyStakedAt?: string | null, naySideFullyStakedAt?: string | null, allVotesSubmittedAt?: string | null, allVotesRevealedAt?: string | null, endedAt?: string | null, finalizedAt?: string | null } } | null }; +export type GetColonyMotionQuery = { + __typename?: 'Query'; + getColonyMotion?: { + __typename?: 'ColonyMotion'; + id: string; + nativeMotionId: string; + requiredStake: string; + remainingStakes: Array; + userMinStake: string; + nativeMotionDomainId: string; + isFinalized: boolean; + createdBy: string; + repSubmitted: string; + skillRep: string; + hasObjection: boolean; + motionDomainId: string; + isDecision: boolean; + transactionHash: string; + expenditureId?: string | null; + streamingPaymentId?: string | null; + pendingStreamingPaymentMetadataId?: string | null; + motionStakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; nay: string; yay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + nay: string; + yay: string; + }; + }; + usersStakes: Array<{ + __typename?: 'UserMotionStakes'; + address: string; + stakes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + }>; + stakerRewards: Array<{ + __typename?: 'StakerRewards'; + address: string; + isClaimed: boolean; + rewards: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + }>; + voterRecord: Array<{ + __typename?: 'VoterRecord'; + address: string; + voteCount: string; + vote?: number | null; + }>; + revealedVotes: { + __typename?: 'MotionStakes'; + raw: { __typename?: 'MotionStakeValues'; yay: string; nay: string }; + percentage: { + __typename?: 'MotionStakeValues'; + yay: string; + nay: string; + }; + }; + motionStateHistory: { + __typename?: 'MotionStateHistory'; + hasVoted: boolean; + hasPassed: boolean; + hasFailed: boolean; + hasFailedNotFinalizable: boolean; + inRevealPhase: boolean; + yaySideFullyStakedAt?: string | null; + naySideFullyStakedAt?: string | null; + allVotesSubmittedAt?: string | null; + allVotesRevealedAt?: string | null; + endedAt?: string | null; + finalizedAt?: string | null; + }; + } | null; +}; export type GetVoterRewardsQueryVariables = Exact<{ input: GetVoterRewardsInput; }>; - -export type GetVoterRewardsQuery = { __typename?: 'Query', getVoterRewards?: { __typename?: 'VoterRewardsReturn', min: string, max: string, reward: string } | null }; +export type GetVoterRewardsQuery = { + __typename?: 'Query'; + getVoterRewards?: { + __typename?: 'VoterRewardsReturn'; + min: string; + max: string; + reward: string; + } | null; +}; export type GetColonyActionByMultiSigIdQueryVariables = Exact<{ multiSigId: Scalars['ID']; }>; - -export type GetColonyActionByMultiSigIdQuery = { __typename?: 'Query', getColonyActionByMultiSigId?: { __typename?: 'ModelColonyActionConnection', items: Array<{ __typename?: 'ColonyAction', id: string, colonyDecisionId?: string | null, amount?: string | null, networkFee?: string | null, type: ColonyActionType, showInActionsList: boolean, colonyId: string, initiatorAddress: string, recipientAddress?: string | null, members?: Array | null, pendingDomainMetadata?: { __typename?: 'DomainMetadata', name: string, color: DomainColor, description?: string | null, changelog?: Array<{ __typename?: 'DomainMetadataChangelog', transactionHash: string, oldName: string, newName: string, oldColor: DomainColor, newColor: DomainColor, oldDescription?: string | null, newDescription?: string | null }> | null } | null, pendingColonyMetadata?: { __typename?: 'ColonyMetadata', id: string, displayName: string, avatar?: string | null, thumbnail?: string | null, description?: string | null, externalLinks?: Array<{ __typename?: 'ExternalLink', name: ExternalLinks, link: string }> | null, objective?: { __typename?: 'ColonyObjective', title: string, description: string, progress: number } | null, changelog?: Array<{ __typename?: 'ColonyMetadataChangelog', transactionHash: string, oldDisplayName: string, newDisplayName: string, hasAvatarChanged: boolean, hasDescriptionChanged?: boolean | null, haveExternalLinksChanged?: boolean | null, hasObjectiveChanged?: boolean | null }> | null } | null, payments?: Array<{ __typename?: 'Payment', recipientAddress: string }> | null } | null> } | null }; +export type GetColonyActionByMultiSigIdQuery = { + __typename?: 'Query'; + getColonyActionByMultiSigId?: { + __typename?: 'ModelColonyActionConnection'; + items: Array<{ + __typename?: 'ColonyAction'; + id: string; + colonyDecisionId?: string | null; + amount?: string | null; + networkFee?: string | null; + type: ColonyActionType; + showInActionsList: boolean; + colonyId: string; + initiatorAddress: string; + recipientAddress?: string | null; + members?: Array | null; + pendingDomainMetadata?: { + __typename?: 'DomainMetadata'; + name: string; + color: DomainColor; + description?: string | null; + changelog?: Array<{ + __typename?: 'DomainMetadataChangelog'; + transactionHash: string; + oldName: string; + newName: string; + oldColor: DomainColor; + newColor: DomainColor; + oldDescription?: string | null; + newDescription?: string | null; + }> | null; + } | null; + pendingColonyMetadata?: { + __typename?: 'ColonyMetadata'; + id: string; + displayName: string; + avatar?: string | null; + thumbnail?: string | null; + description?: string | null; + externalLinks?: Array<{ + __typename?: 'ExternalLink'; + name: ExternalLinks; + link: string; + }> | null; + objective?: { + __typename?: 'ColonyObjective'; + title: string; + description: string; + progress: number; + } | null; + changelog?: Array<{ + __typename?: 'ColonyMetadataChangelog'; + transactionHash: string; + oldDisplayName: string; + newDisplayName: string; + hasAvatarChanged: boolean; + hasDescriptionChanged?: boolean | null; + haveExternalLinksChanged?: boolean | null; + hasObjectiveChanged?: boolean | null; + }> | null; + } | null; + payments?: Array<{ + __typename?: 'Payment'; + recipientAddress: string; + }> | null; + } | null>; + } | null; +}; export type GetColonyMultiSigQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyMultiSigQuery = { __typename?: 'Query', getColonyMultiSig?: { __typename?: 'ColonyMultiSig', id: string, colonyAddress: string, nativeMultiSigId: string, multiSigDomainId: string, nativeMultiSigDomainId: string, requiredPermissions: number, transactionHash: string, isExecuted: boolean, isRejected: boolean, isDecision: boolean, hasActionCompleted: boolean, executedAt?: string | null, executedBy?: string | null, rejectedAt?: string | null, rejectedBy?: string | null, createdAt: string, expenditureId?: string | null, signatures?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null, action?: { __typename?: 'ColonyAction', type: ColonyActionType } | null } | null }; +export type GetColonyMultiSigQuery = { + __typename?: 'Query'; + getColonyMultiSig?: { + __typename?: 'ColonyMultiSig'; + id: string; + colonyAddress: string; + nativeMultiSigId: string; + multiSigDomainId: string; + nativeMultiSigDomainId: string; + requiredPermissions: number; + transactionHash: string; + isExecuted: boolean; + isRejected: boolean; + isDecision: boolean; + hasActionCompleted: boolean; + executedAt?: string | null; + executedBy?: string | null; + rejectedAt?: string | null; + rejectedBy?: string | null; + createdAt: string; + expenditureId?: string | null; + signatures?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; + action?: { __typename?: 'ColonyAction'; type: ColonyActionType } | null; + } | null; +}; export type GetUserMultiSigSignatureQueryVariables = Exact<{ multiSigId: Scalars['ID']; @@ -11159,1330 +12353,1495 @@ export type GetUserMultiSigSignatureQueryVariables = Exact<{ role: Scalars['Int']; }>; - -export type GetUserMultiSigSignatureQuery = { __typename?: 'Query', getMultiSigUserSignatureByMultiSigId?: { __typename?: 'ModelMultiSigUserSignatureConnection', items: Array<{ __typename?: 'MultiSigUserSignature', id: string, multiSigId: string, role: number, colonyAddress: string, userAddress: string, vote: MultiSigVote, createdAt: string } | null> } | null }; +export type GetUserMultiSigSignatureQuery = { + __typename?: 'Query'; + getMultiSigUserSignatureByMultiSigId?: { + __typename?: 'ModelMultiSigUserSignatureConnection'; + items: Array<{ + __typename?: 'MultiSigUserSignature'; + id: string; + multiSigId: string; + role: number; + colonyAddress: string; + userAddress: string; + vote: MultiSigVote; + createdAt: string; + } | null>; + } | null; +}; export type GetAllMultiSigRolesQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetAllMultiSigRolesQuery = { __typename?: 'Query', getRoleByColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string } | null> } | null }; +export type GetAllMultiSigRolesQuery = { + __typename?: 'Query'; + getRoleByColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ __typename?: 'ColonyRole'; id: string } | null>; + } | null; +}; export type GetActiveColonyMultisigsQueryVariables = Exact<{ colonyAddress: Scalars['ID']; }>; - -export type GetActiveColonyMultisigsQuery = { __typename?: 'Query', getMultiSigByColonyAddress?: { __typename?: 'ModelColonyMultiSigConnection', items: Array<{ __typename?: 'ColonyMultiSig', id: string } | null> } | null }; +export type GetActiveColonyMultisigsQuery = { + __typename?: 'Query'; + getMultiSigByColonyAddress?: { + __typename?: 'ModelColonyMultiSigConnection'; + items: Array<{ __typename?: 'ColonyMultiSig'; id: string } | null>; + } | null; +}; export type GetColonyRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyRoleQuery = { __typename?: 'Query', getColonyRole?: { __typename?: 'ColonyRole', id: string, latestBlock: number, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null }; +export type GetColonyRoleQuery = { + __typename?: 'Query'; + getColonyRole?: { + __typename?: 'ColonyRole'; + id: string; + latestBlock: number; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null; +}; export type GetAllColonyRolesQueryVariables = Exact<{ targetAddress: Scalars['ID']; colonyAddress: Scalars['ID']; }>; - -export type GetAllColonyRolesQuery = { __typename?: 'Query', getRoleByTargetAddressAndColony?: { __typename?: 'ModelColonyRoleConnection', items: Array<{ __typename?: 'ColonyRole', id: string, role_0?: boolean | null, role_1?: boolean | null, role_2?: boolean | null, role_3?: boolean | null, role_5?: boolean | null, role_6?: boolean | null } | null> } | null }; +export type GetAllColonyRolesQuery = { + __typename?: 'Query'; + getRoleByTargetAddressAndColony?: { + __typename?: 'ModelColonyRoleConnection'; + items: Array<{ + __typename?: 'ColonyRole'; + id: string; + role_0?: boolean | null; + role_1?: boolean | null; + role_2?: boolean | null; + role_3?: boolean | null; + role_5?: boolean | null; + role_6?: boolean | null; + } | null>; + } | null; +}; export type GetColonyHistoricRoleQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetColonyHistoricRoleQuery = { __typename?: 'Query', getColonyHistoricRole?: { __typename?: 'ColonyHistoricRole', id: string } | null }; +export type GetColonyHistoricRoleQuery = { + __typename?: 'Query'; + getColonyHistoricRole?: { + __typename?: 'ColonyHistoricRole'; + id: string; + } | null; +}; export type GetReputationMiningCycleMetadataQueryVariables = Exact<{ id: Scalars['ID']; }>; - -export type GetReputationMiningCycleMetadataQuery = { __typename?: 'Query', getReputationMiningCycleMetadata?: { __typename?: 'ReputationMiningCycleMetadata', id: string } | null }; +export type GetReputationMiningCycleMetadataQuery = { + __typename?: 'Query'; + getReputationMiningCycleMetadata?: { + __typename?: 'ReputationMiningCycleMetadata'; + id: string; + } | null; +}; export type GetSafeTransactionByTransactionHashQueryVariables = Exact<{ transactionHash: Scalars['ID']; }>; - -export type GetSafeTransactionByTransactionHashQuery = { __typename?: 'Query', getSafeTransaction?: { __typename?: 'SafeTransaction', id: string } | null }; +export type GetSafeTransactionByTransactionHashQuery = { + __typename?: 'Query'; + getSafeTransaction?: { __typename?: 'SafeTransaction'; id: string } | null; +}; export type GetUserStakeQueryVariables = Exact<{ id: Scalars['ID']; }>; +export type GetUserStakeQuery = { + __typename?: 'Query'; + getUserStake?: { + __typename?: 'UserStake'; + id: string; + amount: string; + } | null; +}; -export type GetUserStakeQuery = { __typename?: 'Query', getUserStake?: { __typename?: 'UserStake', id: string, amount: string } | null }; - -export type GetStatsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetStatsQueryVariables = Exact<{ [key: string]: never }>; -export type GetStatsQuery = { __typename?: 'Query', getIngestorStats?: { __typename?: 'IngestorStats', value: string } | null }; +export type GetStatsQuery = { + __typename?: 'Query'; + getIngestorStats?: { __typename?: 'IngestorStats'; value: string } | null; +}; export type GetTokenFromEverywhereQueryVariables = Exact<{ input: TokenFromEverywhereArguments; }>; - -export type GetTokenFromEverywhereQuery = { __typename?: 'Query', getTokenFromEverywhere?: { __typename?: 'TokenFromEverywhereReturn', items?: Array<{ __typename?: 'Token', id: string } | null> | null } | null }; +export type GetTokenFromEverywhereQuery = { + __typename?: 'Query'; + getTokenFromEverywhere?: { + __typename?: 'TokenFromEverywhereReturn'; + items?: Array<{ __typename?: 'Token'; id: string } | null> | null; + } | null; +}; export type GetNotificationUsersQueryVariables = Exact<{ filter?: InputMaybe; limit?: InputMaybe; }>; - -export type GetNotificationUsersQuery = { __typename?: 'Query', listUsers?: { __typename?: 'ModelUserConnection', items: Array<{ __typename?: 'User', notificationsData?: { __typename?: 'NotificationsData', magicbellUserId: string, notificationsDisabled: boolean, mutedColonyAddresses: Array, paymentNotificationsDisabled: boolean, mentionNotificationsDisabled: boolean, adminNotificationsDisabled: boolean } | null } | null> } | null }; +export type GetNotificationUsersQuery = { + __typename?: 'Query'; + listUsers?: { + __typename?: 'ModelUserConnection'; + items: Array<{ + __typename?: 'User'; + notificationsData?: { + __typename?: 'NotificationsData'; + magicbellUserId: string; + notificationsDisabled: boolean; + mutedColonyAddresses: Array; + paymentNotificationsDisabled: boolean; + mentionNotificationsDisabled: boolean; + adminNotificationsDisabled: boolean; + } | null; + } | null>; + } | null; +}; export const DomainMetadata = gql` - fragment DomainMetadata on DomainMetadata { - name - color - description - changelog { - transactionHash - oldName - newName - oldColor - newColor - oldDescription - newDescription - } -} - `; -export const ColonyMetadata = gql` - fragment ColonyMetadata on ColonyMetadata { - id - displayName - avatar - thumbnail - description - externalLinks { + fragment DomainMetadata on DomainMetadata { name - link - } - objective { - title + color description - progress + changelog { + transactionHash + oldName + newName + oldColor + newColor + oldDescription + newDescription + } } - changelog { - transactionHash - oldDisplayName - newDisplayName - hasAvatarChanged - hasDescriptionChanged - haveExternalLinksChanged - hasObjectiveChanged +`; +export const ColonyMetadata = gql` + fragment ColonyMetadata on ColonyMetadata { + id + displayName + avatar + thumbnail + description + externalLinks { + name + link + } + objective { + title + description + progress + } + changelog { + transactionHash + oldDisplayName + newDisplayName + hasAvatarChanged + hasDescriptionChanged + haveExternalLinksChanged + hasObjectiveChanged + } } -} - `; +`; export const ActionMetadataInfo = gql` - fragment ActionMetadataInfo on ColonyAction { - id - pendingDomainMetadata { - ...DomainMetadata - } - pendingColonyMetadata { - ...ColonyMetadata - } - colonyDecisionId - amount - networkFee - type - showInActionsList - colonyId - initiatorAddress - recipientAddress - payments { + fragment ActionMetadataInfo on ColonyAction { + id + pendingDomainMetadata { + ...DomainMetadata + } + pendingColonyMetadata { + ...ColonyMetadata + } + colonyDecisionId + amount + networkFee + type + showInActionsList + colonyId + initiatorAddress recipientAddress + payments { + recipientAddress + } + members } - members -} - ${DomainMetadata} -${ColonyMetadata}`; + ${DomainMetadata} + ${ColonyMetadata} +`; export const Token = gql` - fragment Token on Token { - tokenAddress: id - symbol -} - `; -export const Colony = gql` - fragment Colony on Colony { - colonyAddress: id - nativeToken { - ...Token + fragment Token on Token { + tokenAddress: id + symbol } - tokens { - items { - id - tokenAddress: tokenID +`; +export const Colony = gql` + fragment Colony on Colony { + colonyAddress: id + nativeToken { + ...Token } - } - motionsWithUnclaimedStakes { - motionId - unclaimedRewards { - address - rewards { - yay - nay + tokens { + items { + id + tokenAddress: tokenID } - isClaimed } - } - domains(limit: 1000, nextToken: $nextToken) { - items { - id - nativeSkillId + motionsWithUnclaimedStakes { + motionId + unclaimedRewards { + address + rewards { + yay + nay + } + isClaimed + } + } + domains(limit: 1000, nextToken: $nextToken) { + items { + id + nativeSkillId + } + nextToken } - nextToken } -} - ${Token}`; + ${Token} +`; export const NotificationsData = gql` - fragment NotificationsData on NotificationsData { - magicbellUserId - notificationsDisabled - mutedColonyAddresses - paymentNotificationsDisabled - mentionNotificationsDisabled - adminNotificationsDisabled -} - `; + fragment NotificationsData on NotificationsData { + magicbellUserId + notificationsDisabled + mutedColonyAddresses + paymentNotificationsDisabled + mentionNotificationsDisabled + adminNotificationsDisabled + } +`; export const ColonyWithRootRoles = gql` - fragment ColonyWithRootRoles on Colony { - id - roles(filter: {role_1: {eq: true}}, limit: 1000) { - items { - id - targetUser { + fragment ColonyWithRootRoles on Colony { + id + roles(filter: { role_1: { eq: true } }, limit: 1000) { + items { id - profile { - displayName + targetUser { id - } - notificationsData { - ...NotificationsData + profile { + displayName + id + } + notificationsData { + ...NotificationsData + } } } } } -} - ${NotificationsData}`; + ${NotificationsData} +`; export const ExpenditureSlot = gql` - fragment ExpenditureSlot on ExpenditureSlot { - id - recipientAddress - claimDelay - payoutModifier - payouts { + fragment ExpenditureSlot on ExpenditureSlot { + id + recipientAddress + claimDelay + payoutModifier + payouts { + tokenAddress + amount + isClaimed + networkFee + } + } +`; +export const ExpenditureBalance = gql` + fragment ExpenditureBalance on ExpenditureBalance { tokenAddress amount - isClaimed - networkFee } -} - `; -export const ExpenditureBalance = gql` - fragment ExpenditureBalance on ExpenditureBalance { - tokenAddress - amount -} - `; +`; export const Expenditure = gql` - fragment Expenditure on Expenditure { - id - slots { - ...ExpenditureSlot - } - motions { - items { - transactionHash - action { - type + fragment Expenditure on Expenditure { + id + slots { + ...ExpenditureSlot + } + motions { + items { + transactionHash + action { + type + } } } - } - balances { - ...ExpenditureBalance - } - metadata { - distributionType - } - status - ownerAddress - userStakeId - createdAt - firstEditTransactionHash - splitPaymentPayoutClaimedNotificationSent - type - actions { - items { - type - id + balances { + ...ExpenditureBalance + } + metadata { + distributionType + } + status + ownerAddress + userStakeId + createdAt + firstEditTransactionHash + splitPaymentPayoutClaimedNotificationSent + type + actions { + items { + type + id + } } } -} - ${ExpenditureSlot} -${ExpenditureBalance}`; + ${ExpenditureSlot} + ${ExpenditureBalance} +`; export const StreamingPaymentMetadata = gql` - fragment StreamingPaymentMetadata on StreamingPaymentMetadata { - id - endCondition - changelog { - transactionHash - oldEndCondition - newEndCondition + fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } } -} - `; +`; export const StreamingPayment = gql` - fragment StreamingPayment on StreamingPayment { - id - startTime - endTime - tokenAddress - amount - interval - metadata { - ...StreamingPaymentMetadata - } - claims { + fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress amount - timestamp + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp + } } -} - ${StreamingPaymentMetadata}`; + ${StreamingPaymentMetadata} +`; export const StreamingPaymentChanges = gql` - fragment StreamingPaymentChanges on StreamingPaymentChanges { - startTime - endTime - interval - amount -} - `; -export const Extension = gql` - fragment Extension on ColonyExtension { - id - hash - colonyId - isInitialized - version -} - `; -export const MotionStakes = gql` - fragment MotionStakes on MotionStakes { - raw { - nay - yay + fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount } - percentage { - nay - yay +`; +export const Extension = gql` + fragment Extension on ColonyExtension { + id + hash + colonyId + isInitialized + version } -} - `; -export const UserMotionStakes = gql` - fragment UserMotionStakes on UserMotionStakes { - address - stakes { +`; +export const MotionStakes = gql` + fragment MotionStakes on MotionStakes { raw { - yay nay + yay } percentage { - yay nay + yay } } -} - `; -export const StakerReward = gql` - fragment StakerReward on StakerRewards { - address - rewards { - yay - nay - } - isClaimed -} - `; -export const VoterRecord = gql` - fragment VoterRecord on VoterRecord { - address - voteCount - vote -} - `; -export const ColonyMotion = gql` - fragment ColonyMotion on ColonyMotion { - id - nativeMotionId - motionStakes { - ...MotionStakes - } - requiredStake - remainingStakes - usersStakes { - ...UserMotionStakes - } - userMinStake - nativeMotionDomainId - stakerRewards { - ...StakerReward - } - isFinalized - createdBy - voterRecord { - ...VoterRecord - } - revealedVotes { - raw { - yay - nay +`; +export const UserMotionStakes = gql` + fragment UserMotionStakes on UserMotionStakes { + address + stakes { + raw { + yay + nay + } + percentage { + yay + nay + } } - percentage { + } +`; +export const StakerReward = gql` + fragment StakerReward on StakerRewards { + address + rewards { yay nay } + isClaimed } - repSubmitted - skillRep - hasObjection - motionDomainId - nativeMotionDomainId - motionStateHistory { - hasVoted - hasPassed - hasFailed - hasFailedNotFinalizable - inRevealPhase - yaySideFullyStakedAt - naySideFullyStakedAt - allVotesSubmittedAt - allVotesRevealedAt - endedAt - finalizedAt +`; +export const VoterRecord = gql` + fragment VoterRecord on VoterRecord { + address + voteCount + vote } - isDecision - transactionHash - expenditureId - streamingPaymentId - pendingStreamingPaymentMetadataId -} - ${MotionStakes} -${UserMotionStakes} -${StakerReward} -${VoterRecord}`; +`; +export const ColonyMotion = gql` + fragment ColonyMotion on ColonyMotion { + id + nativeMotionId + motionStakes { + ...MotionStakes + } + requiredStake + remainingStakes + usersStakes { + ...UserMotionStakes + } + userMinStake + nativeMotionDomainId + stakerRewards { + ...StakerReward + } + isFinalized + createdBy + voterRecord { + ...VoterRecord + } + revealedVotes { + raw { + yay + nay + } + percentage { + yay + nay + } + } + repSubmitted + skillRep + hasObjection + motionDomainId + nativeMotionDomainId + motionStateHistory { + hasVoted + hasPassed + hasFailed + hasFailedNotFinalizable + inRevealPhase + yaySideFullyStakedAt + naySideFullyStakedAt + allVotesSubmittedAt + allVotesRevealedAt + endedAt + finalizedAt + } + isDecision + transactionHash + expenditureId + streamingPaymentId + pendingStreamingPaymentMetadataId + } + ${MotionStakes} + ${UserMotionStakes} + ${StakerReward} + ${VoterRecord} +`; export const MultiSigUserSignature = gql` - fragment MultiSigUserSignature on MultiSigUserSignature { - id - multiSigId - role - colonyAddress - userAddress - vote - createdAt -} - `; + fragment MultiSigUserSignature on MultiSigUserSignature { + id + multiSigId + role + colonyAddress + userAddress + vote + createdAt + } +`; export const ColonyMultiSig = gql` - fragment ColonyMultiSig on ColonyMultiSig { - id - colonyAddress - nativeMultiSigId - multiSigDomainId - nativeMultiSigDomainId - requiredPermissions - transactionHash - isExecuted - isRejected - isDecision - hasActionCompleted - signatures { - items { - ...MultiSigUserSignature + fragment ColonyMultiSig on ColonyMultiSig { + id + colonyAddress + nativeMultiSigId + multiSigDomainId + nativeMultiSigDomainId + requiredPermissions + transactionHash + isExecuted + isRejected + isDecision + hasActionCompleted + signatures { + items { + ...MultiSigUserSignature + } } - } - executedAt - executedBy - rejectedAt - rejectedBy - createdAt - action { - type - } - expenditureId -} - ${MultiSigUserSignature}`; -export const NotificationUser = gql` - fragment NotificationUser on ColonyContributor { - user { - notificationsData { - ...NotificationsData + executedAt + executedBy + rejectedAt + rejectedBy + createdAt + action { + type } + expenditureId } -} - ${NotificationsData}`; + ${MultiSigUserSignature} +`; +export const NotificationUser = gql` + fragment NotificationUser on ColonyContributor { + user { + notificationsData { + ...NotificationsData + } + } + } + ${NotificationsData} +`; export const CreateColonyActionDocument = gql` - mutation CreateColonyAction($input: CreateColonyActionInput!) { - createColonyAction(input: $input) { - id + mutation CreateColonyAction($input: CreateColonyActionInput!) { + createColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyActionDocument = gql` - mutation UpdateColonyAction($input: UpdateColonyActionInput!) { - updateColonyAction(input: $input) { - id + mutation UpdateColonyAction($input: UpdateColonyActionInput!) { + updateColonyAction(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDocument = gql` - mutation UpdateColony($input: UpdateColonyInput!) { - updateColony(input: $input) { - id + mutation UpdateColony($input: UpdateColonyInput!) { + updateColony(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMetadataDocument = gql` - mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { - updateColonyMetadata(input: $input) { - id + mutation UpdateColonyMetadata($input: UpdateColonyMetadataInput!) { + updateColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyDocument = gql` - mutation CreateColony($input: CreateColonyInput!, $condition: ModelColonyConditionInput) { - createColony(input: $input, condition: $condition) { - id + mutation CreateColony( + $input: CreateColonyInput! + $condition: ModelColonyConditionInput + ) { + createColony(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyMetadataDocument = gql` - mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { - createColonyMetadata(input: $input) { - id + mutation CreateColonyMetadata($input: CreateColonyMetadataInput!) { + createColonyMetadata(input: $input) { + id + } } -} - `; +`; export const DeleteColonyMetadataDocument = gql` - mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { - deleteColonyMetadata(input: $input) { - id + mutation DeleteColonyMetadata($input: DeleteColonyMetadataInput!) { + deleteColonyMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyMemberInviteDocument = gql` - mutation CreateColonyMemberInvite($input: CreateColonyMemberInviteInput!, $condition: ModelColonyMemberInviteConditionInput) { - createColonyMemberInvite(input: $input, condition: $condition) { - id + mutation CreateColonyMemberInvite( + $input: CreateColonyMemberInviteInput! + $condition: ModelColonyMemberInviteConditionInput + ) { + createColonyMemberInvite(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateColonyTokensDocument = gql` - mutation CreateColonyTokens($input: CreateColonyTokensInput!) { - createColonyTokens(input: $input) { - id + mutation CreateColonyTokens($input: CreateColonyTokensInput!) { + createColonyTokens(input: $input) { + id + } } -} - `; +`; export const CreateColonyContributorDocument = gql` - mutation CreateColonyContributor($input: CreateColonyContributorInput!) { - createColonyContributor(input: $input) { - id + mutation CreateColonyContributor($input: CreateColonyContributorInput!) { + createColonyContributor(input: $input) { + id + } } -} - `; +`; export const UpdateColonyContributorDocument = gql` - mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { - updateColonyContributor(input: $input) { - id + mutation UpdateColonyContributor($input: UpdateColonyContributorInput!) { + updateColonyContributor(input: $input) { + id + } } -} - `; +`; export const DeleteColonyContributorDocument = gql` - mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { - deleteColonyContributor(input: $input) { - id + mutation DeleteColonyContributor($input: DeleteColonyContributorInput!) { + deleteColonyContributor(input: $input) { + id + } } -} - `; +`; export const CreateCurrentVersionDocument = gql` - mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { - createCurrentVersion(input: $input) { - id + mutation CreateCurrentVersion($input: CreateCurrentVersionInput!) { + createCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentVersionDocument = gql` - mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { - updateCurrentVersion(input: $input) { - id + mutation UpdateCurrentVersion($input: UpdateCurrentVersionInput!) { + updateCurrentVersion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyDecisionDocument = gql` - mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { - updateColonyDecision( - input: {id: $id, showInDecisionsList: $showInDecisionsList} - ) { - id + mutation UpdateColonyDecision($id: ID!, $showInDecisionsList: Boolean!) { + updateColonyDecision( + input: { id: $id, showInDecisionsList: $showInDecisionsList } + ) { + id + } } -} - `; +`; export const CreateDomainDocument = gql` - mutation CreateDomain($input: CreateDomainInput!) { - createDomain(input: $input) { - id + mutation CreateDomain($input: CreateDomainInput!) { + createDomain(input: $input) { + id + } } -} - `; +`; export const CreateDomainMetadataDocument = gql` - mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { - createDomainMetadata(input: $input) { - id + mutation CreateDomainMetadata($input: CreateDomainMetadataInput!) { + createDomainMetadata(input: $input) { + id + } } -} - `; +`; export const UpdateDomainMetadataDocument = gql` - mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { - updateDomainMetadata(input: $input) { - id + mutation UpdateDomainMetadata($input: UpdateDomainMetadataInput!) { + updateDomainMetadata(input: $input) { + id + } } -} - `; +`; export const CreateContractEventDocument = gql` - mutation CreateContractEvent($input: CreateContractEventInput!, $condition: ModelContractEventConditionInput) { - createContractEvent(input: $input, condition: $condition) { - id + mutation CreateContractEvent( + $input: CreateContractEventInput! + $condition: ModelContractEventConditionInput + ) { + createContractEvent(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateExpenditureDocument = gql` - mutation CreateExpenditure($input: CreateExpenditureInput!) { - createExpenditure(input: $input) { - id + mutation CreateExpenditure($input: CreateExpenditureInput!) { + createExpenditure(input: $input) { + id + } } -} - `; +`; export const UpdateExpenditureDocument = gql` - mutation UpdateExpenditure($input: UpdateExpenditureInput!) { - updateExpenditure(input: $input) { - id - ownerAddress + mutation UpdateExpenditure($input: UpdateExpenditureInput!) { + updateExpenditure(input: $input) { + id + ownerAddress + } } -} - `; +`; export const UpdateExpenditureMetadataDocument = gql` - mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { - updateExpenditureMetadata(input: $input) { - id + mutation UpdateExpenditureMetadata($input: UpdateExpenditureMetadataInput!) { + updateExpenditureMetadata(input: $input) { + id + } } -} - `; +`; export const CreateStreamingPaymentDocument = gql` - mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { - createStreamingPayment(input: $input) { - id + mutation CreateStreamingPayment($input: CreateStreamingPaymentInput!) { + createStreamingPayment(input: $input) { + id + } } -} - `; +`; export const UpdateStreamingPaymentDocument = gql` - mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { - updateStreamingPayment(input: $input) { - id + mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { + updateStreamingPayment(input: $input) { + id + } } -} - `; +`; export const UpdateStreamingPaymentMetadataDocument = gql` - mutation UpdateStreamingPaymentMetadata($input: UpdateStreamingPaymentMetadataInput!) { - updateStreamingPaymentMetadata(input: $input) { - id + mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! + ) { + updateStreamingPaymentMetadata(input: $input) { + id + } } -} - `; +`; export const CreateColonyExtensionDocument = gql` - mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { - createColonyExtension(input: $input) { - id + mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { + createColonyExtension(input: $input) { + id + } } -} - `; +`; export const UpdateColonyExtensionByAddressDocument = gql` - mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { - updateColonyExtension(input: $input) { - id - extensionHash: hash - colonyAddress: colonyId + mutation UpdateColonyExtensionByAddress($input: UpdateColonyExtensionInput!) { + updateColonyExtension(input: $input) { + id + extensionHash: hash + colonyAddress: colonyId + } } -} - `; +`; export const CreateExtensionInstallationsCountDocument = gql` - mutation CreateExtensionInstallationsCount($input: CreateExtensionInstallationsCountInput!) { - createExtensionInstallationsCount(input: $input) { - id + mutation CreateExtensionInstallationsCount( + $input: CreateExtensionInstallationsCountInput! + ) { + createExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const UpdateExtensionInstallationsCountDocument = gql` - mutation UpdateExtensionInstallationsCount($input: UpdateExtensionInstallationsCountInput!) { - updateExtensionInstallationsCount(input: $input) { - id + mutation UpdateExtensionInstallationsCount( + $input: UpdateExtensionInstallationsCountInput! + ) { + updateExtensionInstallationsCount(input: $input) { + id + } } -} - `; +`; export const CreateColonyFundsClaimDocument = gql` - mutation CreateColonyFundsClaim($input: CreateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - createColonyFundsClaim(input: $input, condition: $condition) { - id + mutation CreateColonyFundsClaim( + $input: CreateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + createColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const UpdateColonyFundsClaimDocument = gql` - mutation UpdateColonyFundsClaim($input: UpdateColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - updateColonyFundsClaim(input: $input, condition: $condition) { - id + mutation UpdateColonyFundsClaim( + $input: UpdateColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + updateColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const DeleteColonyFundsClaimDocument = gql` - mutation DeleteColonyFundsClaim($input: DeleteColonyFundsClaimInput!, $condition: ModelColonyFundsClaimConditionInput) { - deleteColonyFundsClaim(input: $input, condition: $condition) { - id + mutation DeleteColonyFundsClaim( + $input: DeleteColonyFundsClaimInput! + $condition: ModelColonyFundsClaimConditionInput + ) { + deleteColonyFundsClaim(input: $input, condition: $condition) { + id + } } -} - `; +`; export const CreateCurrentNetworkInverseFeeDocument = gql` - mutation CreateCurrentNetworkInverseFee($input: CreateCurrentNetworkInverseFeeInput!) { - createCurrentNetworkInverseFee(input: $input) { - id + mutation CreateCurrentNetworkInverseFee( + $input: CreateCurrentNetworkInverseFeeInput! + ) { + createCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const UpdateCurrentNetworkInverseFeeDocument = gql` - mutation UpdateCurrentNetworkInverseFee($input: UpdateCurrentNetworkInverseFeeInput!) { - updateCurrentNetworkInverseFee(input: $input) { - id + mutation UpdateCurrentNetworkInverseFee( + $input: UpdateCurrentNetworkInverseFeeInput! + ) { + updateCurrentNetworkInverseFee(input: $input) { + id + } } -} - `; +`; export const CreateColonyMotionDocument = gql` - mutation CreateColonyMotion($input: CreateColonyMotionInput!) { - createColonyMotion(input: $input) { - id + mutation CreateColonyMotion($input: CreateColonyMotionInput!) { + createColonyMotion(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMotionDocument = gql` - mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { - updateColonyMotion(input: $input) { - id + mutation UpdateColonyMotion($input: UpdateColonyMotionInput!) { + updateColonyMotion(input: $input) { + id + } } -} - `; +`; export const CreateMotionMessageDocument = gql` - mutation CreateMotionMessage($input: CreateMotionMessageInput!) { - createMotionMessage(input: $input) { - id + mutation CreateMotionMessage($input: CreateMotionMessageInput!) { + createMotionMessage(input: $input) { + id + } } -} - `; +`; export const CreateUserVoterRewardDocument = gql` - mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { - createVoterRewardsHistory(input: $input) { - id + mutation CreateUserVoterReward($input: CreateVoterRewardsHistoryInput!) { + createVoterRewardsHistory(input: $input) { + id + } } -} - `; +`; export const CreateColonyMultiSigDocument = gql` - mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { - createColonyMultiSig(input: $input) { - id + mutation CreateColonyMultiSig($input: CreateColonyMultiSigInput!) { + createColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const UpdateColonyMultiSigDocument = gql` - mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { - updateColonyMultiSig(input: $input) { - id + mutation UpdateColonyMultiSig($input: UpdateColonyMultiSigInput!) { + updateColonyMultiSig(input: $input) { + id + } } -} - `; +`; export const CreateMultiSigVoteDocument = gql` - mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { - createMultiSigUserSignature(input: $input) { - id + mutation CreateMultiSigVote($input: CreateMultiSigUserSignatureInput!) { + createMultiSigUserSignature(input: $input) { + id + } } -} - `; +`; export const RemoveMultiSigVoteDocument = gql` - mutation RemoveMultiSigVote($id: ID!) { - deleteMultiSigUserSignature(input: {id: $id}) { - id + mutation RemoveMultiSigVote($id: ID!) { + deleteMultiSigUserSignature(input: { id: $id }) { + id + } } -} - `; +`; export const RemoveMultiSigRoleDocument = gql` - mutation RemoveMultiSigRole($id: ID!) { - deleteColonyRole(input: {id: $id}) { - id + mutation RemoveMultiSigRole($id: ID!) { + deleteColonyRole(input: { id: $id }) { + id + } } -} - `; +`; export const CreateColonyRoleDocument = gql` - mutation CreateColonyRole($input: CreateColonyRoleInput!) { - createColonyRole(input: $input) { - id + mutation CreateColonyRole($input: CreateColonyRoleInput!) { + createColonyRole(input: $input) { + id + } } -} - `; +`; export const UpdateColonyRoleDocument = gql` - mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { - updateColonyRole(input: $input) { - id + mutation UpdateColonyRole($input: UpdateColonyRoleInput!) { + updateColonyRole(input: $input) { + id + } } -} - `; +`; export const CreateColonyHistoricRoleDocument = gql` - mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { - createColonyHistoricRole(input: $input) { - id + mutation CreateColonyHistoricRole($input: CreateColonyHistoricRoleInput!) { + createColonyHistoricRole(input: $input) { + id + } } -} - `; +`; export const UpdateReputationMiningCycleMetadataDocument = gql` - mutation UpdateReputationMiningCycleMetadata($input: UpdateReputationMiningCycleMetadataInput!) { - updateReputationMiningCycleMetadata(input: $input) { - id + mutation UpdateReputationMiningCycleMetadata( + $input: UpdateReputationMiningCycleMetadataInput! + ) { + updateReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateReputationMiningCycleMetadataDocument = gql` - mutation CreateReputationMiningCycleMetadata($input: CreateReputationMiningCycleMetadataInput!) { - createReputationMiningCycleMetadata(input: $input) { - id + mutation CreateReputationMiningCycleMetadata( + $input: CreateReputationMiningCycleMetadataInput! + ) { + createReputationMiningCycleMetadata(input: $input) { + id + } } -} - `; +`; export const CreateUserStakeDocument = gql` - mutation CreateUserStake($input: CreateUserStakeInput!) { - createUserStake(input: $input) { - id + mutation CreateUserStake($input: CreateUserStakeInput!) { + createUserStake(input: $input) { + id + } } -} - `; +`; export const UpdateUserStakeDocument = gql` - mutation UpdateUserStake($input: UpdateUserStakeInput!) { - updateUserStake(input: $input) { - id + mutation UpdateUserStake($input: UpdateUserStakeInput!) { + updateUserStake(input: $input) { + id + } } -} - `; +`; export const CreateStatsDocument = gql` - mutation CreateStats($value: String!) { - createIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation CreateStats($value: String!) { + createIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const UpdateStatsDocument = gql` - mutation UpdateStats($value: String!) { - updateIngestorStats(input: {id: "STATS", value: $value}) { - id + mutation UpdateStats($value: String!) { + updateIngestorStats(input: { id: "STATS", value: $value }) { + id + } } -} - `; +`; export const DeleteColonyTokensDocument = gql` - mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { - deleteColonyTokens(input: $input) { - id + mutation DeleteColonyTokens($input: DeleteColonyTokensInput!) { + deleteColonyTokens(input: $input) { + id + } } -} - `; +`; export const GetColonyActionDocument = gql` - query GetColonyAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id + query GetColonyAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + } } -} - `; +`; export const GetColonyArbitraryTransactionActionDocument = gql` - query GetColonyArbitraryTransactionAction($transactionHash: ID!) { - getColonyAction(id: $transactionHash) { - id - arbitraryTransactions { - contractAddress - encodedFunction + query GetColonyArbitraryTransactionAction($transactionHash: ID!) { + getColonyAction(id: $transactionHash) { + id + arbitraryTransactions { + contractAddress + encodedFunction + } } } -} - `; +`; export const GetMotionIdFromActionDocument = gql` - query GetMotionIdFromAction($id: ID!) { - getColonyAction(id: $id) { - motionData { - id + query GetMotionIdFromAction($id: ID!) { + getColonyAction(id: $id) { + motionData { + id + } } } -} - `; +`; export const GetActionIdFromAnnotationDocument = gql` - query GetActionIdFromAnnotation($id: ID!) { - getAnnotation(id: $id) { - actionId + query GetActionIdFromAnnotation($id: ID!) { + getAnnotation(id: $id) { + actionId + } } -} - `; +`; export const GetActionByIdDocument = gql` - query GetActionById($id: ID!) { - getColonyAction(id: $id) { - id - type - expenditureSlotChanges { - oldSlots { - ...ExpenditureSlot - } - newSlots { - ...ExpenditureSlot + query GetActionById($id: ID!) { + getColonyAction(id: $id) { + id + type + expenditureSlotChanges { + oldSlots { + ...ExpenditureSlot + } + newSlots { + ...ExpenditureSlot + } } } } -} - ${ExpenditureSlot}`; + ${ExpenditureSlot} +`; export const GetColonyMetadataDocument = gql` - query GetColonyMetadata($id: ID!) { - getColonyMetadata(id: $id) { - ...ColonyMetadata - etherealData { - colonyAvatar - colonyDisplayName - colonyName - colonyThumbnail - initiatorAddress - tokenAvatar - tokenThumbnail + query GetColonyMetadata($id: ID!) { + getColonyMetadata(id: $id) { + ...ColonyMetadata + etherealData { + colonyAvatar + colonyDisplayName + colonyName + colonyThumbnail + initiatorAddress + tokenAvatar + tokenThumbnail + } } } -} - ${ColonyMetadata}`; + ${ColonyMetadata} +`; export const GetColonyDocument = gql` - query GetColony($id: ID!, $nextToken: String) { - getColony(id: $id) { - ...Colony - } - getColonyByAddress(id: $id) { - items { - id - name + query GetColony($id: ID!, $nextToken: String) { + getColony(id: $id) { + ...Colony } - } - getColonyByType(type: METACOLONY) { - items { - id - name + getColonyByAddress(id: $id) { + items { + id + name + } + } + getColonyByType(type: METACOLONY) { + items { + id + name + } } } -} - ${Colony}`; + ${Colony} +`; export const GetColonyByNameDocument = gql` - query GetColonyByName($name: String!) { - getColonyByName(name: $name) { - items { - id - name + query GetColonyByName($name: String!) { + getColonyByName(name: $name) { + items { + id + name + } } } -} - `; +`; export const GetColonyByNativeTokenIdDocument = gql` - query GetColonyByNativeTokenId($nativeTokenId: ID!, $limit: Int, $nextToken: String) { - getColoniesByNativeTokenId( - nativeTokenId: $nativeTokenId - limit: $limit - nextToken: $nextToken + query GetColonyByNativeTokenId( + $nativeTokenId: ID! + $limit: Int + $nextToken: String ) { - items { - id - status { - nativeToken { - unlocked - unlockable - mintable + getColoniesByNativeTokenId( + nativeTokenId: $nativeTokenId + limit: $limit + nextToken: $nextToken + ) { + items { + id + status { + nativeToken { + unlocked + unlockable + mintable + } + recovery } - recovery } + nextToken } - nextToken } -} - `; +`; export const ListColoniesDocument = gql` - query ListColonies($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - id - nativeTokenId + query ListColonies($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + id + nativeTokenId + } } } -} - `; +`; export const ListColoniesWithRootPermissionHoldersDocument = gql` - query ListColoniesWithRootPermissionHolders($nextToken: String) { - listColonies(limit: 1000, nextToken: $nextToken) { - nextToken - items { - ...ColonyWithRootRoles + query ListColoniesWithRootPermissionHolders($nextToken: String) { + listColonies(limit: 1000, nextToken: $nextToken) { + nextToken + items { + ...ColonyWithRootRoles + } } } -} - ${ColonyWithRootRoles}`; + ${ColonyWithRootRoles} +`; export const GetColonyContributorDocument = gql` - query GetColonyContributor($id: ID!) { - getColonyContributor(id: $id) { - id - isVerified + query GetColonyContributor($id: ID!) { + getColonyContributor(id: $id) { + id + isVerified + } } -} - `; +`; export const GetColonyContributorsNotificationDataDocument = gql` - query GetColonyContributorsNotificationData($colonyAddress: ID!, $sortDirection: ModelSortDirection = ASC, $limit: Int = 100, $nextToken: String) { - getContributorsByColony( - colonyAddress: $colonyAddress - sortDirection: $sortDirection - limit: $limit - nextToken: $nextToken + query GetColonyContributorsNotificationData( + $colonyAddress: ID! + $sortDirection: ModelSortDirection = ASC + $limit: Int = 100 + $nextToken: String ) { - items { - user { - notificationsData { - ...NotificationsData + getContributorsByColony( + colonyAddress: $colonyAddress + sortDirection: $sortDirection + limit: $limit + nextToken: $nextToken + ) { + items { + user { + notificationsData { + ...NotificationsData + } } } + nextToken } - nextToken } -} - ${NotificationsData}`; + ${NotificationsData} +`; export const GetCurrentVersionDocument = gql` - query GetCurrentVersion($key: String!) { - getCurrentVersionByKey(key: $key) { - items { - id - version + query GetCurrentVersion($key: String!) { + getCurrentVersionByKey(key: $key) { + items { + id + version + } } } -} - `; +`; export const GetColonyDecisionByActionIdDocument = gql` - query GetColonyDecisionByActionId($actionId: ID!) { - getColonyDecisionByActionId(actionId: $actionId) { - items { - id + query GetColonyDecisionByActionId($actionId: ID!) { + getColonyDecisionByActionId(actionId: $actionId) { + items { + id + } } } -} - `; +`; export const GetDomainMetadataDocument = gql` - query GetDomainMetadata($id: ID!) { - getDomainMetadata(id: $id) { - color - description - id - name - changelog { - newColor - newDescription - newName - oldColor - oldDescription - oldName - transactionHash + query GetDomainMetadata($id: ID!) { + getDomainMetadata(id: $id) { + color + description + id + name + changelog { + newColor + newDescription + newName + oldColor + oldDescription + oldName + transactionHash + } } } -} - `; +`; export const GetDomainByNativeSkillIdDocument = gql` - query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { - getDomainByNativeSkillId( - nativeSkillId: $nativeSkillId - filter: {colonyId: {eq: $colonyAddress}} - ) { - items { - id - nativeSkillId - nativeId + query GetDomainByNativeSkillId($nativeSkillId: String!, $colonyAddress: ID!) { + getDomainByNativeSkillId( + nativeSkillId: $nativeSkillId + filter: { colonyId: { eq: $colonyAddress } } + ) { + items { + id + nativeSkillId + nativeId + } } } -} - `; +`; export const GetDomainsByExtensionAddressDocument = gql` - query GetDomainsByExtensionAddress($extensionAddress: ID!) { - listColonyExtensions(filter: {id: {eq: $extensionAddress}}) { - items { - colony { - domains { - items { - nativeSkillId - nativeId + query GetDomainsByExtensionAddress($extensionAddress: ID!) { + listColonyExtensions(filter: { id: { eq: $extensionAddress } }) { + items { + colony { + domains { + items { + nativeSkillId + nativeId + } } + id } - id } } } -} - `; +`; export const GetContractEventDocument = gql` - query GetContractEvent($id: ID!) { - getContractEvent(id: $id) { - id + query GetContractEvent($id: ID!) { + getContractEvent(id: $id) { + id + } } -} - `; +`; export const GetExpenditureDocument = gql` - query GetExpenditure($id: ID!) { - getExpenditure(id: $id) { - ...Expenditure + query GetExpenditure($id: ID!) { + getExpenditure(id: $id) { + ...Expenditure + } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetExpenditureByNativeFundingPotIdAndColonyDocument = gql` - query GetExpenditureByNativeFundingPotIdAndColony($nativeFundingPotId: Int!, $colonyAddress: ID!) { - getExpendituresByNativeFundingPotIdAndColony( - nativeFundingPotId: $nativeFundingPotId - colonyId: {eq: $colonyAddress} + query GetExpenditureByNativeFundingPotIdAndColony( + $nativeFundingPotId: Int! + $colonyAddress: ID! ) { - items { - ...Expenditure + getExpendituresByNativeFundingPotIdAndColony( + nativeFundingPotId: $nativeFundingPotId + colonyId: { eq: $colonyAddress } + ) { + items { + ...Expenditure + } } } -} - ${Expenditure}`; + ${Expenditure} +`; export const GetStreamingPaymentDocument = gql` - query GetStreamingPayment($id: ID!) { - getStreamingPayment(id: $id) { - ...StreamingPayment + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + ...StreamingPayment + } } -} - ${StreamingPayment}`; + ${StreamingPayment} +`; export const GetStreamingPaymentMetadataDocument = gql` - query GetStreamingPaymentMetadata($id: ID!) { - getStreamingPaymentMetadata(id: $id) { - ...StreamingPaymentMetadata + query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata + } } -} - ${StreamingPaymentMetadata}`; + ${StreamingPaymentMetadata} +`; export const GetColonyExtensionDocument = gql` - query GetColonyExtension($id: ID!) { - getColonyExtension(id: $id) { - ...Extension + query GetColonyExtension($id: ID!) { + getColonyExtension(id: $id) { + ...Extension + } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionsByColonyAddressDocument = gql` - query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { - getExtensionByColonyAndHash(colonyId: $colonyAddress) { - items { - ...Extension + query GetColonyExtensionsByColonyAddress($colonyAddress: ID!) { + getExtensionByColonyAndHash(colonyId: $colonyAddress) { + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const ListExtensionsDocument = gql` - query ListExtensions($hash: String!, $nextToken: String) { - getExtensionsByHash( - hash: $hash - limit: 1000 - nextToken: $nextToken - filter: {isDeleted: {eq: false}} - ) { - nextToken - items { - ...Extension + query ListExtensions($hash: String!, $nextToken: String) { + getExtensionsByHash( + hash: $hash + limit: 1000 + nextToken: $nextToken + filter: { isDeleted: { eq: false } } + ) { + nextToken + items { + ...Extension + } } } -} - ${Extension}`; + ${Extension} +`; export const GetColonyExtensionByHashAndColonyDocument = gql` - query GetColonyExtensionByHashAndColony($colonyAddress: ID!, $extensionHash: String!) { - getExtensionByColonyAndHash( - colonyId: $colonyAddress - hash: {eq: $extensionHash} - filter: {isDeleted: {eq: false}} + query GetColonyExtensionByHashAndColony( + $colonyAddress: ID! + $extensionHash: String! ) { - items { - id + getExtensionByColonyAndHash( + colonyId: $colonyAddress + hash: { eq: $extensionHash } + filter: { isDeleted: { eq: false } } + ) { + items { + id + } } } -} - `; +`; export const GetExtensionInstallationsCountDocument = gql` - query GetExtensionInstallationsCount($id: ID!) { - getExtensionInstallationsCount(id: $id) { - oneTxPayment - stakedExpenditure - stagedExpenditure - streamingPayments - reputationWeighted - multiSigPermissions + query GetExtensionInstallationsCount($id: ID!) { + getExtensionInstallationsCount(id: $id) { + oneTxPayment + stakedExpenditure + stagedExpenditure + streamingPayments + reputationWeighted + multiSigPermissions + } } -} - `; +`; export const GetColonyExtensionByAddressDocument = gql` - query GetColonyExtensionByAddress($extensionAddress: ID!) { - getColonyExtension(id: $extensionAddress) { - params { - multiSig { - colonyThreshold - domainThresholds { - domainId - domainThreshold + query GetColonyExtensionByAddress($extensionAddress: ID!) { + getColonyExtension(id: $extensionAddress) { + params { + multiSig { + colonyThreshold + domainThresholds { + domainId + domainThreshold + } } } + colonyId } - colonyId } -} - `; +`; export const GetColonyUnclaimedFundsDocument = gql` - query GetColonyUnclaimedFunds($colonyAddress: ID!, $tokenAddress: ID!, $upToBlock: Int = 1) { - listColonyFundsClaims( - filter: {colonyFundsClaimsId: {eq: $colonyAddress}, colonyFundsClaimTokenId: {eq: $tokenAddress}, createdAtBlock: {le: $upToBlock}, isClaimed: {ne: true}} + query GetColonyUnclaimedFunds( + $colonyAddress: ID! + $tokenAddress: ID! + $upToBlock: Int = 1 ) { - items { - id - token { - ...Token + listColonyFundsClaims( + filter: { + colonyFundsClaimsId: { eq: $colonyAddress } + colonyFundsClaimTokenId: { eq: $tokenAddress } + createdAtBlock: { le: $upToBlock } + isClaimed: { ne: true } + } + ) { + items { + id + token { + ...Token + } + amount } - amount } } -} - ${Token}`; + ${Token} +`; export const GetColonyUnclaimedFundDocument = gql` - query GetColonyUnclaimedFund($claimId: ID!) { - getColonyFundsClaim(id: $claimId) { - id + query GetColonyUnclaimedFund($claimId: ID!) { + getColonyFundsClaim(id: $claimId) { + id + } } -} - `; +`; export const GetCurrentNetworkInverseFeeDocument = gql` - query GetCurrentNetworkInverseFee { - listCurrentNetworkInverseFees(limit: 1) { - items { - id - inverseFee + query GetCurrentNetworkInverseFee { + listCurrentNetworkInverseFees(limit: 1) { + items { + id + inverseFee + } } } -} - `; +`; export const GetColonyActionByMotionIdDocument = gql` - query GetColonyActionByMotionId($motionId: ID!) { - getColonyActionByMotionId(motionId: $motionId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMotionId($motionId: ID!) { + getColonyActionByMotionId(motionId: $motionId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMotionDocument = gql` - query GetColonyMotion($id: ID!) { - getColonyMotion(id: $id) { - ...ColonyMotion + query GetColonyMotion($id: ID!) { + getColonyMotion(id: $id) { + ...ColonyMotion + } } -} - ${ColonyMotion}`; + ${ColonyMotion} +`; export const GetVoterRewardsDocument = gql` - query GetVoterRewards($input: GetVoterRewardsInput!) { - getVoterRewards(input: $input) { - min - max - reward + query GetVoterRewards($input: GetVoterRewardsInput!) { + getVoterRewards(input: $input) { + min + max + reward + } } -} - `; +`; export const GetColonyActionByMultiSigIdDocument = gql` - query GetColonyActionByMultiSigId($multiSigId: ID!) { - getColonyActionByMultiSigId(multiSigId: $multiSigId) { - items { - ...ActionMetadataInfo + query GetColonyActionByMultiSigId($multiSigId: ID!) { + getColonyActionByMultiSigId(multiSigId: $multiSigId) { + items { + ...ActionMetadataInfo + } } } -} - ${ActionMetadataInfo}`; + ${ActionMetadataInfo} +`; export const GetColonyMultiSigDocument = gql` - query GetColonyMultiSig($id: ID!) { - getColonyMultiSig(id: $id) { - ...ColonyMultiSig + query GetColonyMultiSig($id: ID!) { + getColonyMultiSig(id: $id) { + ...ColonyMultiSig + } } -} - ${ColonyMultiSig}`; + ${ColonyMultiSig} +`; export const GetUserMultiSigSignatureDocument = gql` - query GetUserMultiSigSignature($multiSigId: ID!, $userAddress: ID!, $vote: MultiSigVote!, $role: Int!) { - getMultiSigUserSignatureByMultiSigId( - filter: {userAddress: {eq: $userAddress}, vote: {eq: $vote}, role: {eq: $role}} - multiSigId: $multiSigId + query GetUserMultiSigSignature( + $multiSigId: ID! + $userAddress: ID! + $vote: MultiSigVote! + $role: Int! ) { - items { - ...MultiSigUserSignature + getMultiSigUserSignatureByMultiSigId( + filter: { + userAddress: { eq: $userAddress } + vote: { eq: $vote } + role: { eq: $role } + } + multiSigId: $multiSigId + ) { + items { + ...MultiSigUserSignature + } } } -} - ${MultiSigUserSignature}`; + ${MultiSigUserSignature} +`; export const GetAllMultiSigRolesDocument = gql` - query GetAllMultiSigRoles($colonyAddress: ID!) { - getRoleByColony( - colonyAddress: $colonyAddress - limit: 9999 - filter: {isMultiSig: {eq: true}} - ) { - items { - id + query GetAllMultiSigRoles($colonyAddress: ID!) { + getRoleByColony( + colonyAddress: $colonyAddress + limit: 9999 + filter: { isMultiSig: { eq: true } } + ) { + items { + id + } } } -} - `; +`; export const GetActiveColonyMultisigsDocument = gql` - query GetActiveColonyMultisigs($colonyAddress: ID!) { - getMultiSigByColonyAddress( - colonyAddress: $colonyAddress - filter: {isExecuted: {eq: false}, isRejected: {eq: false}} - limit: 9999 - ) { - items { - id + query GetActiveColonyMultisigs($colonyAddress: ID!) { + getMultiSigByColonyAddress( + colonyAddress: $colonyAddress + filter: { isExecuted: { eq: false }, isRejected: { eq: false } } + limit: 9999 + ) { + items { + id + } } } -} - `; +`; export const GetColonyRoleDocument = gql` - query GetColonyRole($id: ID!) { - getColonyRole(id: $id) { - id - latestBlock - role_0 - role_1 - role_2 - role_3 - role_5 - role_6 - } -} - `; -export const GetAllColonyRolesDocument = gql` - query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { - getRoleByTargetAddressAndColony( - targetAddress: $targetAddress - colonyAddress: {eq: $colonyAddress} - ) { - items { + query GetColonyRole($id: ID!) { + getColonyRole(id: $id) { id + latestBlock role_0 role_1 role_2 @@ -12491,61 +13850,79 @@ export const GetAllColonyRolesDocument = gql` role_6 } } -} - `; +`; +export const GetAllColonyRolesDocument = gql` + query GetAllColonyRoles($targetAddress: ID!, $colonyAddress: ID!) { + getRoleByTargetAddressAndColony( + targetAddress: $targetAddress + colonyAddress: { eq: $colonyAddress } + ) { + items { + id + role_0 + role_1 + role_2 + role_3 + role_5 + role_6 + } + } + } +`; export const GetColonyHistoricRoleDocument = gql` - query GetColonyHistoricRole($id: ID!) { - getColonyHistoricRole(id: $id) { - id + query GetColonyHistoricRole($id: ID!) { + getColonyHistoricRole(id: $id) { + id + } } -} - `; +`; export const GetReputationMiningCycleMetadataDocument = gql` - query GetReputationMiningCycleMetadata($id: ID!) { - getReputationMiningCycleMetadata(id: $id) { - id + query GetReputationMiningCycleMetadata($id: ID!) { + getReputationMiningCycleMetadata(id: $id) { + id + } } -} - `; +`; export const GetSafeTransactionByTransactionHashDocument = gql` - query GetSafeTransactionByTransactionHash($transactionHash: ID!) { - getSafeTransaction(id: $transactionHash) { - id + query GetSafeTransactionByTransactionHash($transactionHash: ID!) { + getSafeTransaction(id: $transactionHash) { + id + } } -} - `; +`; export const GetUserStakeDocument = gql` - query GetUserStake($id: ID!) { - getUserStake(id: $id) { - id - amount + query GetUserStake($id: ID!) { + getUserStake(id: $id) { + id + amount + } } -} - `; +`; export const GetStatsDocument = gql` - query GetStats { - getIngestorStats(id: "STATS") { - value + query GetStats { + getIngestorStats(id: "STATS") { + value + } } -} - `; +`; export const GetTokenFromEverywhereDocument = gql` - query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { - getTokenFromEverywhere(input: $input) { - items { - id + query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { + getTokenFromEverywhere(input: $input) { + items { + id + } } } -} - `; +`; export const GetNotificationUsersDocument = gql` - query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { - listUsers(filter: $filter, limit: $limit) { - items { - notificationsData { - ...NotificationsData + query GetNotificationUsers($filter: ModelUserFilterInput, $limit: Int) { + listUsers(filter: $filter, limit: $limit) { + items { + notificationsData { + ...NotificationsData + } } } } -} - ${NotificationsData}`; \ No newline at end of file + ${NotificationsData} +`; From 1bd882876c67623a890f8dc708ef4a8bfde5ed0d Mon Sep 17 00:00:00 2001 From: Sam Gibbs <34915414+iamsamgibbs@users.noreply.github.com> Date: Thu, 9 May 2024 14:43:14 +0100 Subject: [PATCH 44/48] Merge pull request #217 from JoinColony/feat/2215-cancel-streams-using-permissions Feat: Cancel streams using permissions From 133ef63da6586aa341bed28a31e2ab5860dab734 Mon Sep 17 00:00:00 2001 From: Dave Creaser <38098203+davecreaser@users.noreply.github.com> Date: Thu, 9 May 2024 16:54:32 +0100 Subject: [PATCH 45/48] Merge pull request #219 from JoinColony/feat/2206-claim-streaming-payments Feat/2206 claim streaming payments From 030397b9467673a108758269a7e087ca6ce8fee7 Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Thu, 30 Jan 2025 22:40:00 +0000 Subject: [PATCH 46/48] Feat: add create stream motion handler --- src/graphql/generated.ts | 2 ++ .../motions/motionCreated/handlers/index.ts | 2 +- .../cancelStreamingPaymentsMotion.ts | 27 +++++++++++++++++++ .../createStreamingPaymentMotion.ts | 27 +++++++++++++++++++ .../index.ts | 0 .../motions/motionCreated/motionCreated.ts | 9 +++++++ src/types/motions.ts | 3 +++ 7 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/handlers/motions/motionCreated/handlers/streamingPayments/cancelStreamingPaymentsMotion.ts create mode 100644 src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts rename src/handlers/motions/motionCreated/handlers/{streamingPayments.ts => streamingPayments}/index.ts (100%) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 4da943dba..866c74612 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -652,6 +652,8 @@ export enum ColonyActionType { CreateExpenditure = 'CREATE_EXPENDITURE', /** An action related to creating a streaming payment */ CreateStreamingPayment = 'CREATE_STREAMING_PAYMENT', + /** An action related to creating a streaming payment via a motion */ + CreateStreamingPaymentMotion = 'CREATE_STREAMING_PAYMENT_MOTION', /** An action related to editing a domain's details */ EditDomain = 'EDIT_DOMAIN', /** An action related to editing a domain's details via a motion */ diff --git a/src/handlers/motions/motionCreated/handlers/index.ts b/src/handlers/motions/motionCreated/handlers/index.ts index a56d94108..86c57a83d 100644 --- a/src/handlers/motions/motionCreated/handlers/index.ts +++ b/src/handlers/motions/motionCreated/handlers/index.ts @@ -13,4 +13,4 @@ export { handleMulticallMotion } from './multicall'; export { handleMakeArbitraryTransactionsMotion } from './makeArbitraryTransactions'; export { handleMetadataDeltaMotion } from './metadataDelta'; export * from './expenditures'; -export * from './streamingPayments.ts'; +export * from './streamingPayments'; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/cancelStreamingPaymentsMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/cancelStreamingPaymentsMotion.ts new file mode 100644 index 000000000..26f5fc501 --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/cancelStreamingPaymentsMotion.ts @@ -0,0 +1,27 @@ +import { TransactionDescription } from 'ethers/lib/utils'; +import { ContractEvent, motionNameMapping } from '~types'; +import { createMotionInDB } from '../../helpers'; +import { + getDomainDatabaseId, + getExpenditureDatabaseId, + toNumber, +} from '~utils'; + +export default async ( + colonyAddress: string, + event: ContractEvent, + { name, args: actionArgs }: TransactionDescription, +): Promise => { + const { args } = event; + const [, , streamingPaymentId] = actionArgs; + const [, , domainId] = args; + + await createMotionInDB(colonyAddress, event, { + type: motionNameMapping[name], + fromDomainId: getDomainDatabaseId(colonyAddress, domainId), + streamingPaymentId: getExpenditureDatabaseId( + colonyAddress, + toNumber(streamingPaymentId), + ), + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts new file mode 100644 index 000000000..26f5fc501 --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts @@ -0,0 +1,27 @@ +import { TransactionDescription } from 'ethers/lib/utils'; +import { ContractEvent, motionNameMapping } from '~types'; +import { createMotionInDB } from '../../helpers'; +import { + getDomainDatabaseId, + getExpenditureDatabaseId, + toNumber, +} from '~utils'; + +export default async ( + colonyAddress: string, + event: ContractEvent, + { name, args: actionArgs }: TransactionDescription, +): Promise => { + const { args } = event; + const [, , streamingPaymentId] = actionArgs; + const [, , domainId] = args; + + await createMotionInDB(colonyAddress, event, { + type: motionNameMapping[name], + fromDomainId: getDomainDatabaseId(colonyAddress, domainId), + streamingPaymentId: getExpenditureDatabaseId( + colonyAddress, + toNumber(streamingPaymentId), + ), + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts similarity index 100% rename from src/handlers/motions/motionCreated/handlers/streamingPayments.ts/index.ts rename to src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts diff --git a/src/handlers/motions/motionCreated/motionCreated.ts b/src/handlers/motions/motionCreated/motionCreated.ts index 8ef5f7f77..3ef7e95dc 100644 --- a/src/handlers/motions/motionCreated/motionCreated.ts +++ b/src/handlers/motions/motionCreated/motionCreated.ts @@ -236,6 +236,15 @@ export const handleMotionCreated: EventHandler = async ( break; } + case StreamingPaymentsOperations.CreateStreamingPayment: { + await handleCancelStreamingPaymentsMotion( + colonyAddress, + event, + parsedAction, + ); + break; + } + default: { break; } diff --git a/src/types/motions.ts b/src/types/motions.ts index 5f24eb363..8fa4c3899 100644 --- a/src/types/motions.ts +++ b/src/types/motions.ts @@ -27,6 +27,7 @@ export enum ColonyOperations { } export enum StreamingPaymentsOperations { + CreateStreamingPayment = 'create', CancelStreamingPayment = 'cancel', } @@ -75,6 +76,8 @@ export const motionNameMapping: { [key: string]: ColonyActionType } = { ColonyActionType.ReleaseStagedPaymentsMotion, [StreamingPaymentsOperations.CancelStreamingPayment]: ColonyActionType.CancelStreamingPaymentMotion, + [StreamingPaymentsOperations.CreateStreamingPayment]: + ColonyActionType.CreateStreamingPaymentMotion, }; export enum MotionSide { From 90ac24cf9cc6cfc8e38c0bd6ac22c102f777258b Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 1 Apr 2025 07:50:18 +0100 Subject: [PATCH 47/48] Handle pending streaming payments created by motions --- src/graphql/generated.ts | 41 +++++++++++++++++-- .../createStreamingPaymentMotion.ts | 34 ++++++++++----- .../handlers/streamingPayments/index.ts | 1 + src/handlers/motions/motionCreated/helpers.ts | 3 ++ .../motions/motionCreated/motionCreated.ts | 3 +- 5 files changed, 67 insertions(+), 15 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 866c74612..5527b1b91 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -618,8 +618,6 @@ export enum ColonyActionType { AddVerifiedMembers = 'ADD_VERIFIED_MEMBERS', AddVerifiedMembersMotion = 'ADD_VERIFIED_MEMBERS_MOTION', AddVerifiedMembersMultisig = 'ADD_VERIFIED_MEMBERS_MULTISIG', - /** An action related to arbitrary transaction */ - ArbitraryTx = 'ARBITRARY_TX', /** An action related to cancelling and waiving a streaming payment */ CancelAndWaiveStreamingPayment = 'CANCEL_AND_WAIVE_STREAMING_PAYMENT', /** An action related to canceling an expenditure */ @@ -1142,6 +1140,8 @@ export type ColonyMotion = { objectionAnnotation?: Maybe; /** Id of the associated objection annotation, if any */ objectionAnnotationId?: Maybe; + /** Pending streaming payment to be created by motion, if any */ + pendingStreamingPayment?: Maybe; /** Streaming Payment changes by the action */ pendingStreamingPaymentChanges?: Maybe; /** Streaming payment metadata that is stored temporarily and committed to the database once the corresponding motion passes */ @@ -1655,6 +1655,7 @@ export type CreateColonyMotionInput = { nativeMotionDomainId: Scalars['String']; nativeMotionId: Scalars['String']; objectionAnnotationId?: InputMaybe; + pendingStreamingPayment?: InputMaybe; pendingStreamingPaymentChanges?: InputMaybe; pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes: Array; @@ -2001,7 +2002,7 @@ export type CreateUserStakeInput = { id?: InputMaybe; isClaimed: Scalars['Boolean']; isForfeited?: InputMaybe; - type?: InputMaybe; + type: UserStakeType; userAddress: Scalars['ID']; }; @@ -6599,6 +6600,37 @@ export type PaymentInput = { tokenAddress: Scalars['String']; }; +export type PendingStreamingPayment = { + __typename?: 'PendingStreamingPayment'; + /** Amount per interval */ + amount: Scalars['String']; + /** End time in seconds since epoch */ + endTime: Scalars['String']; + /** Unique identifier for the pending streaming payment */ + id: Scalars['ID']; + /** Payment interval in seconds */ + interval: Scalars['String']; + /** Native domain ID where the streaming payment will be created */ + nativeDomainId: Scalars['Int']; + /** Address of the recipient */ + recipientAddress: Scalars['String']; + /** Start time in seconds since epoch */ + startTime: Scalars['String']; + /** Token address used for payments */ + tokenAddress: Scalars['ID']; +}; + +export type PendingStreamingPaymentInput = { + amount: Scalars['String']; + endTime: Scalars['String']; + id?: InputMaybe; + interval: Scalars['String']; + nativeDomainId: Scalars['Int']; + recipientAddress: Scalars['String']; + startTime: Scalars['String']; + tokenAddress: Scalars['ID']; +}; + export type PrivateBetaInviteCode = { __typename?: 'PrivateBetaInviteCode'; createdAt: Scalars['AWSDateTime']; @@ -9674,6 +9706,7 @@ export type UpdateColonyMotionInput = { nativeMotionDomainId?: InputMaybe; nativeMotionId?: InputMaybe; objectionAnnotationId?: InputMaybe; + pendingStreamingPayment?: InputMaybe; pendingStreamingPaymentChanges?: InputMaybe; pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe>; @@ -10140,7 +10173,7 @@ export type UserStake = { isClaimed: Scalars['Boolean']; /** Only applicable for expenditure stakes, indicates if the creator's stake was forfeited when expenditure was cancelled */ isForfeited?: Maybe; - type?: Maybe; + type: UserStakeType; updatedAt: Scalars['AWSDateTime']; user: User; userAddress: Scalars['ID']; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts index 26f5fc501..140164b27 100644 --- a/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts @@ -1,11 +1,7 @@ import { TransactionDescription } from 'ethers/lib/utils'; import { ContractEvent, motionNameMapping } from '~types'; import { createMotionInDB } from '../../helpers'; -import { - getDomainDatabaseId, - getExpenditureDatabaseId, - toNumber, -} from '~utils'; +import { getDomainDatabaseId } from '~utils'; export default async ( colonyAddress: string, @@ -13,15 +9,33 @@ export default async ( { name, args: actionArgs }: TransactionDescription, ): Promise => { const { args } = event; - const [, , streamingPaymentId] = actionArgs; const [, , domainId] = args; + const [ + , + , + , + , + , + startTime, + endTimeOrDuration, + interval, + recipient, + token, + amount, + ] = actionArgs; + await createMotionInDB(colonyAddress, event, { type: motionNameMapping[name], fromDomainId: getDomainDatabaseId(colonyAddress, domainId), - streamingPaymentId: getExpenditureDatabaseId( - colonyAddress, - toNumber(streamingPaymentId), - ), + pendingStreamingPayment: { + amount: amount.toString(), + startTime: startTime.toString(), + endTime: endTimeOrDuration.toString(), + interval: interval.toString(), + recipientAddress: recipient, + tokenAddress: token, + nativeDomainId: Number(domainId), + }, }); }; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts index d04a4d8cd..9e834bb4c 100644 --- a/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts @@ -1 +1,2 @@ export { default as handleCancelStreamingPaymentsMotion } from './cancelStreamingPaymentsMotion'; +export { default as handleCreateStreamingPaymentMotion } from './createStreamingPaymentMotion'; diff --git a/src/handlers/motions/motionCreated/helpers.ts b/src/handlers/motions/motionCreated/helpers.ts index 4185b1db0..f490337b7 100644 --- a/src/handlers/motions/motionCreated/helpers.ts +++ b/src/handlers/motions/motionCreated/helpers.ts @@ -181,6 +181,7 @@ type MotionFields = Omit< | 'expenditureFunding' | 'pendingStreamingPaymentChanges' | 'pendingStreamingPaymentMetadataId' + | 'pendingStreamingPayment' >; export const createMotionInDB = async ( @@ -201,6 +202,7 @@ export const createMotionInDB = async ( expenditureFunding, pendingStreamingPaymentChanges, pendingStreamingPaymentMetadataId, + pendingStreamingPayment, ...actionFields } = motionFields; @@ -254,6 +256,7 @@ export const createMotionInDB = async ( streamingPaymentId: actionFields.streamingPaymentId, pendingStreamingPaymentChanges, pendingStreamingPaymentMetadataId, + pendingStreamingPayment, }), createMotionMessage(initialMotionMessage), createColonyAction(actionData, timestamp), diff --git a/src/handlers/motions/motionCreated/motionCreated.ts b/src/handlers/motions/motionCreated/motionCreated.ts index 3ef7e95dc..43a768abb 100644 --- a/src/handlers/motions/motionCreated/motionCreated.ts +++ b/src/handlers/motions/motionCreated/motionCreated.ts @@ -37,6 +37,7 @@ import { handleFinalizeExpenditureViaArbitrationMotion, handleReleaseStagedPaymentViaArbitration, handleCancelStreamingPaymentsMotion, + handleCreateStreamingPaymentMotion, } from './handlers'; import { ExtensionEventListener } from '~eventListeners'; @@ -237,7 +238,7 @@ export const handleMotionCreated: EventHandler = async ( } case StreamingPaymentsOperations.CreateStreamingPayment: { - await handleCancelStreamingPaymentsMotion( + await handleCreateStreamingPaymentMotion( colonyAddress, event, parsedAction, From 97bca4c0a96a0d78b5a78961dfcc48a7009909ff Mon Sep 17 00:00:00 2001 From: Jakub Zajac Date: Tue, 1 Apr 2025 08:47:24 +0100 Subject: [PATCH 48/48] Link pending streaming payment metadata --- src/graphql/generated.ts | 24 +++- src/graphql/mutations/expenditures.graphql | 10 +- .../createStreamingPaymentMotion.ts | 10 +- .../motions/motionFinalized/helpers.ts | 119 ++++++++++++------ .../motionFinalized/motionFinalized.ts | 19 +-- .../multiSigExecuted/multiSigExecuted.ts | 10 +- src/utils/colonyMetadata.ts | 62 +++++++-- 7 files changed, 176 insertions(+), 78 deletions(-) diff --git a/src/graphql/generated.ts b/src/graphql/generated.ts index 5527b1b91..8a90ad98f 100644 --- a/src/graphql/generated.ts +++ b/src/graphql/generated.ts @@ -6606,8 +6606,6 @@ export type PendingStreamingPayment = { amount: Scalars['String']; /** End time in seconds since epoch */ endTime: Scalars['String']; - /** Unique identifier for the pending streaming payment */ - id: Scalars['ID']; /** Payment interval in seconds */ interval: Scalars['String']; /** Native domain ID where the streaming payment will be created */ @@ -6623,7 +6621,6 @@ export type PendingStreamingPayment = { export type PendingStreamingPaymentInput = { amount: Scalars['String']; endTime: Scalars['String']; - id?: InputMaybe; interval: Scalars['String']; nativeDomainId: Scalars['Int']; recipientAddress: Scalars['String']; @@ -11032,6 +11029,18 @@ export type UpdateStreamingPaymentMetadataMutation = { } | null; }; +export type CreateStreamingPaymentMetadataMutationVariables = Exact<{ + input: CreateStreamingPaymentMetadataInput; +}>; + +export type CreateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + createStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; + export type CreateColonyExtensionMutationVariables = Exact<{ input: CreateColonyExtensionInput; }>; @@ -13145,6 +13154,15 @@ export const UpdateStreamingPaymentMetadataDocument = gql` } } `; +export const CreateStreamingPaymentMetadataDocument = gql` + mutation CreateStreamingPaymentMetadata( + $input: CreateStreamingPaymentMetadataInput! + ) { + createStreamingPaymentMetadata(input: $input) { + id + } + } +`; export const CreateColonyExtensionDocument = gql` mutation CreateColonyExtension($input: CreateColonyExtensionInput!) { createColonyExtension(input: $input) { diff --git a/src/graphql/mutations/expenditures.graphql b/src/graphql/mutations/expenditures.graphql index 66bab8ca6..5dfc3292c 100644 --- a/src/graphql/mutations/expenditures.graphql +++ b/src/graphql/mutations/expenditures.graphql @@ -34,4 +34,12 @@ mutation UpdateStreamingPaymentMetadata( updateStreamingPaymentMetadata(input: $input) { id } -} \ No newline at end of file +} + +mutation CreateStreamingPaymentMetadata( + $input: CreateStreamingPaymentMetadataInput! +) { + createStreamingPaymentMetadata(input: $input) { + id + } +} diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts index 140164b27..cc96e3069 100644 --- a/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts @@ -1,14 +1,14 @@ import { TransactionDescription } from 'ethers/lib/utils'; import { ContractEvent, motionNameMapping } from '~types'; import { createMotionInDB } from '../../helpers'; -import { getDomainDatabaseId } from '~utils'; +import { getDomainDatabaseId, getPendingMetadataDatabaseId } from '~utils'; export default async ( colonyAddress: string, event: ContractEvent, { name, args: actionArgs }: TransactionDescription, ): Promise => { - const { args } = event; + const { args, transactionHash } = event; const [, , domainId] = args; const [ @@ -25,6 +25,11 @@ export default async ( amount, ] = actionArgs; + const pendingStreamingPaymentMetadataId = getPendingMetadataDatabaseId( + colonyAddress, + transactionHash, + ); + await createMotionInDB(colonyAddress, event, { type: motionNameMapping[name], fromDomainId: getDomainDatabaseId(colonyAddress, domainId), @@ -37,5 +42,6 @@ export default async ( tokenAddress: token, nativeDomainId: Number(domainId), }, + pendingStreamingPaymentMetadataId, }); }; diff --git a/src/handlers/motions/motionFinalized/helpers.ts b/src/handlers/motions/motionFinalized/helpers.ts index 2d44d9c75..4f167cb27 100644 --- a/src/handlers/motions/motionFinalized/helpers.ts +++ b/src/handlers/motions/motionFinalized/helpers.ts @@ -1,11 +1,16 @@ import { BigNumber } from 'ethers'; import { BlockTag } from '@ethersproject/abstract-provider'; -import { AnyVotingReputationClient, Extension } from '@colony/colony-js'; +import { + AnyStreamingPaymentsClient, + AnyVotingReputationClient, + Extension, +} from '@colony/colony-js'; import { ColonyOperations, MotionVote } from '~types'; import { getCachedColonyClient, getColonyFromDB, + getExpenditureDatabaseId, output, parseFunctionData, } from '~utils'; @@ -13,6 +18,9 @@ import { mutate, query } from '~amplifyClient'; import { ColonyActionType, ColonyMotion, + CreateStreamingPaymentMetadataDocument, + CreateStreamingPaymentMetadataMutation, + CreateStreamingPaymentMetadataMutationVariables, GetColonyActionByMotionIdDocument, GetColonyActionByMotionIdQuery, GetColonyActionByMotionIdQueryVariables, @@ -192,11 +200,15 @@ export const updateAmountToExcludeNetworkFee = async ( }; export const linkPendingStreamingPaymentMetadata = async ({ + colonyAddress, pendingStreamingPaymentMetadataId, streamingPaymentId, + streamingPaymentsClient, }: { + colonyAddress: string; pendingStreamingPaymentMetadataId: string; - streamingPaymentId: string; + streamingPaymentId?: string | null; + streamingPaymentsClient?: AnyStreamingPaymentsClient | null; }): Promise => { const { data: pendingStreamingPaymentMetadataQuery } = (await query< @@ -216,49 +228,76 @@ export const linkPendingStreamingPaymentMetadata = async ({ return; } - if (!pendingStreamingPaymentMetadata.changelog) { - output( - `Could not find the pending streaming payment metadata changelog with the id: ${pendingStreamingPaymentMetadataId}. This is a bug and should be investigated.`, + if (!streamingPaymentId) { + if (!streamingPaymentsClient) { + output( + `Attempting to link pending streaming payment metadata but no client was passed. This is a bug.`, + ); + return; + } + + const streamingPaymentsCount = + await streamingPaymentsClient.getNumStreamingPayments(); + const nativeStreamingPaymentId = streamingPaymentsCount.toNumber(); + const resolvedStreamingPaymentId = getExpenditureDatabaseId( + colonyAddress, + nativeStreamingPaymentId, ); - return; - } - const { data } = - (await query< - GetStreamingPaymentMetadataQuery, - GetStreamingPaymentMetadataQueryVariables - >(GetStreamingPaymentMetadataDocument, { - id: streamingPaymentId, - })) ?? {}; + await mutate< + CreateStreamingPaymentMetadataMutation, + CreateStreamingPaymentMetadataMutationVariables + >(CreateStreamingPaymentMetadataDocument, { + input: { + ...pendingStreamingPaymentMetadata, + id: resolvedStreamingPaymentId, + }, + }); + } else { + if (!pendingStreamingPaymentMetadata.changelog) { + output( + `Could not find the pending streaming payment metadata changelog with the id: ${pendingStreamingPaymentMetadataId}. This is a bug and should be investigated.`, + ); + return; + } - const currentStreamingPaymentMetadata = data?.getStreamingPaymentMetadata; + const { data } = + (await query< + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables + >(GetStreamingPaymentMetadataDocument, { + id: streamingPaymentId, + })) ?? {}; - if (!currentStreamingPaymentMetadata) { - output( - `Could not find the streaming payment metadata with the id: ${streamingPaymentId}. This is a bug and should be investigated.`, - ); - return; - } + const currentStreamingPaymentMetadata = data?.getStreamingPaymentMetadata; - const hasEndConditionChanged = - currentStreamingPaymentMetadata.endCondition !== - pendingStreamingPaymentMetadata.endCondition; + if (!currentStreamingPaymentMetadata) { + output( + `Could not find the streaming payment metadata with the id: ${streamingPaymentId}. This is a bug and should be investigated.`, + ); + return; + } - if (!hasEndConditionChanged) { - return; - } + const hasEndConditionChanged = + currentStreamingPaymentMetadata.endCondition !== + pendingStreamingPaymentMetadata.endCondition; - await mutate< - UpdateStreamingPaymentMetadataMutation, - UpdateStreamingPaymentMetadataMutationVariables - >(UpdateStreamingPaymentMetadataDocument, { - input: { - id: streamingPaymentId, - endCondition: pendingStreamingPaymentMetadata.endCondition, - changelog: [ - ...(currentStreamingPaymentMetadata?.changelog ?? []), - pendingStreamingPaymentMetadata.changelog[0], - ], - }, - }); + if (!hasEndConditionChanged) { + return; + } + + await mutate< + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables + >(UpdateStreamingPaymentMetadataDocument, { + input: { + id: streamingPaymentId, + endCondition: pendingStreamingPaymentMetadata.endCondition, + changelog: [ + ...(currentStreamingPaymentMetadata?.changelog ?? []), + pendingStreamingPaymentMetadata.changelog[0], + ], + }, + }); + } }; diff --git a/src/handlers/motions/motionFinalized/motionFinalized.ts b/src/handlers/motions/motionFinalized/motionFinalized.ts index b763397fb..3992e270e 100644 --- a/src/handlers/motions/motionFinalized/motionFinalized.ts +++ b/src/handlers/motions/motionFinalized/motionFinalized.ts @@ -15,7 +15,6 @@ import { import { getStakerReward, - linkPendingStreamingPaymentMetadata, updateColonyUnclaimedStakes, updateAmountToExcludeNetworkFee, } from './helpers'; @@ -64,28 +63,16 @@ export const handleMotionFinalized: EventHandler = async (event, listener) => { Number(yayPercentage) > Number(nayPercentage); if (yayWon) { - await linkPendingMetadata( + await linkPendingMetadata({ action, colonyAddress, - finalizedMotion.id, - false, - ); + finalizedMotion, + }); await updateAmountToExcludeNetworkFee( action, colonyAddress, finalizedMotion, ); - - if ( - finalizedMotion.pendingStreamingPaymentMetadataId && - finalizedMotion.streamingPaymentId - ) { - await linkPendingStreamingPaymentMetadata({ - pendingStreamingPaymentMetadataId: - finalizedMotion.pendingStreamingPaymentMetadataId, - streamingPaymentId: finalizedMotion.streamingPaymentId, - }); - } } const updatedStakerRewards = await Promise.all( diff --git a/src/handlers/multiSig/multiSigExecuted/multiSigExecuted.ts b/src/handlers/multiSig/multiSigExecuted/multiSigExecuted.ts index 9431cdc8c..51dd4e084 100644 --- a/src/handlers/multiSig/multiSigExecuted/multiSigExecuted.ts +++ b/src/handlers/multiSig/multiSigExecuted/multiSigExecuted.ts @@ -59,12 +59,12 @@ export const handleMultiSigMotionExecuted: EventHandler = async ( return; } - await linkPendingMetadata( - actionData, + await linkPendingMetadata({ + action: actionData, colonyAddress, - finalizedMultiSig.id, - true, - ); + finalizedMotion: finalizedMultiSig, + isMultiSig: true, + }); const multiSigData = await getMultiSigFromDB(multiSigDatabaseId); diff --git a/src/utils/colonyMetadata.ts b/src/utils/colonyMetadata.ts index 4b6cc2f8e..0d688e635 100644 --- a/src/utils/colonyMetadata.ts +++ b/src/utils/colonyMetadata.ts @@ -1,9 +1,11 @@ import { TransactionDescription } from 'ethers/lib/utils'; -import { ColonyOperations } from '~types'; +import { ColonyOperations, StreamingPaymentsOperations } from '~types'; import { query, mutate } from '~amplifyClient'; import { ColonyMetadata, + ColonyMotionFragment, + ColonyMultiSigFragment, CreateDomainMetadataDocument, DomainMetadata, GetColonyMetadataDocument, @@ -17,9 +19,11 @@ import { } from '~graphql'; import { getDomainDatabaseId } from './domains'; import { output } from './logger'; -import { getCachedColonyClient } from './clients'; +import { getCachedColonyClient, getStreamingPaymentsClient } from './clients'; import { getActionByMotionId, getActionByMultiSigId } from './actions'; import { parseFunctionData } from './parseFunction'; +import { utils } from 'ethers'; +import { linkPendingStreamingPaymentMetadata } from '~handlers/motions/motionFinalized/helpers'; const linkPendingDomainMetadataWithDomain = async ( pendingDomainMetadata: DomainMetadata, @@ -186,20 +190,35 @@ const linkPendingColonyMetadataWithColony = async ( }); }; -export const linkPendingMetadata = async ( - action: string, - colonyAddress: string, - motionId: string, - isMultiSig: boolean, -): Promise => { +interface LinkPendingMetadataParams { + action: string; + colonyAddress: string; + isMultiSig?: boolean; + finalizedMotion: ColonyMotionFragment | ColonyMultiSigFragment; +} + +export const linkPendingMetadata = async ({ + action, + colonyAddress, + isMultiSig, + finalizedMotion, +}: LinkPendingMetadataParams): Promise => { const colonyClient = await getCachedColonyClient(colonyAddress); + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); if (!colonyClient) { return; } // @NOTE: We only care about handful of events from Colony contract so not passing all the interfaces - const parsedAction = parseFunctionData(action, [colonyClient.interface]); + const parsedAction = parseFunctionData( + action, + [colonyClient.interface, streamingPaymentsClient?.interface].filter( + Boolean, + ) as utils.Interface[], + ); if (!parsedAction) { return; } @@ -210,6 +229,13 @@ export const linkPendingMetadata = async ( parsedAction.name === ColonyOperations.EditDomain; const isMotionEditingAColony = parsedAction.name === ColonyOperations.EditColony; + const isMotionCreatingStreamingPayment = + parsedAction.name === StreamingPaymentsOperations.CreateStreamingPayment; + const hasPendingStreamingPaymentMetadata = + 'pendingStreamingPaymentMetadataId' in finalizedMotion && + !!finalizedMotion.pendingStreamingPaymentMetadataId; + const isMotionEditingStreamingPayment = + ColonyOperations.Multicall && hasPendingStreamingPaymentMetadata; if ( isMotionAddingADomain || @@ -219,9 +245,9 @@ export const linkPendingMetadata = async ( let colonyAction; if (isMultiSig) { - colonyAction = await getActionByMultiSigId(motionId); + colonyAction = await getActionByMultiSigId(finalizedMotion.id); } else { - colonyAction = await getActionByMotionId(motionId); + colonyAction = await getActionByMotionId(finalizedMotion.id); } /* * pendingDomainMetadata is a motion data prop that we use to store the metadata of a Domain that COULD be created/edited @@ -246,4 +272,18 @@ export const linkPendingMetadata = async ( ); } } + + if ( + (isMotionCreatingStreamingPayment || isMotionEditingStreamingPayment) && + 'pendingStreamingPaymentMetadataId' in finalizedMotion && + finalizedMotion.pendingStreamingPaymentMetadataId + ) { + await linkPendingStreamingPaymentMetadata({ + colonyAddress, + pendingStreamingPaymentMetadataId: + finalizedMotion.pendingStreamingPaymentMetadataId, + streamingPaymentId: finalizedMotion.streamingPaymentId, + streamingPaymentsClient, + }); + } };