Permit2 by Uniswap is an amazing development that will revolutionize the UX in Web3. However, it can be hard to migrate existing contracts to use this new way of transferring tokens.
To help in those cases, we've built the Universal Permit2 Adapter. It's basically an adapter that can be used to give Permit2 capabilities to existing contracts, without having to to re-deploy.
If you'd like to interact with these contracts, we suggest you use our SDK that already handles most of the complexities around it.
This is a list of the most frequently needed commands.
Build the contracts:
$ forge build
Delete the build artifacts and cache directories:
$ forge clean
Compile the contracts:
$ forge build
Get a test coverage report:
$ forge coverage
Format the contracts:
$ forge fmt
Get a gas report:
$ forge test --gas-report
Lint the contracts:
$ pnpm lint
Run the tests:
$ forge test
This code has been audited by Omniscia.io. You can find the report here.
This project is licensed under MIT.