Skip to content

Commit

Permalink
Merge pull request #44 from pimlicolabs/feat/signerToAccount
Browse files Browse the repository at this point in the history
change v1 to v2
  • Loading branch information
plusminushalf authored Nov 24, 2023
2 parents a4b496b + f88ea9f commit 7edef06
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/actions/pimlico/getUserOperationGasPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/actions/pimlico/getUserOperationStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion src/actions/stackup/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/stackup/sponsorUserOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/clients/decorators/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 3 additions & 3 deletions src/clients/decorators/pimlico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 })
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/clients/pimlico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <
Expand Down
2 changes: 1 addition & 1 deletion src/clients/stackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <
Expand Down

0 comments on commit 7edef06

Please sign in to comment.