Paymaster UI Starter Template ๐
Welcome to the Paymaster UI Starter Template! This is a frontend application configured to interact with various Paymaster contracts. It's built with the fast, modern web framework, Next.js, and is designed to run on the zkSync Testnet.
Getting Started ๐
To get started with the project, install the dependencies from the root directory with:
yarn install
Next, compile and deploy the required contracts. To do so in the root project directory, run:
yarn compile && yarn deploy
This will compile and deploy all the contracts located in ../contracts/contracts.
Following this, update the consts to include the deployed contract addresses for the Paymaster, Greeter, and ERC721 contracts.
Running the Application ๐โโ๏ธ
To run the application, use the following command:
yarn dev
This command starts the Next.js server on localhost:3000.
Interacting with Paymaster Contracts ๐ฅ๏ธ
To interact with the Paymaster contracts, navigate to localhost:3000 in your web browser. Please ensure you have MetaMask set up for the zkSync Testnet.
Should you possess the applicable NFT, the transaction fees will be covered by the Paymaster.
Enter a new greeting message and submit it by clicking the "Change greeting" button.
Please note, the application is currently deployed only on the zkSync Testnet, so you'll need to have an account on that network, and some testnet funds to use it.
Contributing ๐โโ๏ธ
We welcome all contributors! If you're interested in contributing to this project, please follow the steps below:
- Fork the repository
- Create a new branch for your changes
- Implement your changes and commit them
- Push your changes to your fork
- Submit a pull request to the main repository
Your contribution will be reviewed and, if it's beneficial to the project, merged into the main branch. Thank you for your interest in our project!