From 09c48652b98ec6a50392eaf470b9683d9bcc0a96 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 | 9 + packages/api-bindings/codegen-api.yml | 4 +- .../src/apollo/cache/transactions.ts | 12 +- .../src/lens/graphql/fragments.graphql | 27 + .../src/lens/graphql/generated.ts | 3162 +++++++++++++++++ .../src/lens/utils/CollectModuleSettings.ts | 152 +- .../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 + 14 files changed, 3580 insertions(+), 67 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..6fbf6279b6 --- /dev/null +++ b/.changeset/weak-hairs-tan.md @@ -0,0 +1,9 @@ +--- +"@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/packages/api-bindings/codegen-api.yml b/packages/api-bindings/codegen-api.yml index 54c082dfe3..e73e18c282 100644 --- a/packages/api-bindings/codegen-api.yml +++ b/packages/api-bindings/codegen-api.yml @@ -61,8 +61,8 @@ generates: Void: void 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/lens/graphql/*.graphql plugins: 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..a4b7257c63 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 | undefined { - if (isFreeCollectModuleSettings(module)) return undefined; - const erc20 = erc20Amount(module.amount); if (erc20.isZero()) return undefined; @@ -141,7 +190,6 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo if (!module) return null; - const fee = buildCollectFee(module); const shared = { followerOnly: module.followerOnly, contract: module.contract, @@ -149,35 +197,35 @@ 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, @@ -185,20 +233,46 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo collectLimit: null, endsAt: 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': { + const fee = buildCollectFee(module); + + if (fee) { + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + fee: fee, + }; + } + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + creatorClient: module.creatorClient ?? undefined, + }; + } } } 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 {