From bcb477a6386e9f8bbe3fe33aefade683d6bb37fa Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Mon, 6 May 2024 13:24:45 +0200 Subject: [PATCH] feat: support new Shared Revenue Collect module --- .changeset/weak-hairs-tan.md | 10 + .../src/discovery/UseExplorePublications.tsx | 56 +- .../src/apollo/cache/transactions.ts | 12 +- .../src/lens/graphql/fragments.graphql | 27 + .../src/lens/graphql/generated.ts | 3162 +++++++++++++++++ .../src/lens/utils/CollectModuleSettings.ts | 140 +- packages/client/codegen-api.yml | 4 +- .../client/src/graphql/fragments.generated.ts | 651 ++++ packages/client/src/graphql/fragments.graphql | 27 + .../client/src/graphql/types.generated.ts | 30 + packages/client/src/graphql/types.ts | 4 + .../explore/graphql/explore.generated.ts | 97 + .../submodules/feed/graphql/feed.generated.ts | 485 +++ .../graphql/notifications.generated.ts | 989 +++++- .../graphql/publication.generated.ts | 194 + .../publication/helpers/openActions.ts | 46 +- .../bookmarks/graphql/bookmarks.generated.ts | 97 + .../revenue/graphql/revenue.generated.ts | 291 ++ .../search/graphql/search.generated.ts | 97 + .../src/use-cases/publications/OpenAction.ts | 25 +- .../publications/OpenActionConfig.ts | 66 +- .../publications/__helpers__/mocks.ts | 15 + .../adapters/OpenActionGateway.ts | 52 +- .../__tests__/OpenActionGateway.spec.ts | 54 + .../resolveOpenActionModuleInput.spec.ts | 19 + .../resolveOpenActionModuleInput.ts | 38 + .../adapters/schemas/publications.ts | 12 + 27 files changed, 6416 insertions(+), 284 deletions(-) create mode 100644 .changeset/weak-hairs-tan.md diff --git a/.changeset/weak-hairs-tan.md b/.changeset/weak-hairs-tan.md new file mode 100644 index 0000000000..149bc48974 --- /dev/null +++ b/.changeset/weak-hairs-tan.md @@ -0,0 +1,10 @@ +--- +"@lens-protocol/client": minor +"@lens-protocol/react-native": minor +"@lens-protocol/react-web": minor +"@lens-protocol/react": minor +"@lens-protocol/api-bindings": patch +"@lens-protocol/domain": patch +--- + +**feat:** support new Shared Revenue Collect module diff --git a/examples/web/src/discovery/UseExplorePublications.tsx b/examples/web/src/discovery/UseExplorePublications.tsx index 0718a26452..3a75b52395 100644 --- a/examples/web/src/discovery/UseExplorePublications.tsx +++ b/examples/web/src/discovery/UseExplorePublications.tsx @@ -1,6 +1,8 @@ import { + CollectFee, ExplorePublication, ExplorePublicationsOrderByType, + MultirecipientCollectFee, isMultirecipientCollectFee, resolveCollectPolicy, useExplorePublications, @@ -10,7 +12,31 @@ import { PublicationCard } from '../components/cards'; import { ErrorMessage } from '../components/error/ErrorMessage'; import { Loading } from '../components/loading/Loading'; import { useInfiniteScroll } from '../hooks/useInfiniteScroll'; -import { formatAmount, formatFiatAmount } from '../utils/formatAmount'; +import { formatAmount } from '../utils/formatAmount'; + +export function formatCollectFee({ amount, rate }: CollectFee | MultirecipientCollectFee) { + if (rate) { + const fiat = amount.convert(rate); + return `${formatAmount(amount)} (${formatAmount(fiat)})`; + } + return formatAmount(amount); +} + +export function CollectFeeDetails({ fee }: { fee: CollectFee | MultirecipientCollectFee }) { + return ( +
+

{`Paid collect: ${formatCollectFee(fee)}`}

+ + {fee.referralFee > 0 &&
{`Referral fee: ${fee.referralFee}%`}
} + + {isMultirecipientCollectFee(fee) ? ( +

{`Recipients: ${fee.recipients.map((r) => r.recipient).join(', ')}`}

+ ) : ( +

{`Recipient: ${fee.recipient}`}

+ )} +
+ ); +} function PublicationCollectPolicy({ publication }: { publication: ExplorePublication }) { const policy = resolveCollectPolicy(publication); @@ -19,25 +45,15 @@ function PublicationCollectPolicy({ publication }: { publication: ExplorePublica return (
- {policy.followerOnly === true &&
Only followers can collect
} - {policy.collectLimit &&
{`Collect limit: ${policy.collectLimit}`}
} - {policy.endsAt &&
{`Ends at: ${policy.endsAt}`}
} - {!policy.fee ? ( -
Free collect
- ) : ( - <> -
{`Paid collect: ${formatAmount(policy.fee.amount)} (${formatFiatAmount( - policy.fee.amount, - policy.fee.rate, - )})`}
- {policy.fee.referralFee > 0 &&
{`Referral fee: ${policy.fee.referralFee}%`}
} - {!isMultirecipientCollectFee(policy.fee) ? ( -
{`Recipient: ${policy.fee.recipient}`}
- ) : ( -
{`Recipients: ${policy.fee.recipients.map((r) => r.recipient).join(', ')}`}
- )} - - )} + {policy.followerOnly === true &&

Only followers can collect

} + + {policy.collectLimit &&

{`Collect limit: ${policy.collectLimit}`}

} + + {policy.endsAt &&

{`Ends at: ${policy.endsAt}`}

} + + {policy.fee === null &&

Free collect

} + + {policy.fee && }
); } diff --git a/packages/api-bindings/src/apollo/cache/transactions.ts b/packages/api-bindings/src/apollo/cache/transactions.ts index c38650d3ae..4e74cc7a5e 100644 --- a/packages/api-bindings/src/apollo/cache/transactions.ts +++ b/packages/api-bindings/src/apollo/cache/transactions.ts @@ -13,11 +13,11 @@ import { UnlinkHandleRequest, } from '@lens-protocol/domain/use-cases/profile'; import { - OpenActionRequest, - AllOpenActionType, CreateQuoteRequest, CreateMirrorRequest, CreateCommentRequest, + CollectRequest, + isCollectRequest, } from '@lens-protocol/domain/use-cases/publications'; import { AnyTransactionRequest } from '@lens-protocol/domain/use-cases/transactions'; @@ -68,14 +68,10 @@ export function useRecentTransactionsVar() { function isCollectTransaction( transaction: TransactionState, -): transaction is TransactionState { +): transaction is TransactionState { return ( transaction.request.kind === TransactionKind.ACT_ON_PUBLICATION && - [ - AllOpenActionType.LEGACY_COLLECT, - AllOpenActionType.SIMPLE_COLLECT, - AllOpenActionType.MULTIRECIPIENT_COLLECT, - ].includes(transaction.request.type) + isCollectRequest(transaction.request) ); } diff --git a/packages/api-bindings/src/lens/graphql/fragments.graphql b/packages/api-bindings/src/lens/graphql/fragments.graphql index 3dade1cc70..ca5ef1804c 100644 --- a/packages/api-bindings/src/lens/graphql/fragments.graphql +++ b/packages/api-bindings/src/lens/graphql/fragments.graphql @@ -469,6 +469,24 @@ fragment SimpleCollectOpenActionSettings on SimpleCollectOpenActionSettings { endsAt } +fragment ProtocolSharedRevenueCollectOpenActionSettings on ProtocolSharedRevenueCollectOpenActionSettings { + __typename + type + contract { + ...NetworkAddress + } + collectNft + amount { + ...Amount + } + recipient + referralFee + followerOnly + collectLimit + endsAt + creatorClient +} + # purposefully renamed Recipient to have a better narrative fragment Recipient on RecipientDataOutput { # __typename not include to hide RecipientDataOutput not needed anyway here @@ -1639,6 +1657,9 @@ fragment Post on Post { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1778,6 +1799,9 @@ fragment CommentFields on Comment { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1961,6 +1985,9 @@ fragment QuoteFields on Quote { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } diff --git a/packages/api-bindings/src/lens/graphql/generated.ts b/packages/api-bindings/src/lens/graphql/generated.ts index 4503e3b6f1..eb9e48063e 100644 --- a/packages/api-bindings/src/lens/graphql/generated.ts +++ b/packages/api-bindings/src/lens/graphql/generated.ts @@ -73,6 +73,7 @@ export type Scalars = { export type ActOnOpenActionInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; unknownOpenAction?: InputMaybe; }; @@ -191,6 +192,7 @@ export enum ClaimableTokenType { export type CollectActionModuleInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; }; @@ -808,6 +810,13 @@ export enum MetadataAttributeType { String = 'STRING', } +export type ModDisputeReportRequest = { + reason: Scalars['String']; + reportedProfileId?: InputMaybe; + reportedPublicationId?: InputMaybe; + reporter: Scalars['ProfileId']; +}; + export type ModExplorePublicationRequest = { cursor?: InputMaybe; limit?: InputMaybe; @@ -828,6 +837,13 @@ export type ModExplorePublicationsWhere = { since?: InputMaybe; }; +export type ModReportsRequest = { + cursor?: InputMaybe; + forProfile?: InputMaybe; + forPublication?: InputMaybe; + limit?: InputMaybe; +}; + export type ModuleCurrencyApproval = { followModule?: InputMaybe; openActionModule?: InputMaybe; @@ -1156,6 +1172,7 @@ export enum OpenActionModuleType { LegacySimpleCollectModule = 'LegacySimpleCollectModule', LegacyTimedFeeCollectModule = 'LegacyTimedFeeCollectModule', MultirecipientFeeCollectOpenActionModule = 'MultirecipientFeeCollectOpenActionModule', + ProtocolSharedRevenueCollectOpenActionModule = 'ProtocolSharedRevenueCollectOpenActionModule', SimpleCollectOpenActionModule = 'SimpleCollectOpenActionModule', UnknownOpenActionModule = 'UnknownOpenActionModule', } @@ -1437,6 +1454,18 @@ export type ProfilesRequestWhere = { whoQuotedPublication?: InputMaybe; }; +export type ProtocolSharedRevenueCollectModuleInput = { + amount?: InputMaybe; + collectLimit?: InputMaybe; + /** The wallet of a client app to share revenues alongside the recipient and the protocol. Optional. */ + creatorClient?: InputMaybe; + currentCollects?: Scalars['Float']; + endsAt?: InputMaybe; + followerOnly: Scalars['Boolean']; + recipient?: InputMaybe; + referralFee?: InputMaybe; +}; + export type PublicationBookmarkRequest = { on: Scalars['PublicationId']; }; @@ -1575,6 +1604,7 @@ export enum PublicationReportingIllegalSubreason { AnimalAbuse = 'ANIMAL_ABUSE', DirectThreat = 'DIRECT_THREAT', HumanAbuse = 'HUMAN_ABUSE', + Plagiarism = 'PLAGIARISM', ThreatIndividual = 'THREAT_INDIVIDUAL', Violence = 'VIOLENCE', } @@ -2527,6 +2557,20 @@ export type SimpleCollectOpenActionSettings = { amount: Amount; }; +export type ProtocolSharedRevenueCollectOpenActionSettings = { + __typename: 'ProtocolSharedRevenueCollectOpenActionSettings'; + type: OpenActionModuleType; + collectNft: EvmAddress | null; + recipient: EvmAddress; + referralFee: number; + followerOnly: boolean; + collectLimit: string | null; + endsAt: string | null; + creatorClient: EvmAddress | null; + contract: NetworkAddress; + amount: Amount; +}; + export type Recipient = { recipient: EvmAddress; split: number }; export type MultirecipientFeeCollectOpenActionSettings = { @@ -3218,6 +3262,7 @@ export type Post = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -3272,6 +3317,7 @@ export type CommentFields = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -3345,6 +3391,7 @@ export type QuoteFields = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -30886,6 +30933,166 @@ export const FragmentMultirecipientFeeCollectOpenActionSettings = /*#__PURE__*/ }, ], } as unknown as DocumentNode; +export const FragmentProtocolSharedRevenueCollectOpenActionSettings = /*#__PURE__*/ { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Erc20' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Erc20' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FiatAmount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FiatAmount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Fiat' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Fiat' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Fiat' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Amount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Amount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Erc20' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'rate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { + kind: 'ObjectValue', + fields: [ + { + kind: 'ObjectField', + name: { kind: 'Name', value: 'for' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'fxRateFor' } }, + }, + ], + }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NetworkAddress' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NetworkAddress' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'address' } }, + { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const FragmentSimpleCollectOpenActionSettings = /*#__PURE__*/ { kind: 'Document', definitions: [ @@ -31909,6 +32116,25 @@ export const FragmentPost = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -33471,6 +33697,46 @@ export const FragmentPost = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -37219,6 +37485,25 @@ export const FragmentQuoteFields = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -38789,6 +39074,46 @@ export const FragmentQuoteFields = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -42565,6 +42890,25 @@ export const FragmentCommentFields = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -44162,6 +44506,46 @@ export const FragmentCommentFields = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -47951,6 +48335,25 @@ export const FragmentCommentFields = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -48546,6 +48949,25 @@ export const FragmentCommentFields = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50208,6 +50630,46 @@ export const FragmentQuote = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -53997,6 +54459,25 @@ export const FragmentQuote = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -54620,6 +55101,25 @@ export const FragmentQuote = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -55250,6 +55750,25 @@ export const FragmentQuote = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -56878,6 +57397,46 @@ export const FragmentExplorePublication = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -60667,6 +61226,25 @@ export const FragmentExplorePublication = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -61290,6 +61868,25 @@ export const FragmentExplorePublication = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -61920,6 +62517,25 @@ export const FragmentExplorePublication = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -63652,6 +64268,46 @@ export const FragmentComment = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -67441,6 +68097,25 @@ export const FragmentComment = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -68064,6 +68739,25 @@ export const FragmentComment = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -68694,6 +69388,25 @@ export const FragmentComment = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -70372,6 +71085,46 @@ export const FragmentMirror = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -74161,6 +74914,25 @@ export const FragmentMirror = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -74784,6 +75556,25 @@ export const FragmentMirror = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -75484,6 +76275,25 @@ export const FragmentMirror = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -78216,6 +79026,46 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -82005,6 +82855,25 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -82628,6 +83497,25 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -83404,6 +84292,25 @@ export const FragmentFeedItem = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -85092,6 +85999,46 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -88881,6 +89828,25 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -89504,6 +90470,25 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -90134,6 +91119,25 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -93856,6 +94860,46 @@ export const FragmentOpenActionPaidAction = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -97645,6 +98689,25 @@ export const FragmentOpenActionPaidAction = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -98268,6 +99331,25 @@ export const FragmentOpenActionPaidAction = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -98968,6 +100050,25 @@ export const FragmentOpenActionPaidAction = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -100690,6 +101791,46 @@ export const FragmentAnyPublicationInternal = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -104479,6 +105620,25 @@ export const FragmentAnyPublicationInternal = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -105102,6 +106262,25 @@ export const FragmentAnyPublicationInternal = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -105878,6 +107057,25 @@ export const FragmentAnyPublicationInternal = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -109953,6 +111151,46 @@ export const FragmentReactionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -113742,6 +114980,25 @@ export const FragmentReactionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -114365,6 +115622,25 @@ export const FragmentReactionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -115065,6 +116341,25 @@ export const FragmentReactionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -116789,6 +118084,46 @@ export const FragmentCommentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -120578,6 +121913,25 @@ export const FragmentCommentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -121201,6 +122555,25 @@ export const FragmentCommentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -121901,6 +123274,25 @@ export const FragmentCommentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -124538,6 +125930,46 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -128327,6 +129759,25 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -128950,6 +130401,25 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -129650,6 +131120,25 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -131353,6 +132842,46 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -135142,6 +136671,25 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -135765,6 +137313,25 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -136395,6 +137962,25 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -139306,6 +140892,46 @@ export const FragmentActedNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -143169,6 +144795,25 @@ export const FragmentActedNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -143792,6 +145437,25 @@ export const FragmentActedNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -144568,6 +146232,25 @@ export const FragmentActedNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -147284,6 +148967,46 @@ export const FragmentMentionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -151073,6 +152796,25 @@ export const FragmentMentionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -151696,6 +153438,25 @@ export const FragmentMentionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -152396,6 +154157,25 @@ export const FragmentMentionNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -154159,6 +155939,46 @@ export const FragmentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -158022,6 +159842,25 @@ export const FragmentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -158645,6 +160484,25 @@ export const FragmentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -159421,6 +161279,25 @@ export const FragmentNotification = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -164750,6 +166627,46 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -168539,6 +170456,25 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -169162,6 +171098,25 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -169938,6 +171893,25 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -172804,6 +174778,46 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -176593,6 +178607,25 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -177216,6 +179249,25 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -177846,6 +179898,25 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -180966,6 +183037,46 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -184755,6 +186866,25 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -185378,6 +187508,25 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -186154,6 +188303,25 @@ export const FeedDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -188038,6 +190206,46 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -191827,6 +194035,25 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -192450,6 +194677,25 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -193080,6 +195326,25 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -195099,6 +197364,46 @@ export const LatestPaidActionsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -198888,6 +201193,25 @@ export const LatestPaidActionsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -199511,6 +201835,25 @@ export const LatestPaidActionsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -200211,6 +202554,25 @@ export const LatestPaidActionsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -204152,6 +206514,46 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -208015,6 +210417,25 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -208638,6 +211059,25 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -209414,6 +211854,25 @@ export const NotificationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -224469,6 +226928,46 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -228258,6 +230757,25 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -228881,6 +231399,25 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -229657,6 +232194,25 @@ export const PublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -231567,6 +234123,46 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -235356,6 +237952,25 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -235979,6 +238594,25 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -236755,6 +239389,25 @@ export const PublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -238892,6 +241545,46 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -242681,6 +245374,25 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -243304,6 +246016,25 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -244080,6 +246811,25 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -250881,6 +253631,46 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -254670,6 +257460,25 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -255293,6 +258102,25 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -256069,6 +258897,25 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -257977,6 +260824,46 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -261766,6 +264653,25 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -262389,6 +265295,25 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -263165,6 +266090,25 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -265409,6 +268353,46 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'Recipient' }, @@ -269198,6 +272182,25 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -269821,6 +272824,25 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -270521,6 +273543,25 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -276553,6 +279594,29 @@ export type DidReactOnPublicationResultFieldPolicy = { publicationId?: FieldPolicy | FieldReadFunction; result?: FieldPolicy | FieldReadFunction; }; +export type DisputedReportKeySpecifier = ( + | 'createdAt' + | 'disputeReason' + | 'disputer' + | 'reportAdditionalInfo' + | 'reportReason' + | 'reportSubreason' + | 'reportedProfile' + | 'reportedPublication' + | 'reporter' + | DisputedReportKeySpecifier +)[]; +export type DisputedReportFieldPolicy = { + createdAt?: FieldPolicy | FieldReadFunction; + disputeReason?: FieldPolicy | FieldReadFunction; + disputer?: FieldPolicy | FieldReadFunction; + reportAdditionalInfo?: FieldPolicy | FieldReadFunction; + reportReason?: FieldPolicy | FieldReadFunction; + reportSubreason?: FieldPolicy | FieldReadFunction; + reportedProfile?: FieldPolicy | FieldReadFunction; + reportedPublication?: FieldPolicy | FieldReadFunction; + reporter?: FieldPolicy | FieldReadFunction; +}; export type EIP712TypedDataDomainKeySpecifier = ( | 'chainId' | 'name' @@ -277423,6 +280487,25 @@ export type ModFollowerResultFieldPolicy = { follower?: FieldPolicy | FieldReadFunction; following?: FieldPolicy | FieldReadFunction; }; +export type ModReportKeySpecifier = ( + | 'additionalInfo' + | 'createdAt' + | 'reason' + | 'reportedProfile' + | 'reportedPublication' + | 'reporter' + | 'subreason' + | ModReportKeySpecifier +)[]; +export type ModReportFieldPolicy = { + additionalInfo?: FieldPolicy | FieldReadFunction; + createdAt?: FieldPolicy | FieldReadFunction; + reason?: FieldPolicy | FieldReadFunction; + reportedProfile?: FieldPolicy | FieldReadFunction; + reportedPublication?: FieldPolicy | FieldReadFunction; + reporter?: FieldPolicy | FieldReadFunction; + subreason?: FieldPolicy | FieldReadFunction; +}; export type ModuleInfoKeySpecifier = ('name' | 'type' | ModuleInfoKeySpecifier)[]; export type ModuleInfoFieldPolicy = { name?: FieldPolicy | FieldReadFunction; @@ -277659,6 +280742,7 @@ export type MutationKeySpecifier = ( | 'linkHandleToProfile' | 'mirrorOnMomoka' | 'mirrorOnchain' + | 'modDisputeReport' | 'nftOwnershipChallenge' | 'peerToPeerRecommend' | 'peerToPeerUnrecommend' @@ -277749,6 +280833,7 @@ export type MutationFieldPolicy = { linkHandleToProfile?: FieldPolicy | FieldReadFunction; mirrorOnMomoka?: FieldPolicy | FieldReadFunction; mirrorOnchain?: FieldPolicy | FieldReadFunction; + modDisputeReport?: FieldPolicy | FieldReadFunction; nftOwnershipChallenge?: FieldPolicy | FieldReadFunction; peerToPeerRecommend?: FieldPolicy | FieldReadFunction; peerToPeerUnrecommend?: FieldPolicy | FieldReadFunction; @@ -277954,6 +281039,15 @@ export type PaginatedCurrenciesResultFieldPolicy = { items?: FieldPolicy | FieldReadFunction; pageInfo?: FieldPolicy | FieldReadFunction; }; +export type PaginatedDisputedReportsKeySpecifier = ( + | 'items' + | 'pageInfo' + | PaginatedDisputedReportsKeySpecifier +)[]; +export type PaginatedDisputedReportsFieldPolicy = { + items?: FieldPolicy | FieldReadFunction; + pageInfo?: FieldPolicy | FieldReadFunction; +}; export type PaginatedExplorePublicationResultKeySpecifier = ( | 'items' | 'pageInfo' @@ -278008,6 +281102,15 @@ export type PaginatedModFollowersResultFieldPolicy = { items?: FieldPolicy | FieldReadFunction; pageInfo?: FieldPolicy | FieldReadFunction; }; +export type PaginatedModReportsKeySpecifier = ( + | 'items' + | 'pageInfo' + | PaginatedModReportsKeySpecifier +)[]; +export type PaginatedModReportsFieldPolicy = { + items?: FieldPolicy | FieldReadFunction; + pageInfo?: FieldPolicy | FieldReadFunction; +}; export type PaginatedNftCollectionsResultKeySpecifier = ( | 'items' | 'pageInfo' @@ -278486,6 +281589,31 @@ export type ProfilesManagedResultFieldPolicy = { address?: FieldPolicy | FieldReadFunction; isLensManager?: FieldPolicy | FieldReadFunction; }; +export type ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier = ( + | 'amount' + | 'collectLimit' + | 'collectNft' + | 'contract' + | 'creatorClient' + | 'endsAt' + | 'followerOnly' + | 'recipient' + | 'referralFee' + | 'type' + | ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier +)[]; +export type ProtocolSharedRevenueCollectOpenActionSettingsFieldPolicy = { + amount?: FieldPolicy | FieldReadFunction; + collectLimit?: FieldPolicy | FieldReadFunction; + collectNft?: FieldPolicy | FieldReadFunction; + contract?: FieldPolicy | FieldReadFunction; + creatorClient?: FieldPolicy | FieldReadFunction; + endsAt?: FieldPolicy | FieldReadFunction; + followerOnly?: FieldPolicy | FieldReadFunction; + recipient?: FieldPolicy | FieldReadFunction; + referralFee?: FieldPolicy | FieldReadFunction; + type?: FieldPolicy | FieldReadFunction; +}; export type PublicationMarketplaceMetadataAttributeKeySpecifier = ( | 'displayType' | 'traitType' @@ -278674,8 +281802,10 @@ export type QueryKeySpecifier = ( | 'lensAPIOwnedEOAs' | 'lensProtocolVersion' | 'lensTransactionStatus' + | 'modDisputedReports' | 'modExplorePublications' | 'modFollowers' + | 'modLatestReports' | 'moduleMetadata' | 'momokaSubmitters' | 'momokaSummary' @@ -278766,8 +281896,10 @@ export type QueryFieldPolicy = { lensAPIOwnedEOAs?: FieldPolicy | FieldReadFunction; lensProtocolVersion?: FieldPolicy | FieldReadFunction; lensTransactionStatus?: FieldPolicy | FieldReadFunction; + modDisputedReports?: FieldPolicy | FieldReadFunction; modExplorePublications?: FieldPolicy | FieldReadFunction; modFollowers?: FieldPolicy | FieldReadFunction; + modLatestReports?: FieldPolicy | FieldReadFunction; moduleMetadata?: FieldPolicy | FieldReadFunction; momokaSubmitters?: FieldPolicy | FieldReadFunction; momokaSummary?: FieldPolicy | FieldReadFunction; @@ -280077,6 +283209,10 @@ export type StrictTypedTypePolicies = { | (() => undefined | DidReactOnPublicationResultKeySpecifier); fields?: DidReactOnPublicationResultFieldPolicy; }; + DisputedReport?: Omit & { + keyFields?: false | DisputedReportKeySpecifier | (() => undefined | DisputedReportKeySpecifier); + fields?: DisputedReportFieldPolicy; + }; EIP712TypedDataDomain?: Omit & { keyFields?: | false @@ -280473,6 +283609,10 @@ export type StrictTypedTypePolicies = { | (() => undefined | ModFollowerResultKeySpecifier); fields?: ModFollowerResultFieldPolicy; }; + ModReport?: Omit & { + keyFields?: false | ModReportKeySpecifier | (() => undefined | ModReportKeySpecifier); + fields?: ModReportFieldPolicy; + }; ModuleInfo?: Omit & { keyFields?: false | ModuleInfoKeySpecifier | (() => undefined | ModuleInfoKeySpecifier); fields?: ModuleInfoFieldPolicy; @@ -280654,6 +283794,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | PaginatedCurrenciesResultKeySpecifier); fields?: PaginatedCurrenciesResultFieldPolicy; }; + PaginatedDisputedReports?: Omit & { + keyFields?: + | false + | PaginatedDisputedReportsKeySpecifier + | (() => undefined | PaginatedDisputedReportsKeySpecifier); + fields?: PaginatedDisputedReportsFieldPolicy; + }; PaginatedExplorePublicationResult?: Omit & { keyFields?: | false @@ -280696,6 +283843,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | PaginatedModFollowersResultKeySpecifier); fields?: PaginatedModFollowersResultFieldPolicy; }; + PaginatedModReports?: Omit & { + keyFields?: + | false + | PaginatedModReportsKeySpecifier + | (() => undefined | PaginatedModReportsKeySpecifier); + fields?: PaginatedModReportsFieldPolicy; + }; PaginatedNftCollectionsResult?: Omit & { keyFields?: | false @@ -280930,6 +284084,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | ProfilesManagedResultKeySpecifier); fields?: ProfilesManagedResultFieldPolicy; }; + ProtocolSharedRevenueCollectOpenActionSettings?: Omit & { + keyFields?: + | false + | ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier + | (() => undefined | ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier); + fields?: ProtocolSharedRevenueCollectOpenActionSettingsFieldPolicy; + }; PublicationMarketplaceMetadataAttribute?: Omit & { keyFields?: | false @@ -281289,6 +284450,7 @@ const result: PossibleTypesResultData = { 'LegacySimpleCollectModuleSettings', 'LegacyTimedFeeCollectModuleSettings', 'MultirecipientFeeCollectOpenActionSettings', + 'ProtocolSharedRevenueCollectOpenActionSettings', 'SimpleCollectOpenActionSettings', 'UnknownOpenActionModuleSettings', ], diff --git a/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts b/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts index 98580acb89..9efb0751ce 100644 --- a/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts +++ b/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts @@ -4,18 +4,10 @@ import * as gql from '../graphql/generated'; import { OpenActionModuleSettings, PrimaryPublication } from '../publication'; import { erc20Amount, fiatAmount } from './amount'; -export type CollectModuleSettings = - | gql.LegacyAaveFeeCollectModuleSettings - | gql.LegacyErc4626FeeCollectModuleSettings - | gql.LegacyFeeCollectModuleSettings - | gql.LegacyLimitedFeeCollectModuleSettings - | gql.LegacyLimitedTimedFeeCollectModuleSettings - | gql.LegacyMultirecipientFeeCollectModuleSettings - | gql.LegacyTimedFeeCollectModuleSettings - | gql.LegacySimpleCollectModuleSettings - | gql.LegacyFreeCollectModuleSettings - | gql.MultirecipientFeeCollectOpenActionSettings - | gql.SimpleCollectOpenActionSettings; +export type CollectModuleSettings = Exclude< + OpenActionModuleSettings, + gql.UnknownOpenActionModuleSettings | gql.LegacyRevertCollectModuleSettings +>; const ModulesWithKnownCollectCapability: Record = { LegacyAaveFeeCollectModuleSettings: true, @@ -29,6 +21,7 @@ const ModulesWithKnownCollectCapability: Record, +): CollectFee | MultirecipientCollectFee | null { const erc20 = erc20Amount(module.amount); - if (erc20.isZero()) return undefined; + if (erc20.isZero()) return null; const shared = { amount: erc20, @@ -141,7 +185,6 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo if (!module) return null; - const fee = buildCollectFee(module); const shared = { followerOnly: module.followerOnly, contract: module.contract, @@ -149,56 +192,73 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo switch (module.__typename) { case 'LegacyAaveFeeCollectModuleSettings': - case 'LegacyERC4626FeeCollectModuleSettings': { + case 'LegacyERC4626FeeCollectModuleSettings': return { ...shared, collectNft: null, collectLimit: module.collectLimit, endsAt: module.endsAt, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyLimitedFeeCollectModuleSettings': - case 'LegacyLimitedTimedFeeCollectModuleSettings': { + case 'LegacyLimitedTimedFeeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: module.collectLimit, endsAt: null, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyFeeCollectModuleSettings': - case 'LegacyTimedFeeCollectModuleSettings': { + case 'LegacyTimedFeeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: null, endsAt: null, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyFreeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: null, endsAt: null, + fee: null, }; + case 'LegacyMultirecipientFeeCollectModuleSettings': case 'MultirecipientFeeCollectOpenActionSettings': + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + fee: buildCollectFee(module), + }; + case 'LegacySimpleCollectModuleSettings': - case 'SimpleCollectOpenActionSettings': { + case 'SimpleCollectOpenActionSettings': return { ...shared, collectNft: module.collectNft, collectLimit: module.collectLimit, endsAt: module.endsAt, - fee, + fee: buildCollectFee(module), }; - } - default: - return null; + case 'ProtocolSharedRevenueCollectOpenActionSettings': { + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + fee: buildCollectFee(module), + creatorClient: module.creatorClient, + }; + } } } diff --git a/packages/client/codegen-api.yml b/packages/client/codegen-api.yml index c665f8f385..fe924d0046 100644 --- a/packages/client/codegen-api.yml +++ b/packages/client/codegen-api.yml @@ -56,8 +56,8 @@ config: schema: # - https://api-amoy.lens-v2.crtlkey.com/ # staging - - https://api-v2-amoy.lens.dev/ # testnet - # - http://localhost:4000/ + # - https://api-v2-amoy.lens.dev/ # testnet + - http://localhost:4000/ documents: - src/**/*.graphql generates: diff --git a/packages/client/src/graphql/fragments.generated.ts b/packages/client/src/graphql/fragments.generated.ts index a5827d5551..4511376a12 100644 --- a/packages/client/src/graphql/fragments.generated.ts +++ b/packages/client/src/graphql/fragments.generated.ts @@ -285,6 +285,20 @@ export type SimpleCollectOpenActionSettingsFragment = { amount: AmountFragment; }; +export type ProtocolSharedRevenueCollectOpenActionSettingsFragment = { + __typename: 'ProtocolSharedRevenueCollectOpenActionSettings'; + type: Types.OpenActionModuleType; + collectNft: string | null; + recipient: string; + referralFee: number; + followerOnly: boolean; + collectLimit: string | null; + endsAt: string | null; + creatorClient: string | null; + contract: NetworkAddressFragment; + amount: AmountFragment; +}; + export type MultirecipientFeeCollectOpenActionSettingsFragment = { __typename: 'MultirecipientFeeCollectOpenActionSettings'; type: Types.OpenActionModuleType; @@ -1078,6 +1092,7 @@ export type PostFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -1131,6 +1146,7 @@ export type CommentBaseFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -1203,6 +1219,7 @@ export type QuoteBaseFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -27426,6 +27443,172 @@ export const MultirecipientFeeCollectOpenActionSettingsFragmentDoc = { }, ], } as unknown as DocumentNode; +export const ProtocolSharedRevenueCollectOpenActionSettingsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Erc20' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Erc20' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FiatAmount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FiatAmount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Fiat' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Fiat' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Fiat' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Amount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Amount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Erc20' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'rate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asFiat' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NetworkAddress' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NetworkAddress' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'address' } }, + { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; export const SimpleCollectOpenActionSettingsFragmentDoc = { kind: 'Document', definitions: [ @@ -28426,6 +28609,25 @@ export const PostFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -29957,6 +30159,46 @@ export const PostFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -33899,6 +34141,25 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -35392,6 +35653,46 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -39227,6 +39528,25 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -40720,6 +41040,46 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -45585,6 +45945,46 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -49538,6 +49938,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50134,6 +50553,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50718,6 +51156,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -52319,6 +52776,46 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -56272,6 +56769,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -56868,6 +57384,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -57452,6 +57987,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -59053,6 +59607,46 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -63006,6 +63600,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -63602,6 +64215,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -64280,6 +64912,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/graphql/fragments.graphql b/packages/client/src/graphql/fragments.graphql index 095cdb3b99..9cbfc6c82c 100644 --- a/packages/client/src/graphql/fragments.graphql +++ b/packages/client/src/graphql/fragments.graphql @@ -444,6 +444,24 @@ fragment SimpleCollectOpenActionSettings on SimpleCollectOpenActionSettings { endsAt } +fragment ProtocolSharedRevenueCollectOpenActionSettings on ProtocolSharedRevenueCollectOpenActionSettings { + __typename + type + contract { + ...NetworkAddress + } + collectNft + amount { + ...Amount + } + recipient + referralFee + followerOnly + collectLimit + endsAt + creatorClient +} + fragment MultirecipientFeeCollectOpenActionSettings on MultirecipientFeeCollectOpenActionSettings { __typename type @@ -1616,6 +1634,9 @@ fragment Post on Post { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1747,6 +1768,9 @@ fragment CommentBase on Comment { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1929,6 +1953,9 @@ fragment QuoteBase on Quote { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } diff --git a/packages/client/src/graphql/types.generated.ts b/packages/client/src/graphql/types.generated.ts index 1119795f04..1d3e80d272 100644 --- a/packages/client/src/graphql/types.generated.ts +++ b/packages/client/src/graphql/types.generated.ts @@ -63,6 +63,7 @@ export type Scalars = { export type ActOnOpenActionInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; unknownOpenAction?: InputMaybe; }; @@ -181,6 +182,7 @@ export enum ClaimableTokenType { export type CollectActionModuleInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; }; @@ -798,6 +800,13 @@ export enum MetadataAttributeType { String = 'STRING', } +export type ModDisputeReportRequest = { + reason: Scalars['String']['input']; + reportedProfileId?: InputMaybe; + reportedPublicationId?: InputMaybe; + reporter: Scalars['ProfileId']['input']; +}; + export type ModExplorePublicationRequest = { cursor?: InputMaybe; limit?: InputMaybe; @@ -818,6 +827,13 @@ export type ModExplorePublicationsWhere = { since?: InputMaybe; }; +export type ModReportsRequest = { + cursor?: InputMaybe; + forProfile?: InputMaybe; + forPublication?: InputMaybe; + limit?: InputMaybe; +}; + export type ModuleCurrencyApproval = { followModule?: InputMaybe; openActionModule?: InputMaybe; @@ -1146,6 +1162,7 @@ export enum OpenActionModuleType { LegacySimpleCollectModule = 'LegacySimpleCollectModule', LegacyTimedFeeCollectModule = 'LegacyTimedFeeCollectModule', MultirecipientFeeCollectOpenActionModule = 'MultirecipientFeeCollectOpenActionModule', + ProtocolSharedRevenueCollectOpenActionModule = 'ProtocolSharedRevenueCollectOpenActionModule', SimpleCollectOpenActionModule = 'SimpleCollectOpenActionModule', UnknownOpenActionModule = 'UnknownOpenActionModule', } @@ -1427,6 +1444,18 @@ export type ProfilesRequestWhere = { whoQuotedPublication?: InputMaybe; }; +export type ProtocolSharedRevenueCollectModuleInput = { + amount?: InputMaybe; + collectLimit?: InputMaybe; + /** The wallet of a client app to share revenues alongside the recipient and the protocol. Optional. */ + creatorClient?: InputMaybe; + currentCollects?: Scalars['Float']['input']; + endsAt?: InputMaybe; + followerOnly: Scalars['Boolean']['input']; + recipient?: InputMaybe; + referralFee?: InputMaybe; +}; + export type PublicationBookmarkRequest = { on: Scalars['PublicationId']['input']; }; @@ -1565,6 +1594,7 @@ export enum PublicationReportingIllegalSubreason { AnimalAbuse = 'ANIMAL_ABUSE', DirectThreat = 'DIRECT_THREAT', HumanAbuse = 'HUMAN_ABUSE', + Plagiarism = 'PLAGIARISM', ThreatIndividual = 'THREAT_INDIVIDUAL', Violence = 'VIOLENCE', } diff --git a/packages/client/src/graphql/types.ts b/packages/client/src/graphql/types.ts index e4d7bda46e..bf737cf554 100644 --- a/packages/client/src/graphql/types.ts +++ b/packages/client/src/graphql/types.ts @@ -33,6 +33,10 @@ export type AnyPublicationFragment = export type PrimaryPublicationFragment = PostFragment | CommentFragment | QuoteFragment; +export type OpenActionModuleFragment = NonNullable< + PrimaryPublicationFragment['openActionModules'] +>[number]; + export type PublicationMetadataFragment = | ArticleMetadataV3Fragment | AudioMetadataV3Fragment diff --git a/packages/client/src/submodules/explore/graphql/explore.generated.ts b/packages/client/src/submodules/explore/graphql/explore.generated.ts index 1e661290c3..f553d907b1 100644 --- a/packages/client/src/submodules/explore/graphql/explore.generated.ts +++ b/packages/client/src/submodules/explore/graphql/explore.generated.ts @@ -707,6 +707,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -5493,6 +5512,46 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6250,6 +6309,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6835,6 +6913,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/feed/graphql/feed.generated.ts b/packages/client/src/submodules/feed/graphql/feed.generated.ts index 908e7233a6..55e39dfe29 100644 --- a/packages/client/src/submodules/feed/graphql/feed.generated.ts +++ b/packages/client/src/submodules/feed/graphql/feed.generated.ts @@ -2514,6 +2514,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6393,6 +6412,46 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -7169,6 +7228,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -7753,6 +7831,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -11392,6 +11489,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15271,6 +15387,46 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -16047,6 +16203,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -16631,6 +16806,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -18474,6 +18668,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -22353,6 +22566,46 @@ export const FeedDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -23129,6 +23382,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -23713,6 +23985,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -25572,6 +25863,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -29451,6 +29761,46 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -30133,6 +30483,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -30717,6 +31086,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -32634,6 +33022,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -36513,6 +36920,46 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -37289,6 +37736,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -37873,6 +38339,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts index 72e16b2246..67ca5de729 100644 --- a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts +++ b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts @@ -1558,6 +1558,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -5437,6 +5456,46 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6213,6 +6272,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6797,6 +6875,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8406,6 +8503,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -12285,6 +12401,46 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -13061,6 +13217,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -13645,6 +13820,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15228,6 +15422,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -19107,6 +19320,46 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -19883,6 +20136,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -20467,6 +20739,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -22076,6 +22367,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -25955,6 +26265,46 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -26637,6 +26987,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -27221,6 +27590,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -29923,6 +30311,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -33716,10 +34123,48 @@ export const ActedNotificationFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, }, selectionSet: { kind: 'SelectionSet', @@ -33736,6 +34181,7 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, { kind: 'Field', name: { kind: 'Name', value: 'amount' }, @@ -33744,7 +34190,18 @@ export const ActedNotificationFragmentDoc = { selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], }, }, - { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recipients' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'split' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, @@ -33754,10 +34211,10 @@ export const ActedNotificationFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, }, selectionSet: { kind: 'SelectionSet', @@ -33783,22 +34240,12 @@ export const ActedNotificationFragmentDoc = { selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], }, }, - { - kind: 'Field', - name: { kind: 'Name', value: 'recipients' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, - { kind: 'Field', name: { kind: 'Name', value: 'split' } }, - ], - }, - }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, ], }, }, @@ -34578,6 +35025,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -35162,6 +35628,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -37808,6 +38293,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -41514,10 +42018,185 @@ export const MentionNotificationFragmentDoc = { }, { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'vault' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'recipients' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'split' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'LegacySimpleCollectModuleSettings' }, + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, }, selectionSet: { kind: 'SelectionSet', @@ -41548,142 +42227,7 @@ export const MentionNotificationFragmentDoc = { { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyERC4626FeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'contract' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'vault' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, - { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, - { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, - { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, - { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyAaveFeeCollectModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'contract' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, - { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, - { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, - { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, - { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'contract' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'amount' }, - selectionSet: { - kind: 'SelectionSet', - selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'recipients' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, - { kind: 'Field', name: { kind: 'Name', value: 'split' } }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, - { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, - { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, - { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, ], }, }, @@ -42463,6 +43007,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -43047,6 +43610,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -45263,6 +45845,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -49142,6 +49743,46 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -49918,6 +50559,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50502,6 +51162,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/publication/graphql/publication.generated.ts b/packages/client/src/submodules/publication/graphql/publication.generated.ts index 52a02d0a46..bcda9d76d7 100644 --- a/packages/client/src/submodules/publication/graphql/publication.generated.ts +++ b/packages/client/src/submodules/publication/graphql/publication.generated.ts @@ -2135,6 +2135,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6921,6 +6940,46 @@ export const PublicationDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -7773,6 +7832,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8357,6 +8435,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -9247,6 +9344,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -14033,6 +14149,46 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -14885,6 +15041,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15469,6 +15644,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/publication/helpers/openActions.ts b/packages/client/src/submodules/publication/helpers/openActions.ts index 0a7b49195f..7027315c7d 100644 --- a/packages/client/src/submodules/publication/helpers/openActions.ts +++ b/packages/client/src/submodules/publication/helpers/openActions.ts @@ -1,45 +1,9 @@ -import { - LegacyAaveFeeCollectModuleSettingsFragment, - LegacyErc4626FeeCollectModuleSettingsFragment, - LegacyFeeCollectModuleSettingsFragment, - LegacyFreeCollectModuleSettingsFragment, - LegacyLimitedFeeCollectModuleSettingsFragment, - LegacyLimitedTimedFeeCollectModuleSettingsFragment, - LegacyMultirecipientFeeCollectModuleSettingsFragment, - LegacyRevertCollectModuleSettingsFragment, - LegacySimpleCollectModuleSettingsFragment, - LegacyTimedFeeCollectModuleSettingsFragment, - MultirecipientFeeCollectOpenActionSettingsFragment, - SimpleCollectOpenActionSettingsFragment, - UnknownOpenActionModuleSettingsFragment, -} from '../../../graphql/fragments.generated'; +import { OpenActionModuleFragment } from '../../../graphql'; -export type OpenActionModuleFragment = - | LegacyAaveFeeCollectModuleSettingsFragment - | LegacyErc4626FeeCollectModuleSettingsFragment - | LegacyFeeCollectModuleSettingsFragment - | LegacyFreeCollectModuleSettingsFragment - | LegacyLimitedFeeCollectModuleSettingsFragment - | LegacyLimitedTimedFeeCollectModuleSettingsFragment - | LegacyMultirecipientFeeCollectModuleSettingsFragment - | LegacyRevertCollectModuleSettingsFragment - | LegacySimpleCollectModuleSettingsFragment - | LegacyTimedFeeCollectModuleSettingsFragment - | MultirecipientFeeCollectOpenActionSettingsFragment - | SimpleCollectOpenActionSettingsFragment - | UnknownOpenActionModuleSettingsFragment; - -export type OpenActionModuleWithReferralFeeFragment = - | LegacyAaveFeeCollectModuleSettingsFragment - | LegacyErc4626FeeCollectModuleSettingsFragment - | LegacyFeeCollectModuleSettingsFragment - | LegacyLimitedFeeCollectModuleSettingsFragment - | LegacyLimitedTimedFeeCollectModuleSettingsFragment - | LegacyMultirecipientFeeCollectModuleSettingsFragment - | LegacySimpleCollectModuleSettingsFragment - | LegacyTimedFeeCollectModuleSettingsFragment - | MultirecipientFeeCollectOpenActionSettingsFragment - | SimpleCollectOpenActionSettingsFragment; +export type OpenActionModuleWithReferralFeeFragment = Extract< + OpenActionModuleFragment, + { referralFee: number } +>; export function isOpenActionModuleWithReferralFee( module: OpenActionModuleFragment, diff --git a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts index 57ccf920eb..682901ac11 100644 --- a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts +++ b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts @@ -737,6 +737,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -5523,6 +5542,46 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6299,6 +6358,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6883,6 +6961,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts index bdd3c5bcb5..73bd35b4c6 100644 --- a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts +++ b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts @@ -893,6 +893,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -5558,6 +5577,46 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6410,6 +6469,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6994,6 +7072,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8048,6 +8145,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -12713,6 +12829,46 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -13565,6 +13721,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -14149,6 +14324,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15190,6 +15384,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -19855,6 +20068,46 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -20707,6 +20960,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -21291,6 +21563,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/search/graphql/search.generated.ts b/packages/client/src/submodules/search/graphql/search.generated.ts index f2ad745158..7d2c3a5fcd 100644 --- a/packages/client/src/submodules/search/graphql/search.generated.ts +++ b/packages/client/src/submodules/search/graphql/search.generated.ts @@ -723,6 +723,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -5509,6 +5528,46 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6285,6 +6344,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6869,6 +6947,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/domain/src/use-cases/publications/OpenAction.ts b/packages/domain/src/use-cases/publications/OpenAction.ts index b715782f1b..c759b337a0 100644 --- a/packages/domain/src/use-cases/publications/OpenAction.ts +++ b/packages/domain/src/use-cases/publications/OpenAction.ts @@ -17,13 +17,15 @@ import { InsufficientFundsError, TokenAvailability, } from '../wallets/TokenAvailability'; +import { OpenActionType } from './OpenActionConfig'; import { Referrers } from './Referrers'; export enum AllOpenActionType { LEGACY_COLLECT = 'LEGACY_COLLECT', - SIMPLE_COLLECT = 'SIMPLE_COLLECT', - MULTIRECIPIENT_COLLECT = 'MULTIRECIPIENT_COLLECT', - UNKNOWN_OPEN_ACTION = 'UNKNOWN_OPEN_ACTION', + MULTIRECIPIENT_COLLECT = OpenActionType.MULTIRECIPIENT_COLLECT, + SHARED_REVENUE_COLLECT = OpenActionType.SHARED_REVENUE_COLLECT, + SIMPLE_COLLECT = OpenActionType.SIMPLE_COLLECT, + UNKNOWN_OPEN_ACTION = OpenActionType.UNKNOWN_OPEN_ACTION, } export type CollectFee = { @@ -64,6 +66,17 @@ export type SimpleCollectRequest = { sponsored: boolean; }; +export type SharedRevenueCollectRequest = { + kind: TransactionKind.ACT_ON_PUBLICATION; + type: AllOpenActionType.SHARED_REVENUE_COLLECT; + publicationId: PublicationId; + referrers?: Referrers; + fee?: CollectFee; + public: boolean; + signless: boolean; + sponsored: boolean; +}; + export type UnknownActionRequest = { kind: TransactionKind.ACT_ON_PUBLICATION; type: AllOpenActionType.UNKNOWN_OPEN_ACTION; @@ -79,6 +92,7 @@ export type UnknownActionRequest = { export type CollectRequest = | LegacyCollectRequest | MultirecipientCollectRequest + | SharedRevenueCollectRequest | SimpleCollectRequest; export type OpenActionRequest = CollectRequest | UnknownActionRequest; @@ -88,11 +102,12 @@ export type DelegableOpenActionRequest = | SimpleCollectRequest | UnknownActionRequest; -function isCollectRequest(request: OpenActionRequest): request is CollectRequest { +export function isCollectRequest(request: OpenActionRequest): request is CollectRequest { return [ AllOpenActionType.LEGACY_COLLECT, - AllOpenActionType.SIMPLE_COLLECT, AllOpenActionType.MULTIRECIPIENT_COLLECT, + AllOpenActionType.SHARED_REVENUE_COLLECT, + AllOpenActionType.SIMPLE_COLLECT, ].includes(request.type); } diff --git a/packages/domain/src/use-cases/publications/OpenActionConfig.ts b/packages/domain/src/use-cases/publications/OpenActionConfig.ts index e1de1d0212..19b817c127 100644 --- a/packages/domain/src/use-cases/publications/OpenActionConfig.ts +++ b/packages/domain/src/use-cases/publications/OpenActionConfig.ts @@ -14,11 +14,15 @@ export type RecipientWithSplit = { }; export enum OpenActionType { - SIMPLE_COLLECT = 'SIMPLE_COLLECT', MULTIRECIPIENT_COLLECT = 'MULTIRECIPIENT_COLLECT', + SHARED_REVENUE_COLLECT = 'SHARED_REVENUE_COLLECT', + SIMPLE_COLLECT = 'SIMPLE_COLLECT', UNKNOWN_OPEN_ACTION = 'UNKNOWN_OPEN_ACTION', } +/** + * @deprecated Use {@link SharedRevenueCollectActionConfig} instead. + */ export type SimpleCollectActionConfig = { type: OpenActionType.SIMPLE_COLLECT; /** @@ -62,6 +66,61 @@ export type SimpleCollectActionConfig = { endsAt?: Date; }; +/** + * A [LIP-23](https://github.com/lens-protocol/LIPs/pull/51) compliant collect action configuration. + */ +export type SharedRevenueCollectActionConfig = { + type: OpenActionType.SHARED_REVENUE_COLLECT; + /** + * The maximum number of NFT to mint. + * + * @defaultValue no limit + */ + collectLimit?: number; + /** + * Whether only followers can collect. + */ + followerOnly: boolean; + /** + * The date when the collect ends. + * + * @defaultValue no end date + */ + endsAt?: Date; +} & ( + | { + /** + * The collect fee amount. + * + * Use {@link Amount.erc20} with instances {@link Erc20} to create an instance of this type. + */ + amount: Erc20Amount; + /** + * The referral reward as a percentage. + * + * This is the maximum referral fee percentage that can be used to reward the referrer. + * The referrers are determined by the FE app used when this simple collect open action is executed. + * + * Number between 1-100 with up to 2 decimals of precision (e.g. 10.5 for 10.5%) + * + * @defaultValue no referral reward + */ + referralFee?: number; + /** + * The recipient of the collect fee. + */ + recipient?: EvmAddress; + } + | { + /** + * The creator app address. + * + * If not set, the share for the creator app will be given to the creator of the publication. + */ + creatorClient?: EvmAddress; + } +); + export type MultirecipientCollectActionConfig = { type: OpenActionType.MULTIRECIPIENT_COLLECT; /** @@ -103,7 +162,10 @@ export type MultirecipientCollectActionConfig = { endsAt?: Date; }; -export type CollectActionConfig = SimpleCollectActionConfig | MultirecipientCollectActionConfig; +export type CollectActionConfig = + | SimpleCollectActionConfig + | MultirecipientCollectActionConfig + | SharedRevenueCollectActionConfig; export type UnknownOpenActionConfig = { type: OpenActionType.UNKNOWN_OPEN_ACTION; diff --git a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts index e559ec7f25..b8ea49c5a1 100644 --- a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts +++ b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts @@ -14,6 +14,7 @@ import { CollectFee, LegacyCollectRequest, MultirecipientCollectRequest, + SharedRevenueCollectRequest, SimpleCollectRequest, UnknownActionRequest, } from '../OpenAction'; @@ -149,6 +150,20 @@ export function mockLegacyCollectRequest( }; } +export function mockSharedRevenueCollectRequest( + overrides?: Partial, +): SharedRevenueCollectRequest { + return { + publicationId: mockPublicationId(), + public: false, + signless: true, + sponsored: true, + ...overrides, + type: AllOpenActionType.SHARED_REVENUE_COLLECT, + kind: TransactionKind.ACT_ON_PUBLICATION, + }; +} + export function mockSimpleCollectRequest( overrides?: Partial, ): SimpleCollectRequest { diff --git a/packages/react/src/transactions/adapters/OpenActionGateway.ts b/packages/react/src/transactions/adapters/OpenActionGateway.ts index dc0b4bb736..f68e05ccdf 100644 --- a/packages/react/src/transactions/adapters/OpenActionGateway.ts +++ b/packages/react/src/transactions/adapters/OpenActionGateway.ts @@ -16,10 +16,7 @@ import { AllOpenActionType, DelegableOpenActionRequest, LegacyCollectRequest, - MultirecipientCollectRequest, OpenActionRequest, - SimpleCollectRequest, - UnknownActionRequest, } from '@lens-protocol/domain/use-cases/publications'; import { BroadcastingError, @@ -37,10 +34,9 @@ import { ITransactionFactory } from './ITransactionFactory'; import { resolveOnchainReferrers } from './referrals'; import { handleRelayError } from './relayer'; -type NewOpenActionRequest = - | SimpleCollectRequest - | MultirecipientCollectRequest - | UnknownActionRequest; +type NewOpenActionRequest = Exclude; + +type NewDelegableOpenActionRequest = Exclude; export class OpenActionGateway extends AbstractContractCallGateway @@ -148,9 +144,9 @@ export class OpenActionGateway } private async relayActOnOpenActionRequestWithProfileManager( - request: SimpleCollectRequest | UnknownActionRequest, + request: NewDelegableOpenActionRequest, ): PromiseResult { - const input = this.resolveActOnOpenActionRequest(request); + const input = this.resolveActOnOpenActionLensManagerRequest(request); const { data } = await this.apolloClient.mutate({ mutation: ActOnOpenActionDocument, @@ -189,6 +185,22 @@ export class OpenActionGateway private resolveActOnOpenActionRequest(request: NewOpenActionRequest): gql.ActOnOpenActionRequest { switch (request.type) { + case AllOpenActionType.MULTIRECIPIENT_COLLECT: + return { + for: request.publicationId, + actOn: { + multirecipientCollectOpenAction: true, + }, + referrers: resolveOnchainReferrers(request.referrers), + }; + case AllOpenActionType.SHARED_REVENUE_COLLECT: + return { + for: request.publicationId, + actOn: { + protocolSharedRevenueCollectOpenAction: true, + }, + referrers: resolveOnchainReferrers(request.referrers), + }; case AllOpenActionType.SIMPLE_COLLECT: return { for: request.publicationId, @@ -197,11 +209,29 @@ export class OpenActionGateway }, referrers: resolveOnchainReferrers(request.referrers), }; - case AllOpenActionType.MULTIRECIPIENT_COLLECT: + case AllOpenActionType.UNKNOWN_OPEN_ACTION: return { for: request.publicationId, actOn: { - multirecipientCollectOpenAction: true, + unknownOpenAction: { + address: request.address, + data: request.data, + }, + }, + referrers: resolveOnchainReferrers(request.referrers), + }; + } + } + + private resolveActOnOpenActionLensManagerRequest( + request: NewDelegableOpenActionRequest, + ): gql.ActOnOpenActionLensManagerRequest { + switch (request.type) { + case AllOpenActionType.SIMPLE_COLLECT: + return { + for: request.publicationId, + actOn: { + simpleCollectOpenAction: true, }, referrers: resolveOnchainReferrers(request.referrers), }; diff --git a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts index 08399207ec..29bb7a8238 100644 --- a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts @@ -23,6 +23,7 @@ import { mockNonce, mockProfileId, mockPublicationId, + mockSharedRevenueCollectRequest, mockSimpleCollectRequest, mockUnknownActionRequest, mockWallet, @@ -134,6 +135,32 @@ describe(`Given an instance of ${OpenActionGateway.name}`, () => { return { data, response }; }, }, + { + name: 'SharedRevenueCollectRequest', + request: mockSharedRevenueCollectRequest({ publicationId, referrers }), + setupMocks: (nonce?: number) => { + const data = mockCreateActOnOpenActionTypedDataData({ nonce }); + const response = mockCreateActOnOpenActionTypedDataResponse({ + variables: { + request: { + for: publicationId, + actOn: { + protocolSharedRevenueCollectOpenAction: true, + }, + referrers: expectedOnChainReferrers, + }, + options: nonce + ? { + overrideSigNonce: nonce, + } + : undefined, + }, + data, + }); + + return { data, response }; + }, + }, { name: 'MultirecipientCollectRequest', request: mockMultirecipientCollectRequest({ publicationId, referrers }), @@ -249,6 +276,22 @@ describe(`Given an instance of ${OpenActionGateway.name}`, () => { data: mockCreateActOnOpenActionTypedDataData(), }), }, + { + name: 'SharedRevenueCollectRequest', + request: mockSharedRevenueCollectRequest({ publicationId, referrers }), + response: mockCreateActOnOpenActionTypedDataResponse({ + variables: { + request: { + for: publicationId, + actOn: { + protocolSharedRevenueCollectOpenAction: true, + }, + referrers: expectedOnChainReferrers, + }, + }, + data: mockCreateActOnOpenActionTypedDataData(), + }), + }, { name: 'MultirecipientCollectRequest', request: mockMultirecipientCollectRequest({ publicationId, referrers }), @@ -445,6 +488,17 @@ describe(`Given an instance of ${OpenActionGateway.name}`, () => { referrers: expectedOnChainReferrers, }, }, + { + name: 'SharedRevenueCollectRequest', + request: mockSharedRevenueCollectRequest({ publicationId, referrers, public: true }), + expectedRequest: { + for: publicationId, + actOn: { + protocolSharedRevenueCollectOpenAction: true, + }, + referrers: expectedOnChainReferrers, + }, + }, { name: 'MultirecipientCollectRequest', request: mockMultirecipientCollectRequest({ publicationId, referrers, public: true }), diff --git a/packages/react/src/transactions/adapters/publications/__tests__/resolveOpenActionModuleInput.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/resolveOpenActionModuleInput.spec.ts index 47fd340179..06e6496042 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/resolveOpenActionModuleInput.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/resolveOpenActionModuleInput.spec.ts @@ -41,6 +41,25 @@ describe(`Given the ${resolveOpenActionModuleInput.name} function`, () => { }, }, }, + { + config: { + type: OpenActionType.SHARED_REVENUE_COLLECT, + collectLimit: 10, + followerOnly: true, + endsAt, + creatorClient: address1, + }, + expected: { + collectOpenAction: { + protocolSharedRevenueCollectOpenAction: { + collectLimit: '10', + endsAt: endsAt.toISOString(), + followerOnly: true, + creatorClient: address1, + }, + }, + }, + }, { config: { type: OpenActionType.MULTIRECIPIENT_COLLECT, diff --git a/packages/react/src/transactions/adapters/publications/resolveOpenActionModuleInput.ts b/packages/react/src/transactions/adapters/publications/resolveOpenActionModuleInput.ts index 81f845b644..8db11f5a4f 100644 --- a/packages/react/src/transactions/adapters/publications/resolveOpenActionModuleInput.ts +++ b/packages/react/src/transactions/adapters/publications/resolveOpenActionModuleInput.ts @@ -27,6 +27,44 @@ export function resolveOpenActionModuleInput(config: OpenActionConfig): OpenActi }, }; + case OpenActionType.SHARED_REVENUE_COLLECT: + if ('amount' in config) { + return { + collectOpenAction: { + protocolSharedRevenueCollectOpenAction: { + amount: { + currency: config.amount.asset.address, + value: config.amount.toSignificantDigits(), + }, + + referralFee: config.referralFee, + + recipient: config.recipient ?? null, + + collectLimit: config.collectLimit?.toString() ?? null, + + endsAt: config.endsAt?.toISOString() ?? null, + + followerOnly: config.followerOnly, + }, + }, + }; + } + + return { + collectOpenAction: { + protocolSharedRevenueCollectOpenAction: { + collectLimit: config.collectLimit?.toString() ?? null, + + endsAt: config.endsAt?.toISOString() ?? null, + + followerOnly: config.followerOnly, + + creatorClient: config.creatorClient, + }, + }, + }; + case OpenActionType.MULTIRECIPIENT_COLLECT: return { collectOpenAction: { diff --git a/packages/react/src/transactions/adapters/schemas/publications.ts b/packages/react/src/transactions/adapters/schemas/publications.ts index f102d813f0..b759c3e982 100644 --- a/packages/react/src/transactions/adapters/schemas/publications.ts +++ b/packages/react/src/transactions/adapters/schemas/publications.ts @@ -31,6 +31,17 @@ const RecipientWithSplitSchema: z.ZodType {