Skip to content

Commit

Permalink
Feat/higher level erc20 helper (#278)
Browse files Browse the repository at this point in the history
* prepareUserOperaiton with ERC-20 flow

* lint

* refactor

* fix imports

* refactor

* fix build

* fix package.json

* fix import

* fix import

* fix

* fix ordering

* cleanup erc20 sponsor flow

* chore: format

* refactor

* chore: format

* flow for approving+sending userOperation

* lint

* update tests

* lint

* fix

* chore: format

* set viem version

* chore: format

* set viem peer dependency version

* chore: format

* add test cases

* chore: format

* fix tests

* chore: format

* fix ERC-7677 endpoints

* fix test cases

* remove getAccount util

* add comments

* add changeset

* rename method to prepareUserOperationWithErc20Paymaster

* fix PR comments

* lint

* fix

* set error message

* add getChainId, rename to prepareUserOperationForErc20Paymaster, remove global experimental export

* lint

* remove changeset

* remove console.log

* chore: format

* fetch chain from account

* fix failing tests

* move helper to experimental/pimlico/utils

---------

Co-authored-by: mouseless-eth <[email protected]>
  • Loading branch information
mouseless0x and mouseless-eth authored Oct 7, 2024
1 parent a64398b commit b979f8c
Show file tree
Hide file tree
Showing 18 changed files with 1,914 additions and 586 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"get-port": "^7.0.0",
"tsc-alias": "^1.8.8",
"vitest": "^1.2.0",
"viem": "^2.20.0",
"viem": "^2.21.2",
"wagmi": "^2.12.8",
"@permissionless/wagmi": "workspace:packages/wagmi",
"@types/react": "^18.3.1",
Expand Down
Loading

0 comments on commit b979f8c

Please sign in to comment.