account abstraction core, include account, factory, paymaster..e.g.
ERC20 Paymaster is an ERC-4337 Paymaster contract by TokenPocket which is able to sponsor gas fees in exchange for ERC20 tokens. The contract uses an Oracle to fetch the latest token prices, power by ChainLink.
This repository uses hardhat for development, and assumes you have already installed hardhat.
Hardhat is used for gas metering and developing sdk.
- install dependencies
npm install
- compile contracts
npx hardhat compile
- deploy
npx hardhat run ./scripts/deploy.ts
optional: run test or run coverage
npx hardhat test
npx hardhat coverage
tools for deploying the same contract address
uses an Oracle to fetch the latest token prices, power by ChainLink Price Feed
any ERC20 token can be used to pay for gas