diff --git a/codegen.yml b/codegen.yml index b4d5c72..f3b7e97 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,4 +1,4 @@ -schema: https://api-v2-mumbai.lens.dev +schema: https://api-amoy.lens-v2.crtlkey.com documents: ['./src/graphql/queries/*.graphql', './src/graphql/fragments/*.graphql'] hooks: diff --git a/package.json b/package.json index ef1cbd6..9ab2944 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@apollo/client": "^3.7.17", "@headlessui/react": "^1.7.16", "@heroicons/react": "^2.0.18", - "@lens-protocol/momoka": "^1.1.3", + "@lens-protocol/momoka": "^2.1.1", "@rainbow-me/rainbowkit": "^1.0.7", "@tailwindcss/forms": "^0.5.4", "@tailwindcss/typography": "^0.5.9", diff --git a/src/components/Transaction/Verify.tsx b/src/components/Transaction/Verify.tsx index 4b731d6..aadc045 100644 --- a/src/components/Transaction/Verify.tsx +++ b/src/components/Transaction/Verify.tsx @@ -19,7 +19,7 @@ const Verify: FC = ({ momokaTransaction }) => { const [nodeUrl, setNodeUrl] = useState( selectedEnvironment.id === 'mainnet' ? 'https://rpc.ankr.com/polygon' - : 'https://rpc.ankr.com/polygon_mumbai' + : 'https://rpc.ankr.com/polygon_amoy' ); const [status, setStatus] = useState<'UNKNOWN' | 'VERIFIED' | 'NOT_VERIFIED'>('UNKNOWN'); const [loading, setLoading] = useState(false); diff --git a/src/constants.ts b/src/constants.ts index 681b3b4..612dd86 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -9,13 +9,13 @@ export enum HeyUrl { } export enum LensEndpoint { - TESTNET = 'https://api-v2-mumbai-live.lens.dev', + TESTNET = 'https://api-amoy.lens-v2.crtlkey.com', PRODUCTION = 'https://api-v2.lens.dev' } export enum VerifierNetwork { POLYGON = 'POLYGON', - MUMBAI = 'MUMBAI', + AMOY = 'AMOY', SANDBOX = 'SANDBOX' } diff --git a/src/generated.ts b/src/generated.ts index 60a600a..214b9f0 100644 --- a/src/generated.ts +++ b/src/generated.ts @@ -13,6 +13,7 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + ABIJson: any; AppId: any; BlockchainData: any; BroadcastId: any; @@ -110,13 +111,20 @@ export type AlreadyInvitedCheckRequest = { export type Amount = { __typename?: 'Amount'; + /** This is the total value of the amount in the fiat currency */ + asFiat?: Maybe; /** The asset */ asset: Asset; + /** This is the most recent snapshotted 1:1 conversion rate between the asset and the requested fiat currency */ 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. */ value: Scalars['String']; }; +export type AmountAsFiatArgs = { + request: RateRequest; +}; + export type AmountRateArgs = { request: RateRequest; }; @@ -232,6 +240,8 @@ export type AuthenticationResult = { __typename?: 'AuthenticationResult'; /** The access token */ accessToken: Scalars['Jwt']; + /** The identity token */ + identityToken: Scalars['Jwt']; /** The refresh token */ refreshToken: Scalars['Jwt']; }; @@ -338,12 +348,25 @@ export type ClaimProfileWithHandleRequest = { export type ClaimProfileWithHandleResult = ClaimProfileWithHandleErrorResult | RelaySuccess; +export type ClaimTokensRequest = { + for: ClaimableTokenType; +}; + export type ClaimableProfilesResult = { __typename?: 'ClaimableProfilesResult'; canMintProfileWithFreeTextHandle: Scalars['Boolean']; reserved: Array; }; +export enum ClaimableTokenType { + Bonsai = 'BONSAI' +} + +export type ClaimableTokensResult = { + __typename?: 'ClaimableTokensResult'; + bonsai: Amount; +}; + export type CollectActionModuleInput = { multirecipientCollectOpenAction?: InputMaybe; simpleCollectOpenAction?: InputMaybe; @@ -378,12 +401,14 @@ export type Comment = { createdAt: Scalars['DateTime']; firstComment?: Maybe; hashtagsMentioned: Array; + /** Signifies whether this comment has been hidden by the author of its parent publication */ + hiddenByAuthor: Scalars['Boolean']; id: Scalars['PublicationId']; isEncrypted: Scalars['Boolean']; isHidden: Scalars['Boolean']; metadata: PublicationMetadata; momoka?: Maybe; - openActionModules?: Maybe>; + openActionModules: Array; operations: PublicationOperations; profilesMentioned: Array; publishedOn?: Maybe; @@ -566,6 +591,61 @@ export type CreateFollowEip712TypedDataValue = { nonce: Scalars['Nonce']; }; +export type CreateFrameEip712TypedData = { + __typename?: 'CreateFrameEIP712TypedData'; + /** The typed data domain */ + domain: Eip712TypedDataDomain; + /** The types */ + types: CreateFrameEip712TypedDataTypes; + /** The values */ + value: CreateFrameEip712TypedDataValue; +}; + +export type CreateFrameEip712TypedDataInput = { + /** The typed data domain */ + domain: Eip712TypedDataDomainInput; + /** The types */ + types: CreateFrameEip712TypedDataTypesInput; + /** The values */ + value: CreateFrameEip712TypedDataValueInput; +}; + +export type CreateFrameEip712TypedDataTypes = { + __typename?: 'CreateFrameEIP712TypedDataTypes'; + FrameData: Array; +}; + +export type CreateFrameEip712TypedDataTypesInput = { + FrameData: Array; +}; + +export type CreateFrameEip712TypedDataValue = { + __typename?: 'CreateFrameEIP712TypedDataValue'; + actionResponse: Scalars['String']; + buttonIndex: Scalars['Int']; + deadline: Scalars['UnixTimestamp']; + inputText: Scalars['String']; + profileId: Scalars['ProfileId']; + pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + specVersion: Scalars['String']; + state: Scalars['String']; + url: Scalars['URI']; +}; + +export type CreateFrameEip712TypedDataValueInput = { + actionResponse: Scalars['String']; + buttonIndex: Scalars['Int']; + deadline: Scalars['UnixTimestamp']; + inputText: Scalars['String']; + profileId: Scalars['ProfileId']; + pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + specVersion: Scalars['String']; + state: Scalars['String']; + url: Scalars['URI']; +}; + export type CreateLegacyCollectBroadcastItemResult = { __typename?: 'CreateLegacyCollectBroadcastItemResult'; /** The date the broadcast item expiries */ @@ -1201,10 +1281,40 @@ export type DegreesOfSeparationReferenceModuleSettings = { type: ReferenceModuleType; }; +export type DidReactOnPublicationPublicationIdAndProfileId = { + profileId: Scalars['ProfileId']; + publicationId: Scalars['PublicationId']; +}; + +export type DidReactOnPublicationRequest = { + for: Array; + where?: InputMaybe; +}; + +export type DidReactOnPublicationResult = { + __typename?: 'DidReactOnPublicationResult'; + profileId: Scalars['ProfileId']; + publicationId: Scalars['PublicationId']; + result: Scalars['Boolean']; +}; + export type DismissRecommendedProfilesRequest = { dismiss: Array; }; +export type DisputedReport = { + __typename?: 'DisputedReport'; + createdAt: Scalars['DateTime']; + disputeReason: Scalars['String']; + disputer: Profile; + reportAdditionalInfo?: Maybe; + reportReason: Scalars['String']; + reportSubreason: Scalars['String']; + reportedProfile: Profile; + reportedPublication?: Maybe; + reporter: Profile; +}; + /** The eip 712 typed data domain */ export type Eip712TypedDataDomain = { __typename?: 'EIP712TypedDataDomain'; @@ -1218,6 +1328,17 @@ export type Eip712TypedDataDomain = { version: Scalars['String']; }; +export type Eip712TypedDataDomainInput = { + /** The chainId */ + chainId: Scalars['ChainId']; + /** The name of the typed data domain */ + name: Scalars['String']; + /** The verifying contract */ + verifyingContract: Scalars['EvmAddress']; + /** The version */ + version: Scalars['String']; +}; + /** The eip 712 typed data field */ export type Eip712TypedDataField = { __typename?: 'EIP712TypedDataField'; @@ -1227,6 +1348,13 @@ export type Eip712TypedDataField = { type: Scalars['String']; }; +export type Eip712TypedDataFieldInput = { + /** The name of the typed data field */ + name: Scalars['String']; + /** The type of the typed data field */ + type: Scalars['String']; +}; + export type EmbedMetadataV3 = { __typename?: 'EmbedMetadataV3'; appId?: Maybe; @@ -1394,7 +1522,8 @@ export enum ExplorePublicationsOrderByType { TopCollectedOpenAction = 'TOP_COLLECTED_OPEN_ACTION', TopCommented = 'TOP_COMMENTED', TopMirrored = 'TOP_MIRRORED', - TopQuoted = 'TOP_QUOTED' + TopQuoted = 'TOP_QUOTED', + TopReacted = 'TOP_REACTED' } export type ExplorePublicationsWhere = { @@ -1462,6 +1591,7 @@ export type FeedRequest = { }; export type FeedWhere = { + customFilters?: InputMaybe>; feedEventItemTypes?: InputMaybe>; for?: InputMaybe; metadata?: InputMaybe; @@ -1495,7 +1625,7 @@ export type FollowLensManager = { 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 = { unknownFollowModule?: InputMaybe; }; @@ -1536,6 +1666,12 @@ export type FollowOnlyReferenceModuleSettings = { type: ReferenceModuleType; }; +export type FollowPaidAction = { + __typename?: 'FollowPaidAction'; + followed: Profile; + latestActed: Array; +}; + export type FollowRequest = { follow: Array; }; @@ -1569,14 +1705,68 @@ export type FollowersRequest = { cursor?: InputMaybe; limit?: InputMaybe; of: Scalars['ProfileId']; + /** The order by which to sort the profiles - note if your looking at your own followers it always be DESC */ + orderBy?: InputMaybe; }; export type FollowingRequest = { cursor?: InputMaybe; for: Scalars['ProfileId']; limit?: InputMaybe; + /** The order by which to sort the profiles - note if your looking at your own following it always be DESC */ + orderBy?: InputMaybe; +}; + +export type FrameEip712Request = { + actionResponse: Scalars['String']; + buttonIndex: Scalars['Int']; + deadline: Scalars['UnixTimestamp']; + inputText: Scalars['String']; + profileId: Scalars['ProfileId']; + pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + specVersion: Scalars['String']; + state: Scalars['String']; + url: Scalars['URI']; +}; + +export type FrameLensManagerEip712Request = { + actionResponse: Scalars['String']; + buttonIndex: Scalars['Int']; + inputText: Scalars['String']; + profileId: Scalars['ProfileId']; + pubId: Scalars['PublicationId']; + /** The EIP-721 spec version, must be 1.0.0 */ + specVersion: Scalars['String']; + state: Scalars['String']; + url: Scalars['URI']; +}; + +export type FrameLensManagerSignatureResult = { + __typename?: 'FrameLensManagerSignatureResult'; + /** The signature */ + signature: Scalars['Signature']; + /** The typed data signed */ + signedTypedData: CreateFrameEip712TypedData; +}; + +export type FrameVerifySignature = { + /** The identity token */ + identityToken: Scalars['Jwt']; + /** The signature */ + signature: Scalars['Signature']; + /** The typed data signed */ + 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 = { reason: PublicationReportingReason; subreason: PublicationReportingFraudSubreason; @@ -1604,6 +1794,18 @@ export type GeoLocation = { rawURI: Scalars['EncryptableURI']; }; +export type GetModuleMetadataResult = { + __typename?: 'GetModuleMetadataResult'; + metadata: ModuleMetadata; + moduleType: ModuleType; + /** True if the module can be signedless and use lens manager without a signature */ + signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + sponsoredApproved: Scalars['Boolean']; + /** True if the module is deemed as safe */ + verified: Scalars['Boolean']; +}; + export type GetProfileMetadataArgs = { /** The app id to query the profile's metadata */ appId?: InputMaybe; @@ -1611,10 +1813,17 @@ export type GetProfileMetadataArgs = { useFallback?: InputMaybe; }; +export type HandleGuardianResult = { + __typename?: 'HandleGuardianResult'; + cooldownEndsOn?: Maybe; + protected: Scalars['Boolean']; +}; + export type HandleInfo = { __typename?: 'HandleInfo'; /** The full handle - namespace/localname */ fullHandle: Scalars['Handle']; + guardian: HandleGuardianResult; /** The handle nft token id */ id: Scalars['TokenId']; /** If null its not linked to anything */ @@ -1636,10 +1845,38 @@ export type HandleLinkedTo = { nftTokenId: Scalars['TokenId']; }; +export type HandleToAddressRequest = { + /** The full handle - namespace/localname */ + 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. */ + for: Scalars['PublicationId']; +}; + +export type HideManagedProfileRequest = { + /** The profile to hide */ + profileId: Scalars['ProfileId']; +}; + export type HidePublicationRequest = { for: Scalars['PublicationId']; }; +export type IphResult = { + __typename?: 'IPHResult'; + h?: Maybe; + hda: Scalars['Boolean']; + hs: Scalars['Boolean']; +}; + export type IdKitPhoneVerifyWebhookRequest = { sharedSecret: Scalars['String']; worldcoin?: InputMaybe; @@ -1727,6 +1964,19 @@ export type InternalAllowedDomainsRequest = { secret: Scalars['String']; }; +export type InternalBoostProfileRequest = { + h?: InputMaybe; + p?: InputMaybe; + s: Scalars['Int']; + secret: Scalars['String']; +}; + +export type InternalBoostScoreRequest = { + h?: InputMaybe; + p?: InputMaybe; + secret: Scalars['String']; +}; + export type InternalClaimRequest = { address: Scalars['EvmAddress']; freeTextHandle?: InputMaybe; @@ -1762,6 +2012,12 @@ export type InternalInvitesRequest = { secret: Scalars['String']; }; +export type InternalMintHandleAndProfileRequest = { + a: Scalars['EvmAddress']; + h: Scalars['String']; + secret: Scalars['String']; +}; + export type InternalNftIndexRequest = { n: Array; secret: Scalars['String']; @@ -1772,6 +2028,11 @@ export type InternalNftVerifyRequest = { secret: Scalars['String']; }; +export type InternalPaymentHandleInfoRequest = { + p: Scalars['String']; + secret: Scalars['String']; +}; + export type InternalProfileStatusRequest = { hhh: Scalars['String']; secret: Scalars['String']; @@ -1783,6 +2044,14 @@ export type InternalRemoveCuratedTagRequest = { ttt: Scalars['String']; }; +export type InternalUpdateModuleOptionsRequest = { + i: Scalars['EvmAddress']; + lma?: InputMaybe; + secret: Scalars['String']; + t: ModuleType; + v?: InputMaybe; +}; + export type InternalUpdateProfileStatusRequest = { dd: Scalars['Boolean']; hhh: Scalars['String']; @@ -1796,6 +2065,8 @@ export type InviteRequest = { export type InvitedResult = { __typename?: 'InvitedResult'; + addressInvited: Scalars['EvmAddress']; + /** @deprecated Profiles hand out invites on Lens V2 so this is unnecessary information. Will always be the dead address. */ by: Scalars['EvmAddress']; profileMinted?: Maybe; when: Scalars['DateTime']; @@ -1819,6 +2090,28 @@ export type LastLoggedInProfileRequest = { for: Scalars['EvmAddress']; }; +export type LatestActed = { + __typename?: 'LatestActed'; + actedAt: Scalars['DateTime']; + profile: Profile; + txHash: Scalars['TxHash']; +}; + +export type LatestPaidActionsFilter = { + openActionFilters?: InputMaybe>; + openActionPublicationMetadataFilters?: InputMaybe; +}; + +export type LatestPaidActionsResult = { + __typename?: 'LatestPaidActionsResult'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + +export type LatestPaidActionsWhere = { + customFilters?: InputMaybe>; +}; + export type LegacyAaveFeeCollectModuleSettings = { __typename?: 'LegacyAaveFeeCollectModuleSettings'; /** The collect module amount info */ @@ -2024,11 +2317,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 +2398,13 @@ export type LiveStreamMetadataV3 = { title: Scalars['String']; }; +/** Managed profile visibility type */ +export enum ManagedProfileVisibility { + All = 'ALL', + HiddenOnly = 'HIDDEN_ONLY', + NoneHidden = 'NONE_HIDDEN' +} + export type MarketplaceMetadata = { __typename?: 'MarketplaceMetadata'; animationUrl?: Maybe; @@ -2196,6 +2491,58 @@ export type MirrorNotification = { export type MirrorablePublication = Comment | Post | Quote; +export type ModDisputeReportRequest = { + reason: Scalars['String']; + reportedProfileId?: InputMaybe; + reportedPublicationId?: InputMaybe; + reporter: Scalars['ProfileId']; +}; + +export type ModExplorePublicationRequest = { + cursor?: InputMaybe; + limit?: InputMaybe; + orderBy: ExplorePublicationsOrderByType; + where?: InputMaybe; +}; + +export enum ModExplorePublicationType { + Comment = 'COMMENT', + Post = 'POST', + Quote = 'QUOTE' +} + +export type ModExplorePublicationsWhere = { + customFilters?: InputMaybe>; + metadata?: InputMaybe; + publicationTypes?: InputMaybe>; + since?: InputMaybe; +}; + +export type ModFollowerResult = { + __typename?: 'ModFollowerResult'; + createdAt: Scalars['DateTime']; + follower: Profile; + following: Profile; +}; + +export type ModReport = { + __typename?: 'ModReport'; + additionalInfo?: Maybe; + createdAt: Scalars['DateTime']; + reason: Scalars['String']; + reportedProfile: Profile; + reportedPublication?: Maybe; + reporter: Profile; + subreason: Scalars['String']; +}; + +export type ModReportsRequest = { + cursor?: InputMaybe; + forProfile?: InputMaybe; + forPublication?: InputMaybe; + limit?: InputMaybe; +}; + export type ModuleCurrencyApproval = { followModule?: InputMaybe; openActionModule?: InputMaybe; @@ -2211,6 +2558,28 @@ export type ModuleInfo = { type: Scalars['String']; }; +export type ModuleMetadata = { + __typename?: 'ModuleMetadata'; + attributes: Array; + authors: Array; + description: Scalars['String']; + initializeCalldataABI: Scalars['ABIJson']; + initializeResultDataABI?: Maybe; + name: Scalars['String']; + processCalldataABI: Scalars['ABIJson']; + title: Scalars['String']; +}; + +export type ModuleMetadataRequest = { + implementation: Scalars['EvmAddress']; +}; + +export enum ModuleType { + Follow = 'FOLLOW', + OpenAction = 'OPEN_ACTION', + Reference = 'REFERENCE' +} + export type MomokaCommentRequest = { commentOn: Scalars['PublicationId']; contentURI: Scalars['URI']; @@ -2340,6 +2709,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', @@ -2431,23 +2801,33 @@ export type Mutation = { deleteNftGallery?: Maybe; dismissRecommendedProfiles?: Maybe; follow: LensProfileManagerRelayResult; + /** Hides a comment that exists under a publication made by the author. If already hidden, does nothing. */ + hideComment?: Maybe; + /** Hide a managed profile from your managed profiles list. */ + hideManagedProfile?: Maybe; hidePublication?: Maybe; idKitPhoneVerifyWebhook: IdKitPhoneVerifyWebhookResultStatusType; internalAddCuratedTag?: Maybe; internalAddInvites?: Maybe; internalAllowDomain?: Maybe; + internalBoostProfile: Scalars['Int']; internalClaim?: Maybe; internalCuratedUpdate?: Maybe; + internalMintHandleAndProfile: Scalars['TxHash']; internalNftIndex?: Maybe; internalNftVerify?: Maybe; internalRemoveCuratedTag?: Maybe; + internalUpdateModuleOptions?: Maybe; internalUpdateProfileStatus?: Maybe; invite?: Maybe; legacyCollect: LensProfileManagerRelayResult; linkHandleToProfile: LensProfileManagerRelayResult; mirrorOnMomoka: RelayMomokaResult; mirrorOnchain: LensProfileManagerRelayResult; + modDisputeReport?: Maybe; nftOwnershipChallenge: NftOwnershipChallengeResult; + peerToPeerRecommend?: Maybe; + peerToPeerUnrecommend?: Maybe; postOnMomoka: RelayMomokaResult; postOnchain: LensProfileManagerRelayResult; quoteOnMomoka: RelayMomokaResult; @@ -2457,14 +2837,20 @@ export type Mutation = { removeProfileInterests?: Maybe; removePublicationBookmark?: Maybe; removeReaction?: Maybe; + reportProfile?: Maybe; reportPublication?: Maybe; revokeAuthentication?: Maybe; setDefaultProfile?: Maybe; setFollowModule: LensProfileManagerRelayResult; setProfileMetadata: LensProfileManagerRelayResult; + signFrameAction: FrameLensManagerSignatureResult; unblock: LensProfileManagerRelayResult; undoPublicationNotInterested?: Maybe; unfollow: LensProfileManagerRelayResult; + /** Unhides a hidden comment under a publication made by the author. If not hidden, does nothing. */ + unhideComment?: Maybe; + /** Unhide an already hidden managed profile from your managed profiles list. */ + unhideManagedProfile?: Maybe; unlinkHandleFromProfile: LensProfileManagerRelayResult; updateNftGalleryInfo?: Maybe; updateNftGalleryItems?: Maybe; @@ -2635,6 +3021,14 @@ export type MutationFollowArgs = { request: FollowLensManagerRequest; }; +export type MutationHideCommentArgs = { + request: HideCommentRequest; +}; + +export type MutationHideManagedProfileArgs = { + request: HideManagedProfileRequest; +}; + export type MutationHidePublicationArgs = { request: HidePublicationRequest; }; @@ -2655,6 +3049,10 @@ export type MutationInternalAllowDomainArgs = { request: InternalAllowDomainRequest; }; +export type MutationInternalBoostProfileArgs = { + request: InternalBoostProfileRequest; +}; + export type MutationInternalClaimArgs = { request: InternalClaimRequest; }; @@ -2663,6 +3061,10 @@ export type MutationInternalCuratedUpdateArgs = { request: InternalCuratedUpdateRequest; }; +export type MutationInternalMintHandleAndProfileArgs = { + request: InternalMintHandleAndProfileRequest; +}; + export type MutationInternalNftIndexArgs = { request: InternalNftIndexRequest; }; @@ -2675,6 +3077,10 @@ export type MutationInternalRemoveCuratedTagArgs = { request: InternalRemoveCuratedTagRequest; }; +export type MutationInternalUpdateModuleOptionsArgs = { + request: InternalUpdateModuleOptionsRequest; +}; + export type MutationInternalUpdateProfileStatusArgs = { request: InternalUpdateProfileStatusRequest; }; @@ -2699,10 +3105,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; }; @@ -2739,6 +3157,10 @@ export type MutationRemoveReactionArgs = { request: ReactionRequest; }; +export type MutationReportProfileArgs = { + request: ReportProfileRequest; +}; + export type MutationReportPublicationArgs = { request: ReportPublicationRequest; }; @@ -2759,6 +3181,10 @@ export type MutationSetProfileMetadataArgs = { request: OnchainSetProfileMetadataRequest; }; +export type MutationSignFrameActionArgs = { + request: FrameLensManagerEip712Request; +}; + export type MutationUnblockArgs = { request: UnblockRequest; }; @@ -2771,6 +3197,14 @@ export type MutationUnfollowArgs = { request: UnfollowRequest; }; +export type MutationUnhideCommentArgs = { + request: UnhideCommentRequest; +}; + +export type MutationUnhideManagedProfileArgs = { + request: UnhideManagedProfileRequest; +}; + export type MutationUnlinkHandleFromProfileArgs = { request: UnlinkHandleFromProfileRequest; }; @@ -2795,6 +3229,8 @@ export type MutualFollowersRequest = { cursor?: InputMaybe; limit?: InputMaybe; observer: Scalars['ProfileId']; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; viewing: Scalars['ProfileId']; }; @@ -2834,10 +3270,10 @@ export type Nfi = { export type Nft = { __typename?: 'Nft'; collection: NftCollection; - contentURI: Scalars['URI']; + contentURI?: Maybe; contract: NetworkAddress; contractType: NftContractType; - metadata: NftMetadata; + metadata?: Maybe; owner: Owner; tokenId: Scalars['TokenId']; totalSupply: Scalars['String']; @@ -3030,6 +3466,8 @@ export type Notification = export type NotificationRequest = { cursor?: InputMaybe; + /** The order by which to sort the profiles on follows, reactions, actions and mirrors */ + orderBy?: InputMaybe; where?: InputMaybe; }; @@ -3048,6 +3486,7 @@ export type NotificationWhere = { highSignalFilter?: InputMaybe; notificationTypes?: InputMaybe>; publishedOn?: InputMaybe>; + timeBasedAggregation?: InputMaybe; }; export type OnchainCommentRequest = { @@ -3140,6 +3579,12 @@ export enum OpenActionModuleType { UnknownOpenActionModule = 'UnknownOpenActionModule' } +export type OpenActionPaidAction = { + __typename?: 'OpenActionPaidAction'; + actedOn: PrimaryPublication; + latestActed: Array; +}; + export type OpenActionProfileActed = { __typename?: 'OpenActionProfileActed'; actedAt: Scalars['DateTime']; @@ -3185,6 +3630,12 @@ export type PaginatedCurrenciesResult = { pageInfo: PaginatedResultInfo; }; +export type PaginatedDisputedReports = { + __typename?: 'PaginatedDisputedReports'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + export type PaginatedExplorePublicationResult = { __typename?: 'PaginatedExplorePublicationResult'; items: Array; @@ -3209,6 +3660,24 @@ export type PaginatedHandlesResult = { pageInfo: PaginatedResultInfo; }; +export type PaginatedModExplorePublicationResult = { + __typename?: 'PaginatedModExplorePublicationResult'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + +export type PaginatedModFollowersResult = { + __typename?: 'PaginatedModFollowersResult'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + +export type PaginatedModReports = { + __typename?: 'PaginatedModReports'; + items: Array; + pageInfo: PaginatedResultInfo; +}; + /** Nft collections paginated result */ export type PaginatedNftCollectionsResult = { __typename?: 'PaginatedNftCollectionsResult'; @@ -3299,6 +3768,11 @@ export type PaginatedPublicationsTagsResult = { pageInfo: PaginatedResultInfo; }; +export type PaginatedRequest = { + cursor?: InputMaybe; + limit?: InputMaybe; +}; + /** The paginated result info */ export type PaginatedResultInfo = { __typename?: 'PaginatedResultInfo'; @@ -3326,6 +3800,13 @@ export type PaginatedWhoReactedResult = { pageInfo: PaginatedResultInfo; }; +export type PaidAction = FollowPaidAction | OpenActionPaidAction; + +export type PeerToPeerRecommendRequest = { + /** The profile to recommend */ + profileId: Scalars['ProfileId']; +}; + export type PhysicalAddress = { __typename?: 'PhysicalAddress'; /** The country name component. */ @@ -3410,7 +3891,7 @@ export type PopularNftCollectionsRequest = { /** Include only verified collections */ onlyVerified?: InputMaybe; /** The ordering of Nft collection owners. Defaults to Total Lens Profile owners */ - orderBy?: InputMaybe; + orderBy?: PopularNftCollectionsOrder; }; export type Post = { @@ -3423,7 +3904,7 @@ export type Post = { isHidden: Scalars['Boolean']; metadata: PublicationMetadata; momoka?: Maybe; - openActionModules?: Maybe>; + openActionModules: Array; operations: PublicationOperations; profilesMentioned: Array; publishedOn?: Maybe; @@ -3469,6 +3950,8 @@ export type Profile = { operations: ProfileOperations; /** Who owns the profile */ ownedBy: NetworkAddress; + /** If the profile has been recommended by the authenticated user */ + peerToPeerRecommendedByMe: Scalars['Boolean']; /** If the profile has got signless enabled */ 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 */ @@ -3522,6 +4005,11 @@ export enum ProfileActionHistoryType { UnlinkHandle = 'UNLINK_HANDLE' } +export type ProfileFraudReasonInput = { + reason: ProfileReportingReason; + subreason: ProfileReportingFraudSubreason; +}; + export type ProfileGuardianResult = { __typename?: 'ProfileGuardianResult'; cooldownEndsOn?: Maybe; @@ -3697,6 +4185,26 @@ export type ProfileRecommendationsRequest = { shuffle?: InputMaybe; }; +export enum ProfileReportingFraudSubreason { + Impersonation = 'IMPERSONATION', + SomethingElse = 'SOMETHING_ELSE' +} + +export enum ProfileReportingReason { + Fraud = 'FRAUD', + Spam = 'SPAM' +} + +export type ProfileReportingReasonInput = { + fraudReason?: InputMaybe; + spamReason?: InputMaybe; +}; + +export enum ProfileReportingSpamSubreason { + Repetitive = 'REPETITIVE', + SomethingElse = 'SOMETHING_ELSE' +} + export type ProfileRequest = { /** The handle for profile you want to fetch - namespace/localname */ forHandle?: InputMaybe; @@ -3707,6 +4215,8 @@ export type ProfileRequest = { export type ProfileSearchRequest = { cursor?: InputMaybe; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; /** Query for the profile search */ query: Scalars['String']; /** Filtering criteria for profile search */ @@ -3718,6 +4228,11 @@ export type ProfileSearchWhere = { customFilters?: InputMaybe>; }; +export type ProfileSpamReasonInput = { + reason: ProfileReportingReason; + subreason: ProfileReportingSpamSubreason; +}; + /** The Profile Stats */ export type ProfileStats = { __typename?: 'ProfileStats'; @@ -3726,6 +4241,8 @@ export type ProfileStats = { followers: Scalars['Int']; following: Scalars['Int']; id: Scalars['ProfileId']; + /** The profile classifier score of this profile relative to others on Lens. It is a % out of 100. */ + lensClassifierScore?: Maybe; mirrors: Scalars['Int']; posts: Scalars['Int']; publications: Scalars['Int']; @@ -3754,6 +4271,7 @@ export type ProfileStatsReactionsArgs = { export type ProfileStatsArg = { customFilters?: InputMaybe>; forApps?: InputMaybe>; + hiddenComments?: InputMaybe; }; export type ProfileStatsCountOpenActionArgs = { @@ -3774,6 +4292,7 @@ export type ProfilesManagedRequest = { cursor?: InputMaybe; /** The Ethereum address for which to retrieve managed profiles */ for: Scalars['EvmAddress']; + hiddenFilter?: InputMaybe; includeOwned?: InputMaybe; limit?: InputMaybe; }; @@ -3781,11 +4300,19 @@ export type ProfilesManagedRequest = { export type ProfilesManagedResult = { __typename?: 'ProfilesManagedResult'; address: Scalars['EvmAddress']; + isLensManager: Scalars['Boolean']; }; +export enum ProfilesOrderBy { + Default = 'DEFAULT', + ProfileClassifier = 'PROFILE_CLASSIFIER' +} + export type ProfilesRequest = { cursor?: InputMaybe; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; /** The where clause to use to filter on what you are looking for */ where: ProfilesRequestWhere; }; @@ -3820,6 +4347,8 @@ export type PublicationBookmarksWhere = { }; export type PublicationCommentOn = { + /** You can use this enum to show, hide or show only hidden comments */ + hiddenComments?: InputMaybe; id: Scalars['PublicationId']; ranking?: InputMaybe; }; @@ -3914,6 +4443,7 @@ export enum PublicationMetadataLicenseType { export type PublicationMetadataLitEncryption = { __typename?: 'PublicationMetadataLitEncryption'; accessCondition: RootCondition; + accessControlContract: NetworkAddress; encryptedPaths: Array; encryptionKey: Scalars['ContentEncryptionKey']; }; @@ -4047,6 +4577,7 @@ export enum PublicationReportingIllegalSubreason { AnimalAbuse = 'ANIMAL_ABUSE', DirectThreat = 'DIRECT_THREAT', HumanAbuse = 'HUMAN_ABUSE', + IntEllEctualProperty = 'INTEllECTUAL_PROPERTY', ThreatIndividual = 'THREAT_INDIVIDUAL', Violence = 'VIOLENCE' } @@ -4096,6 +4627,7 @@ export type PublicationSearchWhere = { customFilters?: InputMaybe>; metadata?: InputMaybe; publicationTypes?: InputMaybe>; + withOpenActions?: InputMaybe>; }; export type PublicationStats = { @@ -4123,6 +4655,7 @@ export type PublicationStatsCountOpenActionArgs = { export type PublicationStatsInput = { customFilters?: InputMaybe>; + hiddenComments?: InputMaybe; /** Filter the returned stats on apps and 1 of the following filters: tags, contentWarning, mainContentFocus, locale */ metadata?: InputMaybe; }; @@ -4177,16 +4710,21 @@ export type PublicationsWhere = { export type Query = { __typename?: 'Query'; 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 */ approvedModuleAllowanceAmount: Array; canClaim: Array; challenge: AuthChallengeResult; + claimTokens: LensProfileManagerRelayResult; claimableProfiles: ClaimableProfilesResult; claimableStatus: ClaimProfileStatusType; + claimableTokens: ClaimableTokensResult; + createFrameTypedData: CreateFrameEip712TypedData; /** Get all enabled currencies */ currencies: PaginatedCurrenciesResult; 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. */ defaultProfile?: Maybe; + didReactOnPublication: Array; exploreProfiles: PaginatedProfileResult; explorePublications: PaginatedExplorePublicationResult; feed: PaginatedFeedResult; @@ -4195,18 +4733,29 @@ export type Query = { followStatusBulk: Array; followers: PaginatedProfileResult; following: PaginatedProfileResult; + 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 */ generateModuleCurrencyApprovalData: GenerateModuleCurrencyApprovalResult; + handleToAddress?: Maybe; internalAllowedDomains: Array; + internalBoostScore?: Maybe; internalClaimStatus?: Maybe; internalCuratedHandles: Array; internalCuratedTags: Array; internalInvites: Scalars['Int']; + internalPaymentHandleInfo?: Maybe; internalProfileStatus: PrfResult; invitedProfiles: Array; lastLoggedInProfile?: Maybe; + latestPaidActions: LatestPaidActionsResult; lensAPIOwnedEOAs: Array; - lensProtocolVersion: LensProtocolVersion; + lensProtocolVersion: Scalars['String']; lensTransactionStatus?: Maybe; + modDisputedReports: PaginatedDisputedReports; + modExplorePublications: PaginatedModExplorePublicationResult; + modFollowers: PaginatedModFollowersResult; + modLatestReports: PaginatedModReports; + moduleMetadata?: Maybe; momokaSubmitters: MomokaSubmittersResult; momokaSummary: MomokaSummaryResult; momokaTransaction?: Maybe; @@ -4252,9 +4801,11 @@ export type Query = { supportedOpenActionModules: PaginatedSupportedModules; supportedReferenceModules: PaginatedSupportedModules; txIdToTxHash?: Maybe; + userRateLimit: UserCurrentRateLimitResult; userSigNonces: UserSigNonces; validatePublicationMetadata: PublicationValidateMetadataResult; verify: Scalars['Boolean']; + verifyFrameSignature: FrameVerifySignatureResult; whoActedOnPublication: PaginatedProfileResult; /** The list of profiles that the logged in profile has blocked */ whoHaveBlocked: PaginatedProfileResult; @@ -4277,6 +4828,14 @@ export type QueryChallengeArgs = { request: ChallengeRequest; }; +export type QueryClaimTokensArgs = { + request: ClaimTokensRequest; +}; + +export type QueryCreateFrameTypedDataArgs = { + request: FrameEip712Request; +}; + export type QueryCurrenciesArgs = { request: PaginatedOffsetRequest; }; @@ -4285,6 +4844,10 @@ export type QueryDefaultProfileArgs = { request: DefaultProfileRequest; }; +export type QueryDidReactOnPublicationArgs = { + request: DidReactOnPublicationRequest; +}; + export type QueryExploreProfilesArgs = { request: ExploreProfilesRequest; }; @@ -4321,10 +4884,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; }; @@ -4341,6 +4912,10 @@ export type QueryInternalInvitesArgs = { request: InternalInvitesRequest; }; +export type QueryInternalPaymentHandleInfoArgs = { + request: InternalPaymentHandleInfoRequest; +}; + export type QueryInternalProfileStatusArgs = { request: InternalProfileStatusRequest; }; @@ -4349,10 +4924,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; }; @@ -4493,6 +5094,10 @@ export type QueryTxIdToTxHashArgs = { for: Scalars['TxId']; }; +export type QueryUserRateLimitArgs = { + request: UserCurrentRateLimitRequest; +}; + export type QueryValidatePublicationMetadataArgs = { request: ValidatePublicationMetadataRequest; }; @@ -4501,6 +5106,10 @@ export type QueryVerifyArgs = { request: VerifyRequest; }; +export type QueryVerifyFrameSignatureArgs = { + request: FrameVerifySignature; +}; + export type QueryWhoActedOnPublicationArgs = { request: WhoActedOnPublicationRequest; }; @@ -4523,7 +5132,7 @@ export type Quote = { isHidden: Scalars['Boolean']; metadata: PublicationMetadata; momoka?: Maybe; - openActionModules?: Maybe>; + openActionModules: Array; operations: PublicationOperations; profilesMentioned: Array; publishedOn?: Maybe; @@ -4568,6 +5177,8 @@ export type ReactionNotification = { }; export type ReactionRequest = { + /** The ID of the app that the reaction was made from. */ + app?: InputMaybe; for: Scalars['PublicationId']; reaction: PublicationReactionType; }; @@ -4656,6 +5267,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', @@ -4676,6 +5298,16 @@ export enum RelayRoleKey { 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', @@ -4685,7 +5317,17 @@ export enum RelayRoleKey { WithSig_7 = 'WITH_SIG_7', WithSig_8 = 'WITH_SIG_8', WithSig_9 = 'WITH_SIG_9', - WithSig_10 = 'WITH_SIG_10' + 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 = { @@ -4694,6 +5336,12 @@ export type RelaySuccess = { txId: Scalars['TxId']; }; +export type ReportProfileRequest = { + additionalComments?: InputMaybe; + for: Scalars['ProfileId']; + reason: ProfileReportingReasonInput; +}; + export type ReportPublicationRequest = { additionalComments?: InputMaybe; for: Scalars['PublicationId']; @@ -4905,6 +5553,7 @@ export type SupportedModulesRequest = { cursor?: InputMaybe; includeUnknown?: InputMaybe; limit?: InputMaybe; + onlyVerified?: InputMaybe; }; export type SybilDotOrgIdentity = { @@ -5025,6 +5674,16 @@ export type UnfollowRequest = { unfollow: Array; }; +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. */ + for: Scalars['PublicationId']; +}; + +export type UnhideManagedProfileRequest = { + /** The profile to unhide */ + profileId: Scalars['ProfileId']; +}; + export type UnknownFollowModuleInput = { address: Scalars['EvmAddress']; data: Scalars['BlockchainData']; @@ -5038,9 +5697,22 @@ export type UnknownFollowModuleRedeemInput = { export type UnknownFollowModuleSettings = { __typename?: 'UnknownFollowModuleSettings'; 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 + */ followModuleReturnData?: Maybe; + /** The data used to setup the module */ + initializeCalldata?: Maybe; + /** The data returned from the init module */ + initializeResultData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + sponsoredApproved: Scalars['Boolean']; type: FollowModuleType; + /** True if the module is deemed as safe */ + verified: Scalars['Boolean']; }; export type UnknownOpenActionActRedeemInput = { @@ -5058,9 +5730,22 @@ export type UnknownOpenActionModuleSettings = { /** The collect nft address - only deployed on first collect and if its a collectable open action */ collectNft?: Maybe; contract: NetworkAddress; - /** The data used to setup the module which you can decode with your known ABI */ + /** The data used to setup the module */ + initializeCalldata?: Maybe; + /** The data returned from the init module */ + initializeResultData?: Maybe; + /** + * The data returned from the init module + * @deprecated Use initializeResultData instead + */ openActionModuleReturnData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + sponsoredApproved: Scalars['Boolean']; type: OpenActionModuleType; + /** True if the module is deemed as safe */ + verified: Scalars['Boolean']; }; export type UnknownOpenActionResult = { @@ -5078,9 +5763,22 @@ export type UnknownReferenceModuleInput = { export type UnknownReferenceModuleSettings = { __typename?: 'UnknownReferenceModuleSettings'; contract: NetworkAddress; - /** The data used to setup the module which you can decode with your known ABI */ + /** The data used to setup the module */ + initializeCalldata?: Maybe; + /** The data returned from the init module */ + initializeResultData?: Maybe; + /** + * The data used to setup the module which you can decode with your known ABI + * @deprecated Use initializeResultData instead + */ referenceModuleReturnData?: Maybe; + /** True if the module can be signedless and use lens manager without a signature */ + signlessApproved: Scalars['Boolean']; + /** True if the module can be sponsored through gasless so the user does not need to pay for gas */ + sponsoredApproved: Scalars['Boolean']; type: ReferenceModuleType; + /** True if the module is deemed as safe */ + verified: Scalars['Boolean']; }; export type UnknownSupportedModule = { @@ -5094,6 +5792,27 @@ export type UnlinkHandleFromProfileRequest = { handle: Scalars['Handle']; }; +export type UserCurrentRateLimit = { + __typename?: 'UserCurrentRateLimit'; + dayAllowance: Scalars['Int']; + dayAllowanceLeft: Scalars['Int']; + dayAllowanceUsed: Scalars['Int']; + hourAllowance: Scalars['Int']; + hourAllowanceLeft: Scalars['Int']; + hourAllowanceUsed: Scalars['Int']; +}; + +export type UserCurrentRateLimitRequest = { + profileId?: InputMaybe; + userAddress: Scalars['EvmAddress']; +}; + +export type UserCurrentRateLimitResult = { + __typename?: 'UserCurrentRateLimitResult'; + momoka: UserCurrentRateLimit; + onchain: UserCurrentRateLimit; +}; + export type UserPoapsQueryRequest = { cursor?: InputMaybe; for: Scalars['ProfileId']; @@ -5114,7 +5833,9 @@ export type ValidatePublicationMetadataRequest = { export type VerifyRequest = { /** The access token to verify */ - accessToken: Scalars['Jwt']; + accessToken?: InputMaybe; + /** The identity token to verify */ + identityToken?: InputMaybe; }; export type Video = { @@ -5153,6 +5874,8 @@ export type WhoActedOnPublicationRequest = { cursor?: InputMaybe; limit?: InputMaybe; on: Scalars['PublicationId']; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; where?: InputMaybe; }; @@ -5169,6 +5892,8 @@ export type WhoReactedPublicationRequest = { cursor?: InputMaybe; for: Scalars['PublicationId']; limit?: InputMaybe; + /** The order by which to sort the profiles */ + orderBy?: InputMaybe; where?: InputMaybe; }; @@ -6632,6 +7357,7 @@ const result: PossibleTypesResultData = { 'UnknownOpenActionModuleSettings' ], OpenActionResult: ['KnownCollectOpenActionResult', 'UnknownOpenActionResult'], + PaidAction: ['FollowPaidAction', 'OpenActionPaidAction'], PrimaryPublication: ['Comment', 'Post', 'Quote'], ProfilePicture: ['ImageSet', 'NftImage'], PublicationMetadata: [ diff --git a/src/utils/getConfig.ts b/src/utils/getConfig.ts index c72254a..43ab475 100644 --- a/src/utils/getConfig.ts +++ b/src/utils/getConfig.ts @@ -20,7 +20,7 @@ const getConfig = ( return { apiEndpoint: LensEndpoint.TESTNET, heyUrl: HeyUrl.TESTNET, - verifierNetwork: VerifierNetwork.MUMBAI, + verifierNetwork: VerifierNetwork.AMOY, verifierDeployment: VerifierDeployment.PRODUCTION }; } diff --git a/yarn.lock b/yarn.lock index 65ff6b3..898726a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1503,10 +1503,10 @@ resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.1.tgz#7f495de1565e393d2d3a9d54c5831ed045e403a2" integrity sha512-Jq/CMEw+o5+u6YEcVtkE5UiEDhTjyqro1vo0hDDScf1WdDkxBHahYn/1bL9QEhA4nG5JyfygcL1+CKT+2BilWw== -"@lens-protocol/momoka@^1.1.3": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@lens-protocol/momoka/-/momoka-1.1.3.tgz#aa583fb8322ca3d3b547c8a80c72030c6cb1b57a" - integrity sha512-Zd367gpt4bhLJOyo6/TASN2VTDG9P1qrkJ9CsQjU8mtvUIei4zVaroz70QtmOWdGfR+V48QMJF+k/gfBX8z8Ag== +"@lens-protocol/momoka@^2.1.1": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@lens-protocol/momoka/-/momoka-2.1.1.tgz#6f438abaaa12316b309fde4f0eb7aa560a755b31" + integrity sha512-UDxAoII0JB2DYM+m8kwlOjY8PvYw4thAfHUjKrimmZ+Imoc1a1pDWprI4K0SR5GEGkeIY4DHTofr0RWL+kHnVg== dependencies: "@ethersproject/abstract-provider" "^5.7.0" "@ethersproject/bytes" "^5.7.0" @@ -1515,7 +1515,7 @@ arweave "^1.13.3" axios "^1.3.4" bluebird "^3.7.2" - ethereum-multicall "^2.16.1" + ethereum-multicall "^2.24.0" ethers "^5.7.2" graphql "^16.6.0" level "^8.0.0" @@ -4399,10 +4399,10 @@ eth-rpc-errors@^4.0.2: dependencies: fast-safe-stringify "^2.0.6" -ethereum-multicall@^2.16.1: - version "2.19.0" - resolved "https://registry.yarnpkg.com/ethereum-multicall/-/ethereum-multicall-2.19.0.tgz#28462bf48792bf7bb0b2db1ca546f439b2adab96" - integrity sha512-ECMxdf1ffxBWTCLeAzEGGWUYNdlNq4zXPj/ZPXdaixbx/qZ/gw4ongwpuR5UGy6D5epWDftvFvIAEzmkwGZ1lQ== +ethereum-multicall@^2.24.0: + version "2.24.0" + resolved "https://registry.yarnpkg.com/ethereum-multicall/-/ethereum-multicall-2.24.0.tgz#b6ff351a632cae7882ca24224bd3ea2426b6e213" + integrity sha512-+xWNmtWdpL4zOdAF2zeLYa1ZsrHLeU7KLmBAsc0el140qdQmF9ubyM9SwKHzy+xztTHi+eCnmCjknqhEU25gFA== dependencies: "@ethersproject/providers" "^5.0.10" ethers "^5.0.15"