Skip to content
/ AA-Core Public

account abstraction core, include account, paymaster..e.g.

Notifications You must be signed in to change notification settings

TP-Lab/AA-Core

Repository files navigation

TokenPocket AA Core

Overview

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.

Development setup

This repository uses hardhat for development, and assumes you have already installed hardhat.

hardhat

Hardhat is used for gas metering and developing sdk.

  1. install dependencies
npm install
  1. compile contracts
npx hardhat compile
  1. deploy
npx hardhat run ./scripts/deploy.ts

optional: run test or run coverage

npx hardhat test
npx hardhat coverage

Deployed Contracts

Polygon Mainnet

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