diff --git a/src/eventListeners/extension/streamingPayments.ts b/src/eventListeners/extension/streamingPayments.ts index 4edf0d01d..bfcbe4e91 100644 --- a/src/eventListeners/extension/streamingPayments.ts +++ b/src/eventListeners/extension/streamingPayments.ts @@ -1,8 +1,14 @@ import { Extension, getExtensionHash } from '@colony/colony-js'; import { handlePaymentTokenUpdated, + handleStreamingPaymentClaimed, + handleStreamingPaymentClaimWaived, handleStreamingPaymentCreated, } from '~handlers'; +import { + handleStreamingPaymentStartTimeSet, + handleStreamingPaymentEndTimeSet, +} from '~handlers/expenditures/index'; import { ContractEventsSignatures } from '~types'; import { output } from '~utils'; @@ -28,6 +34,11 @@ export const setupListenersForStreamingPayments = ( [ContractEventsSignatures.StreamingPaymentCreated]: handleStreamingPaymentCreated, [ContractEventsSignatures.PaymentTokenUpdated]: handlePaymentTokenUpdated, + [ContractEventsSignatures.StartTimeSet]: handleStreamingPaymentStartTimeSet, + [ContractEventsSignatures.EndTimeSet]: handleStreamingPaymentEndTimeSet, + [ContractEventsSignatures.StreamingPaymentClaimed]: + handleStreamingPaymentClaimed, + [ContractEventsSignatures.ClaimWaived]: handleStreamingPaymentClaimWaived, }; Object.entries(eventHandlers).forEach(([eventSignature, handler]) => diff --git a/src/graphql/fragments/expenditures.graphql b/src/graphql/fragments/expenditures.graphql index 271f5f9ee..5e38983fc 100644 --- a/src/graphql/fragments/expenditures.graphql +++ b/src/graphql/fragments/expenditures.graphql @@ -51,3 +51,36 @@ fragment ExpenditureSlot on ExpenditureSlot { networkFee } } + +fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp + } +} + +fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } +} + +fragment StreamingPaymentChanges on StreamingPaymentChanges { + startTime + endTime + interval + amount +} 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 40de303ca..8a90ad98f 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 = { @@ -527,6 +536,15 @@ 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; + /** + * 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 */ toDomain?: Maybe; /** The target Domain identifier, if applicable */ @@ -600,14 +618,18 @@ 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 */ CancelExpenditure = 'CANCEL_EXPENDITURE', /** An action related to a motion to cancel an expenditure */ 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 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 */ @@ -626,6 +648,10 @@ 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 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 */ @@ -636,6 +662,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 */ @@ -727,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 */ @@ -827,7 +857,6 @@ export type ColonyContributor = { user?: Maybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorReputationArgs = { colonyAddress?: InputMaybe; @@ -837,7 +866,6 @@ export type ColonyContributorReputationArgs = { sortDirection?: InputMaybe; }; - /** The ColonyContributor model represents a contributor to the Colony. */ export type ColonyContributorRolesArgs = { colonyAddress?: InputMaybe; @@ -1112,6 +1140,14 @@ 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 */ + 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]` @@ -1127,6 +1163,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 action, if any */ + streamingPayment?: Maybe; + /** ID of the associated streaming payment, if any */ + streamingPaymentId?: Maybe; /** The transaction hash of the createMotion action */ transactionHash: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; @@ -1139,7 +1179,6 @@ export type ColonyMotion = { voterRewards?: Maybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionMessagesArgs = { createdAt?: InputMaybe; @@ -1149,7 +1188,6 @@ export type ColonyMotionMessagesArgs = { sortDirection?: InputMaybe; }; - /** Represents a Motion within a Colony */ export type ColonyMotionVoterRewardsArgs = { createdAt?: InputMaybe; @@ -1215,7 +1253,6 @@ export type ColonyMultiSig = { updatedAt: Scalars['AWSDateTime']; }; - /** Represents a MultiSig motion within a Colony */ export type ColonyMultiSigSignaturesArgs = { filter?: InputMaybe; @@ -1326,7 +1363,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 */ @@ -1405,7 +1442,7 @@ export enum ContributorType { Dedicated = 'DEDICATED', General = 'GENERAL', New = 'NEW', - Top = 'TOP' + Top = 'TOP', } export type CreateAnnotationInput = { @@ -1431,7 +1468,9 @@ export type CreateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber: Scalars['Int']; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -1463,6 +1502,8 @@ export type CreateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash: Scalars['String']; showInActionsList: Scalars['Boolean']; + streamingPaymentChanges?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -1614,12 +1655,16 @@ export type CreateColonyMotionInput = { nativeMotionDomainId: Scalars['String']; nativeMotionId: Scalars['String']; objectionAnnotationId?: InputMaybe; + pendingStreamingPayment?: InputMaybe; + pendingStreamingPaymentChanges?: InputMaybe; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes: Array; repSubmitted: Scalars['String']; requiredStake: Scalars['String']; revealedVotes: MotionStakesInput; skillRep: Scalars['String']; stakerRewards: Array; + streamingPaymentId?: InputMaybe; transactionHash: Scalars['ID']; userMinStake: Scalars['String']; usersStakes: Array; @@ -1855,21 +1900,27 @@ export type CreateSafeTransactionInput = { }; export type CreateStreamingPaymentInput = { + amount: Scalars['String']; + claims?: InputMaybe>; + colonyId: Scalars['ID']; createdAt?: InputMaybe; - endTime: Scalars['AWSTimestamp']; + creatorAddress: Scalars['ID']; + endTime: Scalars['String']; id?: InputMaybe; interval: Scalars['String']; + isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId: Scalars['Int']; nativeId: Scalars['Int']; - payouts?: InputMaybe>; recipientAddress: Scalars['String']; - startTime: Scalars['AWSTimestamp']; + startTime: Scalars['String']; + tokenAddress: Scalars['ID']; }; export type CreateStreamingPaymentMetadataInput = { + changelog?: InputMaybe>; endCondition: StreamingPaymentEndCondition; id?: InputMaybe; - limitAmount?: InputMaybe; }; export type CreateTokenExchangeRateInput = { @@ -1893,6 +1944,7 @@ export type CreateTokenInput = { }; export type CreateTransactionInput = { + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress: Scalars['ID']; @@ -1950,7 +2002,7 @@ export type CreateUserStakeInput = { id?: InputMaybe; isClaimed: Scalars['Boolean']; isForfeited?: InputMaybe; - type?: InputMaybe; + type: UserStakeType; userAddress: Scalars['ID']; }; @@ -2290,7 +2342,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 */ @@ -2401,7 +2453,6 @@ export type Expenditure = { userStakeId?: Maybe; }; - export type ExpenditureActionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2409,7 +2460,6 @@ export type ExpenditureActionsArgs = { sortDirection?: InputMaybe; }; - export type ExpenditureMotionsArgs = { filter?: InputMaybe; limit?: InputMaybe; @@ -2525,12 +2575,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 { @@ -2544,7 +2594,7 @@ export enum ExtendedSupportedCurrencies { Jpy = 'JPY', Krw = 'KRW', Usd = 'USD', - Usdc = 'USDC' + Usdc = 'USDC', } export type ExtensionInstallationsCount = { @@ -2598,7 +2648,7 @@ export enum ExternalLinks { Telegram = 'Telegram', Twitter = 'Twitter', Whitepaper = 'Whitepaper', - Youtube = 'Youtube' + Youtube = 'Youtube', } export type FailedTransaction = { @@ -2613,7 +2663,7 @@ export enum FilteringMethod { /** Apply an intersection filter */ Intersection = 'INTERSECTION', /** Apply a union filter */ - Union = 'UNION' + Union = 'UNION', } export type FunctionParam = { @@ -2759,7 +2809,7 @@ export enum KycStatus { NotStarted = 'NOT_STARTED', Pending = 'PENDING', Rejected = 'REJECTED', - UnderReview = 'UNDER_REVIEW' + UnderReview = 'UNDER_REVIEW', } /** @@ -2829,7 +2879,7 @@ export enum ModelAttributeTypes { Number = 'number', NumberSet = 'numberSet', String = 'string', - StringSet = 'stringSet' + StringSet = 'stringSet', } export type ModelBooleanInput = { @@ -2912,6 +2962,7 @@ export type ModelColonyActionConditionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -2958,6 +3009,7 @@ export type ModelColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -3272,10 +3324,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; }; @@ -3301,10 +3355,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; }; @@ -3503,10 +3559,14 @@ export type ModelContributorTypeInput = { }; export type ModelCurrentNetworkInverseFeeConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; inverseFee?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelCurrentNetworkInverseFeeConnection = { @@ -3696,11 +3756,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; @@ -3714,12 +3778,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; @@ -4004,10 +4072,14 @@ export type ModelProfileFilterInput = { }; export type ModelReputationMiningCycleMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; lastCompletedAt?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelReputationMiningCycleMetadataConnection = { @@ -4017,11 +4089,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 = { @@ -4095,7 +4171,7 @@ export type ModelSizeInput = { export enum ModelSortDirection { Asc = 'ASC', - Desc = 'DESC' + Desc = 'DESC', } export type ModelSplitPaymentDistributionTypeInput = { @@ -4104,16 +4180,22 @@ export type ModelSplitPaymentDistributionTypeInput = { }; export type ModelStreamingPaymentConditionInput = { + amount?: InputMaybe; and?: InputMaybe>>; + colonyId?: InputMaybe; createdAt?: InputMaybe; - endTime?: InputMaybe; + creatorAddress?: InputMaybe; + endTime?: InputMaybe; interval?: InputMaybe; + isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentConnection = { @@ -4128,25 +4210,34 @@ export type ModelStreamingPaymentEndConditionInput = { }; export type ModelStreamingPaymentFilterInput = { + amount?: InputMaybe; and?: InputMaybe>>; + colonyId?: InputMaybe; createdAt?: InputMaybe; - endTime?: 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; + startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type ModelStreamingPaymentMetadataConditionInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; endCondition?: InputMaybe; - limitAmount?: InputMaybe; not?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelStreamingPaymentMetadataConnection = { @@ -4159,7 +4250,6 @@ export type ModelStreamingPaymentMetadataFilterInput = { and?: InputMaybe>>; endCondition?: InputMaybe; id?: InputMaybe; - limitAmount?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; }; @@ -4205,12 +4295,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; @@ -4250,6 +4344,7 @@ export type ModelSubscriptionColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -4257,14 +4352,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; @@ -4273,26 +4374,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; @@ -4301,7 +4410,9 @@ export type ModelSubscriptionColonyExtensionFilterInput = { isDeleted?: InputMaybe; isDeprecated?: InputMaybe; isInitialized?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; version?: InputMaybe; }; @@ -4322,24 +4433,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; @@ -4351,20 +4470,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; }; @@ -4382,16 +4509,20 @@ 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; }; export type ModelSubscriptionColonyMultiSigFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; colonyAddress?: InputMaybe; createdAt?: InputMaybe; executedAt?: InputMaybe; @@ -4405,7 +4536,9 @@ export type ModelSubscriptionColonyMultiSigFilterInput = { multiSigDomainId?: InputMaybe; nativeMultiSigDomainId?: InputMaybe; nativeMultiSigId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; rejectedAt?: InputMaybe; rejectedBy?: InputMaybe; requiredPermissions?: InputMaybe; @@ -4439,7 +4572,9 @@ export type ModelSubscriptionColonyTokensFilterInput = { export type ModelSubscriptionContractEventFilterInput = { agent?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; encodedArguments?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -4449,28 +4584,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; }; @@ -4488,12 +4635,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 = { @@ -4518,21 +4669,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; @@ -4567,7 +4726,9 @@ export type ModelSubscriptionIdInput = { }; export type ModelSubscriptionIngestorStatsFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; or?: InputMaybe>>; value?: InputMaybe; @@ -4586,17 +4747,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; @@ -4607,12 +4774,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; @@ -4620,20 +4791,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; }; @@ -4656,20 +4835,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; @@ -4677,30 +4864,47 @@ export type ModelSubscriptionSafeTransactionDataFilterInput = { }; export type ModelSubscriptionSafeTransactionFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; id?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; }; export type ModelSubscriptionStreamingPaymentFilterInput = { - and?: InputMaybe>>; + amount?: InputMaybe; + and?: InputMaybe< + Array> + >; + colonyId?: InputMaybe; createdAt?: InputMaybe; - endTime?: InputMaybe; + creatorAddress?: InputMaybe; + endTime?: InputMaybe; id?: InputMaybe; interval?: InputMaybe; + isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; recipientAddress?: InputMaybe; - startTime?: 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 = { @@ -4719,9 +4923,13 @@ export type ModelSubscriptionStringInput = { }; export type ModelSubscriptionTokenExchangeRateFilterInput = { - and?: InputMaybe>>; + and?: InputMaybe< + Array> + >; date?: InputMaybe; - or?: InputMaybe>>; + or?: InputMaybe< + Array> + >; tokenId?: InputMaybe; }; @@ -4741,6 +4949,7 @@ export type ModelSubscriptionTokenFilterInput = { export type ModelSubscriptionTransactionFilterInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -4800,12 +5009,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; }; @@ -4883,6 +5096,7 @@ export type ModelTokenTypeInput = { export type ModelTransactionConditionInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -4918,6 +5132,7 @@ export type ModelTransactionConnection = { export type ModelTransactionFilterInput = { and?: InputMaybe>>; + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -5236,7 +5451,7 @@ export type MultiSigUserSignature = { export enum MultiSigVote { Approve = 'Approve', None = 'None', - Reject = 'Reject' + Reject = 'Reject', } /** Root mutation type */ @@ -5394,979 +5609,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; @@ -6454,7 +6528,7 @@ export enum Network { /** Ethereum Goerli test network */ Goerli = 'GOERLI', /** Ethereum Mainnet */ - Mainnet = 'MAINNET' + Mainnet = 'MAINNET', } /** Type of notifications that can be sent */ @@ -6485,7 +6559,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. */ @@ -6526,6 +6600,34 @@ 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']; + /** 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']; + interval: Scalars['String']; + nativeDomainId: Scalars['Int']; + recipientAddress: Scalars['String']; + startTime: Scalars['String']; + tokenAddress: Scalars['ID']; +}; + export type PrivateBetaInviteCode = { __typename?: 'PrivateBetaInviteCode'; createdAt: Scalars['AWSDateTime']; @@ -6637,6 +6739,7 @@ export type Query = { cacheAllDomainBalance?: Maybe; cacheTotalBalanceByColonyAddress?: Maybe; getActionByExpenditureId?: Maybe; + getActionByStreamingPaymentId?: Maybe; getActionsByColony?: Maybe; getAnnotation?: Maybe; getCacheTotalBalance?: Maybe; @@ -6688,6 +6791,7 @@ export type Query = { getLiquidationAddress?: Maybe; getLiquidationAddressesByUserAddress?: Maybe; getMotionByExpenditureId?: Maybe; + getMotionByStreamingPaymentId?: Maybe; getMotionByTransactionHash?: Maybe; getMotionMessage?: Maybe; getMotionMessageByMotionId?: Maybe; @@ -6715,6 +6819,7 @@ export type Query = { getSafeTransactionStatus?: Maybe>; getStreamingPayment?: Maybe; getStreamingPaymentMetadata?: Maybe; + getStreamingPaymentsByColony?: Maybe; getToken?: Maybe; getTokenByAddress?: Maybe; getTokenExchangeRate?: Maybe; @@ -6788,16 +6893,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']; @@ -6808,7 +6912,6 @@ export type QueryCacheTotalBalanceByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetActionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -6818,6 +6921,14 @@ export type QueryGetActionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; +/** Root query type */ +export type QueryGetActionByStreamingPaymentIdArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; + streamingPaymentId: Scalars['ID']; +}; /** Root query type */ export type QueryGetActionsByColonyArgs = { @@ -6829,19 +6940,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; @@ -6851,19 +6959,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; @@ -6873,7 +6978,6 @@ export type QueryGetColonyActionByMotionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionByMultiSigIdArgs = { filter?: InputMaybe; @@ -6883,13 +6987,11 @@ export type QueryGetColonyActionByMultiSigIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyActionMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetColonyByAddressArgs = { filter?: InputMaybe; @@ -6899,7 +7001,6 @@ export type QueryGetColonyByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByNameArgs = { filter?: InputMaybe; @@ -6909,7 +7010,6 @@ export type QueryGetColonyByNameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyByTypeArgs = { filter?: InputMaybe; @@ -6919,19 +7019,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']; @@ -6941,7 +7038,6 @@ export type QueryGetColonyDecisionByActionIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetColonyDecisionByColonyAddressArgs = { colonyAddress: Scalars['String']; @@ -6952,25 +7048,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; @@ -6981,55 +7073,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; @@ -7040,7 +7123,6 @@ export type QueryGetContributorsByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetContributorsByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7051,19 +7133,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; @@ -7073,19 +7152,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; @@ -7096,13 +7172,11 @@ export type QueryGetDomainByNativeSkillIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetDomainMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetDomainsByColonyArgs = { colonyId: Scalars['ID']; @@ -7113,19 +7187,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']; @@ -7136,7 +7207,6 @@ export type QueryGetExpendituresByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { colonyId?: InputMaybe; @@ -7147,7 +7217,6 @@ export type QueryGetExpendituresByNativeFundingPotIdAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionByColonyAndHashArgs = { colonyId: Scalars['ID']; @@ -7158,13 +7227,11 @@ export type QueryGetExtensionByColonyAndHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetExtensionInstallationsCountArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetExtensionsByHashArgs = { filter?: InputMaybe; @@ -7174,7 +7241,6 @@ export type QueryGetExtensionsByHashArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetFundsClaimsByColonyArgs = { colonyFundsClaimsId: Scalars['ID']; @@ -7185,19 +7251,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; @@ -7207,7 +7270,6 @@ export type QueryGetLiquidationAddressesByUserAddressArgs = { userAddress: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7217,23 +7279,29 @@ export type QueryGetMotionByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ -export type QueryGetMotionByTransactionHashArgs = { +export type QueryGetMotionByStreamingPaymentIdArgs = { filter?: InputMaybe; limit?: InputMaybe; nextToken?: InputMaybe; sortDirection?: InputMaybe; - transactionHash: Scalars['ID']; + streamingPaymentId: Scalars['ID']; +}; + +/** Root query type */ +export type QueryGetMotionByTransactionHashArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; + transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMotionMessageByMotionIdArgs = { createdAt?: InputMaybe; @@ -7244,19 +7312,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; @@ -7267,7 +7332,6 @@ export type QueryGetMotionVoterRewardsArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByColonyAddressArgs = { colonyAddress: Scalars['ID']; @@ -7277,7 +7341,6 @@ export type QueryGetMultiSigByColonyAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByExpenditureIdArgs = { expenditureId: Scalars['ID']; @@ -7287,7 +7350,6 @@ export type QueryGetMultiSigByExpenditureIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetMultiSigByTransactionHashArgs = { filter?: InputMaybe; @@ -7297,13 +7359,11 @@ export type QueryGetMultiSigByTransactionHashArgs = { transactionHash: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetMultiSigUserSignatureByMultiSigIdArgs = { filter?: InputMaybe; @@ -7313,25 +7373,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']; @@ -7341,7 +7397,6 @@ export type QueryGetProfileByEmailArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetProfileByUsernameArgs = { displayName: Scalars['String']; @@ -7351,13 +7406,11 @@ export type QueryGetProfileByUsernameArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetReputationMiningCycleMetadataArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetRoleByColonyArgs = { colonyAddress: Scalars['ID']; @@ -7368,7 +7421,6 @@ export type QueryGetRoleByColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByDomainAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7379,7 +7431,6 @@ export type QueryGetRoleByDomainAndColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetRoleByTargetAddressAndColonyArgs = { colonyAddress?: InputMaybe; @@ -7390,43 +7441,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; @@ -7436,19 +7490,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; @@ -7458,13 +7509,11 @@ export type QueryGetTokensByTypeArgs = { type: TokenType; }; - /** Root query type */ export type QueryGetTransactionArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetTransactionsByUserArgs = { createdAt?: InputMaybe; @@ -7475,7 +7524,6 @@ export type QueryGetTransactionsByUserArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetTransactionsByUserAndGroupArgs = { filter?: InputMaybe; @@ -7486,13 +7534,11 @@ export type QueryGetTransactionsByUserAndGroupArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserByAddressArgs = { filter?: InputMaybe; @@ -7502,7 +7548,6 @@ export type QueryGetUserByAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByBridgeCustomerIdArgs = { bridgeCustomerId: Scalars['String']; @@ -7512,7 +7557,6 @@ export type QueryGetUserByBridgeCustomerIdArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserByLiquidationAddressArgs = { filter?: InputMaybe; @@ -7522,13 +7566,11 @@ export type QueryGetUserByLiquidationAddressArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationArgs = { input?: InputMaybe; }; - /** Root query type */ export type QueryGetUserReputationInColonyArgs = { colonyAddress?: InputMaybe; @@ -7539,13 +7581,11 @@ export type QueryGetUserReputationInColonyArgs = { sortDirection?: InputMaybe; }; - /** Root query type */ export type QueryGetUserStakeArgs = { id: Scalars['ID']; }; - /** Root query type */ export type QueryGetUserStakesArgs = { createdAt?: InputMaybe; @@ -7556,19 +7596,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; @@ -7579,19 +7616,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; @@ -7599,7 +7633,6 @@ export type QueryListAnnotationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCacheTotalBalancesArgs = { filter?: InputMaybe; @@ -7607,7 +7640,6 @@ export type QueryListCacheTotalBalancesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColoniesArgs = { filter?: InputMaybe; @@ -7615,7 +7647,6 @@ export type QueryListColoniesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionMetadataArgs = { filter?: InputMaybe; @@ -7623,7 +7654,6 @@ export type QueryListColonyActionMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyActionsArgs = { filter?: InputMaybe; @@ -7631,7 +7661,6 @@ export type QueryListColonyActionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyContributorsArgs = { filter?: InputMaybe; @@ -7639,7 +7668,6 @@ export type QueryListColonyContributorsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyDecisionsArgs = { filter?: InputMaybe; @@ -7647,7 +7675,6 @@ export type QueryListColonyDecisionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyExtensionsArgs = { filter?: InputMaybe; @@ -7655,7 +7682,6 @@ export type QueryListColonyExtensionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyFundsClaimsArgs = { filter?: InputMaybe; @@ -7663,7 +7689,6 @@ export type QueryListColonyFundsClaimsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyHistoricRolesArgs = { filter?: InputMaybe; @@ -7671,7 +7696,6 @@ export type QueryListColonyHistoricRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMemberInvitesArgs = { filter?: InputMaybe; @@ -7679,7 +7703,6 @@ export type QueryListColonyMemberInvitesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMetadataArgs = { filter?: InputMaybe; @@ -7687,7 +7710,6 @@ export type QueryListColonyMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMotionsArgs = { filter?: InputMaybe; @@ -7695,7 +7717,6 @@ export type QueryListColonyMotionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyMultiSigsArgs = { filter?: InputMaybe; @@ -7703,7 +7724,6 @@ export type QueryListColonyMultiSigsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyRolesArgs = { filter?: InputMaybe; @@ -7711,7 +7731,6 @@ export type QueryListColonyRolesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListColonyTokensArgs = { filter?: InputMaybe; @@ -7719,7 +7738,6 @@ export type QueryListColonyTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContractEventsArgs = { filter?: InputMaybe; @@ -7727,7 +7745,6 @@ export type QueryListContractEventsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListContributorReputationsArgs = { filter?: InputMaybe; @@ -7735,7 +7752,6 @@ export type QueryListContributorReputationsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentNetworkInverseFeesArgs = { filter?: InputMaybe; @@ -7743,7 +7759,6 @@ export type QueryListCurrentNetworkInverseFeesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListCurrentVersionsArgs = { filter?: InputMaybe; @@ -7751,7 +7766,6 @@ export type QueryListCurrentVersionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainMetadataArgs = { filter?: InputMaybe; @@ -7759,7 +7773,6 @@ export type QueryListDomainMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListDomainsArgs = { filter?: InputMaybe; @@ -7767,7 +7780,6 @@ export type QueryListDomainsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpenditureMetadataArgs = { filter?: InputMaybe; @@ -7775,7 +7787,6 @@ export type QueryListExpenditureMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExpendituresArgs = { filter?: InputMaybe; @@ -7783,7 +7794,6 @@ export type QueryListExpendituresArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListExtensionInstallationsCountsArgs = { filter?: InputMaybe; @@ -7791,7 +7801,6 @@ export type QueryListExtensionInstallationsCountsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListIngestorStatsArgs = { filter?: InputMaybe; @@ -7799,7 +7808,6 @@ export type QueryListIngestorStatsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListLiquidationAddressesArgs = { filter?: InputMaybe; @@ -7807,7 +7815,6 @@ export type QueryListLiquidationAddressesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMotionMessagesArgs = { filter?: InputMaybe; @@ -7815,7 +7822,6 @@ export type QueryListMotionMessagesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListMultiSigUserSignaturesArgs = { filter?: InputMaybe; @@ -7823,7 +7829,6 @@ export type QueryListMultiSigUserSignaturesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListNotificationsDataArgs = { filter?: InputMaybe; @@ -7833,7 +7838,6 @@ export type QueryListNotificationsDataArgs = { userAddress?: InputMaybe; }; - /** Root query type */ export type QueryListPrivateBetaInviteCodesArgs = { filter?: InputMaybe; @@ -7841,7 +7845,6 @@ export type QueryListPrivateBetaInviteCodesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListProfilesArgs = { filter?: InputMaybe; @@ -7849,7 +7852,6 @@ export type QueryListProfilesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListReputationMiningCycleMetadataArgs = { filter?: InputMaybe; @@ -7857,7 +7859,6 @@ export type QueryListReputationMiningCycleMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionDataArgs = { filter?: InputMaybe; @@ -7865,7 +7866,6 @@ export type QueryListSafeTransactionDataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListSafeTransactionsArgs = { filter?: InputMaybe; @@ -7873,7 +7873,6 @@ export type QueryListSafeTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentMetadataArgs = { filter?: InputMaybe; @@ -7881,7 +7880,6 @@ export type QueryListStreamingPaymentMetadataArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListStreamingPaymentsArgs = { filter?: InputMaybe; @@ -7889,7 +7887,6 @@ export type QueryListStreamingPaymentsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokenExchangeRatesArgs = { filter?: InputMaybe; @@ -7897,7 +7894,6 @@ export type QueryListTokenExchangeRatesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTokensArgs = { filter?: InputMaybe; @@ -7905,7 +7901,6 @@ export type QueryListTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListTransactionsArgs = { filter?: InputMaybe; @@ -7913,7 +7908,6 @@ export type QueryListTransactionsArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserStakesArgs = { filter?: InputMaybe; @@ -7921,7 +7915,6 @@ export type QueryListUserStakesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUserTokensArgs = { filter?: InputMaybe; @@ -7929,7 +7922,6 @@ export type QueryListUserTokensArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListUsersArgs = { filter?: InputMaybe; @@ -7937,7 +7929,6 @@ export type QueryListUsersArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QueryListVoterRewardsHistoriesArgs = { filter?: InputMaybe; @@ -7945,10 +7936,11 @@ export type QueryListVoterRewardsHistoriesArgs = { nextToken?: InputMaybe; }; - /** Root query type */ export type QuerySearchColonyActionsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -7956,10 +7948,11 @@ export type QuerySearchColonyActionsArgs = { sort?: InputMaybe>>; }; - /** Root query type */ export type QuerySearchColonyContributorsArgs = { - aggregates?: InputMaybe>>; + aggregates?: InputMaybe< + Array> + >; filter?: InputMaybe; from?: InputMaybe; limit?: InputMaybe; @@ -7967,6 +7960,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 = { @@ -8011,7 +8015,6 @@ export type SafeTransaction = { updatedAt: Scalars['AWSDateTime']; }; - export type SafeTransactionTransactionsArgs = { filter?: InputMaybe; id?: InputMaybe; @@ -8045,7 +8048,7 @@ export enum SafeTransactionType { ContractInteraction = 'CONTRACT_INTERACTION', RawTransaction = 'RAW_TRANSACTION', TransferFunds = 'TRANSFER_FUNDS', - TransferNft = 'TRANSFER_NFT' + TransferNft = 'TRANSFER_NFT', } export type SearchableAggregateBucketResult = { @@ -8059,7 +8062,9 @@ export type SearchableAggregateBucketResultItem = { key: Scalars['String']; }; -export type SearchableAggregateGenericResult = SearchableAggregateBucketResult | SearchableAggregateScalarResult; +export type SearchableAggregateGenericResult = + | SearchableAggregateBucketResult + | SearchableAggregateScalarResult; export type SearchableAggregateResult = { __typename?: 'SearchableAggregateResult'; @@ -8077,7 +8082,7 @@ export enum SearchableAggregateType { Max = 'max', Min = 'min', Sum = 'sum', - Terms = 'terms' + Terms = 'terms', } export type SearchableBooleanFilterInput = { @@ -8116,11 +8121,12 @@ export enum SearchableColonyActionAggregateField { RolesAreMultiSig = 'rolesAreMultiSig', RootHash = 'rootHash', ShowInActionsList = 'showInActionsList', + StreamingPaymentId = 'streamingPaymentId', ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyActionAggregationInput = { @@ -8171,6 +8177,7 @@ export type SearchableColonyActionFilterInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -8214,10 +8221,11 @@ export enum SearchableColonyActionSortableFields { RolesAreMultiSig = 'rolesAreMultiSig', RootHash = 'rootHash', ShowInActionsList = 'showInActionsList', + StreamingPaymentId = 'streamingPaymentId', ToDomainId = 'toDomainId', ToPotId = 'toPotId', TokenAddress = 'tokenAddress', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export enum SearchableColonyContributorAggregateField { @@ -8231,7 +8239,7 @@ export enum SearchableColonyContributorAggregateField { IsVerified = 'isVerified', IsWatching = 'isWatching', Type = 'type', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableColonyContributorAggregationInput = { @@ -8280,7 +8288,7 @@ export enum SearchableColonyContributorSortableFields { Id = 'id', IsVerified = 'isVerified', IsWatching = 'isWatching', - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', } export type SearchableFloatFilterInput = { @@ -8322,7 +8330,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 = { @@ -8375,13 +8459,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 = { @@ -8416,34 +8500,121 @@ export type StakerRewardsInput = { export type StreamingPayment = { __typename?: '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['AWSTimestamp']; + /** Address of the stream creator, can be a user or an extension */ + creatorAddress: Scalars['ID']; + endTime: Scalars['String']; id: Scalars['ID']; interval: Scalars['String']; + /** Is the stream cancelled? */ + isCancelled?: Maybe; + /** Is the stream waived? */ + isWaived?: Maybe; metadata?: Maybe; + motions?: Maybe; nativeDomainId: Scalars['Int']; + /** Native ID of the streaming payment within a colony */ nativeId: Scalars['Int']; - payouts?: Maybe>; recipientAddress: Scalars['String']; - startTime: Scalars['AWSTimestamp']; + startTime: Scalars['String']; + token?: Maybe; + tokenAddress: Scalars['ID']; updatedAt: Scalars['AWSDateTime']; }; +export type StreamingPaymentActionsArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; + +export type StreamingPaymentMotionsArgs = { + filter?: InputMaybe; + limit?: InputMaybe; + nextToken?: InputMaybe; + sortDirection?: InputMaybe; +}; + +export type StreamingPaymentChangeSet = { + __typename?: 'StreamingPaymentChangeSet'; + /** The values before the change */ + newValues: StreamingPaymentChanges; + /** The values before the change */ + oldValues: StreamingPaymentChanges; +}; + +export type StreamingPaymentChangeSetInput = { + newValues: StreamingPaymentChangesInput; + oldValues: StreamingPaymentChangesInput; +}; + +export type StreamingPaymentChanges = { + __typename?: 'StreamingPaymentChanges'; + amount: Scalars['String']; + endTime: Scalars['String']; + interval: Scalars['String']; + startTime: Scalars['String']; +}; + +export type StreamingPaymentChangesInput = { + amount: Scalars['String']; + endTime: Scalars['String']; + interval: Scalars['String']; + startTime: Scalars['String']; +}; + +export type StreamingPaymentClaim = { + __typename?: 'StreamingPaymentClaim'; + amount: Scalars['String']; + timestamp: Scalars['String']; +}; + +export type StreamingPaymentClaimInput = { + amount: Scalars['String']; + timestamp: Scalars['String']; +}; + 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']; - limitAmount?: Maybe; updatedAt: Scalars['AWSDateTime']; }; +/** 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 StreamingPaymentMetadataChangelogInput = { + newEndCondition: StreamingPaymentEndCondition; + oldEndCondition: StreamingPaymentEndCondition; + transactionHash: Scalars['String']; +}; + export type Subscription = { __typename?: 'Subscription'; onCreateAnnotation?: Maybe; @@ -8580,662 +8751,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; }; @@ -9251,7 +9290,7 @@ export enum SupportedCurrencies { Inr = 'INR', Jpy = 'JPY', Krw = 'KRW', - Usd = 'USD' + Usd = 'USD', } /** Return type for domain balance for a timeframe item */ @@ -9268,7 +9307,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 */ @@ -9299,7 +9338,6 @@ export type Token = { validated?: Maybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenColoniesArgs = { filter?: InputMaybe; @@ -9308,7 +9346,6 @@ export type TokenColoniesArgs = { sortDirection?: InputMaybe; }; - /** Represents an ERC20-compatible token that is used by Colonies and users */ export type TokenUsersArgs = { filter?: InputMaybe; @@ -9365,12 +9402,14 @@ 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 */ 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 */ @@ -9442,7 +9481,7 @@ export enum TransactionErrors { EventData = 'EVENT_DATA', Receipt = 'RECEIPT', Send = 'SEND', - Unsuccessful = 'UNSUCCESSFUL' + Unsuccessful = 'UNSUCCESSFUL', } export type TransactionGroup = { @@ -9473,7 +9512,7 @@ export enum TransactionStatus { Failed = 'FAILED', Pending = 'PENDING', Ready = 'READY', - Succeeded = 'SUCCEEDED' + Succeeded = 'SUCCEEDED', } export type UpdateAnnotationInput = { @@ -9499,7 +9538,9 @@ export type UpdateColonyActionInput = { amount?: InputMaybe; annotationId?: InputMaybe; approvedTokenChanges?: InputMaybe; - arbitraryTransactions?: InputMaybe>; + arbitraryTransactions?: InputMaybe< + Array + >; blockNumber?: InputMaybe; colonyActionsId?: InputMaybe; colonyDecisionId?: InputMaybe; @@ -9531,6 +9572,8 @@ export type UpdateColonyActionInput = { rolesAreMultiSig?: InputMaybe; rootHash?: InputMaybe; showInActionsList?: InputMaybe; + streamingPaymentChanges?: InputMaybe; + streamingPaymentId?: InputMaybe; toDomainId?: InputMaybe; toPotId?: InputMaybe; tokenAddress?: InputMaybe; @@ -9660,12 +9703,16 @@ export type UpdateColonyMotionInput = { nativeMotionDomainId?: InputMaybe; nativeMotionId?: InputMaybe; objectionAnnotationId?: InputMaybe; + pendingStreamingPayment?: InputMaybe; + pendingStreamingPaymentChanges?: InputMaybe; + pendingStreamingPaymentMetadataId?: InputMaybe; remainingStakes?: InputMaybe>; repSubmitted?: InputMaybe; requiredStake?: InputMaybe; revealedVotes?: InputMaybe; skillRep?: InputMaybe; stakerRewards?: InputMaybe>; + streamingPaymentId?: InputMaybe; transactionHash?: InputMaybe; userMinStake?: InputMaybe; usersStakes?: InputMaybe>; @@ -9929,21 +9976,27 @@ export type UpdateSafeTransactionInput = { }; export type UpdateStreamingPaymentInput = { + amount?: InputMaybe; + claims?: InputMaybe>; + colonyId?: InputMaybe; createdAt?: InputMaybe; - endTime?: InputMaybe; + creatorAddress?: InputMaybe; + endTime?: InputMaybe; id: Scalars['ID']; interval?: InputMaybe; + isCancelled?: InputMaybe; + isWaived?: InputMaybe; nativeDomainId?: InputMaybe; nativeId?: InputMaybe; - payouts?: InputMaybe>; recipientAddress?: InputMaybe; - startTime?: InputMaybe; + startTime?: InputMaybe; + tokenAddress?: InputMaybe; }; export type UpdateStreamingPaymentMetadataInput = { + changelog?: InputMaybe>; endCondition?: InputMaybe; id: Scalars['ID']; - limitAmount?: InputMaybe; }; export type UpdateTokenExchangeRateInput = { @@ -9967,6 +10020,7 @@ export type UpdateTokenInput = { }; export type UpdateTransactionInput = { + associatedActionId?: InputMaybe; blockHash?: InputMaybe; blockNumber?: InputMaybe; colonyAddress?: InputMaybe; @@ -10053,7 +10107,6 @@ export type User = { userPrivateBetaInviteCodeId?: Maybe; }; - /** Represents a User within the Colony Network */ export type UserLiquidationAddressesArgs = { filter?: InputMaybe; @@ -10062,7 +10115,6 @@ export type UserLiquidationAddressesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserRolesArgs = { colonyAddress?: InputMaybe; @@ -10072,7 +10124,6 @@ export type UserRolesArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTokensArgs = { filter?: InputMaybe; @@ -10081,7 +10132,6 @@ export type UserTokensArgs = { sortDirection?: InputMaybe; }; - /** Represents a User within the Colony Network */ export type UserTransactionHistoryArgs = { createdAt?: InputMaybe; @@ -10120,7 +10170,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']; @@ -10129,7 +10179,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 = { @@ -10247,471 +10297,1247 @@ 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 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 VoterRecordFragment = { __typename?: 'VoterRecord', address: string, voteCount: string, vote?: number | 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 StakerRewardFragment = { __typename?: 'StakerRewards', address: string, isClaimed: boolean, rewards: { __typename?: 'MotionStakeValues', yay: string, nay: string } }; +export type StreamingPaymentChangesFragment = { + __typename?: 'StreamingPaymentChanges'; + startTime: string; + endTime: string; + interval: string; + amount: string; +}; -export type MotionStakesFragment = { __typename?: 'MotionStakes', raw: { __typename?: 'MotionStakeValues', nay: string, yay: string }, percentage: { __typename?: 'MotionStakeValues', nay: string, yay: string } }; +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; + 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 UpdateStreamingPaymentMetadataMutationVariables = Exact<{ + input: UpdateStreamingPaymentMetadataInput; +}>; + +export type UpdateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + updateStreamingPaymentMetadata?: { + __typename?: 'StreamingPaymentMetadata'; + id: string; + } | null; +}; + +export type CreateStreamingPaymentMetadataMutationVariables = Exact<{ + input: CreateStreamingPaymentMetadataInput; +}>; -export type UpdateStreamingPaymentMutation = { __typename?: 'Mutation', updateStreamingPayment?: { __typename?: 'StreamingPayment', id: string } | null }; +export type CreateStreamingPaymentMetadataMutation = { + __typename?: 'Mutation'; + createStreamingPaymentMetadata?: { + __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']; @@ -10719,29 +11545,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']; @@ -10750,117 +11645,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 GetStreamingPaymentMetadataQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type GetStreamingPaymentQuery = { __typename?: 'Query', getStreamingPayment?: { __typename?: 'StreamingPayment', id: string, payouts?: Array<{ __typename?: 'ExpenditurePayout', amount: string, tokenAddress: string, isClaimed: boolean }> | 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']; @@ -10868,55 +12065,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, 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']; @@ -10925,1283 +12397,1504 @@ 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 { - 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 + fragment ExpenditureSlot on ExpenditureSlot { + id + recipientAddress + claimDelay + payoutModifier + payouts { + tokenAddress + amount + isClaimed + networkFee + } } - motions { - items { - transactionHash - action { +`; +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 { type + id } } } - balances { - ...ExpenditureBalance - } - metadata { - distributionType + ${ExpenditureSlot} + ${ExpenditureBalance} +`; +export const StreamingPaymentMetadata = gql` + fragment StreamingPaymentMetadata on StreamingPaymentMetadata { + id + endCondition + changelog { + transactionHash + oldEndCondition + newEndCondition + } } - status - ownerAddress - userStakeId - createdAt - firstEditTransactionHash - splitPaymentPayoutClaimedNotificationSent - type - actions { - items { - type - id +`; +export const StreamingPayment = gql` + fragment StreamingPayment on StreamingPayment { + id + startTime + endTime + tokenAddress + amount + interval + metadata { + ...StreamingPaymentMetadata + } + claims { + amount + timestamp } } -} - ${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 + ${StreamingPaymentMetadata} +`; +export const StreamingPaymentChanges = gql` + 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 -} - ${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 } - 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 UpdateStreamingPaymentMetadataDocument = gql` + mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! + ) { + updateStreamingPaymentMetadata(input: $input) { + id + } + } +`; +export const CreateStreamingPaymentMetadataDocument = gql` + mutation CreateStreamingPaymentMetadata( + $input: CreateStreamingPaymentMetadataInput! + ) { + createStreamingPaymentMetadata(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 - payouts { - amount - tokenAddress - isClaimed + query GetStreamingPayment($id: ID!) { + getStreamingPayment(id: $id) { + ...StreamingPayment } } -} - `; + ${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!) { - 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 @@ -12210,61 +13903,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/graphql/mutations/expenditures.graphql b/src/graphql/mutations/expenditures.graphql index a6fba27d8..5dfc3292c 100644 --- a/src/graphql/mutations/expenditures.graphql +++ b/src/graphql/mutations/expenditures.graphql @@ -28,3 +28,18 @@ mutation UpdateStreamingPayment($input: UpdateStreamingPaymentInput!) { id } } +mutation UpdateStreamingPaymentMetadata( + $input: UpdateStreamingPaymentMetadataInput! +) { + updateStreamingPaymentMetadata(input: $input) { + id + } +} + +mutation CreateStreamingPaymentMetadata( + $input: CreateStreamingPaymentMetadataInput! +) { + createStreamingPaymentMetadata(input: $input) { + id + } +} diff --git a/src/graphql/queries/expenditures.graphql b/src/graphql/queries/expenditures.graphql index 8cbcec96b..a4ec015be 100644 --- a/src/graphql/queries/expenditures.graphql +++ b/src/graphql/queries/expenditures.graphql @@ -20,11 +20,12 @@ query GetExpenditureByNativeFundingPotIdAndColony( query GetStreamingPayment($id: ID!) { getStreamingPayment(id: $id) { - id - payouts { - amount - tokenAddress - isClaimed - } + ...StreamingPayment + } +} + +query GetStreamingPaymentMetadata($id: ID!) { + getStreamingPaymentMetadata(id: $id) { + ...StreamingPaymentMetadata } } diff --git a/src/graphql/queries/token.graphql b/src/graphql/queries/token.graphql index 110365151..3c172c1b9 100644 --- a/src/graphql/queries/token.graphql +++ b/src/graphql/queries/token.graphql @@ -4,4 +4,4 @@ query GetTokenFromEverywhere($input: TokenFromEverywhereArguments!) { id } } -} +} \ No newline at end of file diff --git a/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts new file mode 100644 index 000000000..9d5c9f09a --- /dev/null +++ b/src/handlers/expenditures/helpers/handleEditOrCancelStreamingPaymentAction.ts @@ -0,0 +1,160 @@ +import { BigNumber, 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, + verbose, + writeActionFromEvent, +} from '~utils'; +import { getStreamingPaymentFromDB } from './getExpenditure'; + +export const handleEditOrCancelStreamingPaymentAction = async ({ + event, + colonyAddress, + streamingPaymentsInterface, +}: { + event: ContractEvent; + colonyAddress: string; + streamingPaymentsInterface: utils.Interface; +}): Promise => { + const { transactionHash } = event; + + const actionExists = await checkActionExists(transactionHash); + + if (actionExists) { + return; + } + + const { blockNumber, timestamp } = 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, + streamingPaymentsInterface, + ); + if (mappedEvent) { + actionEvents.push(mappedEvent); + } + } + + const currentValues = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, + }; + + const newValues = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, + }; + + for (const actionEvent of actionEvents) { + if ( + actionEvent.signature === ContractEventsSignatures.PaymentTokenUpdated + ) { + const { amount, interval } = actionEvent.args; + if (amount) { + newValues.amount = amount.toString(); + } + if (interval) { + newValues.interval = interval.toString(); + } + } + if (actionEvent.signature === ContractEventsSignatures.StartTimeSet) { + const { startTime } = actionEvent.args; + if (startTime) { + newValues.startTime = startTime.toString(); + } + } + if (actionEvent.signature === ContractEventsSignatures.EndTimeSet) { + const { endTime } = actionEvent.args; + if (endTime) { + newValues.endTime = endTime.toString(); + } + } + } + + // 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 + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + startTime: newValues.startTime, + endTime: newValues.endTime, + amount: newValues.amount, + interval: newValues.interval, + isCancelled: isCancelAction || undefined, + }, + }); + + const { agent: initiatorAddress } = event.args; + + 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/index.ts b/src/handlers/expenditures/index.ts index 3285c38f4..b1ef9c8ba 100644 --- a/src/handlers/expenditures/index.ts +++ b/src/handlers/expenditures/index.ts @@ -19,3 +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/paymentTokenUpdated.ts b/src/handlers/expenditures/paymentTokenUpdated.ts index 6d94c4b5d..550bf93db 100644 --- a/src/handlers/expenditures/paymentTokenUpdated.ts +++ b/src/handlers/expenditures/paymentTokenUpdated.ts @@ -1,51 +1,30 @@ -import { getExpenditureDatabaseId, 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 { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; +import { Extension, getExtensionHash } from '@colony/colony-js'; +import { getInterfaceByExtensionHash } from '~interfaces'; + export const handlePaymentTokenUpdated: EventHandler = async ( event, listener, ) => { - const { streamingPaymentId, token: tokenAddress, amount } = event.args; - const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; - const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); - const streamingPayment = await getStreamingPaymentFromDB(databaseId); + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, + ); - if (!streamingPayment) { + if (!streamingPaymentsInterface) { 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< - UpdateStreamingPaymentMutation, - UpdateStreamingPaymentMutationVariables - >(UpdateStreamingPaymentDocument, { - input: { - id: databaseId, - payouts: updatedPayouts, - }, + await handleEditOrCancelStreamingPaymentAction({ + event, + streamingPaymentsInterface, + colonyAddress, }); }; diff --git a/src/handlers/expenditures/streamingPaymentClaimWaived.ts b/src/handlers/expenditures/streamingPaymentClaimWaived.ts new file mode 100644 index 000000000..28c7eb954 --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentClaimWaived.ts @@ -0,0 +1,46 @@ +import { mutate } from '~amplifyClient'; +import { ExtensionEventListener } from '~eventListeners'; +import { + ColonyActionType, + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import { EventHandler } from '~types'; +import { + getExpenditureDatabaseId, + toNumber, + verbose, + writeActionFromEvent, +} from '~utils'; + +export const handleStreamingPaymentClaimWaived: EventHandler = async ( + event, + listener, +) => { + const { agent: initiatorAddress, 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`); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CancelAndWaiveStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + }); +}; diff --git a/src/handlers/expenditures/streamingPaymentClaimed.ts b/src/handlers/expenditures/streamingPaymentClaimed.ts new file mode 100644 index 000000000..e2a621ecb --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentClaimed.ts @@ -0,0 +1,50 @@ +import { mutate } from '~amplifyClient'; +import { ExtensionEventListener } from '~eventListeners'; +import { + StreamingPaymentClaim, + UpdateStreamingPaymentDocument, + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables, +} from '~graphql'; +import { EventHandler } from '~types'; +import { getExpenditureDatabaseId, output, toNumber } from '~utils'; +import { getStreamingPaymentFromDB } from './helpers'; + +export const handleStreamingPaymentClaimed: EventHandler = async ( + event, + listener, +) => { + const { timestamp } = event; + const { amount, streamingPaymentId } = 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.`, + ); + return; + } + + const newClaim: StreamingPaymentClaim = { + amount: amount.toString(), + timestamp: timestamp.toString(), + }; + const claims: StreamingPaymentClaim[] = streamingPayment.claims + ? [...streamingPayment.claims, newClaim] + : [newClaim]; + + await mutate< + UpdateStreamingPaymentMutation, + UpdateStreamingPaymentMutationVariables + >(UpdateStreamingPaymentDocument, { + input: { + id: databaseId, + claims, + }, + }); +}; diff --git a/src/handlers/expenditures/streamingPaymentCreated.ts b/src/handlers/expenditures/streamingPaymentCreated.ts index 27c3def63..906ec58a7 100644 --- a/src/handlers/expenditures/streamingPaymentCreated.ts +++ b/src/handlers/expenditures/streamingPaymentCreated.ts @@ -1,24 +1,28 @@ 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'; +import { getBlockChainTimestampISODate } from '~utils/dates'; export const handleStreamingPaymentCreated: EventHandler = async ( event, listener, ) => { - const { blockNumber } = event; - const { streamingPaymentId } = event.args; + const { blockNumber, timestamp } = event; + const { streamingPaymentId, agent: initiatorAddress } = event.args; const convertedNativeId = toNumber(streamingPaymentId); const { colonyAddress } = listener as ExtensionEventListener; @@ -43,6 +47,8 @@ export const handleStreamingPaymentCreated: EventHandler = async ( startTime, endTime, interval, + token: tokenAddress, + amount, } = streamingPayment; const databaseId = getExpenditureDatabaseId(colonyAddress, convertedNativeId); @@ -58,9 +64,22 @@ 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(), + colonyId: colonyAddress, + creatorAddress: initiatorAddress, + createdAt: getBlockChainTimestampISODate(timestamp), }, }); + + await writeActionFromEvent(event, colonyAddress, { + type: ColonyActionType.CreateStreamingPayment, + initiatorAddress, + streamingPaymentId: databaseId, + fromDomainId: getDomainDatabaseId(colonyAddress, toNumber(domainId)), + recipientAddress, + }); }; diff --git a/src/handlers/expenditures/streamingPaymentEndTimeSet.ts b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts new file mode 100644 index 000000000..c84edb629 --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentEndTimeSet.ts @@ -0,0 +1,33 @@ +import { ExtensionEventListener } from '~eventListeners'; +import { EventHandler } from '~types'; +import { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; +import { getInterfaceByExtensionHash } from '~interfaces'; +import { Extension, getExtensionHash } from '@colony/colony-js'; + +export const handleStreamingPaymentEndTimeSet: EventHandler = async ( + event, + listener, +) => { + const { colonyAddress } = listener as ExtensionEventListener; + + if (!colonyAddress) { + return; + } + + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, + ); + + if (!streamingPaymentsInterface) { + return; + } + + await handleEditOrCancelStreamingPaymentAction({ + event, + streamingPaymentsInterface, + colonyAddress, + }); +}; diff --git a/src/handlers/expenditures/streamingPaymentStartTimeSet.ts b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts new file mode 100644 index 000000000..e02fcff7f --- /dev/null +++ b/src/handlers/expenditures/streamingPaymentStartTimeSet.ts @@ -0,0 +1,33 @@ +import { EventHandler } from '~types'; +import { ExtensionEventListener } from '~eventListeners'; +import { handleEditOrCancelStreamingPaymentAction } from './helpers/handleEditOrCancelStreamingPaymentAction'; +import { Extension, getExtensionHash } from '@colony/colony-js'; +import { getInterfaceByExtensionHash } from '~interfaces'; + +export const handleStreamingPaymentStartTimeSet: EventHandler = async ( + event, + listener, +) => { + const { colonyAddress } = listener as ExtensionEventListener; + + if (!colonyAddress) { + return; + } + + const streamingPaymentsExtensionHash = getExtensionHash( + Extension.StreamingPayments, + ); + const streamingPaymentsInterface = getInterfaceByExtensionHash( + streamingPaymentsExtensionHash, + ); + + if (!streamingPaymentsInterface) { + return; + } + + await handleEditOrCancelStreamingPaymentAction({ + event, + streamingPaymentsInterface, + colonyAddress, + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/index.ts b/src/handlers/motions/motionCreated/handlers/index.ts index a56d73e2f..86c57a83d 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'; 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..410029e13 --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/multicall/multicallHandlers/editStreamingPaymentMotion.ts @@ -0,0 +1,90 @@ +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 pendingStreamingPaymentChanges = { + amount: streamingPayment.amount, + interval: streamingPayment.interval, + startTime: streamingPayment.startTime, + endTime: streamingPayment.endTime, + }; + + 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]; + + pendingStreamingPaymentChanges.amount = amount.toString(); + pendingStreamingPaymentChanges.interval = interval.toString(); + } else if ( + decodedFunction.signature === ContractMethodSignatures.SetStartTime + ) { + const [, , , startTime] = decodedFunction.args; + + pendingStreamingPaymentChanges.startTime = startTime.toString(); + } else if ( + decodedFunction.signature === ContractMethodSignatures.SetEndTime + ) { + const [, , , endTime] = decodedFunction.args; + + pendingStreamingPaymentChanges.endTime = endTime.toString(); + } + } + + const pendingStreamingPaymentMetadataId = getPendingMetadataDatabaseId( + colonyAddress, + transactionHash, + ); + + createMotionInDB(colonyAddress, event, { + type: ColonyActionType.EditStreamingPaymentMotion, + streamingPaymentId: streamingPayment.id, + pendingStreamingPaymentMetadataId, + pendingStreamingPaymentChanges, + }); +}; 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/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts new file mode 100644 index 000000000..26f5fc501 --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/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/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..cc96e3069 --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/createStreamingPaymentMotion.ts @@ -0,0 +1,47 @@ +import { TransactionDescription } from 'ethers/lib/utils'; +import { ContractEvent, motionNameMapping } from '~types'; +import { createMotionInDB } from '../../helpers'; +import { getDomainDatabaseId, getPendingMetadataDatabaseId } from '~utils'; + +export default async ( + colonyAddress: string, + event: ContractEvent, + { name, args: actionArgs }: TransactionDescription, +): Promise => { + const { args, transactionHash } = event; + const [, , domainId] = args; + + const [ + , + , + , + , + , + startTime, + endTimeOrDuration, + interval, + recipient, + token, + amount, + ] = actionArgs; + + const pendingStreamingPaymentMetadataId = getPendingMetadataDatabaseId( + colonyAddress, + transactionHash, + ); + + await createMotionInDB(colonyAddress, event, { + type: motionNameMapping[name], + fromDomainId: getDomainDatabaseId(colonyAddress, domainId), + pendingStreamingPayment: { + amount: amount.toString(), + startTime: startTime.toString(), + endTime: endTimeOrDuration.toString(), + interval: interval.toString(), + recipientAddress: recipient, + tokenAddress: token, + nativeDomainId: Number(domainId), + }, + pendingStreamingPaymentMetadataId, + }); +}; diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts new file mode 100644 index 000000000..9e834bb4c --- /dev/null +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments/index.ts @@ -0,0 +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 7148188dd..f490337b7 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' + | 'pendingStreamingPaymentChanges' + | 'pendingStreamingPaymentMetadataId' + | 'pendingStreamingPayment' >; export const createMotionInDB = async ( @@ -195,6 +200,9 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, + pendingStreamingPaymentChanges, + pendingStreamingPaymentMetadataId, + pendingStreamingPayment, ...actionFields } = motionFields; @@ -245,6 +253,10 @@ export const createMotionInDB = async ( expenditureSlotIds, editedExpenditureSlots, expenditureFunding, + 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 d42c18a6f..43a768abb 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,8 @@ import { handleCancelExpenditureViaArbitrationMotion, handleFinalizeExpenditureViaArbitrationMotion, handleReleaseStagedPaymentViaArbitration, + handleCancelStreamingPaymentsMotion, + handleCreateStreamingPaymentMotion, } from './handlers'; import { ExtensionEventListener } from '~eventListeners'; @@ -61,6 +68,10 @@ export const handleMotionCreated: EventHandler = async ( colonyAddress, ); + const streamingPaymentsClient = await getStreamingPaymentsClient( + colonyAddress, + ); + const motion = await votingReputationClient.getMotion(motionId, { blockTag: blockNumber, }); @@ -74,6 +85,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 +228,24 @@ export const handleMotionCreated: EventHandler = async ( break; } + case StreamingPaymentsOperations.CancelStreamingPayment: { + await handleCancelStreamingPaymentsMotion( + colonyAddress, + event, + parsedAction, + ); + break; + } + + case StreamingPaymentsOperations.CreateStreamingPayment: { + await handleCreateStreamingPaymentMotion( + colonyAddress, + event, + parsedAction, + ); + break; + } + default: { break; } diff --git a/src/handlers/motions/motionFinalized/helpers.ts b/src/handlers/motions/motionFinalized/helpers.ts index 5e03004ea..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,14 +18,23 @@ import { mutate, query } from '~amplifyClient'; import { ColonyActionType, ColonyMotion, + CreateStreamingPaymentMetadataDocument, + CreateStreamingPaymentMetadataMutation, + CreateStreamingPaymentMetadataMutationVariables, GetColonyActionByMotionIdDocument, GetColonyActionByMotionIdQuery, GetColonyActionByMotionIdQueryVariables, + GetStreamingPaymentMetadataDocument, + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables, StakerReward, UpdateColonyActionDocument, UpdateColonyActionMutation, UpdateColonyActionMutationVariables, UpdateColonyDocument, + UpdateStreamingPaymentMetadataDocument, + UpdateStreamingPaymentMetadataMutation, + UpdateStreamingPaymentMetadataMutationVariables, } from '~graphql'; import { getAmountLessFee, getNetworkInverseFee } from '~utils/networkFee'; @@ -184,3 +198,106 @@ export const updateAmountToExcludeNetworkFee = async ( }); } }; + +export const linkPendingStreamingPaymentMetadata = async ({ + colonyAddress, + pendingStreamingPaymentMetadataId, + streamingPaymentId, + streamingPaymentsClient, +}: { + colonyAddress: string; + pendingStreamingPaymentMetadataId: string; + streamingPaymentId?: string | null; + streamingPaymentsClient?: AnyStreamingPaymentsClient | null; +}): Promise => { + const { data: pendingStreamingPaymentMetadataQuery } = + (await query< + GetStreamingPaymentMetadataQuery, + GetStreamingPaymentMetadataQueryVariables + >(GetStreamingPaymentMetadataDocument, { + id: pendingStreamingPaymentMetadataId, + })) ?? {}; + + const pendingStreamingPaymentMetadata = + pendingStreamingPaymentMetadataQuery?.getStreamingPaymentMetadata; + + if (!pendingStreamingPaymentMetadata) { + output( + `Could not find the pending streaming payment metadata with the id: ${pendingStreamingPaymentMetadataId}. This is a bug and should be investigated.`, + ); + return; + } + + 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, + ); + + 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 { 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; + } + + const hasEndConditionChanged = + currentStreamingPaymentMetadata.endCondition !== + pendingStreamingPaymentMetadata.endCondition; + + 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 fb57abc68..3992e270e 100644 --- a/src/handlers/motions/motionFinalized/motionFinalized.ts +++ b/src/handlers/motions/motionFinalized/motionFinalized.ts @@ -63,12 +63,11 @@ 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, 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/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) { diff --git a/src/types/events.ts b/src/types/events.ts index 5950e50e0..e5acd44bc 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -105,7 +105,11 @@ 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)', + StreamingPaymentClaimed = 'StreamingPaymentClaimed(address,uint256,address,uint256)', // Annotations AnnotateTransaction = 'Annotation(address,bytes32,string)', 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', } diff --git a/src/types/motions.ts b/src/types/motions.ts index ed543b387..8fa4c3899 100644 --- a/src/types/motions.ts +++ b/src/types/motions.ts @@ -26,6 +26,11 @@ export enum ColonyOperations { ReleaseStagedPaymentViaArbitration = 'releaseStagedPaymentViaArbitration', } +export enum StreamingPaymentsOperations { + CreateStreamingPayment = 'create', + CancelStreamingPayment = 'cancel', +} + export enum MotionEvents { MotionCreated = 'MotionCreated', MotionStaked = 'MotionStaked', @@ -69,6 +74,10 @@ export const motionNameMapping: { [key: string]: ColonyActionType } = { ColonyActionType.SetExpenditureStateMotion, [ColonyOperations.ReleaseStagedPaymentViaArbitration]: ColonyActionType.ReleaseStagedPaymentsMotion, + [StreamingPaymentsOperations.CancelStreamingPayment]: + ColonyActionType.CancelStreamingPaymentMotion, + [StreamingPaymentsOperations.CreateStreamingPayment]: + ColonyActionType.CreateStreamingPaymentMotion, }; export enum MotionSide { 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, + }); + } };