From f88ea9f495e0bc6e0e7799d9240a2ba290f8cace Mon Sep 17 00:00:00 2001 From: plusminushalf Date: Fri, 24 Nov 2023 20:47:48 +0530 Subject: [PATCH] change v2 to v2 --- src/actions/pimlico/getUserOperationGasPrice.ts | 2 +- src/actions/pimlico/getUserOperationStatus.ts | 2 +- src/actions/stackup/accounts.ts | 2 +- src/actions/stackup/sponsorUserOperation.ts | 2 +- src/clients/decorators/bundler.ts | 2 +- src/clients/decorators/pimlico.ts | 6 +++--- src/clients/pimlico.ts | 2 +- src/clients/stackup.ts | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/actions/pimlico/getUserOperationGasPrice.ts b/src/actions/pimlico/getUserOperationGasPrice.ts index b12094c9..8331ee79 100644 --- a/src/actions/pimlico/getUserOperationGasPrice.ts +++ b/src/actions/pimlico/getUserOperationGasPrice.ts @@ -31,7 +31,7 @@ export type GetUserOperationGasPriceReturnType = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE") + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE") * }) * * await getUserOperationGasPrice(bundlerClient) diff --git a/src/actions/pimlico/getUserOperationStatus.ts b/src/actions/pimlico/getUserOperationStatus.ts index e68a8d60..12feea50 100644 --- a/src/actions/pimlico/getUserOperationStatus.ts +++ b/src/actions/pimlico/getUserOperationStatus.ts @@ -27,7 +27,7 @@ export type GetUserOperationStatusReturnType = PimlicoUserOperationStatus * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE") + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE") * }) * * await getUserOperationStatus(bundlerClient, { hash: userOpHash }) diff --git a/src/actions/stackup/accounts.ts b/src/actions/stackup/accounts.ts index ec7a3b1e..e2e20a0a 100644 --- a/src/actions/stackup/accounts.ts +++ b/src/actions/stackup/accounts.ts @@ -19,7 +19,7 @@ export type AccountsParameters = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.stackup.sh/v1/paymaster/YOUR_API_KEY_HERE") + * transport: http("https://api.stackup.sh/v2/paymaster/YOUR_API_KEY_HERE") * }) * * await accounts(bundlerClient, { diff --git a/src/actions/stackup/sponsorUserOperation.ts b/src/actions/stackup/sponsorUserOperation.ts index 6c26d4f6..884c20cf 100644 --- a/src/actions/stackup/sponsorUserOperation.ts +++ b/src/actions/stackup/sponsorUserOperation.ts @@ -43,7 +43,7 @@ export type SponsorUserOperationReturnType = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.stackup.sh/v1/paymaster/YOUR_API_KEY_HERE") + * transport: http("https://api.stackup.sh/v2/paymaster/YOUR_API_KEY_HERE") * }) * * await sponsorUserOperation(bundlerClient, { diff --git a/src/clients/decorators/bundler.ts b/src/clients/decorators/bundler.ts index 92539eaf..56826783 100644 --- a/src/clients/decorators/bundler.ts +++ b/src/clients/decorators/bundler.ts @@ -43,7 +43,7 @@ export type BundlerActions = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE") + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE") * }).extend(bundlerActions) * * const userOpHash = await bundlerClient.sendUserOperation({ diff --git a/src/clients/decorators/pimlico.ts b/src/clients/decorators/pimlico.ts index 03d91c96..bcbcdb63 100644 --- a/src/clients/decorators/pimlico.ts +++ b/src/clients/decorators/pimlico.ts @@ -33,7 +33,7 @@ export type PimlicoBundlerActions = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE") + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE") * }).extend(pimlicoBundlerActions) * * await bundlerClient.getUserOperationGasPrice() @@ -53,7 +53,7 @@ export type PimlicoBundlerActions = { * * const bundlerClient = createClient({ * chain: goerli, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE") + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE") * }).extend(pimlicoBundlerActions) * * await bundlerClient.getUserOperationStatus({ hash: userOpHash }) @@ -109,7 +109,7 @@ export const pimlicoPaymasterActions = ( }) /** - * TODO: Add support for pimlicoActions after we support all the actions of v1 in v2 of the Pimlico API. + * TODO: Add support for pimlicoActions after we support all the actions of v2 of the Pimlico API. */ // export const pimlicoActions = (client: Client) => { // return { diff --git a/src/clients/pimlico.ts b/src/clients/pimlico.ts index a935ab67..23bca4c8 100644 --- a/src/clients/pimlico.ts +++ b/src/clients/pimlico.ts @@ -50,7 +50,7 @@ export type PimlicoPaymasterClient = Client< * * const pimlicoBundlerClient = createPimlicoBundlerClient({ * chain: mainnet, - * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE"), + * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE"), * }) */ export const createPimlicoBundlerClient = < diff --git a/src/clients/stackup.ts b/src/clients/stackup.ts index 05469e05..9ac1c8af 100644 --- a/src/clients/stackup.ts +++ b/src/clients/stackup.ts @@ -37,7 +37,7 @@ export type StackupPaymasterClient = Client< * * const stackupPaymasterClient = createStackupPaymasterClient({ * chain: mainnet, - * transport: http("https://api.stackup.sh/v1/paymaster/YOUR_API_KEY_HERE"), + * transport: http("https://api.stackup.sh/v2/paymaster/YOUR_API_KEY_HERE"), * }) */ export const createStackupPaymasterClient = <