oxowl / paymasterZK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom paymaster tutorial

Code for the "Build a custom paymaster" tutorial from the zkSync v2 documentation.

You can find a full step-by-step guide to build this project in this article.

Installation and compilation

You need Node.js and Yarn.

Install all dependencies with yarn add.

Compile contracts with yarn hardhat compile

Deployment and usage

To run the scripts that deploy, use the zksync-deploy command:

  • yarn hardhat deploy-zksync --script deploy-paymaster.ts: deploys the contracts
  • yarn hardhat deploy-zksync --script use-paymaster.ts: executes the use-paymaster.ts script.

Support

Check out the common errors section in the tutorial, open an issue, or contact us on Discord.

About


Languages

Language:TypeScript 53.4%Language:Solidity 46.6%