From 59aba766de2ae1057f006d5230aafe34bb71a61f Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Mon, 6 May 2024 10:57:53 +0200 Subject: [PATCH] chore: removes mention of APP_NOT_ALLOWED broadcasst error reason --- .../src/use-cases/transactions/BroadcastingError.ts | 2 ++ .../adapters/__tests__/MomokaRelayer.spec.ts | 4 ---- .../adapters/__tests__/OnChainRelayer.spec.ts | 4 ---- .../adapters/__tests__/OpenActionGateway.spec.ts | 6 ------ .../__tests__/CreateMomokaCommentGateway.spec.ts | 6 ------ .../__tests__/CreateMomokaMirrorGateway.spec.ts | 6 ------ .../__tests__/CreateMomokaPostGateway.spec.ts | 6 ------ .../__tests__/CreateMomokaQuoteGateway.spec.ts | 6 ------ .../__tests__/CreateOnChainCommentGateway.spec.ts | 6 ------ .../__tests__/CreateOnChainMirrorGateway.spec.ts | 6 ------ .../__tests__/CreateOnChainPostGateway.spec.ts | 6 ------ .../__tests__/CreateOnChainQuoteGateway.spec.ts | 6 ------ packages/react/src/transactions/adapters/relayer.ts | 4 ---- .../src/transactions/publications/useCreateComment.ts | 7 ------- .../src/transactions/publications/useCreateMirror.ts | 8 -------- .../src/transactions/publications/useCreatePost.ts | 7 ------- .../src/transactions/publications/useCreateQuote.ts | 7 ------- .../publications/useOptimisticCreatePost.ts | 1 - packages/react/src/transactions/useBlockProfiles.ts | 10 +--------- packages/react/src/transactions/useFollow.ts | 8 -------- packages/react/src/transactions/useLinkHandle.ts | 9 --------- packages/react/src/transactions/useOpenAction/types.ts | 1 - .../src/transactions/useOpenAction/useOpenAction.ts | 7 ------- .../react/src/transactions/useSetProfileMetadata.ts | 8 -------- packages/react/src/transactions/useUnblockProfiles.ts | 9 --------- packages/react/src/transactions/useUnfollow.ts | 10 ---------- packages/react/src/transactions/useUnlinkHandle.ts | 9 --------- .../react/src/transactions/useUpdateFollowPolicy.ts | 9 --------- .../react/src/transactions/useUpdateProfileManagers.ts | 9 --------- 29 files changed, 3 insertions(+), 184 deletions(-) diff --git a/packages/domain/src/use-cases/transactions/BroadcastingError.ts b/packages/domain/src/use-cases/transactions/BroadcastingError.ts index a1adf860df..292d49cabf 100644 --- a/packages/domain/src/use-cases/transactions/BroadcastingError.ts +++ b/packages/domain/src/use-cases/transactions/BroadcastingError.ts @@ -7,6 +7,8 @@ export type RequestFallback = AnyTransactionRequestModel; export enum BroadcastingErrorReason { /** * The app is not whitelisted to use gasless transactions. + * + * @deprecated This error reason is not longer used and will be removed in the future. */ APP_NOT_ALLOWED = 'APP_NOT_ALLOWED', /** diff --git a/packages/react/src/transactions/adapters/__tests__/MomokaRelayer.spec.ts b/packages/react/src/transactions/adapters/__tests__/MomokaRelayer.spec.ts index a46c9e7392..efab211f44 100644 --- a/packages/react/src/transactions/adapters/__tests__/MomokaRelayer.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/MomokaRelayer.spec.ts @@ -67,10 +67,6 @@ describe(`Given an instance of the ${MomokaRelayer.name}`, () => { }); describe.only.each([ - { - broadcastResult: mockRelayErrorFragment(RelayErrorReasonType.AppNotAllowed), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { broadcastResult: mockRelayErrorFragment(RelayErrorReasonType.NotSponsored), reason: BroadcastingErrorReason.NOT_SPONSORED, diff --git a/packages/react/src/transactions/adapters/__tests__/OnChainRelayer.spec.ts b/packages/react/src/transactions/adapters/__tests__/OnChainRelayer.spec.ts index 7398ec3684..d4f2017ef8 100644 --- a/packages/react/src/transactions/adapters/__tests__/OnChainRelayer.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/OnChainRelayer.spec.ts @@ -63,10 +63,6 @@ describe(`Given an instance of the ${OnChainRelayer.name}`, () => { }); describe.only.each([ - { - broadcastResult: mockRelayErrorFragment(RelayErrorReasonType.AppNotAllowed), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { broadcastResult: mockRelayErrorFragment(RelayErrorReasonType.NotSponsored), reason: BroadcastingErrorReason.NOT_SPONSORED, diff --git a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts index e7fffd8ed2..08399207ec 100644 --- a/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts +++ b/packages/react/src/transactions/adapters/__tests__/OpenActionGateway.spec.ts @@ -380,12 +380,6 @@ describe(`Given an instance of ${OpenActionGateway.name}`, () => { describe(`when creating any ${NativeTransaction.name}`, () => { describe.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaCommentGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaCommentGateway.spec.ts index fb9d87e132..e7ff390d0d 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaCommentGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaCommentGateway.spec.ts @@ -86,12 +86,6 @@ describe(`Given an instance of ${CreateMomokaCommentGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaMirrorGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaMirrorGateway.spec.ts index d8646af25c..279d94971b 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaMirrorGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaMirrorGateway.spec.ts @@ -84,12 +84,6 @@ describe(`Given an instance of ${CreateMomokaMirrorGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaPostGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaPostGateway.spec.ts index 5c8be9e6df..d9f38878d6 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaPostGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaPostGateway.spec.ts @@ -84,12 +84,6 @@ describe(`Given an instance of ${CreateMomokaPostGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaQuoteGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaQuoteGateway.spec.ts index 9c237262fc..5b09cb17c6 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaQuoteGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateMomokaQuoteGateway.spec.ts @@ -86,12 +86,6 @@ describe(`Given an instance of ${CreateMomokaQuoteGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts index 289fbe38d5..a24c1ad465 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainCommentGateway.spec.ts @@ -151,12 +151,6 @@ describe(`Given an instance of ${CreateOnChainCommentGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts index 6767cfe41c..4ef11e0182 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainMirrorGateway.spec.ts @@ -130,12 +130,6 @@ describe(`Given an instance of ${CreateOnChainMirrorGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts index 63ad725579..826f43a043 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainPostGateway.spec.ts @@ -150,12 +150,6 @@ describe(`Given an instance of ${CreateOnChainPostGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts index 39354fdd3e..a67df11966 100644 --- a/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts +++ b/packages/react/src/transactions/adapters/publications/__tests__/CreateOnChainQuoteGateway.spec.ts @@ -151,12 +151,6 @@ describe(`Given an instance of ${CreateOnChainQuoteGateway.name}`, () => { }); it.each([ - { - relayError: mockLensProfileManagerRelayError( - LensProfileManagerRelayErrorReasonType.AppNotAllowed, - ), - reason: BroadcastingErrorReason.APP_NOT_ALLOWED, - }, { relayError: mockLensProfileManagerRelayError( LensProfileManagerRelayErrorReasonType.NoLensManagerEnabled, diff --git a/packages/react/src/transactions/adapters/relayer.ts b/packages/react/src/transactions/adapters/relayer.ts index a02ca48631..eb6815ae9f 100644 --- a/packages/react/src/transactions/adapters/relayer.ts +++ b/packages/react/src/transactions/adapters/relayer.ts @@ -15,10 +15,6 @@ export function handleRelayError( _?: unknown, ): Failure { switch (error.reason) { - case RelayErrorReasonType.AppNotAllowed: - case LensProfileManagerRelayErrorReasonType.AppNotAllowed: - return failure(new BroadcastingError(BroadcastingErrorReason.APP_NOT_ALLOWED)); - case RelayErrorReasonType.RateLimited: case LensProfileManagerRelayErrorReasonType.RateLimited: return failure(new BroadcastingError(BroadcastingErrorReason.RATE_LIMITED)); diff --git a/packages/react/src/transactions/publications/useCreateComment.ts b/packages/react/src/transactions/publications/useCreateComment.ts index 704f72edf3..84117f90a2 100644 --- a/packages/react/src/transactions/publications/useCreateComment.ts +++ b/packages/react/src/transactions/publications/useCreateComment.ts @@ -75,7 +75,6 @@ export type CreateCommentArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -407,7 +406,6 @@ export type CreateCommentArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -440,11 +438,6 @@ export type CreateCommentArgs = { * } * ``` * - * We omitted the handling of the {@link BroadcastingErrorReason.APP_NOT_ALLOWED} error because it's usually - * something that builder will face when deploying their app to production using the Production Lens API. - * - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * * ## Momoka comments * * For a comment to be hosted on Momoka it must meet the following criteria: diff --git a/packages/react/src/transactions/publications/useCreateMirror.ts b/packages/react/src/transactions/publications/useCreateMirror.ts index 5273d00729..af7e02970b 100644 --- a/packages/react/src/transactions/publications/useCreateMirror.ts +++ b/packages/react/src/transactions/publications/useCreateMirror.ts @@ -53,7 +53,6 @@ export type CreateMirrorArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -194,7 +193,6 @@ export type CreateMirrorArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -224,12 +222,6 @@ export type CreateMirrorArgs = { * } * ``` * - * We omitted the handling of the {@link BroadcastingErrorReason.APP_NOT_ALLOWED} error because it's usually - * something that builder will face when deploying their app to production using the Production Lens API. - * - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * * @category Publications * @group Hooks */ diff --git a/packages/react/src/transactions/publications/useCreatePost.ts b/packages/react/src/transactions/publications/useCreatePost.ts index c243aca4cb..c932c9ee4b 100644 --- a/packages/react/src/transactions/publications/useCreatePost.ts +++ b/packages/react/src/transactions/publications/useCreatePost.ts @@ -56,7 +56,6 @@ export type CreatePostArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -375,7 +374,6 @@ export type CreatePostArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -406,11 +404,6 @@ export type CreatePostArgs = { * } * ``` * - * We omitted the handling of the {@link BroadcastingErrorReason.APP_NOT_ALLOWED} error because it's usually - * something that builder will face when deploying their app to production using the Production Lens API. - * - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * * ## Momoka posts * * For a post to be hosted on Momoka it must meet the following criteria: diff --git a/packages/react/src/transactions/publications/useCreateQuote.ts b/packages/react/src/transactions/publications/useCreateQuote.ts index 04b1ca18a5..0d5447062a 100644 --- a/packages/react/src/transactions/publications/useCreateQuote.ts +++ b/packages/react/src/transactions/publications/useCreateQuote.ts @@ -75,7 +75,6 @@ export type CreateQuoteArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -385,7 +384,6 @@ export type CreateQuoteArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -418,11 +416,6 @@ export type CreateQuoteArgs = { * } * ``` * - * We omitted the handling of the {@link BroadcastingErrorReason.APP_NOT_ALLOWED} error because it's usually - * something that builder will face when deploying their app to production using the Production Lens API. - * - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * * ## Create an app-specific quote * * You can create a comment that is specific to an app by defining the `appId` when creating the comment metadata. diff --git a/packages/react/src/transactions/publications/useOptimisticCreatePost.ts b/packages/react/src/transactions/publications/useOptimisticCreatePost.ts index 171b271265..6364053735 100644 --- a/packages/react/src/transactions/publications/useOptimisticCreatePost.ts +++ b/packages/react/src/transactions/publications/useOptimisticCreatePost.ts @@ -58,7 +58,6 @@ export type OptimisticCreatePostArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. diff --git a/packages/react/src/transactions/useBlockProfiles.ts b/packages/react/src/transactions/useBlockProfiles.ts index e886118935..023aaa004c 100644 --- a/packages/react/src/transactions/useBlockProfiles.ts +++ b/packages/react/src/transactions/useBlockProfiles.ts @@ -33,7 +33,7 @@ export type BlockProfileArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions + * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -193,7 +193,6 @@ export type BlockProfileArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -224,13 +223,6 @@ export type BlockProfileArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * */ export function useBlockProfiles(): UseDeferredTask< AsyncTransactionResult, diff --git a/packages/react/src/transactions/useFollow.ts b/packages/react/src/transactions/useFollow.ts index 2b4bd4b72c..e5910292ee 100644 --- a/packages/react/src/transactions/useFollow.ts +++ b/packages/react/src/transactions/useFollow.ts @@ -107,7 +107,6 @@ export type FollowArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -260,7 +259,6 @@ export type FollowArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -284,12 +282,6 @@ export type FollowArgs = { * } * ``` * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * * @category Profiles * @group Hooks */ diff --git a/packages/react/src/transactions/useLinkHandle.ts b/packages/react/src/transactions/useLinkHandle.ts index a5dbed113f..681ed665cb 100644 --- a/packages/react/src/transactions/useLinkHandle.ts +++ b/packages/react/src/transactions/useLinkHandle.ts @@ -28,7 +28,6 @@ export type LinkHandleArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -172,7 +171,6 @@ export type LinkHandleArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -203,13 +201,6 @@ export type LinkHandleArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * */ export function useLinkHandle(): UseDeferredTask< AsyncTransactionResult, diff --git a/packages/react/src/transactions/useOpenAction/types.ts b/packages/react/src/transactions/useOpenAction/types.ts index 9d6badfb84..626efa97ed 100644 --- a/packages/react/src/transactions/useOpenAction/types.ts +++ b/packages/react/src/transactions/useOpenAction/types.ts @@ -85,7 +85,6 @@ export type OpenActionArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. diff --git a/packages/react/src/transactions/useOpenAction/useOpenAction.ts b/packages/react/src/transactions/useOpenAction/useOpenAction.ts index 7ee41c0036..6e086157d2 100644 --- a/packages/react/src/transactions/useOpenAction/useOpenAction.ts +++ b/packages/react/src/transactions/useOpenAction/useOpenAction.ts @@ -215,7 +215,6 @@ export type OpenActionAsyncResult = AsyncTransactionResult; * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -239,12 +238,6 @@ export type OpenActionAsyncResult = AsyncTransactionResult; * } * ``` * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * * @category Publications * @group Hooks */ diff --git a/packages/react/src/transactions/useSetProfileMetadata.ts b/packages/react/src/transactions/useSetProfileMetadata.ts index ef3f357778..835e467b01 100644 --- a/packages/react/src/transactions/useSetProfileMetadata.ts +++ b/packages/react/src/transactions/useSetProfileMetadata.ts @@ -28,7 +28,6 @@ export type UseSetProfileMetadataArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -178,7 +177,6 @@ export type UseSetProfileMetadataArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -211,12 +209,6 @@ export type UseSetProfileMetadataArgs = { * } * ``` * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * * @category Profiles * @group Hooks */ diff --git a/packages/react/src/transactions/useUnblockProfiles.ts b/packages/react/src/transactions/useUnblockProfiles.ts index cdd8056fcd..a93da599e5 100644 --- a/packages/react/src/transactions/useUnblockProfiles.ts +++ b/packages/react/src/transactions/useUnblockProfiles.ts @@ -32,7 +32,6 @@ export type UnblockProfileArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -192,7 +191,6 @@ export type UnblockProfileArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -223,13 +221,6 @@ export type UnblockProfileArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * */ export function useUnblockProfiles(): UseDeferredTask< AsyncTransactionResult, diff --git a/packages/react/src/transactions/useUnfollow.ts b/packages/react/src/transactions/useUnfollow.ts index 6b9903e614..1a2e9d0d1d 100644 --- a/packages/react/src/transactions/useUnfollow.ts +++ b/packages/react/src/transactions/useUnfollow.ts @@ -35,7 +35,6 @@ export type UnfollowArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -179,7 +178,6 @@ export type UnfollowArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -210,14 +208,6 @@ export type UnfollowArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * - * */ export function useUnfollow(): UseDeferredTask< UnfollowAsyncResult, diff --git a/packages/react/src/transactions/useUnlinkHandle.ts b/packages/react/src/transactions/useUnlinkHandle.ts index 140b4ebccd..d3807777e0 100644 --- a/packages/react/src/transactions/useUnlinkHandle.ts +++ b/packages/react/src/transactions/useUnlinkHandle.ts @@ -28,7 +28,6 @@ export type UnlinkHandleArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -172,7 +171,6 @@ export type UnlinkHandleArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -203,13 +201,6 @@ export type UnlinkHandleArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * */ export function useUnlinkHandle(): UseDeferredTask< AsyncTransactionResult, diff --git a/packages/react/src/transactions/useUpdateFollowPolicy.ts b/packages/react/src/transactions/useUpdateFollowPolicy.ts index fb5b0f9fb0..cebd55469f 100644 --- a/packages/react/src/transactions/useUpdateFollowPolicy.ts +++ b/packages/react/src/transactions/useUpdateFollowPolicy.ts @@ -32,7 +32,6 @@ export type UpdateFollowPolicyArgs = { * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -121,7 +120,6 @@ export type UpdateFollowPolicyArgs = { * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -157,13 +155,6 @@ export type UpdateFollowPolicyArgs = { * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * */ export function useUpdateFollowPolicy(): UseDeferredTask< void, diff --git a/packages/react/src/transactions/useUpdateProfileManagers.ts b/packages/react/src/transactions/useUpdateProfileManagers.ts index 0744b9e4fb..d4e1ad1543 100644 --- a/packages/react/src/transactions/useUpdateProfileManagers.ts +++ b/packages/react/src/transactions/useUpdateProfileManagers.ts @@ -36,7 +36,6 @@ export type UpdateProfileManagersArgs = AtLeastOneOf<{ * See {@link BroadcastingError} with: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * If not specified, or `true`, the hook will attempt a Sponsored Transaction. * Set it to `false` to force it to use a Self-Funded Transaction. @@ -156,7 +155,6 @@ export type UpdateProfileManagersArgs = AtLeastOneOf<{ * If for some reason the Lens API cannot sponsor the transaction, the hook will fail with a {@link BroadcastingError} with one of the following reasons: * - {@link BroadcastingErrorReason.NOT_SPONSORED} - the profile is not sponsored * - {@link BroadcastingErrorReason.RATE_LIMITED} - the profile reached the rate limit - * - {@link BroadcastingErrorReason.APP_NOT_ALLOWED} - the app is not whitelisted for gasless transactions * * In those cases you can retry the transaction as self-funded like in the following example: * @@ -185,13 +183,6 @@ export type UpdateProfileManagersArgs = AtLeastOneOf<{ * } * } * ``` - * - * In this example we omitted {@link BroadcastingErrorReason.APP_NOT_ALLOWED} as it's not normally a problem per-se. - * It just requires the app to apply for whitelisting. See https://docs.lens.xyz/docs/gasless-and-signless#whitelisting-your-app. - * - * You can still include it in your fallback logic if you want to. For example to unblock testing your app from a domain that is not the - * whitelisted one (e.g. localhost). - * * @category Profiles * @group Hooks */