Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: Pimloco => Pimlico #64

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/actions/pimlico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getUserOperationStatus
} from "./pimlico/getUserOperationStatus.js"
import {
type PimlocoSponsorUserOperationParameters,
type PimlicoSponsorUserOperationParameters,
type SponsorUserOperationReturnType,
sponsorUserOperation
} from "./pimlico/sponsorUserOperation.js"
Expand All @@ -32,7 +32,7 @@ export type {
GetUserOperationGasPriceReturnType,
GetUserOperationStatusParameters,
GetUserOperationStatusReturnType,
PimlocoSponsorUserOperationParameters,
PimlicoSponsorUserOperationParameters,
SponsorUserOperationReturnType,
PimlicoBundlerActions,
PimlicoPaymasterClientActions,
Expand Down
6 changes: 3 additions & 3 deletions src/actions/pimlico/sponsorUserOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
} from "../../types/userOperation.js"
import { deepHexlify } from "../../utils/deepHexlify.js"

export type PimlocoSponsorUserOperationParameters = {
export type PimlicoSponsorUserOperationParameters = {
userOperation: PartialBy<
UserOperation,
| "callGasLimit"
Expand All @@ -27,7 +27,7 @@ export type SponsorUserOperationReturnType = UserOperation
* - Docs: https://docs.pimlico.io/permissionless/reference/pimlico-paymaster-actions/sponsorUserOperation
*
* @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
* @param args {@link PimlocoSponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
* @param args {@link PimlicoSponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
* @returns paymasterAndData & updated gas parameters, see {@link SponsorUserOperationReturnType}
*
*
Expand All @@ -52,7 +52,7 @@ export const sponsorUserOperation = async <
TAccount extends Account | undefined = Account | undefined
>(
client: Client<TTransport, TChain, TAccount, PimlicoPaymasterRpcSchema>,
args: PimlocoSponsorUserOperationParameters
args: PimlicoSponsorUserOperationParameters
): Promise<SponsorUserOperationReturnType> => {
const response = await client.request({
method: "pm_sponsorUserOperation",
Expand Down
8 changes: 4 additions & 4 deletions src/clients/decorators/pimlico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
getUserOperationStatus
} from "../../actions/pimlico/getUserOperationStatus.js"
import {
type PimlocoSponsorUserOperationParameters,
type PimlicoSponsorUserOperationParameters,
type SponsorUserOperationReturnType,
sponsorUserOperation
} from "../../actions/pimlico/sponsorUserOperation.js"
Expand Down Expand Up @@ -83,7 +83,7 @@ export type PimlicoPaymasterClientActions = {
*
* https://docs.pimlico.io/permissionless/reference/pimlico-paymaster-actions/sponsorUserOperation
*
* @param args {@link PimlocoSponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
* @param args {@link PimlicoSponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
* @returns paymasterAndData & updated gas parameters, see {@link SponsorUserOperationReturnType}
*
* @example
Expand All @@ -102,7 +102,7 @@ export type PimlicoPaymasterClientActions = {
*
*/
sponsorUserOperation: (
args: PimlocoSponsorUserOperationParameters
args: PimlicoSponsorUserOperationParameters
) => Promise<SponsorUserOperationReturnType>

validateSponsorshipPolicies: (
Expand Down Expand Up @@ -148,7 +148,7 @@ export type PimlicoPaymasterClientActions = {
export const pimlicoPaymasterActions = (
client: Client
): PimlicoPaymasterClientActions => ({
sponsorUserOperation: async (args: PimlocoSponsorUserOperationParameters) =>
sponsorUserOperation: async (args: PimlicoSponsorUserOperationParameters) =>
sponsorUserOperation(client as PimlicoPaymasterClient, args),
validateSponsorshipPolicies: async (
args: ValidateSponsorshipPoliciesParameters
Expand Down