You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The PimlicoERC20Paymaster contract inherits from BasePaymaster.
19
19
- updatePrice: Updates the token price by fetching the latest price from the Oracle.
20
20
-_validatePaymasterUserOp: Validates a paymaster user operation and calculates the required token amount for the transaction.
21
21
-_postOp: Performs post-operation tasks, such as updating the token price and refunding excess tokens.
22
+
22
23
### Events
23
24
- ConfigUpdated: Emitted when the price markup and price update threshold configurations are updated.
24
25
@@ -29,6 +30,11 @@ If necessary, the contract owner can withdraw tokens using the withdrawToken fun
29
30
To update the token price, call the updatePrice function.
30
31
For more information, please refer to the comments within the contract source code.
31
32
33
+
## SDK
34
+
You can use permissionless.js to interact with an ERC20 Paymaster. Follow [this link](https://docs.pimlico.io/permissionless/tutorial/tutorial-3) to check out tutorial on how to submit user operation using with an ERC-20 Paymaster.
35
+
36
+
Check out [these docs](https://docs.pimlico.io/permissionless/how-to/paymasters/use-custom-paymaster) if you're going to use a custom paymaster implementation.
37
+
32
38
## Development setup
33
39
34
40
This repository uses both hardhat and foundry for development, and assumes you have already installed hardhat/foundry
0 commit comments