Skip to content

codeesura/zksync-paymaster

Repository files navigation

Overview

zksync-paymaster is a repository containing scripts and configurations for deploying and utilizing a paymaster smart contract on the zkSync network. This repository provides a streamlined way to interact with ERC20 tokens and a paymaster contract, specifically designed to work with Hardhat and zkSync's Ethereum Layer 2 scaling solution.

Prerequisites

Before you start, ensure you have the following installed:

Installation

Manual Installation

  1. Clone the Repository:
git clone https://github.com/codeesura/zksync-paymaster.git
cd zksync-paymaster
cp .env.example .env
  1. Install Dependencies:
yarn install
# or
npm install
  1. Environment Setup: Create a .env file in the root directory and set the following environment variables:
DEPLOYER_WALLET_PRIVATE_KEY=your_wallet_private_key_here

Docker-Based Installation

  1. Clone the Repository:
git clone https://github.com/codeesura/zksync-paymaster.git
cd zksync-paymaster
cp .env.example .env
  1. Set Up .env File

Ensure your .env file contains the necessary private key:

DEPLOYER_WALLET_PRIVATE_KEY=your_wallet_private_key_here
  1. Build and Run with Docker:
docker build -t zksync-paymaster .
docker run -p 3000:3000 zksync-paymaster

About

zksync-paymaster is a repository containing scripts and configurations for deploying and utilizing a paymaster smart contract on the zkSync network.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published