diff --git a/.changeset/weak-hairs-tan.md b/.changeset/weak-hairs-tan.md new file mode 100644 index 0000000000..149bc48974 --- /dev/null +++ b/.changeset/weak-hairs-tan.md @@ -0,0 +1,10 @@ +--- +"@lens-protocol/client": minor +"@lens-protocol/react-native": minor +"@lens-protocol/react-web": minor +"@lens-protocol/react": minor +"@lens-protocol/api-bindings": patch +"@lens-protocol/domain": patch +--- + +**feat:** support new Shared Revenue Collect module diff --git a/examples/web/src/discovery/UseExplorePublications.tsx b/examples/web/src/discovery/UseExplorePublications.tsx index 0718a26452..3a75b52395 100644 --- a/examples/web/src/discovery/UseExplorePublications.tsx +++ b/examples/web/src/discovery/UseExplorePublications.tsx @@ -1,6 +1,8 @@ import { + CollectFee, ExplorePublication, ExplorePublicationsOrderByType, + MultirecipientCollectFee, isMultirecipientCollectFee, resolveCollectPolicy, useExplorePublications, @@ -10,7 +12,31 @@ import { PublicationCard } from '../components/cards'; import { ErrorMessage } from '../components/error/ErrorMessage'; import { Loading } from '../components/loading/Loading'; import { useInfiniteScroll } from '../hooks/useInfiniteScroll'; -import { formatAmount, formatFiatAmount } from '../utils/formatAmount'; +import { formatAmount } from '../utils/formatAmount'; + +export function formatCollectFee({ amount, rate }: CollectFee | MultirecipientCollectFee) { + if (rate) { + const fiat = amount.convert(rate); + return `${formatAmount(amount)} (${formatAmount(fiat)})`; + } + return formatAmount(amount); +} + +export function CollectFeeDetails({ fee }: { fee: CollectFee | MultirecipientCollectFee }) { + return ( +
+

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

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

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

+ ) : ( +

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

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

Only followers can collect

} + + {policy.collectLimit &&

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

} + + {policy.endsAt &&

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

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

Free collect

} + + {policy.fee && }
); } diff --git a/packages/api-bindings/src/apollo/cache/transactions.ts b/packages/api-bindings/src/apollo/cache/transactions.ts index c38650d3ae..4e74cc7a5e 100644 --- a/packages/api-bindings/src/apollo/cache/transactions.ts +++ b/packages/api-bindings/src/apollo/cache/transactions.ts @@ -13,11 +13,11 @@ import { UnlinkHandleRequest, } from '@lens-protocol/domain/use-cases/profile'; import { - OpenActionRequest, - AllOpenActionType, CreateQuoteRequest, CreateMirrorRequest, CreateCommentRequest, + CollectRequest, + isCollectRequest, } from '@lens-protocol/domain/use-cases/publications'; import { AnyTransactionRequest } from '@lens-protocol/domain/use-cases/transactions'; @@ -68,14 +68,10 @@ export function useRecentTransactionsVar() { function isCollectTransaction( transaction: TransactionState, -): transaction is TransactionState { +): transaction is TransactionState { return ( transaction.request.kind === TransactionKind.ACT_ON_PUBLICATION && - [ - AllOpenActionType.LEGACY_COLLECT, - AllOpenActionType.SIMPLE_COLLECT, - AllOpenActionType.MULTIRECIPIENT_COLLECT, - ].includes(transaction.request.type) + isCollectRequest(transaction.request) ); } diff --git a/packages/api-bindings/src/lens/__helpers__/fragments.ts b/packages/api-bindings/src/lens/__helpers__/fragments.ts index c9b0dca689..b2319bc869 100644 --- a/packages/api-bindings/src/lens/__helpers__/fragments.ts +++ b/packages/api-bindings/src/lens/__helpers__/fragments.ts @@ -490,6 +490,15 @@ export function mockSimpleCollectOpenActionSettingsFragment( }); } +export function mockProtocolSharedRevenueCollectOpenActionSettingsFragment( + overrides?: Partial, +) { + return mock({ + ...overrides, + __typename: 'ProtocolSharedRevenueCollectOpenActionSettings', + }); +} + export function mockMultirecipientFeeCollectOpenActionSettingsFragment( overrides?: Partial, ) { diff --git a/packages/api-bindings/src/lens/graphql/fragments.graphql b/packages/api-bindings/src/lens/graphql/fragments.graphql index 3dade1cc70..e22cfd1679 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 @@ -720,6 +738,9 @@ fragment PublicationOperations on PublicationOperations { fragment PublicationMetadataLitEncryption on PublicationMetadataLitEncryption { __typename encryptionKey + accessControlContract { + ...NetworkAddress + } accessCondition { ...RootCondition } @@ -1639,6 +1660,9 @@ fragment Post on Post { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1778,6 +1802,9 @@ fragment CommentFields on Comment { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1961,6 +1988,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..f9a0f7cf8a 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 = { @@ -2715,6 +2759,7 @@ export type PublicationMetadataLitEncryption = { __typename: 'PublicationMetadataLitEncryption'; encryptionKey: ContentEncryptionKey; encryptedPaths: Array; + accessControlContract: NetworkAddress; accessCondition: RootCondition; }; @@ -3218,6 +3263,7 @@ export type Post = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -3272,6 +3318,7 @@ export type CommentFields = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -3345,6 +3392,7 @@ export type QuoteFields = { | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings >; @@ -10443,6 +10491,16 @@ export const FragmentPublicationMetadataLitEncryption = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -12401,6 +12459,16 @@ export const FragmentAudioMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -13592,6 +13660,16 @@ export const FragmentVideoMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -14782,6 +14860,16 @@ export const FragmentImageMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -15959,6 +16047,16 @@ export const FragmentArticleMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -17167,6 +17265,16 @@ export const FragmentEventMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -18358,6 +18466,16 @@ export const FragmentLinkMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -19535,6 +19653,16 @@ export const FragmentEmbedMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -20722,6 +20850,16 @@ export const FragmentCheckingInMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -21669,6 +21807,16 @@ export const FragmentTextOnlyMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -22736,6 +22884,16 @@ export const FragmentThreeDMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -23928,6 +24086,16 @@ export const FragmentStoryMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -25107,6 +25275,16 @@ export const FragmentTransactionMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -26284,6 +26462,16 @@ export const FragmentMintMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -27463,6 +27651,16 @@ export const FragmentSpaceMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -28645,6 +28843,16 @@ export const FragmentLiveStreamMetadataV3 = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -30886,6 +31094,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 +32277,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 +33858,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' }, @@ -34098,6 +34525,16 @@ export const FragmentPost = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -37219,6 +37656,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 +39245,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' }, @@ -39416,6 +39912,16 @@ export const FragmentQuoteFields = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -42565,6 +43071,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 +44687,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' }, @@ -44789,6 +45354,16 @@ export const FragmentCommentFields = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -47951,6 +48526,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 +49140,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 +50821,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' }, @@ -50835,6 +51488,16 @@ export const FragmentQuote = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -53997,6 +54660,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 +55302,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 +55951,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 +57598,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' }, @@ -57505,6 +58265,16 @@ export const FragmentExplorePublication = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -60667,6 +61437,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 +62079,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 +62728,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 +64479,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' }, @@ -64279,6 +65146,16 @@ export const FragmentComment = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -67441,6 +68318,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 +68960,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 +69609,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 +71306,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' }, @@ -70999,6 +71973,16 @@ export const FragmentMirror = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -74161,6 +75145,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 +75787,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 +76506,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 +79257,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' }, @@ -78843,6 +79924,16 @@ export const FragmentFeedItem = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -82005,6 +83096,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 +83738,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 +84533,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 +86240,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' }, @@ -85719,6 +86907,16 @@ export const FragmentFeedHighlight = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -88881,6 +90079,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 +90721,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 +91370,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 +95111,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' }, @@ -94483,6 +95778,16 @@ export const FragmentOpenActionPaidAction = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -97645,6 +98950,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 +99592,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 +100311,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 +102052,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' }, @@ -101317,6 +102719,16 @@ export const FragmentAnyPublicationInternal = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -104479,6 +105891,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 +106533,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 +107328,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 +111422,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' }, @@ -110580,6 +112089,16 @@ export const FragmentReactionNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -113742,6 +115261,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 +115903,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 +116622,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 +118365,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' }, @@ -117416,6 +119032,16 @@ export const FragmentCommentNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -120578,6 +122204,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 +122846,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 +123565,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 +126221,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' }, @@ -125165,6 +126888,16 @@ export const FragmentMirrorNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -128327,6 +130060,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 +130702,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 +131421,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 +133143,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' }, @@ -131980,6 +133810,16 @@ export const FragmentQuoteNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -135142,6 +136982,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 +137624,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 +138273,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 +141203,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' }, @@ -140007,6 +141944,16 @@ export const FragmentActedNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -143169,6 +145116,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 +145758,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 +146553,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 +149288,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' }, @@ -147911,6 +149955,16 @@ export const FragmentMentionNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -151073,6 +153127,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 +153769,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 +154488,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 +156270,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' }, @@ -154860,6 +157011,16 @@ export const FragmentNotification = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -158022,6 +160183,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 +160825,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 +161620,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 +166968,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' }, @@ -165377,6 +167635,16 @@ export const FragmentPublicationRevenue = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -168539,6 +170807,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 +171449,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 +172244,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 +175129,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' }, @@ -173431,6 +175796,16 @@ export const ExplorePublicationsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -176593,6 +178968,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 +179610,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 +180259,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 +183398,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' }, @@ -181593,6 +184065,16 @@ export const FeedDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -184755,6 +187237,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 +187879,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 +188674,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 +190577,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' }, @@ -188665,6 +191244,16 @@ export const FeedHighlightsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -191827,6 +194416,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 +195058,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 +195707,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 +197745,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' }, @@ -195726,6 +198412,16 @@ export const LatestPaidActionsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -198888,6 +201584,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 +202226,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 +202945,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 +206905,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' }, @@ -204853,6 +207646,16 @@ export const NotificationsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -208015,6 +210818,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 +211460,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 +212255,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 +227329,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' }, @@ -225096,6 +227996,16 @@ export const PublicationDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -228258,6 +231168,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 +231810,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 +232605,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 +234534,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' }, @@ -232194,6 +235201,16 @@ export const PublicationsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -235356,6 +238373,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 +239015,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 +239810,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 +241966,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' }, @@ -239519,6 +242633,16 @@ export const PublicationBookmarksDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -242681,6 +245805,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 +246447,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 +247242,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 +254062,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' }, @@ -251508,6 +254729,16 @@ export const RevenueFromPublicationsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -254670,6 +257901,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 +258543,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 +259338,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 +261265,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' }, @@ -258604,6 +261932,16 @@ export const RevenueFromPublicationDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -261766,6 +265104,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 +265746,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 +266541,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 +268804,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' }, @@ -266036,6 +269471,16 @@ export const SearchPublicationsDocument = /*#__PURE__*/ { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -269198,6 +272643,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 +273285,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 +274004,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 +280055,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 +280948,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 +281203,7 @@ export type MutationKeySpecifier = ( | 'linkHandleToProfile' | 'mirrorOnMomoka' | 'mirrorOnchain' + | 'modDisputeReport' | 'nftOwnershipChallenge' | 'peerToPeerRecommend' | 'peerToPeerUnrecommend' @@ -277749,6 +281294,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 +281500,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 +281563,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 +282050,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 +282263,10 @@ export type QueryKeySpecifier = ( | 'lensAPIOwnedEOAs' | 'lensProtocolVersion' | 'lensTransactionStatus' + | 'modDisputedReports' | 'modExplorePublications' | 'modFollowers' + | 'modLatestReports' | 'moduleMetadata' | 'momokaSubmitters' | 'momokaSummary' @@ -278766,8 +282357,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 +283670,10 @@ export type StrictTypedTypePolicies = { | (() => undefined | DidReactOnPublicationResultKeySpecifier); fields?: DidReactOnPublicationResultFieldPolicy; }; + DisputedReport?: Omit & { + keyFields?: false | DisputedReportKeySpecifier | (() => undefined | DisputedReportKeySpecifier); + fields?: DisputedReportFieldPolicy; + }; EIP712TypedDataDomain?: Omit & { keyFields?: | false @@ -280473,6 +284070,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 +284255,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | PaginatedCurrenciesResultKeySpecifier); fields?: PaginatedCurrenciesResultFieldPolicy; }; + PaginatedDisputedReports?: Omit & { + keyFields?: + | false + | PaginatedDisputedReportsKeySpecifier + | (() => undefined | PaginatedDisputedReportsKeySpecifier); + fields?: PaginatedDisputedReportsFieldPolicy; + }; PaginatedExplorePublicationResult?: Omit & { keyFields?: | false @@ -280696,6 +284304,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | PaginatedModFollowersResultKeySpecifier); fields?: PaginatedModFollowersResultFieldPolicy; }; + PaginatedModReports?: Omit & { + keyFields?: + | false + | PaginatedModReportsKeySpecifier + | (() => undefined | PaginatedModReportsKeySpecifier); + fields?: PaginatedModReportsFieldPolicy; + }; PaginatedNftCollectionsResult?: Omit & { keyFields?: | false @@ -280930,6 +284545,13 @@ export type StrictTypedTypePolicies = { | (() => undefined | ProfilesManagedResultKeySpecifier); fields?: ProfilesManagedResultFieldPolicy; }; + ProtocolSharedRevenueCollectOpenActionSettings?: Omit & { + keyFields?: + | false + | ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier + | (() => undefined | ProtocolSharedRevenueCollectOpenActionSettingsKeySpecifier); + fields?: ProtocolSharedRevenueCollectOpenActionSettingsFieldPolicy; + }; PublicationMarketplaceMetadataAttribute?: Omit & { keyFields?: | false @@ -281289,6 +284911,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..da3caaff70 100644 --- a/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts +++ b/packages/api-bindings/src/lens/utils/CollectModuleSettings.ts @@ -4,18 +4,21 @@ import * as gql from '../graphql/generated'; import { OpenActionModuleSettings, PrimaryPublication } from '../publication'; import { erc20Amount, fiatAmount } from './amount'; -export type CollectModuleSettings = +export type LegacyCollectModuleSettings = | gql.LegacyAaveFeeCollectModuleSettings | gql.LegacyErc4626FeeCollectModuleSettings | gql.LegacyFeeCollectModuleSettings + | gql.LegacyFreeCollectModuleSettings | gql.LegacyLimitedFeeCollectModuleSettings | gql.LegacyLimitedTimedFeeCollectModuleSettings | gql.LegacyMultirecipientFeeCollectModuleSettings - | gql.LegacyTimedFeeCollectModuleSettings | gql.LegacySimpleCollectModuleSettings - | gql.LegacyFreeCollectModuleSettings - | gql.MultirecipientFeeCollectOpenActionSettings - | gql.SimpleCollectOpenActionSettings; + | gql.LegacyTimedFeeCollectModuleSettings; + +export type CollectModuleSettings = Exclude< + OpenActionModuleSettings, + gql.UnknownOpenActionModuleSettings | gql.LegacyRevertCollectModuleSettings +>; const ModulesWithKnownCollectCapability: Record = { LegacyAaveFeeCollectModuleSettings: true, @@ -29,6 +32,7 @@ const ModulesWithKnownCollectCapability: Record, +): CollectFee | MultirecipientCollectFee | null { const erc20 = erc20Amount(module.amount); - if (erc20.isZero()) return undefined; + if (erc20.isZero()) return null; const shared = { amount: erc20, @@ -141,7 +196,6 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo if (!module) return null; - const fee = buildCollectFee(module); const shared = { followerOnly: module.followerOnly, contract: module.contract, @@ -149,56 +203,73 @@ export function resolveCollectPolicy(collectable: PrimaryPublication): CollectPo switch (module.__typename) { case 'LegacyAaveFeeCollectModuleSettings': - case 'LegacyERC4626FeeCollectModuleSettings': { + case 'LegacyERC4626FeeCollectModuleSettings': return { ...shared, collectNft: null, collectLimit: module.collectLimit, endsAt: module.endsAt, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyLimitedFeeCollectModuleSettings': - case 'LegacyLimitedTimedFeeCollectModuleSettings': { + case 'LegacyLimitedTimedFeeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: module.collectLimit, endsAt: null, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyFeeCollectModuleSettings': - case 'LegacyTimedFeeCollectModuleSettings': { + case 'LegacyTimedFeeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: null, endsAt: null, - fee, + fee: buildCollectFee(module), }; - } + case 'LegacyFreeCollectModuleSettings': return { ...shared, collectNft: module.collectNft, collectLimit: null, endsAt: null, + fee: null, }; + case 'LegacyMultirecipientFeeCollectModuleSettings': case 'MultirecipientFeeCollectOpenActionSettings': + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + fee: buildCollectFee(module), + }; + case 'LegacySimpleCollectModuleSettings': - case 'SimpleCollectOpenActionSettings': { + case 'SimpleCollectOpenActionSettings': return { ...shared, collectNft: module.collectNft, collectLimit: module.collectLimit, endsAt: module.endsAt, - fee, + fee: buildCollectFee(module), }; - } - default: - return null; + case 'ProtocolSharedRevenueCollectOpenActionSettings': { + return { + ...shared, + collectNft: module.collectNft, + collectLimit: module.collectLimit, + endsAt: module.endsAt, + fee: buildCollectFee(module), + creatorClient: module.creatorClient, + }; + } } } diff --git a/packages/api-bindings/src/lens/utils/__tests__/token-allowance.spec.ts b/packages/api-bindings/src/lens/utils/__tests__/token-allowance.spec.ts deleted file mode 100644 index 6d2059e266..0000000000 --- a/packages/api-bindings/src/lens/utils/__tests__/token-allowance.spec.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { TransactionKind } from '@lens-protocol/domain/entities'; -import { - TokenAllowanceLimit, - TokenAllowanceRequest, -} from '@lens-protocol/domain/use-cases/transactions'; -import { mockDaiAmount, mockEvmAddress } from '@lens-protocol/shared-kernel/mocks'; - -import { - mockAmountFragmentFrom, - mockCommentFragment, - mockFeeFollowModuleSettingsFragment, - mockLegacyAaveFeeCollectModuleSettingsFragment, - mockLegacyErc4626FeeCollectModuleSettingsFragment, - mockLegacyFeeCollectModuleSettingsFragment, - mockLegacyLimitedFeeCollectModuleSettingsFragment, - mockLegacyLimitedTimedFeeCollectModuleSettingsFragment, - mockLegacyMultirecipientFeeCollectModuleSettingsFragment, - mockLegacySimpleCollectModuleSettingsFragment, - mockLegacyTimedFeeCollectModuleSettingsFragment, - mockMirrorFragment, - mockMultirecipientFeeCollectOpenActionSettingsFragment, - mockNetworkAddressFragment, - mockPostFragment, - mockProfileFragment, - mockQuoteFragment, - mockSimpleCollectOpenActionSettingsFragment, -} from '../../__helpers__'; -import { AnyPublication } from '../../publication'; -import { CollectModuleSettings } from '../CollectModuleSettings'; -import { resolveTokenAllowanceRequest } from '../token-allowance'; - -const amount = mockDaiAmount(42); -const spender = mockEvmAddress(); - -function assertExpectedTokenAllowanceRequest(request: TokenAllowanceRequest) { - expect(request).toEqual({ - kind: TransactionKind.APPROVE_MODULE, - amount, - limit: TokenAllowanceLimit.EXACT, - spender, - }); -} - -describe(`Given the ${resolveTokenAllowanceRequest.name} helper`, () => { - describe(`when the item is a Profile`, () => { - const item = mockProfileFragment({ - followModule: mockFeeFollowModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - }); - - describe('configured with FeeFollowModuleSettings', () => { - it('should return the expected TokenAllowanceRequest', () => { - const request = resolveTokenAllowanceRequest(item, TokenAllowanceLimit.EXACT); - - assertExpectedTokenAllowanceRequest(request); - }); - }); - }); - - describe.each<{ - name: string; - mockPublicationWith: (settings: CollectModuleSettings) => AnyPublication; - }>([ - { - name: 'Post', - mockPublicationWith: (settings) => - mockPostFragment({ - openActionModules: [settings], - }), - }, - { - name: 'Comment', - mockPublicationWith: (settings) => - mockCommentFragment({ - openActionModules: [settings], - }), - }, - { - name: 'Quote', - mockPublicationWith: (settings) => - mockQuoteFragment({ - openActionModules: [settings], - }), - }, - { - name: 'Mirror for a Post', - mockPublicationWith: (settings) => - mockMirrorFragment({ - mirrorOn: mockPostFragment({ - openActionModules: [settings], - }), - }), - }, - ])(`when the item is a $name`, ({ mockPublicationWith }) => { - describe.each([ - mockSimpleCollectOpenActionSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockMultirecipientFeeCollectOpenActionSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyLimitedFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyLimitedTimedFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyTimedFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyMultirecipientFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacySimpleCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyErc4626FeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - - mockLegacyAaveFeeCollectModuleSettingsFragment({ - amount: mockAmountFragmentFrom(amount), - contract: mockNetworkAddressFragment({ address: spender }), - }), - ])('configured with $__typename', (settings) => { - it('should return the expected TokenAllowanceRequest', () => { - const item = mockPublicationWith(settings); - const request = resolveTokenAllowanceRequest(item, TokenAllowanceLimit.EXACT); - - assertExpectedTokenAllowanceRequest(request); - }); - }); - }); -}); diff --git a/packages/api-bindings/src/lens/utils/index.ts b/packages/api-bindings/src/lens/utils/index.ts index 5152632150..50329158be 100644 --- a/packages/api-bindings/src/lens/utils/index.ts +++ b/packages/api-bindings/src/lens/utils/index.ts @@ -2,5 +2,4 @@ export * from './amount'; export * from './CollectModuleSettings'; export * from './omitTypename'; export * from './publication'; -export * from './token-allowance'; export * from './types'; diff --git a/packages/api-bindings/src/lens/utils/token-allowance.ts b/packages/api-bindings/src/lens/utils/token-allowance.ts deleted file mode 100644 index 4ba723bd2e..0000000000 --- a/packages/api-bindings/src/lens/utils/token-allowance.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { TransactionKind } from '@lens-protocol/domain/entities'; -import { - TokenAllowanceLimit, - TokenAllowanceRequest, -} from '@lens-protocol/domain/use-cases/transactions'; -import { assertNever, invariant, never } from '@lens-protocol/shared-kernel'; - -import { Profile } from '../graphql/generated'; -import { AnyPublication, PrimaryPublication } from '../publication'; -import { findCollectModuleSettings } from './CollectModuleSettings'; -import { erc20Amount } from './amount'; - -function resolveTokenAllowanceRequestForCollect( - publication: PrimaryPublication, - limit: TokenAllowanceLimit, -): TokenAllowanceRequest { - const module = findCollectModuleSettings(publication); - - invariant(module, `Publication ${publication.id} has no collect module`); - - switch (module.__typename) { - case 'LegacyAaveFeeCollectModuleSettings': - case 'LegacyERC4626FeeCollectModuleSettings': - case 'LegacyFeeCollectModuleSettings': - case 'LegacyLimitedFeeCollectModuleSettings': - case 'LegacyLimitedTimedFeeCollectModuleSettings': - case 'LegacyMultirecipientFeeCollectModuleSettings': - case 'LegacySimpleCollectModuleSettings': - case 'LegacyTimedFeeCollectModuleSettings': - case 'MultirecipientFeeCollectOpenActionSettings': - case 'SimpleCollectOpenActionSettings': - return { - kind: TransactionKind.APPROVE_MODULE, - amount: erc20Amount(module.amount), - limit, - spender: module.contract.address, - }; - - default: - never(`Unsupported collect module type ${module.__typename}`); - } -} - -function resolveTokenAllowanceRequestForFollow( - profile: Profile, - limit: TokenAllowanceLimit, -): TokenAllowanceRequest { - invariant(profile.followModule, `Profile ${profile.id} has no follow module`); - - switch (profile.followModule.__typename) { - case 'FeeFollowModuleSettings': - return { - kind: TransactionKind.APPROVE_MODULE, - amount: erc20Amount(profile.followModule.amount), - limit, - spender: profile.followModule.contract.address, - }; - default: - never(`Unsupported follow module type ${profile.followModule.__typename}`); - } -} - -export function resolveTokenAllowanceRequest( - item: AnyPublication | Profile, - limit: TokenAllowanceLimit, -): TokenAllowanceRequest { - switch (item.__typename) { - case 'Mirror': - return resolveTokenAllowanceRequestForCollect(item.mirrorOn, limit); - - case 'Comment': - case 'Post': - case 'Quote': - return resolveTokenAllowanceRequestForCollect(item, limit); - - case 'Profile': - return resolveTokenAllowanceRequestForFollow(item, limit); - - default: - assertNever(item); - } -} diff --git a/packages/client/codegen-api.yml b/packages/client/codegen-api.yml index c665f8f385..fe924d0046 100644 --- a/packages/client/codegen-api.yml +++ b/packages/client/codegen-api.yml @@ -56,8 +56,8 @@ config: schema: # - https://api-amoy.lens-v2.crtlkey.com/ # staging - - https://api-v2-amoy.lens.dev/ # testnet - # - http://localhost:4000/ + # - https://api-v2-amoy.lens.dev/ # testnet + - http://localhost:4000/ documents: - src/**/*.graphql generates: diff --git a/packages/client/src/graphql/fragments.generated.ts b/packages/client/src/graphql/fragments.generated.ts index a5827d5551..8f12556934 100644 --- a/packages/client/src/graphql/fragments.generated.ts +++ b/packages/client/src/graphql/fragments.generated.ts @@ -285,6 +285,20 @@ export type SimpleCollectOpenActionSettingsFragment = { amount: AmountFragment; }; +export type ProtocolSharedRevenueCollectOpenActionSettingsFragment = { + __typename: 'ProtocolSharedRevenueCollectOpenActionSettings'; + type: Types.OpenActionModuleType; + collectNft: string | null; + recipient: string; + referralFee: number; + followerOnly: boolean; + collectLimit: string | null; + endsAt: string | null; + creatorClient: string | null; + contract: NetworkAddressFragment; + amount: AmountFragment; +}; + export type MultirecipientFeeCollectOpenActionSettingsFragment = { __typename: 'MultirecipientFeeCollectOpenActionSettings'; type: Types.OpenActionModuleType; @@ -479,6 +493,7 @@ export type PublicationMetadataLitEncryptionFragment = { __typename: 'PublicationMetadataLitEncryption'; encryptionKey: string; encryptedPaths: Array; + accessControlContract: NetworkAddressFragment; accessCondition: RootConditionFragment; }; @@ -1078,6 +1093,7 @@ export type PostFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -1131,6 +1147,7 @@ export type CommentBaseFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -1203,6 +1220,7 @@ export type QuoteBaseFragment = { | LegacySimpleCollectModuleSettingsFragment | LegacyTimedFeeCollectModuleSettingsFragment | MultirecipientFeeCollectOpenActionSettingsFragment + | ProtocolSharedRevenueCollectOpenActionSettingsFragment | SimpleCollectOpenActionSettingsFragment | UnknownOpenActionModuleSettingsFragment >; @@ -5962,6 +5980,16 @@ export const PublicationMetadataLitEncryptionFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -8010,6 +8038,16 @@ export const AudioMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -9261,6 +9299,16 @@ export const VideoMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -10511,6 +10559,16 @@ export const ImageMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -11748,6 +11806,16 @@ export const ArticleMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -13016,6 +13084,16 @@ export const EventMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -14267,6 +14345,16 @@ export const LinkMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -15504,6 +15592,16 @@ export const EmbedMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -16751,6 +16849,16 @@ export const CheckingInMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -17752,6 +17860,16 @@ export const TextOnlyMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -18915,6 +19033,16 @@ export const ThreeDMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -20167,6 +20295,16 @@ export const StoryMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -21406,6 +21544,16 @@ export const TransactionMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -22643,6 +22791,16 @@ export const MintMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -23882,6 +24040,16 @@ export const SpaceMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -25124,6 +25292,16 @@ export const LiveStreamMetadataV3FragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -27426,15 +27604,15 @@ export const MultirecipientFeeCollectOpenActionSettingsFragmentDoc = { }, ], } as unknown as DocumentNode; -export const SimpleCollectOpenActionSettingsFragmentDoc = { +export const ProtocolSharedRevenueCollectOpenActionSettingsFragmentDoc = { kind: 'Document', definitions: [ { kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, typeCondition: { kind: 'NamedType', - name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, }, selectionSet: { kind: 'SelectionSet', @@ -27465,6 +27643,7 @@ export const SimpleCollectOpenActionSettingsFragmentDoc = { { 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' } }, ], }, }, @@ -27591,139 +27770,304 @@ export const SimpleCollectOpenActionSettingsFragmentDoc = { }, ], } as unknown as DocumentNode; -export const UnknownOpenActionModuleSettingsFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, - }, - 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: 'initializeCalldata' } }, - { kind: 'Field', name: { kind: 'Name', value: 'initializeResultData' } }, - { kind: 'Field', name: { kind: 'Name', value: 'signlessApproved' } }, - { kind: 'Field', name: { kind: 'Name', value: 'sponsoredApproved' } }, - { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, - ], - }, - }, - { - 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 FollowOnlyReferenceModuleSettingsFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'contract' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - ], - }, - }, - { - 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 LegacyFollowOnlyReferenceModuleSettingsFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'contract' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'NetworkAddress' }, - typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NetworkAddress' } }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'address' } }, - { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, - ], - }, - }, - ], -} as unknown as DocumentNode; +export const SimpleCollectOpenActionSettingsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Erc20' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Erc20' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FiatAmount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'FiatAmount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Fiat' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Fiat' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Fiat' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'name' } }, + { kind: 'Field', name: { kind: 'Name', value: 'symbol' } }, + { kind: 'Field', name: { kind: 'Name', value: 'decimals' } }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'Amount' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Amount' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asset' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Erc20' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'value' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'rate' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + { + kind: 'Field', + name: { kind: 'Name', value: 'asFiat' }, + arguments: [ + { + kind: 'Argument', + name: { kind: 'Name', value: 'request' }, + value: { kind: 'Variable', name: { kind: 'Name', value: 'rateRequest' } }, + }, + ], + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'FiatAmount' } }], + }, + }, + ], + }, + }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'NetworkAddress' }, + typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'NetworkAddress' } }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'address' } }, + { kind: 'Field', name: { kind: 'Name', value: 'chainId' } }, + ], + }, + }, + ], +} as unknown as DocumentNode; +export const UnknownOpenActionModuleSettingsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'UnknownOpenActionModuleSettings' }, + }, + 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: 'initializeCalldata' } }, + { kind: 'Field', name: { kind: 'Name', value: 'initializeResultData' } }, + { kind: 'Field', name: { kind: 'Name', value: 'signlessApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'sponsoredApproved' } }, + { kind: 'Field', name: { kind: 'Name', value: 'verified' } }, + ], + }, + }, + { + 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 FollowOnlyReferenceModuleSettingsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'FollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + 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 LegacyFollowOnlyReferenceModuleSettingsFragmentDoc = { + kind: 'Document', + definitions: [ + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'LegacyFollowOnlyReferenceModuleSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + ], + }, + }, + { + 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 DegreesOfSeparationReferenceModuleSettingsFragmentDoc = { kind: 'Document', definitions: [ @@ -28426,6 +28770,25 @@ export const PostFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -29957,6 +30320,46 @@ export const PostFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -30708,6 +31111,16 @@ export const PostFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -33899,6 +34312,25 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -35392,6 +35824,46 @@ export const CommentBaseFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -36143,6 +36615,16 @@ export const CommentBaseFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -39227,6 +39709,25 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -40720,6 +41221,46 @@ export const QuoteBaseFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -41471,6 +42012,16 @@ export const QuoteBaseFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -45585,6 +46136,46 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -46336,6 +46927,16 @@ export const CommentFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -49538,6 +50139,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50134,6 +50754,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50718,6 +51357,25 @@ export const CommentFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -52319,6 +52977,46 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -53070,6 +53768,16 @@ export const QuoteFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -56272,6 +56980,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -56868,6 +57595,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -57452,6 +58198,25 @@ export const QuoteFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -59053,6 +59818,46 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'MultirecipientFeeCollectOpenActionSettings' }, @@ -59804,6 +60609,16 @@ export const MirrorFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -63006,6 +63821,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -63602,6 +64436,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -64280,6 +65133,25 @@ export const MirrorFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/graphql/fragments.graphql b/packages/client/src/graphql/fragments.graphql index 095cdb3b99..a9e44ef4b1 100644 --- a/packages/client/src/graphql/fragments.graphql +++ b/packages/client/src/graphql/fragments.graphql @@ -444,6 +444,24 @@ fragment SimpleCollectOpenActionSettings on SimpleCollectOpenActionSettings { endsAt } +fragment ProtocolSharedRevenueCollectOpenActionSettings on ProtocolSharedRevenueCollectOpenActionSettings { + __typename + type + contract { + ...NetworkAddress + } + collectNft + amount { + ...Amount + } + recipient + referralFee + followerOnly + collectLimit + endsAt + creatorClient +} + fragment MultirecipientFeeCollectOpenActionSettings on MultirecipientFeeCollectOpenActionSettings { __typename type @@ -694,6 +712,9 @@ fragment PublicationOperations on PublicationOperations { fragment PublicationMetadataLitEncryption on PublicationMetadataLitEncryption { __typename encryptionKey + accessControlContract { + ...NetworkAddress + } accessCondition { ...RootCondition } @@ -1616,6 +1637,9 @@ fragment Post on Post { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1747,6 +1771,9 @@ fragment CommentBase on Comment { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } @@ -1929,6 +1956,9 @@ fragment QuoteBase on Quote { ... on MultirecipientFeeCollectOpenActionSettings { ...MultirecipientFeeCollectOpenActionSettings } + ... on ProtocolSharedRevenueCollectOpenActionSettings { + ...ProtocolSharedRevenueCollectOpenActionSettings + } ... on SimpleCollectOpenActionSettings { ...SimpleCollectOpenActionSettings } diff --git a/packages/client/src/graphql/types.generated.ts b/packages/client/src/graphql/types.generated.ts index 1119795f04..1d3e80d272 100644 --- a/packages/client/src/graphql/types.generated.ts +++ b/packages/client/src/graphql/types.generated.ts @@ -63,6 +63,7 @@ export type Scalars = { export type ActOnOpenActionInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; unknownOpenAction?: InputMaybe; }; @@ -181,6 +182,7 @@ export enum ClaimableTokenType { export type CollectActionModuleInput = { multirecipientCollectOpenAction?: InputMaybe; + protocolSharedRevenueCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; }; @@ -798,6 +800,13 @@ export enum MetadataAttributeType { String = 'STRING', } +export type ModDisputeReportRequest = { + reason: Scalars['String']['input']; + reportedProfileId?: InputMaybe; + reportedPublicationId?: InputMaybe; + reporter: Scalars['ProfileId']['input']; +}; + export type ModExplorePublicationRequest = { cursor?: InputMaybe; limit?: InputMaybe; @@ -818,6 +827,13 @@ export type ModExplorePublicationsWhere = { since?: InputMaybe; }; +export type ModReportsRequest = { + cursor?: InputMaybe; + forProfile?: InputMaybe; + forPublication?: InputMaybe; + limit?: InputMaybe; +}; + export type ModuleCurrencyApproval = { followModule?: InputMaybe; openActionModule?: InputMaybe; @@ -1146,6 +1162,7 @@ export enum OpenActionModuleType { LegacySimpleCollectModule = 'LegacySimpleCollectModule', LegacyTimedFeeCollectModule = 'LegacyTimedFeeCollectModule', MultirecipientFeeCollectOpenActionModule = 'MultirecipientFeeCollectOpenActionModule', + ProtocolSharedRevenueCollectOpenActionModule = 'ProtocolSharedRevenueCollectOpenActionModule', SimpleCollectOpenActionModule = 'SimpleCollectOpenActionModule', UnknownOpenActionModule = 'UnknownOpenActionModule', } @@ -1427,6 +1444,18 @@ export type ProfilesRequestWhere = { whoQuotedPublication?: InputMaybe; }; +export type ProtocolSharedRevenueCollectModuleInput = { + amount?: InputMaybe; + collectLimit?: InputMaybe; + /** The wallet of a client app to share revenues alongside the recipient and the protocol. Optional. */ + creatorClient?: InputMaybe; + currentCollects?: Scalars['Float']['input']; + endsAt?: InputMaybe; + followerOnly: Scalars['Boolean']['input']; + recipient?: InputMaybe; + referralFee?: InputMaybe; +}; + export type PublicationBookmarkRequest = { on: Scalars['PublicationId']['input']; }; @@ -1565,6 +1594,7 @@ export enum PublicationReportingIllegalSubreason { AnimalAbuse = 'ANIMAL_ABUSE', DirectThreat = 'DIRECT_THREAT', HumanAbuse = 'HUMAN_ABUSE', + Plagiarism = 'PLAGIARISM', ThreatIndividual = 'THREAT_INDIVIDUAL', Violence = 'VIOLENCE', } diff --git a/packages/client/src/graphql/types.ts b/packages/client/src/graphql/types.ts index e4d7bda46e..bf737cf554 100644 --- a/packages/client/src/graphql/types.ts +++ b/packages/client/src/graphql/types.ts @@ -33,6 +33,10 @@ export type AnyPublicationFragment = export type PrimaryPublicationFragment = PostFragment | CommentFragment | QuoteFragment; +export type OpenActionModuleFragment = NonNullable< + PrimaryPublicationFragment['openActionModules'] +>[number]; + export type PublicationMetadataFragment = | ArticleMetadataV3Fragment | AudioMetadataV3Fragment diff --git a/packages/client/src/submodules/explore/graphql/explore.generated.ts b/packages/client/src/submodules/explore/graphql/explore.generated.ts index 1e661290c3..6aa6aaa724 100644 --- a/packages/client/src/submodules/explore/graphql/explore.generated.ts +++ b/packages/client/src/submodules/explore/graphql/explore.generated.ts @@ -707,6 +707,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -2436,6 +2455,16 @@ export const ExplorePublicationsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -5493,6 +5522,46 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6250,6 +6319,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6835,6 +6923,25 @@ export const ExplorePublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/feed/graphql/feed.generated.ts b/packages/client/src/submodules/feed/graphql/feed.generated.ts index 908e7233a6..bc7dfea1ae 100644 --- a/packages/client/src/submodules/feed/graphql/feed.generated.ts +++ b/packages/client/src/submodules/feed/graphql/feed.generated.ts @@ -2514,6 +2514,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -3336,6 +3355,16 @@ export const FeedItemFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -6393,6 +6422,46 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -7169,6 +7238,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -7753,6 +7841,25 @@ export const FeedItemFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -11392,6 +11499,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -12214,6 +12340,16 @@ export const OpenActionPaidActionFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -15271,6 +15407,46 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -16047,6 +16223,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -16631,6 +16826,25 @@ export const OpenActionPaidActionFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -18474,6 +18688,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -19296,6 +19529,16 @@ export const FeedDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -22353,6 +22596,46 @@ export const FeedDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -23129,6 +23412,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -23713,6 +24015,25 @@ export const FeedDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -25572,6 +25893,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -26394,6 +26734,16 @@ export const FeedHighlightsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -29451,6 +29801,46 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -30133,6 +30523,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -30717,6 +31126,25 @@ export const FeedHighlightsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -32634,6 +33062,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -33456,6 +33903,16 @@ export const LatestPaidActionsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -36513,6 +36970,46 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -37289,6 +37786,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -37873,6 +38389,25 @@ export const LatestPaidActionsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts index 72e16b2246..2ac63bf6e2 100644 --- a/packages/client/src/submodules/notifications/graphql/notifications.generated.ts +++ b/packages/client/src/submodules/notifications/graphql/notifications.generated.ts @@ -1558,6 +1558,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -2380,6 +2399,16 @@ export const ReactionNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -5437,6 +5466,46 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6213,6 +6282,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6797,6 +6885,25 @@ export const ReactionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8406,6 +8513,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -9228,6 +9354,16 @@ export const CommentNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -12285,6 +12421,46 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -13061,6 +13237,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -13645,6 +13840,25 @@ export const CommentNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15228,6 +15442,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -16050,6 +16283,16 @@ export const MirrorNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -19107,6 +19350,46 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -19883,6 +20166,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -20467,6 +20769,25 @@ export const MirrorNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -22076,6 +22397,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -22898,6 +23238,16 @@ export const QuoteNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -25955,6 +26305,46 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -26637,6 +27027,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -27221,6 +27630,25 @@ export const QuoteNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -29923,6 +30351,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -30745,6 +31192,16 @@ export const ActedNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -33802,6 +34259,46 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -34578,6 +35075,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -35162,6 +35678,25 @@ export const ActedNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -37808,6 +38343,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -38630,6 +39184,16 @@ export const MentionNotificationFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -41687,6 +42251,46 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -42463,6 +43067,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -43047,6 +43670,25 @@ export const MentionNotificationFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -45263,6 +45905,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -46085,6 +46746,16 @@ export const NotificationsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -49142,6 +49813,46 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -49918,6 +50629,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -50502,6 +51232,25 @@ export const NotificationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/publication/graphql/publication.generated.ts b/packages/client/src/submodules/publication/graphql/publication.generated.ts index 52a02d0a46..8433419839 100644 --- a/packages/client/src/submodules/publication/graphql/publication.generated.ts +++ b/packages/client/src/submodules/publication/graphql/publication.generated.ts @@ -2135,6 +2135,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -3864,6 +3883,16 @@ export const PublicationDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -6921,6 +6950,46 @@ export const PublicationDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -7773,6 +7842,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8357,6 +8445,25 @@ export const PublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -9247,6 +9354,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -10976,6 +11102,16 @@ export const PublicationsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -14033,6 +14169,46 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -14885,6 +15061,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15469,6 +15664,25 @@ export const PublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/publication/helpers/openActions.ts b/packages/client/src/submodules/publication/helpers/openActions.ts index 0a7b49195f..7027315c7d 100644 --- a/packages/client/src/submodules/publication/helpers/openActions.ts +++ b/packages/client/src/submodules/publication/helpers/openActions.ts @@ -1,45 +1,9 @@ -import { - LegacyAaveFeeCollectModuleSettingsFragment, - LegacyErc4626FeeCollectModuleSettingsFragment, - LegacyFeeCollectModuleSettingsFragment, - LegacyFreeCollectModuleSettingsFragment, - LegacyLimitedFeeCollectModuleSettingsFragment, - LegacyLimitedTimedFeeCollectModuleSettingsFragment, - LegacyMultirecipientFeeCollectModuleSettingsFragment, - LegacyRevertCollectModuleSettingsFragment, - LegacySimpleCollectModuleSettingsFragment, - LegacyTimedFeeCollectModuleSettingsFragment, - MultirecipientFeeCollectOpenActionSettingsFragment, - SimpleCollectOpenActionSettingsFragment, - UnknownOpenActionModuleSettingsFragment, -} from '../../../graphql/fragments.generated'; +import { OpenActionModuleFragment } from '../../../graphql'; -export type OpenActionModuleFragment = - | LegacyAaveFeeCollectModuleSettingsFragment - | LegacyErc4626FeeCollectModuleSettingsFragment - | LegacyFeeCollectModuleSettingsFragment - | LegacyFreeCollectModuleSettingsFragment - | LegacyLimitedFeeCollectModuleSettingsFragment - | LegacyLimitedTimedFeeCollectModuleSettingsFragment - | LegacyMultirecipientFeeCollectModuleSettingsFragment - | LegacyRevertCollectModuleSettingsFragment - | LegacySimpleCollectModuleSettingsFragment - | LegacyTimedFeeCollectModuleSettingsFragment - | MultirecipientFeeCollectOpenActionSettingsFragment - | SimpleCollectOpenActionSettingsFragment - | UnknownOpenActionModuleSettingsFragment; - -export type OpenActionModuleWithReferralFeeFragment = - | LegacyAaveFeeCollectModuleSettingsFragment - | LegacyErc4626FeeCollectModuleSettingsFragment - | LegacyFeeCollectModuleSettingsFragment - | LegacyLimitedFeeCollectModuleSettingsFragment - | LegacyLimitedTimedFeeCollectModuleSettingsFragment - | LegacyMultirecipientFeeCollectModuleSettingsFragment - | LegacySimpleCollectModuleSettingsFragment - | LegacyTimedFeeCollectModuleSettingsFragment - | MultirecipientFeeCollectOpenActionSettingsFragment - | SimpleCollectOpenActionSettingsFragment; +export type OpenActionModuleWithReferralFeeFragment = Extract< + OpenActionModuleFragment, + { referralFee: number } +>; export function isOpenActionModuleWithReferralFee( module: OpenActionModuleFragment, diff --git a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts index 57ccf920eb..efcb81b410 100644 --- a/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts +++ b/packages/client/src/submodules/publication/submodules/bookmarks/graphql/bookmarks.generated.ts @@ -737,6 +737,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -2466,6 +2485,16 @@ export const PublicationBookmarksDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -5523,6 +5552,46 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6299,6 +6368,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6883,6 +6971,25 @@ export const PublicationBookmarksDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts index bdd3c5bcb5..81215790eb 100644 --- a/packages/client/src/submodules/revenue/graphql/revenue.generated.ts +++ b/packages/client/src/submodules/revenue/graphql/revenue.generated.ts @@ -893,6 +893,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -2501,6 +2520,16 @@ export const PublicationRevenueFragmentDoc = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -5558,6 +5587,46 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6410,6 +6479,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6994,6 +7082,25 @@ export const PublicationRevenueFragmentDoc = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -8048,6 +8155,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -9656,6 +9782,16 @@ export const RevenueFromPublicationsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -12713,6 +12849,46 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -13565,6 +13741,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -14149,6 +14344,25 @@ export const RevenueFromPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -15190,6 +15404,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -16798,6 +17031,16 @@ export const RevenueFromPublicationDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -19855,6 +20098,46 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -20707,6 +20990,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -21291,6 +21593,25 @@ export const RevenueFromPublicationDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/client/src/submodules/search/graphql/search.generated.ts b/packages/client/src/submodules/search/graphql/search.generated.ts index f2ad745158..04d2090c12 100644 --- a/packages/client/src/submodules/search/graphql/search.generated.ts +++ b/packages/client/src/submodules/search/graphql/search.generated.ts @@ -723,6 +723,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -2452,6 +2471,16 @@ export const SearchPublicationsDocument = { selections: [ { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, { kind: 'Field', name: { kind: 'Name', value: 'encryptionKey' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'accessControlContract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, { kind: 'Field', name: { kind: 'Name', value: 'accessCondition' }, @@ -5509,6 +5538,46 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'FragmentDefinition', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, + { kind: 'Field', name: { kind: 'Name', value: 'type' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'contract' }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { kind: 'FragmentSpread', name: { kind: 'Name', value: 'NetworkAddress' } }, + ], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'collectNft' } }, + { + kind: 'Field', + name: { kind: 'Name', value: 'amount' }, + selectionSet: { + kind: 'SelectionSet', + selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'Amount' } }], + }, + }, + { kind: 'Field', name: { kind: 'Name', value: 'recipient' } }, + { kind: 'Field', name: { kind: 'Name', value: 'referralFee' } }, + { kind: 'Field', name: { kind: 'Name', value: 'followerOnly' } }, + { kind: 'Field', name: { kind: 'Name', value: 'collectLimit' } }, + { kind: 'Field', name: { kind: 'Name', value: 'endsAt' } }, + { kind: 'Field', name: { kind: 'Name', value: 'creatorClient' } }, + ], + }, + }, { kind: 'FragmentDefinition', name: { kind: 'Name', value: 'SimpleCollectOpenActionSettings' }, @@ -6285,6 +6354,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { @@ -6869,6 +6957,25 @@ export const SearchPublicationsDocument = { ], }, }, + { + kind: 'InlineFragment', + typeCondition: { + kind: 'NamedType', + name: { kind: 'Name', value: 'ProtocolSharedRevenueCollectOpenActionSettings' }, + }, + selectionSet: { + kind: 'SelectionSet', + selections: [ + { + kind: 'FragmentSpread', + name: { + kind: 'Name', + value: 'ProtocolSharedRevenueCollectOpenActionSettings', + }, + }, + ], + }, + }, { kind: 'InlineFragment', typeCondition: { diff --git a/packages/domain/src/use-cases/publications/OpenAction.ts b/packages/domain/src/use-cases/publications/OpenAction.ts index b715782f1b..c759b337a0 100644 --- a/packages/domain/src/use-cases/publications/OpenAction.ts +++ b/packages/domain/src/use-cases/publications/OpenAction.ts @@ -17,13 +17,15 @@ import { InsufficientFundsError, TokenAvailability, } from '../wallets/TokenAvailability'; +import { OpenActionType } from './OpenActionConfig'; import { Referrers } from './Referrers'; export enum AllOpenActionType { LEGACY_COLLECT = 'LEGACY_COLLECT', - SIMPLE_COLLECT = 'SIMPLE_COLLECT', - MULTIRECIPIENT_COLLECT = 'MULTIRECIPIENT_COLLECT', - UNKNOWN_OPEN_ACTION = 'UNKNOWN_OPEN_ACTION', + MULTIRECIPIENT_COLLECT = OpenActionType.MULTIRECIPIENT_COLLECT, + SHARED_REVENUE_COLLECT = OpenActionType.SHARED_REVENUE_COLLECT, + SIMPLE_COLLECT = OpenActionType.SIMPLE_COLLECT, + UNKNOWN_OPEN_ACTION = OpenActionType.UNKNOWN_OPEN_ACTION, } export type CollectFee = { @@ -64,6 +66,17 @@ export type SimpleCollectRequest = { sponsored: boolean; }; +export type SharedRevenueCollectRequest = { + kind: TransactionKind.ACT_ON_PUBLICATION; + type: AllOpenActionType.SHARED_REVENUE_COLLECT; + publicationId: PublicationId; + referrers?: Referrers; + fee?: CollectFee; + public: boolean; + signless: boolean; + sponsored: boolean; +}; + export type UnknownActionRequest = { kind: TransactionKind.ACT_ON_PUBLICATION; type: AllOpenActionType.UNKNOWN_OPEN_ACTION; @@ -79,6 +92,7 @@ export type UnknownActionRequest = { export type CollectRequest = | LegacyCollectRequest | MultirecipientCollectRequest + | SharedRevenueCollectRequest | SimpleCollectRequest; export type OpenActionRequest = CollectRequest | UnknownActionRequest; @@ -88,11 +102,12 @@ export type DelegableOpenActionRequest = | SimpleCollectRequest | UnknownActionRequest; -function isCollectRequest(request: OpenActionRequest): request is CollectRequest { +export function isCollectRequest(request: OpenActionRequest): request is CollectRequest { return [ AllOpenActionType.LEGACY_COLLECT, - AllOpenActionType.SIMPLE_COLLECT, AllOpenActionType.MULTIRECIPIENT_COLLECT, + AllOpenActionType.SHARED_REVENUE_COLLECT, + AllOpenActionType.SIMPLE_COLLECT, ].includes(request.type); } diff --git a/packages/domain/src/use-cases/publications/OpenActionConfig.ts b/packages/domain/src/use-cases/publications/OpenActionConfig.ts index e1de1d0212..19b817c127 100644 --- a/packages/domain/src/use-cases/publications/OpenActionConfig.ts +++ b/packages/domain/src/use-cases/publications/OpenActionConfig.ts @@ -14,11 +14,15 @@ export type RecipientWithSplit = { }; export enum OpenActionType { - SIMPLE_COLLECT = 'SIMPLE_COLLECT', MULTIRECIPIENT_COLLECT = 'MULTIRECIPIENT_COLLECT', + SHARED_REVENUE_COLLECT = 'SHARED_REVENUE_COLLECT', + SIMPLE_COLLECT = 'SIMPLE_COLLECT', UNKNOWN_OPEN_ACTION = 'UNKNOWN_OPEN_ACTION', } +/** + * @deprecated Use {@link SharedRevenueCollectActionConfig} instead. + */ export type SimpleCollectActionConfig = { type: OpenActionType.SIMPLE_COLLECT; /** @@ -62,6 +66,61 @@ export type SimpleCollectActionConfig = { endsAt?: Date; }; +/** + * A [LIP-23](https://github.com/lens-protocol/LIPs/pull/51) compliant collect action configuration. + */ +export type SharedRevenueCollectActionConfig = { + type: OpenActionType.SHARED_REVENUE_COLLECT; + /** + * The maximum number of NFT to mint. + * + * @defaultValue no limit + */ + collectLimit?: number; + /** + * Whether only followers can collect. + */ + followerOnly: boolean; + /** + * The date when the collect ends. + * + * @defaultValue no end date + */ + endsAt?: Date; +} & ( + | { + /** + * The collect fee amount. + * + * Use {@link Amount.erc20} with instances {@link Erc20} to create an instance of this type. + */ + amount: Erc20Amount; + /** + * The referral reward as a percentage. + * + * This is the maximum referral fee percentage that can be used to reward the referrer. + * The referrers are determined by the FE app used when this simple collect open action is executed. + * + * Number between 1-100 with up to 2 decimals of precision (e.g. 10.5 for 10.5%) + * + * @defaultValue no referral reward + */ + referralFee?: number; + /** + * The recipient of the collect fee. + */ + recipient?: EvmAddress; + } + | { + /** + * The creator app address. + * + * If not set, the share for the creator app will be given to the creator of the publication. + */ + creatorClient?: EvmAddress; + } +); + export type MultirecipientCollectActionConfig = { type: OpenActionType.MULTIRECIPIENT_COLLECT; /** @@ -103,7 +162,10 @@ export type MultirecipientCollectActionConfig = { endsAt?: Date; }; -export type CollectActionConfig = SimpleCollectActionConfig | MultirecipientCollectActionConfig; +export type CollectActionConfig = + | SimpleCollectActionConfig + | MultirecipientCollectActionConfig + | SharedRevenueCollectActionConfig; export type UnknownOpenActionConfig = { type: OpenActionType.UNKNOWN_OPEN_ACTION; diff --git a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts index e559ec7f25..b8ea49c5a1 100644 --- a/packages/domain/src/use-cases/publications/__helpers__/mocks.ts +++ b/packages/domain/src/use-cases/publications/__helpers__/mocks.ts @@ -14,6 +14,7 @@ import { CollectFee, LegacyCollectRequest, MultirecipientCollectRequest, + SharedRevenueCollectRequest, SimpleCollectRequest, UnknownActionRequest, } from '../OpenAction'; @@ -149,6 +150,20 @@ export function mockLegacyCollectRequest( }; } +export function mockSharedRevenueCollectRequest( + overrides?: Partial, +): SharedRevenueCollectRequest { + return { + publicationId: mockPublicationId(), + public: false, + signless: true, + sponsored: true, + ...overrides, + type: AllOpenActionType.SHARED_REVENUE_COLLECT, + kind: TransactionKind.ACT_ON_PUBLICATION, + }; +} + export function mockSimpleCollectRequest( overrides?: Partial, ): SimpleCollectRequest { diff --git a/packages/gated-content/codegen.yml b/packages/gated-content/codegen.yml index f45ac57009..fcdab06973 100644 --- a/packages/gated-content/codegen.yml +++ b/packages/gated-content/codegen.yml @@ -11,6 +11,7 @@ config: field: false strictScalars: true scalars: + ABIJson: string AppId: string BlockchainData: string BroadcastId: string diff --git a/packages/gated-content/src/graphql/__helpers__/mocks.ts b/packages/gated-content/src/graphql/__helpers__/mocks.ts index d24bbf5b9c..0c1734a678 100644 --- a/packages/gated-content/src/graphql/__helpers__/mocks.ts +++ b/packages/gated-content/src/graphql/__helpers__/mocks.ts @@ -141,6 +141,7 @@ export function mockPublicationMetadataLitEncryption( ): PublicationMetadataLitEncryption { return { accessCondition: mockRootCondition(), + accessControlContract: mockNetworkAddress(), encryptionKey: faker.datatype.hexadecimal({ length: 368 }), encryptedPaths: [], ...overrides, diff --git a/packages/gated-content/src/graphql/generated.ts b/packages/gated-content/src/graphql/generated.ts index fe1ce08caf..70d7cbf677 100644 --- a/packages/gated-content/src/graphql/generated.ts +++ b/packages/gated-content/src/graphql/generated.ts @@ -10,6 +10,7 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + ABIJson: string; AppId: string; BlockchainData: string; BroadcastId: string; @@ -55,6 +56,7 @@ export type Scalars = { export type ActOnOpenActionInput = { readonly multirecipientCollectOpenAction?: InputMaybe; + readonly protocolSharedRevenueCollectOpenAction?: InputMaybe; readonly simpleCollectOpenAction?: InputMaybe; readonly unknownOpenAction?: InputMaybe; }; @@ -107,13 +109,20 @@ export type AlreadyInvitedCheckRequest = { export type Amount = { readonly __typename: 'Amount'; + /** This is the total value of the amount in the fiat currency */ + readonly asFiat?: Maybe; /** The asset */ readonly asset: Asset; + /** This is the most recent snapshotted 1:1 conversion rate between the asset and the requested fiat currency */ readonly rate?: Maybe; /** Floating point number as string (e.g. 42.009837). It could have the entire precision of the Asset or be truncated to the last significant decimal. */ readonly value: Scalars['String']; }; +export type AmountAsFiatArgs = { + request: RateRequest; +}; + export type AmountRateArgs = { request: RateRequest; }; @@ -229,6 +238,8 @@ export type AuthenticationResult = { readonly __typename: 'AuthenticationResult'; /** The access token */ readonly accessToken: Scalars['Jwt']; + /** The identity token */ + readonly identityToken: Scalars['Jwt']; /** The refresh token */ readonly refreshToken: Scalars['Jwt']; }; @@ -335,14 +346,28 @@ export type ClaimProfileWithHandleRequest = { export type ClaimProfileWithHandleResult = ClaimProfileWithHandleErrorResult | RelaySuccess; +export type ClaimTokensRequest = { + readonly for: ClaimableTokenType; +}; + export type ClaimableProfilesResult = { readonly __typename: 'ClaimableProfilesResult'; readonly canMintProfileWithFreeTextHandle: Scalars['Boolean']; readonly reserved: ReadonlyArray; }; +export enum ClaimableTokenType { + Bonsai = 'BONSAI', +} + +export type ClaimableTokensResult = { + readonly __typename: 'ClaimableTokensResult'; + readonly bonsai: Amount; +}; + export type CollectActionModuleInput = { readonly multirecipientCollectOpenAction?: InputMaybe; + readonly protocolSharedRevenueCollectOpenAction?: InputMaybe; readonly simpleCollectOpenAction?: InputMaybe; }; @@ -375,6 +400,8 @@ export type Comment = { readonly createdAt: Scalars['DateTime']; readonly firstComment?: Maybe; readonly hashtagsMentioned: ReadonlyArray; + /** Signifies whether this comment has been hidden by the author of its parent publication */ + readonly hiddenByAuthor: Scalars['Boolean']; readonly id: Scalars['PublicationId']; readonly isEncrypted: Scalars['Boolean']; readonly isHidden: Scalars['Boolean']; @@ -563,6 +590,61 @@ export type CreateFollowEip712TypedDataValue = { readonly nonce: Scalars['Nonce']; }; +export type CreateFrameEip712TypedData = { + readonly __typename: 'CreateFrameEIP712TypedData'; + /** The typed data domain */ + readonly domain: Eip712TypedDataDomain; + /** The types */ + readonly types: CreateFrameEip712TypedDataTypes; + /** The values */ + readonly value: CreateFrameEip712TypedDataValue; +}; + +export type CreateFrameEip712TypedDataInput = { + /** The typed data domain */ + readonly domain: Eip712TypedDataDomainInput; + /** The types */ + readonly types: CreateFrameEip712TypedDataTypesInput; + /** The values */ + readonly value: CreateFrameEip712TypedDataValueInput; +}; + +export type CreateFrameEip712TypedDataTypes = { + readonly __typename: 'CreateFrameEIP712TypedDataTypes'; + readonly FrameData: ReadonlyArray; +}; + +export type CreateFrameEip712TypedDataTypesInput = { + readonly FrameData: ReadonlyArray; +}; + +export type CreateFrameEip712TypedDataValue = { + readonly __typename: 'CreateFrameEIP712TypedDataValue'; + readonly actionResponse: Scalars['String']; + readonly buttonIndex: Scalars['Int']; + readonly deadline: Scalars['UnixTimestamp']; + readonly inputText: Scalars['String']; + readonly profileId: Scalars['ProfileId']; + readonly pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + readonly specVersion: Scalars['String']; + readonly state: Scalars['String']; + readonly url: Scalars['URI']; +}; + +export type CreateFrameEip712TypedDataValueInput = { + readonly actionResponse: Scalars['String']; + readonly buttonIndex: Scalars['Int']; + readonly deadline: Scalars['UnixTimestamp']; + readonly inputText: Scalars['String']; + readonly profileId: Scalars['ProfileId']; + readonly pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + readonly specVersion: Scalars['String']; + readonly state: Scalars['String']; + readonly url: Scalars['URI']; +}; + export type CreateLegacyCollectBroadcastItemResult = { readonly __typename: 'CreateLegacyCollectBroadcastItemResult'; /** The date the broadcast item expiries */ @@ -1198,10 +1280,40 @@ export type DegreesOfSeparationReferenceModuleSettings = { readonly type: ReferenceModuleType; }; +export type DidReactOnPublicationPublicationIdAndProfileId = { + readonly profileId: Scalars['ProfileId']; + readonly publicationId: Scalars['PublicationId']; +}; + +export type DidReactOnPublicationRequest = { + readonly for: ReadonlyArray; + readonly where?: InputMaybe; +}; + +export type DidReactOnPublicationResult = { + readonly __typename: 'DidReactOnPublicationResult'; + readonly profileId: Scalars['ProfileId']; + readonly publicationId: Scalars['PublicationId']; + readonly result: Scalars['Boolean']; +}; + export type DismissRecommendedProfilesRequest = { readonly dismiss: ReadonlyArray; }; +export type DisputedReport = { + readonly __typename: 'DisputedReport'; + readonly createdAt: Scalars['DateTime']; + readonly disputeReason: Scalars['String']; + readonly disputer: Profile; + readonly reportAdditionalInfo: Scalars['String']; + readonly reportReason: Scalars['String']; + readonly reportSubreason: Scalars['String']; + readonly reportedProfile: Profile; + readonly reportedPublication?: Maybe; + readonly reporter: Profile; +}; + /** The eip 712 typed data domain */ export type Eip712TypedDataDomain = { readonly __typename: 'EIP712TypedDataDomain'; @@ -1215,6 +1327,17 @@ export type Eip712TypedDataDomain = { readonly version: Scalars['String']; }; +export type Eip712TypedDataDomainInput = { + /** The chainId */ + readonly chainId: Scalars['ChainId']; + /** The name of the typed data domain */ + readonly name: Scalars['String']; + /** The verifying contract */ + readonly verifyingContract: Scalars['EvmAddress']; + /** The version */ + readonly version: Scalars['String']; +}; + /** The eip 712 typed data field */ export type Eip712TypedDataField = { readonly __typename: 'EIP712TypedDataField'; @@ -1224,6 +1347,13 @@ export type Eip712TypedDataField = { readonly type: Scalars['String']; }; +export type Eip712TypedDataFieldInput = { + /** The name of the typed data field */ + readonly name: Scalars['String']; + /** The type of the typed data field */ + readonly type: Scalars['String']; +}; + export type EmbedMetadataV3 = { readonly __typename: 'EmbedMetadataV3'; readonly appId?: Maybe; @@ -1392,6 +1522,7 @@ export enum ExplorePublicationsOrderByType { TopCommented = 'TOP_COMMENTED', TopMirrored = 'TOP_MIRRORED', TopQuoted = 'TOP_QUOTED', + TopReacted = 'TOP_REACTED', } export type ExplorePublicationsWhere = { @@ -1459,6 +1590,7 @@ export type FeedRequest = { }; export type FeedWhere = { + readonly customFilters?: InputMaybe>; readonly feedEventItemTypes?: InputMaybe>; readonly for?: InputMaybe; readonly metadata?: InputMaybe; @@ -1492,7 +1624,7 @@ export type FollowLensManager = { readonly profileId: Scalars['ProfileId']; }; -/** The lens manager will only support FREE follow modules, if you want your unknown module allowed to be signless please contact us */ +/** The lens manager will only support follow modules which are verified here - https://github.com/lens-protocol/verified-modules/blob/master/follow-modules.json */ export type FollowLensManagerModuleRedeemInput = { readonly unknownFollowModule?: InputMaybe; }; @@ -1536,6 +1668,12 @@ export type FollowOnlyReferenceModuleSettings = { readonly type: ReferenceModuleType; }; +export type FollowPaidAction = { + readonly __typename: 'FollowPaidAction'; + readonly followed: Profile; + readonly latestActed: ReadonlyArray; +}; + export type FollowRequest = { readonly follow: ReadonlyArray; }; @@ -1569,14 +1707,68 @@ export type FollowersRequest = { readonly cursor?: InputMaybe; readonly limit?: InputMaybe; readonly of: Scalars['ProfileId']; + /** The order by which to sort the profiles - note if your looking at your own followers it always be DESC */ + readonly orderBy?: InputMaybe; }; export type FollowingRequest = { readonly cursor?: InputMaybe; readonly for: Scalars['ProfileId']; readonly limit?: InputMaybe; + /** The order by which to sort the profiles - note if your looking at your own following it always be DESC */ + readonly orderBy?: InputMaybe; +}; + +export type FrameEip712Request = { + readonly actionResponse: Scalars['String']; + readonly buttonIndex: Scalars['Int']; + readonly deadline: Scalars['UnixTimestamp']; + readonly inputText: Scalars['String']; + readonly profileId: Scalars['ProfileId']; + readonly pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + readonly specVersion: Scalars['String']; + readonly state: Scalars['String']; + readonly url: Scalars['URI']; +}; + +export type FrameLensManagerEip712Request = { + readonly actionResponse: Scalars['String']; + readonly buttonIndex: Scalars['Int']; + readonly inputText: Scalars['String']; + readonly profileId: Scalars['ProfileId']; + readonly pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + readonly specVersion: Scalars['String']; + readonly state: Scalars['String']; + readonly url: Scalars['URI']; +}; + +export type FrameLensManagerSignatureResult = { + readonly __typename: 'FrameLensManagerSignatureResult'; + /** The signature */ + readonly signature: Scalars['Signature']; + /** The typed data signed */ + readonly signedTypedData: CreateFrameEip712TypedData; +}; + +export type FrameVerifySignature = { + /** The identity token */ + readonly identityToken: Scalars['Jwt']; + /** The signature */ + readonly signature: Scalars['Signature']; + /** The typed data signed */ + readonly signedTypedData: CreateFrameEip712TypedDataInput; }; +export enum FrameVerifySignatureResult { + DeadlineExpired = 'DEADLINE_EXPIRED', + IdentityCannotUseProfile = 'IDENTITY_CANNOT_USE_PROFILE', + IdentityUnauthorized = 'IDENTITY_UNAUTHORIZED', + SignerAddressCannotUseProfile = 'SIGNER_ADDRESS_CANNOT_USE_PROFILE', + Verified = 'VERIFIED', +} + export type FraudReasonInput = { readonly reason: PublicationReportingReason; readonly subreason: PublicationReportingFraudSubreason; @@ -1604,6 +1796,18 @@ export type GeoLocation = { readonly rawURI: Scalars['EncryptableURI']; }; +export type GetModuleMetadataResult = { + readonly __typename: 'GetModuleMetadataResult'; + readonly metadata: ModuleMetadata; + readonly moduleType: ModuleType; + /** True if the module can be signedless and use lens manager without a signature */ + readonly signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + readonly sponsoredApproved: Scalars['Boolean']; + /** True if the module is deemed as safe */ + readonly verified: Scalars['Boolean']; +}; + export type GetProfileMetadataArgs = { /** The app id to query the profile's metadata */ readonly appId?: InputMaybe; @@ -1611,10 +1815,17 @@ export type GetProfileMetadataArgs = { readonly useFallback?: InputMaybe; }; +export type HandleGuardianResult = { + readonly __typename: 'HandleGuardianResult'; + readonly cooldownEndsOn?: Maybe; + readonly protected: Scalars['Boolean']; +}; + export type HandleInfo = { readonly __typename: 'HandleInfo'; /** The full handle - namespace/localname */ readonly fullHandle: Scalars['Handle']; + readonly guardian: HandleGuardianResult; /** The handle nft token id */ readonly id: Scalars['TokenId']; /** If null its not linked to anything */ @@ -1636,10 +1847,38 @@ export type HandleLinkedTo = { readonly nftTokenId: Scalars['TokenId']; }; +export type HandleToAddressRequest = { + /** The full handle - namespace/localname */ + readonly handle: Scalars['Handle']; +}; + +export enum HiddenCommentsType { + HiddenOnly = 'HIDDEN_ONLY', + Hide = 'HIDE', + Show = 'SHOW', +} + +export type HideCommentRequest = { + /** The comment to hide. It has to be under a publication made by the user making the request. If already hidden, nothing will happen. */ + readonly for: Scalars['PublicationId']; +}; + +export type HideManagedProfileRequest = { + /** The profile to hide */ + readonly profileId: Scalars['ProfileId']; +}; + export type HidePublicationRequest = { readonly for: Scalars['PublicationId']; }; +export type IphResult = { + readonly __typename: 'IPHResult'; + readonly h?: Maybe; + readonly hda: Scalars['Boolean']; + readonly hs: Scalars['Boolean']; +}; + export type IdKitPhoneVerifyWebhookRequest = { readonly sharedSecret: Scalars['String']; readonly worldcoin?: InputMaybe; @@ -1727,6 +1966,19 @@ export type InternalAllowedDomainsRequest = { readonly secret: Scalars['String']; }; +export type InternalBoostProfileRequest = { + readonly h?: InputMaybe; + readonly p?: InputMaybe; + readonly s: Scalars['Int']; + readonly secret: Scalars['String']; +}; + +export type InternalBoostScoreRequest = { + readonly h?: InputMaybe; + readonly p?: InputMaybe; + readonly secret: Scalars['String']; +}; + export type InternalClaimRequest = { readonly address: Scalars['EvmAddress']; readonly freeTextHandle?: InputMaybe; @@ -1762,6 +2014,12 @@ export type InternalInvitesRequest = { readonly secret: Scalars['String']; }; +export type InternalMintHandleAndProfileRequest = { + readonly a: Scalars['EvmAddress']; + readonly h: Scalars['String']; + readonly secret: Scalars['String']; +}; + export type InternalNftIndexRequest = { readonly n: ReadonlyArray; readonly secret: Scalars['String']; @@ -1772,6 +2030,11 @@ export type InternalNftVerifyRequest = { readonly secret: Scalars['String']; }; +export type InternalPaymentHandleInfoRequest = { + readonly p: Scalars['String']; + readonly secret: Scalars['String']; +}; + export type InternalProfileStatusRequest = { readonly hhh: Scalars['String']; readonly secret: Scalars['String']; @@ -1783,6 +2046,14 @@ export type InternalRemoveCuratedTagRequest = { readonly ttt: Scalars['String']; }; +export type InternalUpdateModuleOptionsRequest = { + readonly i: Scalars['EvmAddress']; + readonly lma?: InputMaybe; + readonly secret: Scalars['String']; + readonly t: ModuleType; + readonly v?: InputMaybe; +}; + export type InternalUpdateProfileStatusRequest = { readonly dd: Scalars['Boolean']; readonly hhh: Scalars['String']; @@ -1796,6 +2067,8 @@ export type InviteRequest = { export type InvitedResult = { readonly __typename: 'InvitedResult'; + readonly addressInvited: Scalars['EvmAddress']; + /** @deprecated Profiles hand out invites on Lens V2 so this is unnecessary information. Will always be the dead address. */ readonly by: Scalars['EvmAddress']; readonly profileMinted?: Maybe; readonly when: Scalars['DateTime']; @@ -1819,6 +2092,28 @@ export type LastLoggedInProfileRequest = { readonly for: Scalars['EvmAddress']; }; +export type LatestActed = { + readonly __typename: 'LatestActed'; + readonly actedAt: Scalars['DateTime']; + readonly profile: Profile; + readonly txHash: Scalars['TxHash']; +}; + +export type LatestPaidActionsFilter = { + readonly openActionFilters?: InputMaybe>; + readonly openActionPublicationMetadataFilters?: InputMaybe; +}; + +export type LatestPaidActionsResult = { + readonly __typename: 'LatestPaidActionsResult'; + readonly items: ReadonlyArray; + readonly pageInfo: PaginatedResultInfo; +}; + +export type LatestPaidActionsWhere = { + readonly customFilters?: InputMaybe>; +}; + export type LegacyAaveFeeCollectModuleSettings = { readonly __typename: 'LegacyAaveFeeCollectModuleSettings'; /** The collect module amount info */ @@ -2024,11 +2319,6 @@ export enum LensProfileManagerRelayErrorReasonType { export type LensProfileManagerRelayResult = LensProfileManagerRelayError | RelaySuccess; -export enum LensProtocolVersion { - V1 = 'V1', - V2 = 'V2', -} - export enum LensTransactionFailureType { MetadataError = 'METADATA_ERROR', Reverted = 'REVERTED', @@ -2110,6 +2400,13 @@ export type LiveStreamMetadataV3 = { readonly title: Scalars['String']; }; +/** Managed profile visibility type */ +export enum ManagedProfileVisibility { + All = 'ALL', + HiddenOnly = 'HIDDEN_ONLY', + NoneHidden = 'NONE_HIDDEN', +} + export type MarketplaceMetadata = { readonly __typename: 'MarketplaceMetadata'; readonly animationUrl?: Maybe; @@ -2196,6 +2493,58 @@ export type MirrorNotification = { export type MirrorablePublication = Comment | Post | Quote; +export type ModDisputeReportRequest = { + readonly reason: Scalars['String']; + readonly reportedProfileId?: InputMaybe; + readonly reportedPublicationId?: InputMaybe; + readonly reporter: Scalars['ProfileId']; +}; + +export type ModExplorePublicationRequest = { + readonly cursor?: InputMaybe; + readonly limit?: InputMaybe; + readonly orderBy: ExplorePublicationsOrderByType; + readonly where?: InputMaybe; +}; + +export enum ModExplorePublicationType { + Comment = 'COMMENT', + Post = 'POST', + Quote = 'QUOTE', +} + +export type ModExplorePublicationsWhere = { + readonly customFilters?: InputMaybe>; + readonly metadata?: InputMaybe; + readonly publicationTypes?: InputMaybe>; + readonly since?: InputMaybe; +}; + +export type ModFollowerResult = { + readonly __typename: 'ModFollowerResult'; + readonly createdAt: Scalars['DateTime']; + readonly follower: Profile; + readonly following: Profile; +}; + +export type ModReport = { + readonly __typename: 'ModReport'; + readonly additionalInfo?: Maybe; + readonly createdAt: Scalars['DateTime']; + readonly reason: Scalars['String']; + readonly reportedProfile: Profile; + readonly reportedPublication?: Maybe; + readonly reporter: Profile; + readonly subreason: Scalars['String']; +}; + +export type ModReportsRequest = { + readonly cursor?: InputMaybe; + readonly forProfile?: InputMaybe; + readonly forPublication?: InputMaybe; + readonly limit?: InputMaybe; +}; + export type ModuleCurrencyApproval = { readonly followModule?: InputMaybe; readonly openActionModule?: InputMaybe; @@ -2211,6 +2560,28 @@ export type ModuleInfo = { readonly type: Scalars['String']; }; +export type ModuleMetadata = { + readonly __typename: 'ModuleMetadata'; + readonly attributes: ReadonlyArray; + readonly authors: ReadonlyArray; + readonly description: Scalars['String']; + readonly initializeCalldataABI: Scalars['ABIJson']; + readonly initializeResultDataABI?: Maybe; + readonly name: Scalars['String']; + readonly processCalldataABI: Scalars['ABIJson']; + readonly title: Scalars['String']; +}; + +export type ModuleMetadataRequest = { + readonly implementation: Scalars['EvmAddress']; +}; + +export enum ModuleType { + Follow = 'FOLLOW', + OpenAction = 'OPEN_ACTION', + Reference = 'REFERENCE', +} + export type MomokaCommentRequest = { readonly commentOn: Scalars['PublicationId']; readonly contentURI: Scalars['URI']; @@ -2340,6 +2711,7 @@ export enum MomokaValidatorError { PotentialReorg = 'POTENTIAL_REORG', PublicationNonceInvalid = 'PUBLICATION_NONCE_INVALID', PublicationNoneDa = 'PUBLICATION_NONE_DA', + PublicationNotRecognized = 'PUBLICATION_NOT_RECOGNIZED', PublicationNoPointer = 'PUBLICATION_NO_POINTER', PublicationSignerNotAllowed = 'PUBLICATION_SIGNER_NOT_ALLOWED', SimulationFailed = 'SIMULATION_FAILED', @@ -2433,23 +2805,33 @@ export type Mutation = { readonly deleteNftGallery?: Maybe; readonly dismissRecommendedProfiles?: Maybe; readonly follow: LensProfileManagerRelayResult; + /** Hides a comment that exists under a publication made by the author. If already hidden, does nothing. */ + readonly hideComment?: Maybe; + /** Hide a managed profile from your managed profiles list. */ + readonly hideManagedProfile?: Maybe; readonly hidePublication?: Maybe; readonly idKitPhoneVerifyWebhook: IdKitPhoneVerifyWebhookResultStatusType; readonly internalAddCuratedTag?: Maybe; readonly internalAddInvites?: Maybe; readonly internalAllowDomain?: Maybe; + readonly internalBoostProfile: Scalars['Int']; readonly internalClaim?: Maybe; readonly internalCuratedUpdate?: Maybe; + readonly internalMintHandleAndProfile: Scalars['TxHash']; readonly internalNftIndex?: Maybe; readonly internalNftVerify?: Maybe; readonly internalRemoveCuratedTag?: Maybe; + readonly internalUpdateModuleOptions?: Maybe; readonly internalUpdateProfileStatus?: Maybe; readonly invite?: Maybe; readonly legacyCollect: LensProfileManagerRelayResult; readonly linkHandleToProfile: LensProfileManagerRelayResult; readonly mirrorOnMomoka: RelayMomokaResult; readonly mirrorOnchain: LensProfileManagerRelayResult; + readonly modDisputeReport?: Maybe; readonly nftOwnershipChallenge: NftOwnershipChallengeResult; + readonly peerToPeerRecommend?: Maybe; + readonly peerToPeerUnrecommend?: Maybe; readonly postOnMomoka: RelayMomokaResult; readonly postOnchain: LensProfileManagerRelayResult; readonly quoteOnMomoka: RelayMomokaResult; @@ -2459,14 +2841,20 @@ export type Mutation = { readonly removeProfileInterests?: Maybe; readonly removePublicationBookmark?: Maybe; readonly removeReaction?: Maybe; + readonly reportProfile?: Maybe; readonly reportPublication?: Maybe; readonly revokeAuthentication?: Maybe; readonly setDefaultProfile?: Maybe; readonly setFollowModule: LensProfileManagerRelayResult; readonly setProfileMetadata: LensProfileManagerRelayResult; + readonly signFrameAction: FrameLensManagerSignatureResult; readonly unblock: LensProfileManagerRelayResult; readonly undoPublicationNotInterested?: Maybe; readonly unfollow: LensProfileManagerRelayResult; + /** Unhides a hidden comment under a publication made by the author. If not hidden, does nothing. */ + readonly unhideComment?: Maybe; + /** Unhide an already hidden managed profile from your managed profiles list. */ + readonly unhideManagedProfile?: Maybe; readonly unlinkHandleFromProfile: LensProfileManagerRelayResult; readonly updateNftGalleryInfo?: Maybe; readonly updateNftGalleryItems?: Maybe; @@ -2637,6 +3025,14 @@ export type MutationFollowArgs = { request: FollowLensManagerRequest; }; +export type MutationHideCommentArgs = { + request: HideCommentRequest; +}; + +export type MutationHideManagedProfileArgs = { + request: HideManagedProfileRequest; +}; + export type MutationHidePublicationArgs = { request: HidePublicationRequest; }; @@ -2657,6 +3053,10 @@ export type MutationInternalAllowDomainArgs = { request: InternalAllowDomainRequest; }; +export type MutationInternalBoostProfileArgs = { + request: InternalBoostProfileRequest; +}; + export type MutationInternalClaimArgs = { request: InternalClaimRequest; }; @@ -2665,6 +3065,10 @@ export type MutationInternalCuratedUpdateArgs = { request: InternalCuratedUpdateRequest; }; +export type MutationInternalMintHandleAndProfileArgs = { + request: InternalMintHandleAndProfileRequest; +}; + export type MutationInternalNftIndexArgs = { request: InternalNftIndexRequest; }; @@ -2677,6 +3081,10 @@ export type MutationInternalRemoveCuratedTagArgs = { request: InternalRemoveCuratedTagRequest; }; +export type MutationInternalUpdateModuleOptionsArgs = { + request: InternalUpdateModuleOptionsRequest; +}; + export type MutationInternalUpdateProfileStatusArgs = { request: InternalUpdateProfileStatusRequest; }; @@ -2701,10 +3109,22 @@ export type MutationMirrorOnchainArgs = { request: OnchainMirrorRequest; }; +export type MutationModDisputeReportArgs = { + request: ModDisputeReportRequest; +}; + export type MutationNftOwnershipChallengeArgs = { request: NftOwnershipChallengeRequest; }; +export type MutationPeerToPeerRecommendArgs = { + request: PeerToPeerRecommendRequest; +}; + +export type MutationPeerToPeerUnrecommendArgs = { + request: PeerToPeerRecommendRequest; +}; + export type MutationPostOnMomokaArgs = { request: MomokaPostRequest; }; @@ -2741,6 +3161,10 @@ export type MutationRemoveReactionArgs = { request: ReactionRequest; }; +export type MutationReportProfileArgs = { + request: ReportProfileRequest; +}; + export type MutationReportPublicationArgs = { request: ReportPublicationRequest; }; @@ -2761,6 +3185,10 @@ export type MutationSetProfileMetadataArgs = { request: OnchainSetProfileMetadataRequest; }; +export type MutationSignFrameActionArgs = { + request: FrameLensManagerEip712Request; +}; + export type MutationUnblockArgs = { request: UnblockRequest; }; @@ -2773,6 +3201,14 @@ export type MutationUnfollowArgs = { request: UnfollowRequest; }; +export type MutationUnhideCommentArgs = { + request: UnhideCommentRequest; +}; + +export type MutationUnhideManagedProfileArgs = { + request: UnhideManagedProfileRequest; +}; + export type MutationUnlinkHandleFromProfileArgs = { request: UnlinkHandleFromProfileRequest; }; @@ -2797,6 +3233,8 @@ export type MutualFollowersRequest = { readonly cursor?: InputMaybe; readonly limit?: InputMaybe; readonly observer: Scalars['ProfileId']; + /** The order by which to sort the profiles */ + readonly orderBy?: InputMaybe; readonly viewing: Scalars['ProfileId']; }; @@ -2836,10 +3274,10 @@ export type Nfi = { export type Nft = { readonly __typename: 'Nft'; readonly collection: NftCollection; - readonly contentURI: Scalars['URI']; + readonly contentURI?: Maybe; readonly contract: NetworkAddress; readonly contractType: NftContractType; - readonly metadata: NftMetadata; + readonly metadata?: Maybe; readonly owner: Owner; readonly tokenId: Scalars['TokenId']; readonly totalSupply: Scalars['String']; @@ -3032,6 +3470,8 @@ export type Notification = export type NotificationRequest = { readonly cursor?: InputMaybe; + /** The order by which to sort the profiles on follows, reactions, actions and mirrors */ + readonly orderBy?: InputMaybe; readonly where?: InputMaybe; }; @@ -3050,6 +3490,7 @@ export type NotificationWhere = { readonly highSignalFilter?: InputMaybe; readonly notificationTypes?: InputMaybe>; readonly publishedOn?: InputMaybe>; + readonly timeBasedAggregation?: InputMaybe; }; export type OnchainCommentRequest = { @@ -3118,6 +3559,7 @@ export type OpenActionModule = | LegacySimpleCollectModuleSettings | LegacyTimedFeeCollectModuleSettings | MultirecipientFeeCollectOpenActionSettings + | ProtocolSharedRevenueCollectOpenActionSettings | SimpleCollectOpenActionSettings | UnknownOpenActionModuleSettings; @@ -3138,10 +3580,17 @@ export enum OpenActionModuleType { LegacySimpleCollectModule = 'LegacySimpleCollectModule', LegacyTimedFeeCollectModule = 'LegacyTimedFeeCollectModule', MultirecipientFeeCollectOpenActionModule = 'MultirecipientFeeCollectOpenActionModule', + ProtocolSharedRevenueCollectOpenActionModule = 'ProtocolSharedRevenueCollectOpenActionModule', SimpleCollectOpenActionModule = 'SimpleCollectOpenActionModule', UnknownOpenActionModule = 'UnknownOpenActionModule', } +export type OpenActionPaidAction = { + readonly __typename: 'OpenActionPaidAction'; + readonly actedOn: PrimaryPublication; + readonly latestActed: ReadonlyArray; +}; + export type OpenActionProfileActed = { readonly __typename: 'OpenActionProfileActed'; readonly actedAt: Scalars['DateTime']; @@ -3187,6 +3636,12 @@ export type PaginatedCurrenciesResult = { readonly pageInfo: PaginatedResultInfo; }; +export type PaginatedDisputedReports = { + readonly __typename: 'PaginatedDisputedReports'; + readonly items: ReadonlyArray; + readonly pageInfo: PaginatedResultInfo; +}; + export type PaginatedExplorePublicationResult = { readonly __typename: 'PaginatedExplorePublicationResult'; readonly items: ReadonlyArray; @@ -3211,6 +3666,24 @@ export type PaginatedHandlesResult = { readonly pageInfo: PaginatedResultInfo; }; +export type PaginatedModExplorePublicationResult = { + readonly __typename: 'PaginatedModExplorePublicationResult'; + readonly items: ReadonlyArray; + readonly pageInfo: PaginatedResultInfo; +}; + +export type PaginatedModFollowersResult = { + readonly __typename: 'PaginatedModFollowersResult'; + readonly items: ReadonlyArray; + readonly pageInfo: PaginatedResultInfo; +}; + +export type PaginatedModReports = { + readonly __typename: 'PaginatedModReports'; + readonly items: ReadonlyArray; + readonly pageInfo: PaginatedResultInfo; +}; + /** Nft collections paginated result */ export type PaginatedNftCollectionsResult = { readonly __typename: 'PaginatedNftCollectionsResult'; @@ -3301,6 +3774,11 @@ export type PaginatedPublicationsTagsResult = { readonly pageInfo: PaginatedResultInfo; }; +export type PaginatedRequest = { + readonly cursor?: InputMaybe; + readonly limit?: InputMaybe; +}; + /** The paginated result info */ export type PaginatedResultInfo = { readonly __typename: 'PaginatedResultInfo'; @@ -3328,6 +3806,13 @@ export type PaginatedWhoReactedResult = { readonly pageInfo: PaginatedResultInfo; }; +export type PaidAction = FollowPaidAction | OpenActionPaidAction; + +export type PeerToPeerRecommendRequest = { + /** The profile to recommend */ + readonly profileId: Scalars['ProfileId']; +}; + export type PhysicalAddress = { readonly __typename: 'PhysicalAddress'; /** The country name component. */ @@ -3412,7 +3897,7 @@ export type PopularNftCollectionsRequest = { /** Include only verified collections */ readonly onlyVerified?: InputMaybe; /** The ordering of Nft collection owners. Defaults to Total Lens Profile owners */ - readonly orderBy?: InputMaybe; + readonly orderBy?: PopularNftCollectionsOrder; }; export type Post = { @@ -3471,6 +3956,8 @@ export type Profile = { readonly operations: ProfileOperations; /** Who owns the profile */ readonly ownedBy: NetworkAddress; + /** If the profile has been recommended by the authenticated user */ + readonly peerToPeerRecommendedByMe: Scalars['Boolean']; /** If the profile has got signless enabled */ readonly signless: Scalars['Boolean']; /** If lens API will sponsor this persons for gasless experience, note they can have signless on but sponsor false which means it be rejected */ @@ -3524,6 +4011,11 @@ export enum ProfileActionHistoryType { UnlinkHandle = 'UNLINK_HANDLE', } +export type ProfileFraudReasonInput = { + readonly reason: ProfileReportingReason; + readonly subreason: ProfileReportingFraudSubreason; +}; + export type ProfileGuardianResult = { readonly __typename: 'ProfileGuardianResult'; readonly cooldownEndsOn?: Maybe; @@ -3699,6 +4191,26 @@ export type ProfileRecommendationsRequest = { readonly shuffle?: InputMaybe; }; +export enum ProfileReportingFraudSubreason { + Impersonation = 'IMPERSONATION', + SomethingElse = 'SOMETHING_ELSE', +} + +export enum ProfileReportingReason { + Fraud = 'FRAUD', + Spam = 'SPAM', +} + +export type ProfileReportingReasonInput = { + readonly fraudReason?: InputMaybe; + readonly spamReason?: InputMaybe; +}; + +export enum ProfileReportingSpamSubreason { + Repetitive = 'REPETITIVE', + SomethingElse = 'SOMETHING_ELSE', +} + export type ProfileRequest = { /** The handle for profile you want to fetch - namespace/localname */ readonly forHandle?: InputMaybe; @@ -3709,6 +4221,8 @@ export type ProfileRequest = { export type ProfileSearchRequest = { readonly cursor?: InputMaybe; readonly limit?: InputMaybe; + /** The order by which to sort the profiles */ + readonly orderBy?: InputMaybe; /** Query for the profile search */ readonly query: Scalars['String']; /** Filtering criteria for profile search */ @@ -3720,6 +4234,11 @@ export type ProfileSearchWhere = { readonly customFilters?: InputMaybe>; }; +export type ProfileSpamReasonInput = { + readonly reason: ProfileReportingReason; + readonly subreason: ProfileReportingSpamSubreason; +}; + /** The Profile Stats */ export type ProfileStats = { readonly __typename: 'ProfileStats'; @@ -3728,6 +4247,8 @@ export type ProfileStats = { readonly followers: Scalars['Int']; readonly following: Scalars['Int']; readonly id: Scalars['ProfileId']; + /** The profile classifier score of this profile relative to others on Lens. It is a % out of 100. */ + readonly lensClassifierScore?: Maybe; readonly mirrors: Scalars['Int']; readonly posts: Scalars['Int']; readonly publications: Scalars['Int']; @@ -3756,6 +4277,7 @@ export type ProfileStatsReactionsArgs = { export type ProfileStatsArg = { readonly customFilters?: InputMaybe>; readonly forApps?: InputMaybe>; + readonly hiddenComments?: InputMaybe; }; export type ProfileStatsCountOpenActionArgs = { @@ -3776,6 +4298,7 @@ export type ProfilesManagedRequest = { readonly cursor?: InputMaybe; /** The Ethereum address for which to retrieve managed profiles */ readonly for: Scalars['EvmAddress']; + readonly hiddenFilter?: InputMaybe; readonly includeOwned?: InputMaybe; readonly limit?: InputMaybe; }; @@ -3786,9 +4309,16 @@ export type ProfilesManagedResult = { readonly isLensManager: Scalars['Boolean']; }; +export enum ProfilesOrderBy { + Default = 'DEFAULT', + ProfileClassifier = 'PROFILE_CLASSIFIER', +} + export type ProfilesRequest = { readonly cursor?: InputMaybe; readonly limit?: InputMaybe; + /** The order by which to sort the profiles */ + readonly orderBy?: InputMaybe; /** The where clause to use to filter on what you are looking for */ readonly where: ProfilesRequestWhere; }; @@ -3808,6 +4338,40 @@ export type ProfilesRequestWhere = { readonly whoQuotedPublication?: InputMaybe; }; +export type ProtocolSharedRevenueCollectModuleInput = { + readonly amount?: InputMaybe; + readonly collectLimit?: InputMaybe; + /** The wallet of a client app to share revenues alongside the recipient and the protocol. Optional. */ + readonly creatorClient?: InputMaybe; + readonly currentCollects?: Scalars['Float']; + readonly endsAt?: InputMaybe; + readonly followerOnly: Scalars['Boolean']; + readonly recipient?: InputMaybe; + readonly referralFee?: InputMaybe; +}; + +export type ProtocolSharedRevenueCollectOpenActionSettings = { + readonly __typename: 'ProtocolSharedRevenueCollectOpenActionSettings'; + /** The collect module amount info. `Amount.value = 0` in case of free collects. */ + readonly amount: Amount; + /** The maximum number of collects for this publication. */ + readonly collectLimit?: Maybe; + /** The collect nft address - only deployed on first collect */ + readonly collectNft?: Maybe; + readonly contract: NetworkAddress; + /** If supplied, this is the app that will receive a split of the shared revenue together with the recipient as well as the protocol */ + readonly creatorClient?: Maybe; + /** The end timestamp after which collecting is impossible. */ + readonly endsAt?: Maybe; + /** True if only followers of publisher may collect the post. */ + readonly followerOnly: Scalars['Boolean']; + /** The collect module recipient address */ + readonly recipient: Scalars['EvmAddress']; + /** The collect module referral fee */ + readonly referralFee: Scalars['Float']; + readonly type: OpenActionModuleType; +}; + export type PublicationBookmarkRequest = { readonly on: Scalars['PublicationId']; }; @@ -3823,6 +4387,8 @@ export type PublicationBookmarksWhere = { }; export type PublicationCommentOn = { + /** You can use this enum to show, hide or show only hidden comments */ + readonly hiddenComments?: InputMaybe; readonly id: Scalars['PublicationId']; readonly ranking?: InputMaybe; }; @@ -3917,6 +4483,7 @@ export enum PublicationMetadataLicenseType { export type PublicationMetadataLitEncryption = { readonly __typename: 'PublicationMetadataLitEncryption'; readonly accessCondition: RootCondition; + readonly accessControlContract: NetworkAddress; readonly encryptedPaths: ReadonlyArray; readonly encryptionKey: Scalars['ContentEncryptionKey']; }; @@ -4050,6 +4617,7 @@ export enum PublicationReportingIllegalSubreason { AnimalAbuse = 'ANIMAL_ABUSE', DirectThreat = 'DIRECT_THREAT', HumanAbuse = 'HUMAN_ABUSE', + Plagiarism = 'PLAGIARISM', ThreatIndividual = 'THREAT_INDIVIDUAL', Violence = 'VIOLENCE', } @@ -4099,6 +4667,7 @@ export type PublicationSearchWhere = { readonly customFilters?: InputMaybe>; readonly metadata?: InputMaybe; readonly publicationTypes?: InputMaybe>; + readonly withOpenActions?: InputMaybe>; }; export type PublicationStats = { @@ -4126,6 +4695,7 @@ export type PublicationStatsCountOpenActionArgs = { export type PublicationStatsInput = { readonly customFilters?: InputMaybe>; + readonly hiddenComments?: InputMaybe; /** Filter the returned stats on apps and 1 of the following filters: tags, contentWarning, mainContentFocus, locale */ readonly metadata?: InputMaybe; }; @@ -4180,16 +4750,21 @@ export type PublicationsWhere = { export type Query = { readonly __typename: 'Query'; readonly approvedAuthentications: PaginatedApprovedAuthenticationResult; + /** note here if your using a wallet JWT token it will get the allowance of the public proxy contract if its supported if not throw as profiles act not wallets */ readonly approvedModuleAllowanceAmount: ReadonlyArray; readonly canClaim: ReadonlyArray; readonly challenge: AuthChallengeResult; + readonly claimTokens: LensProfileManagerRelayResult; readonly claimableProfiles: ClaimableProfilesResult; readonly claimableStatus: ClaimProfileStatusType; + readonly claimableTokens: ClaimableTokensResult; + readonly createFrameTypedData: CreateFrameEip712TypedData; /** Get all enabled currencies */ readonly currencies: PaginatedCurrenciesResult; readonly currentSession: ApprovedAuthentication; /** Get the default profile for a given EvmAddress. If no default is explicitly set, you will get the oldest profile owned by the address. */ readonly defaultProfile?: Maybe; + readonly didReactOnPublication: ReadonlyArray; readonly exploreProfiles: PaginatedProfileResult; readonly explorePublications: PaginatedExplorePublicationResult; readonly feed: PaginatedFeedResult; @@ -4198,18 +4773,29 @@ export type Query = { readonly followStatusBulk: ReadonlyArray; readonly followers: PaginatedProfileResult; readonly following: PaginatedProfileResult; + readonly generateLensAPIRelayAddress: Scalars['EvmAddress']; + /** note here if your using a wallet JWT token it will approve to the public proxy contract if its supported if not throw as profiles act not wallets */ readonly generateModuleCurrencyApprovalData: GenerateModuleCurrencyApprovalResult; + readonly handleToAddress?: Maybe; readonly internalAllowedDomains: ReadonlyArray; + readonly internalBoostScore?: Maybe; readonly internalClaimStatus?: Maybe; readonly internalCuratedHandles: ReadonlyArray; readonly internalCuratedTags: ReadonlyArray; readonly internalInvites: Scalars['Int']; + readonly internalPaymentHandleInfo?: Maybe; readonly internalProfileStatus: PrfResult; readonly invitedProfiles: ReadonlyArray; readonly lastLoggedInProfile?: Maybe; + readonly latestPaidActions: LatestPaidActionsResult; readonly lensAPIOwnedEOAs: ReadonlyArray; - readonly lensProtocolVersion: LensProtocolVersion; + readonly lensProtocolVersion: Scalars['String']; readonly lensTransactionStatus?: Maybe; + readonly modDisputedReports: PaginatedDisputedReports; + readonly modExplorePublications: PaginatedModExplorePublicationResult; + readonly modFollowers: PaginatedModFollowersResult; + readonly modLatestReports: PaginatedModReports; + readonly moduleMetadata?: Maybe; readonly momokaSubmitters: MomokaSubmittersResult; readonly momokaSummary: MomokaSummaryResult; readonly momokaTransaction?: Maybe; @@ -4255,9 +4841,11 @@ export type Query = { readonly supportedOpenActionModules: PaginatedSupportedModules; readonly supportedReferenceModules: PaginatedSupportedModules; readonly txIdToTxHash?: Maybe; + readonly userRateLimit: UserCurrentRateLimitResult; readonly userSigNonces: UserSigNonces; readonly validatePublicationMetadata: PublicationValidateMetadataResult; readonly verify: Scalars['Boolean']; + readonly verifyFrameSignature: FrameVerifySignatureResult; readonly whoActedOnPublication: PaginatedProfileResult; /** The list of profiles that the logged in profile has blocked */ readonly whoHaveBlocked: PaginatedProfileResult; @@ -4280,6 +4868,14 @@ export type QueryChallengeArgs = { request: ChallengeRequest; }; +export type QueryClaimTokensArgs = { + request: ClaimTokensRequest; +}; + +export type QueryCreateFrameTypedDataArgs = { + request: FrameEip712Request; +}; + export type QueryCurrenciesArgs = { request: PaginatedOffsetRequest; }; @@ -4288,6 +4884,10 @@ export type QueryDefaultProfileArgs = { request: DefaultProfileRequest; }; +export type QueryDidReactOnPublicationArgs = { + request: DidReactOnPublicationRequest; +}; + export type QueryExploreProfilesArgs = { request: ExploreProfilesRequest; }; @@ -4324,10 +4924,18 @@ export type QueryGenerateModuleCurrencyApprovalDataArgs = { request: GenerateModuleCurrencyApprovalDataRequest; }; +export type QueryHandleToAddressArgs = { + request: HandleToAddressRequest; +}; + export type QueryInternalAllowedDomainsArgs = { request: InternalAllowedDomainsRequest; }; +export type QueryInternalBoostScoreArgs = { + request: InternalBoostScoreRequest; +}; + export type QueryInternalClaimStatusArgs = { request: InternalClaimStatusRequest; }; @@ -4344,6 +4952,10 @@ export type QueryInternalInvitesArgs = { request: InternalInvitesRequest; }; +export type QueryInternalPaymentHandleInfoArgs = { + request: InternalPaymentHandleInfoRequest; +}; + export type QueryInternalProfileStatusArgs = { request: InternalProfileStatusRequest; }; @@ -4352,10 +4964,36 @@ export type QueryLastLoggedInProfileArgs = { request: LastLoggedInProfileRequest; }; +export type QueryLatestPaidActionsArgs = { + filter?: InputMaybe; + request?: InputMaybe; + where?: InputMaybe; +}; + export type QueryLensTransactionStatusArgs = { request: LensTransactionStatusRequest; }; +export type QueryModDisputedReportsArgs = { + request: PaginatedRequest; +}; + +export type QueryModExplorePublicationsArgs = { + request: ModExplorePublicationRequest; +}; + +export type QueryModFollowersArgs = { + request: PaginatedRequest; +}; + +export type QueryModLatestReportsArgs = { + request: ModReportsRequest; +}; + +export type QueryModuleMetadataArgs = { + request: ModuleMetadataRequest; +}; + export type QueryMomokaTransactionArgs = { request: MomokaTransactionRequest; }; @@ -4496,6 +5134,10 @@ export type QueryTxIdToTxHashArgs = { for: Scalars['TxId']; }; +export type QueryUserRateLimitArgs = { + request: UserCurrentRateLimitRequest; +}; + export type QueryValidatePublicationMetadataArgs = { request: ValidatePublicationMetadataRequest; }; @@ -4504,6 +5146,10 @@ export type QueryVerifyArgs = { request: VerifyRequest; }; +export type QueryVerifyFrameSignatureArgs = { + request: FrameVerifySignature; +}; + export type QueryWhoActedOnPublicationArgs = { request: WhoActedOnPublicationRequest; }; @@ -4571,6 +5217,8 @@ export type ReactionNotification = { }; export type ReactionRequest = { + /** The ID of the app that the reaction was made from. */ + readonly app?: InputMaybe; readonly for: Scalars['PublicationId']; readonly reaction: PublicationReactionType; }; @@ -4659,6 +5307,17 @@ export type RelayResult = RelayError | RelaySuccess; export enum RelayRoleKey { CreateProfile = 'CREATE_PROFILE', + CreateProfileWithHandleUsingCredits_1 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_1', + CreateProfileWithHandleUsingCredits_2 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_2', + CreateProfileWithHandleUsingCredits_3 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_3', + CreateProfileWithHandleUsingCredits_4 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_4', + CreateProfileWithHandleUsingCredits_5 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_5', + CreateProfileWithHandleUsingCredits_6 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_6', + CreateProfileWithHandleUsingCredits_7 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_7', + CreateProfileWithHandleUsingCredits_8 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_8', + CreateProfileWithHandleUsingCredits_9 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_9', + CreateProfileWithHandleUsingCredits_10 = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_10', + CreateProfileWithHandleUsingCreditsUnderCharLimit = 'CREATE_PROFILE_WITH_HANDLE_USING_CREDITS_UNDER_CHAR_LIMIT', LensManager_1 = 'LENS_MANAGER_1', LensManager_2 = 'LENS_MANAGER_2', LensManager_3 = 'LENS_MANAGER_3', @@ -4669,6 +5328,26 @@ export enum RelayRoleKey { LensManager_8 = 'LENS_MANAGER_8', LensManager_9 = 'LENS_MANAGER_9', LensManager_10 = 'LENS_MANAGER_10', + LensManager_11 = 'LENS_MANAGER_11', + LensManager_12 = 'LENS_MANAGER_12', + LensManager_13 = 'LENS_MANAGER_13', + LensManager_14 = 'LENS_MANAGER_14', + LensManager_15 = 'LENS_MANAGER_15', + LensManager_16 = 'LENS_MANAGER_16', + LensManager_17 = 'LENS_MANAGER_17', + LensManager_18 = 'LENS_MANAGER_18', + LensManager_19 = 'LENS_MANAGER_19', + LensManager_20 = 'LENS_MANAGER_20', + LensManager_21 = 'LENS_MANAGER_21', + LensManager_22 = 'LENS_MANAGER_22', + LensManager_23 = 'LENS_MANAGER_23', + LensManager_24 = 'LENS_MANAGER_24', + LensManager_25 = 'LENS_MANAGER_25', + LensManager_26 = 'LENS_MANAGER_26', + LensManager_27 = 'LENS_MANAGER_27', + LensManager_28 = 'LENS_MANAGER_28', + LensManager_29 = 'LENS_MANAGER_29', + LensManager_30 = 'LENS_MANAGER_30', WithSig_1 = 'WITH_SIG_1', WithSig_2 = 'WITH_SIG_2', WithSig_3 = 'WITH_SIG_3', @@ -4679,6 +5358,16 @@ export enum RelayRoleKey { WithSig_8 = 'WITH_SIG_8', WithSig_9 = 'WITH_SIG_9', WithSig_10 = 'WITH_SIG_10', + WithSig_11 = 'WITH_SIG_11', + WithSig_12 = 'WITH_SIG_12', + WithSig_13 = 'WITH_SIG_13', + WithSig_14 = 'WITH_SIG_14', + WithSig_15 = 'WITH_SIG_15', + WithSig_16 = 'WITH_SIG_16', + WithSig_17 = 'WITH_SIG_17', + WithSig_18 = 'WITH_SIG_18', + WithSig_19 = 'WITH_SIG_19', + WithSig_20 = 'WITH_SIG_20', } export type RelaySuccess = { @@ -4687,6 +5376,12 @@ export type RelaySuccess = { readonly txId: Scalars['TxId']; }; +export type ReportProfileRequest = { + readonly additionalComments?: InputMaybe; + readonly for: Scalars['ProfileId']; + readonly reason: ProfileReportingReasonInput; +}; + export type ReportPublicationRequest = { readonly additionalComments?: InputMaybe; readonly for: Scalars['PublicationId']; @@ -4898,6 +5593,7 @@ export type SupportedModulesRequest = { readonly cursor?: InputMaybe; readonly includeUnknown?: InputMaybe; readonly limit?: InputMaybe; + readonly onlyVerified?: InputMaybe; }; export type SybilDotOrgIdentity = { @@ -5018,6 +5714,16 @@ export type UnfollowRequest = { readonly unfollow: ReadonlyArray; }; +export type UnhideCommentRequest = { + /** The comment to unhide. It has to be under a publication made by the user making the request. If already visible, nothing will happen. */ + readonly for: Scalars['PublicationId']; +}; + +export type UnhideManagedProfileRequest = { + /** The profile to unhide */ + readonly profileId: Scalars['ProfileId']; +}; + export type UnknownFollowModuleInput = { readonly address: Scalars['EvmAddress']; readonly data: Scalars['BlockchainData']; @@ -5031,9 +5737,22 @@ export type UnknownFollowModuleRedeemInput = { export type UnknownFollowModuleSettings = { readonly __typename: 'UnknownFollowModuleSettings'; readonly contract: NetworkAddress; - /** The data used to setup the module which you can decode with your known ABI */ + /** + * The data used to setup the module which you can decode with your known ABI + * @deprecated Use initializeResultData instead + */ readonly followModuleReturnData?: Maybe; + /** The data used to setup the module */ + readonly initializeCalldata?: Maybe; + /** The data returned from the init module */ + readonly initializeResultData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + readonly signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + readonly sponsoredApproved: Scalars['Boolean']; readonly type: FollowModuleType; + /** True if the module is deemed as safe */ + readonly verified: Scalars['Boolean']; }; export type UnknownOpenActionActRedeemInput = { @@ -5051,9 +5770,22 @@ export type UnknownOpenActionModuleSettings = { /** The collect nft address - only deployed on first collect and if its a collectable open action */ readonly collectNft?: Maybe; readonly contract: NetworkAddress; - /** The data used to setup the module which you can decode with your known ABI */ + /** The data used to setup the module */ + readonly initializeCalldata?: Maybe; + /** The data returned from the init module */ + readonly initializeResultData?: Maybe; + /** + * The data returned from the init module + * @deprecated Use initializeResultData instead + */ readonly openActionModuleReturnData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + readonly signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + readonly sponsoredApproved: Scalars['Boolean']; readonly type: OpenActionModuleType; + /** True if the module is deemed as safe */ + readonly verified: Scalars['Boolean']; }; export type UnknownOpenActionResult = { @@ -5071,9 +5803,22 @@ export type UnknownReferenceModuleInput = { export type UnknownReferenceModuleSettings = { readonly __typename: 'UnknownReferenceModuleSettings'; readonly contract: NetworkAddress; - /** The data used to setup the module which you can decode with your known ABI */ + /** The data used to setup the module */ + readonly initializeCalldata?: Maybe; + /** The data returned from the init module */ + readonly initializeResultData?: Maybe; + /** + * The data used to setup the module which you can decode with your known ABI + * @deprecated Use initializeResultData instead + */ readonly referenceModuleReturnData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + readonly signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + readonly sponsoredApproved: Scalars['Boolean']; readonly type: ReferenceModuleType; + /** True if the module is deemed as safe */ + readonly verified: Scalars['Boolean']; }; export type UnknownSupportedModule = { @@ -5087,6 +5832,27 @@ export type UnlinkHandleFromProfileRequest = { readonly handle: Scalars['Handle']; }; +export type UserCurrentRateLimit = { + readonly __typename: 'UserCurrentRateLimit'; + readonly dayAllowance: Scalars['Int']; + readonly dayAllowanceLeft: Scalars['Int']; + readonly dayAllowanceUsed: Scalars['Int']; + readonly hourAllowance: Scalars['Int']; + readonly hourAllowanceLeft: Scalars['Int']; + readonly hourAllowanceUsed: Scalars['Int']; +}; + +export type UserCurrentRateLimitRequest = { + readonly profileId?: InputMaybe; + readonly userAddress: Scalars['EvmAddress']; +}; + +export type UserCurrentRateLimitResult = { + readonly __typename: 'UserCurrentRateLimitResult'; + readonly momoka: UserCurrentRateLimit; + readonly onchain: UserCurrentRateLimit; +}; + export type UserPoapsQueryRequest = { readonly cursor?: InputMaybe; readonly for: Scalars['ProfileId']; @@ -5107,7 +5873,9 @@ export type ValidatePublicationMetadataRequest = { export type VerifyRequest = { /** The access token to verify */ - readonly accessToken: Scalars['Jwt']; + readonly accessToken?: InputMaybe; + /** The identity token to verify */ + readonly identityToken?: InputMaybe; }; export type Video = { @@ -5146,6 +5914,8 @@ export type WhoActedOnPublicationRequest = { readonly cursor?: InputMaybe; readonly limit?: InputMaybe; readonly on: Scalars['PublicationId']; + /** The order by which to sort the profiles */ + readonly orderBy?: InputMaybe; readonly where?: InputMaybe; }; @@ -5162,6 +5932,8 @@ export type WhoReactedPublicationRequest = { readonly cursor?: InputMaybe; readonly for: Scalars['PublicationId']; readonly limit?: InputMaybe; + /** The order by which to sort the profiles */ + readonly orderBy?: InputMaybe; readonly where?: InputMaybe; }; diff --git a/packages/react/src/environments.ts b/packages/react/src/environments.ts index 38ff9196f2..1cd1ac09c6 100644 --- a/packages/react/src/environments.ts +++ b/packages/react/src/environments.ts @@ -1,4 +1,4 @@ -import { ChainType, URL } from '@lens-protocol/shared-kernel'; +import { ChainType, EvmAddress, URL } from '@lens-protocol/shared-kernel'; import { ChainConfigRegistry, amoy, goerli, mainnet, polygon } from './chains'; @@ -31,7 +31,8 @@ export type EnvironmentConfig = { chains: ChainConfigRegistry; timings: TransactionObserverTimings; contracts: { - permissionlessCreator: string; + permissionlessCreator: EvmAddress; + bonsaiToken: EvmAddress; }; handleResolver: ProfileHandleResolver; }; @@ -59,6 +60,7 @@ export const production: EnvironmentConfig = { }, contracts: { permissionlessCreator: '0x0b5e6100243f793e480DE6088dE6bA70aA9f3872', + bonsaiToken: '0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c', }, handleResolver: (localName) => `lens/${localName}`, }; @@ -86,6 +88,7 @@ export const development: EnvironmentConfig = { }, contracts: { permissionlessCreator: '0x36440da1D98FF46637f0b98AAA082bc77977B49B', + bonsaiToken: '0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c', }, handleResolver: (localName) => `lens/${localName}`, }; @@ -107,6 +110,7 @@ export const staging: EnvironmentConfig = { }, contracts: { permissionlessCreator: '0x36440da1D98FF46637f0b98AAA082bc77977B49B', + bonsaiToken: '0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c', }, handleResolver: (localName) => `lens/${localName}`, }; 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 { diff --git a/packages/react/src/transactions/useApproveModule/__tests__/token-allowance.spec.ts b/packages/react/src/transactions/useApproveModule/__tests__/token-allowance.spec.ts new file mode 100644 index 0000000000..ca8352c250 --- /dev/null +++ b/packages/react/src/transactions/useApproveModule/__tests__/token-allowance.spec.ts @@ -0,0 +1,174 @@ +import { AnyPublication, CollectModuleSettings } from '@lens-protocol/api-bindings'; +import { + mockAmountFragmentFrom, + mockCommentFragment, + mockFeeFollowModuleSettingsFragment, + mockLegacyAaveFeeCollectModuleSettingsFragment, + mockLegacyErc4626FeeCollectModuleSettingsFragment, + mockLegacyFeeCollectModuleSettingsFragment, + mockLegacyLimitedFeeCollectModuleSettingsFragment, + mockLegacyLimitedTimedFeeCollectModuleSettingsFragment, + mockLegacyMultirecipientFeeCollectModuleSettingsFragment, + mockLegacySimpleCollectModuleSettingsFragment, + mockLegacyTimedFeeCollectModuleSettingsFragment, + mockMirrorFragment, + mockMultirecipientFeeCollectOpenActionSettingsFragment, + mockNetworkAddressFragment, + mockPostFragment, + mockProfileFragment, + mockProtocolSharedRevenueCollectOpenActionSettingsFragment, + mockQuoteFragment, + mockSimpleCollectOpenActionSettingsFragment, +} from '@lens-protocol/api-bindings/mocks'; +import { TransactionKind } from '@lens-protocol/domain/entities'; +import { SessionType } from '@lens-protocol/domain/use-cases/authentication'; +import { + TokenAllowanceLimit, + TokenAllowanceRequest, +} from '@lens-protocol/domain/use-cases/transactions'; +import { mockDaiAmount, mockEvmAddress } from '@lens-protocol/shared-kernel/mocks'; + +import { development } from '../../../environments'; +import { + resolveTokenAllowanceRequestForCollect, + resolveTokenAllowanceRequestForFollow, +} from '../token-allowance'; + +const amount = mockDaiAmount(42); +const spender = mockEvmAddress(); + +function assertExpectedTokenAllowanceRequest(request: TokenAllowanceRequest) { + expect(request).toEqual({ + kind: TransactionKind.APPROVE_MODULE, + amount, + limit: TokenAllowanceLimit.EXACT, + spender, + }); +} + +describe(`Given the TokenAllowanceRequest helpers`, () => { + describe(`when invoking the ${resolveTokenAllowanceRequestForFollow.name} function`, () => { + const profile = mockProfileFragment({ + followModule: mockFeeFollowModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + }); + + describe('configured with FeeFollowModuleSettings', () => { + it('should return the expected TokenAllowanceRequest', () => { + const request = resolveTokenAllowanceRequestForFollow(profile, TokenAllowanceLimit.EXACT); + + assertExpectedTokenAllowanceRequest(request); + }); + }); + }); + + describe.each<{ + name: string; + mockPublicationWith: (settings: CollectModuleSettings) => AnyPublication; + }>([ + { + name: 'Post', + mockPublicationWith: (settings) => + mockPostFragment({ + openActionModules: [settings], + }), + }, + { + name: 'Comment', + mockPublicationWith: (settings) => + mockCommentFragment({ + openActionModules: [settings], + }), + }, + { + name: 'Quote', + mockPublicationWith: (settings) => + mockQuoteFragment({ + openActionModules: [settings], + }), + }, + { + name: 'Mirror for a Post', + mockPublicationWith: (settings) => + mockMirrorFragment({ + mirrorOn: mockPostFragment({ + openActionModules: [settings], + }), + }), + }, + ])( + `when invoking the ${resolveTokenAllowanceRequestForCollect.name} function on a $name`, + ({ mockPublicationWith }) => { + describe.each([ + mockSimpleCollectOpenActionSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockMultirecipientFeeCollectOpenActionSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyLimitedFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyLimitedTimedFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyTimedFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyMultirecipientFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacySimpleCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyErc4626FeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockLegacyAaveFeeCollectModuleSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + + mockProtocolSharedRevenueCollectOpenActionSettingsFragment({ + amount: mockAmountFragmentFrom(amount), + contract: mockNetworkAddressFragment({ address: spender }), + }), + ])('configured with $__typename', (settings) => { + it('should return the expected TokenAllowanceRequest', () => { + const publication = mockPublicationWith(settings); + const request = resolveTokenAllowanceRequestForCollect({ + publication, + limit: TokenAllowanceLimit.EXACT, + sessionType: SessionType.WithProfile, + environment: development, + }); + + assertExpectedTokenAllowanceRequest(request); + }); + }); + }, + ); +}); diff --git a/packages/react/src/transactions/useApproveModule/index.ts b/packages/react/src/transactions/useApproveModule/index.ts new file mode 100644 index 0000000000..4eb042ef83 --- /dev/null +++ b/packages/react/src/transactions/useApproveModule/index.ts @@ -0,0 +1 @@ +export * from './useApproveModule'; diff --git a/packages/react/src/transactions/useApproveModule/token-allowance.ts b/packages/react/src/transactions/useApproveModule/token-allowance.ts new file mode 100644 index 0000000000..4787b6fd08 --- /dev/null +++ b/packages/react/src/transactions/useApproveModule/token-allowance.ts @@ -0,0 +1,113 @@ +import { + AnyPublication, + Profile, + erc20Amount, + findCollectModuleSettings, + isMirrorPublication, +} from '@lens-protocol/api-bindings'; +import { TransactionKind } from '@lens-protocol/domain/entities'; +import { + TokenAllowanceLimit, + TokenAllowanceRequest, +} from '@lens-protocol/domain/use-cases/transactions'; +import { Amount, bonsai, invariant, never } from '@lens-protocol/shared-kernel'; + +import { SessionType } from '../../authentication'; +import { EnvironmentConfig } from '../../environments'; + +function createTokenAllowanceRequest( + args: Omit, +): TokenAllowanceRequest { + return { + ...args, + kind: TransactionKind.APPROVE_MODULE, + }; +} + +export type ResolveTokenAllowanceRequestForCollectArgs = { + environment: EnvironmentConfig; + limit: TokenAllowanceLimit; + publication: AnyPublication; + sessionType: SessionType.JustWallet | SessionType.WithProfile; +}; + +export function resolveTokenAllowanceRequestForCollect({ + environment, + limit, + publication, + sessionType, +}: ResolveTokenAllowanceRequestForCollectArgs): TokenAllowanceRequest { + if (isMirrorPublication(publication)) { + return resolveTokenAllowanceRequestForCollect({ + publication: publication.mirrorOn, + environment, + limit, + sessionType, + }); + } + + const module = findCollectModuleSettings(publication); + + invariant(module, `Publication ${publication.id} has no collect module`); + + switch (module.__typename) { + case 'LegacyAaveFeeCollectModuleSettings': + case 'LegacyERC4626FeeCollectModuleSettings': + case 'LegacyFeeCollectModuleSettings': + case 'LegacyLimitedFeeCollectModuleSettings': + case 'LegacyLimitedTimedFeeCollectModuleSettings': + case 'LegacyMultirecipientFeeCollectModuleSettings': + case 'LegacySimpleCollectModuleSettings': + case 'LegacyTimedFeeCollectModuleSettings': + return createTokenAllowanceRequest({ + amount: erc20Amount(module.amount), + limit, + spender: module.contract.address, + }); + + case 'MultirecipientFeeCollectOpenActionSettings': + case 'SimpleCollectOpenActionSettings': + case 'ProtocolSharedRevenueCollectOpenActionSettings': { + const spender = + sessionType === SessionType.JustWallet + ? environment.contracts.permissionlessCreator + : module.contract.address; + + const collectAmount = erc20Amount(module.amount); + + const amount = + module.__typename === 'ProtocolSharedRevenueCollectOpenActionSettings' && + collectAmount.isZero() + ? Amount.erc20(bonsai(environment.contracts.bonsaiToken), 10) + : collectAmount; + + return createTokenAllowanceRequest({ + amount, + limit, + spender, + }); + } + + default: + never(`Unsupported collect module type ${module.__typename}`); + } +} + +export function resolveTokenAllowanceRequestForFollow( + profile: Profile, + limit: TokenAllowanceLimit, +): TokenAllowanceRequest { + invariant(profile.followModule, `Profile ${profile.id} has no follow module`); + + switch (profile.followModule.__typename) { + case 'FeeFollowModuleSettings': + return createTokenAllowanceRequest({ + amount: erc20Amount(profile.followModule.amount), + limit, + spender: profile.followModule.contract.address, + }); + + default: + never(`Unsupported follow module type ${profile.followModule.__typename}`); + } +} diff --git a/packages/react/src/transactions/useApproveModule.ts b/packages/react/src/transactions/useApproveModule/useApproveModule.ts similarity index 83% rename from packages/react/src/transactions/useApproveModule.ts rename to packages/react/src/transactions/useApproveModule/useApproveModule.ts index e27b5135a1..d243d0632f 100644 --- a/packages/react/src/transactions/useApproveModule.ts +++ b/packages/react/src/transactions/useApproveModule/useApproveModule.ts @@ -1,4 +1,4 @@ -import { AnyPublication, Profile, resolveTokenAllowanceRequest } from '@lens-protocol/api-bindings'; +import { AnyPublication, Profile } from '@lens-protocol/api-bindings'; import { InsufficientGasError, PendingSigningRequestError, @@ -7,9 +7,16 @@ import { WalletConnectionError, } from '@lens-protocol/domain/entities'; import { TokenAllowanceLimit } from '@lens-protocol/domain/use-cases/transactions'; +import { invariant } from '@lens-protocol/shared-kernel'; -import { useDeferredTask, UseDeferredTask } from '../helpers/tasks'; -import { useTokenAllowanceController } from './adapters/useTokenAllowanceController'; +import { useSession } from '../../authentication'; +import { useDeferredTask, UseDeferredTask } from '../../helpers/tasks'; +import { useSharedDependencies } from '../../shared'; +import { useTokenAllowanceController } from '../adapters/useTokenAllowanceController'; +import { + resolveTokenAllowanceRequestForCollect, + resolveTokenAllowanceRequestForFollow, +} from './token-allowance'; export { TokenAllowanceLimit }; @@ -215,9 +222,10 @@ export type ApproveModuleArgs = { * * @category Modules * @group Hooks + * @param args - {@link UseApproveModuleArgs} */ export function useApproveModule( - args: UseApproveModuleArgs = { limit: TokenAllowanceLimit.EXACT }, + { limit }: UseApproveModuleArgs = { limit: TokenAllowanceLimit.EXACT }, ): UseDeferredTask< void, | InsufficientGasError @@ -227,10 +235,30 @@ export function useApproveModule( | WalletConnectionError, ApproveModuleArgs > { + const { config } = useSharedDependencies(); + const { data: session } = useSession(); const increaseAllowance = useTokenAllowanceController(); + const resolveTokenAllowanceRequest = (on: AnyPublication | Profile) => { + if (on.__typename === 'Profile') { + return resolveTokenAllowanceRequestForFollow(on, limit); + } + + invariant( + session?.authenticated, + 'User must be authenticated to allow to approve the correct contract', + ); + + return resolveTokenAllowanceRequestForCollect({ + publication: on, + limit, + sessionType: session.type, + environment: config.environment, + }); + }; + return useDeferredTask(async ({ on }) => { - const request = resolveTokenAllowanceRequest(on, args.limit); + const request = resolveTokenAllowanceRequest(on); return increaseAllowance(request); }); diff --git a/packages/shared-kernel/src/crypto/Asset.ts b/packages/shared-kernel/src/crypto/Asset.ts index 2c679f77b8..0d3d4e1a35 100644 --- a/packages/shared-kernel/src/crypto/Asset.ts +++ b/packages/shared-kernel/src/crypto/Asset.ts @@ -237,6 +237,22 @@ export function erc20({ name, decimals, symbol, address, chainType }: Erc20Info) return immutable(asset.hash, asset); } +/** + * Bonsai asset factory function. + * + * @param info - {@link Erc20Info} details + * @returns An Erc20 asset instance. + */ +export function bonsai(address: EvmAddress) { + return erc20({ + address, + chainType: ChainType.POLYGON, + decimals: 18, + name: 'BONSAI', + symbol: 'BONSAI', + }); +} + /** * Matic asset provider function. *