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 buildDelete the build artifacts and cache directories:
$ forge cleanCompile the contracts:
$ forge buildGet a test coverage report:
$ forge coverageFormat the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-reportLint the contracts:
$ pnpm lintRun the tests:
$ forge testThis code has been audited by Omniscia.io. You can find the report here.
This project is licensed under MIT.