This project provides a utility to check the implementation of the permit
function in ERC20 tokens on the Ethereum blockchain. It allows users to verify if a token contract supports gasless transactions by utilizing the permit
function.
- Check permit function implementation in ERC20 tokens.
- Support for EIP-1967 and OpenZeppelin proxies.
- Output results in a color-coded console table format.
- Efficient and parallel processing of multiple tokens.
- Clone the repository:
git clone https://github.com/felinaprotocol/permit-checker.git
- Navigate to the project directory:
cd permit-checker
- Install the dependencies:
bun i
Update the combinedArray.json
file with the list of tokens you want to check.
Run the script:
bun permit
## Documentation
getImplementationAddress
: Retrieves the implementation address for proxy contracts.hasPermitFunction
: Checks if the contract has a permit function.checkContractForPermit
: Verifies the permit function in a single token contract.checkTokensForPermit
: Processes multiple tokens and outputs results.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
## License
This project is licensed under the MIT License - see the LICENSE file for details.