Skip to content

tokenguardio/Paymaster-Management-App

Repository files navigation

Paymaster Management App

Introduction

The Paymaster Policy Manager is a management tool for creating, editing, and monitoring Paymaster policies. It’s designed for ecosystem and dApp managers who need fine-grained control over gas sponsorship rules and visibility into how those policies are being used.

Start the App with Docker

To run the Paymaster Management App using Docker Compose, follow the instructions below.

Prerequisites:

1. Set up environment variables

Before running the app, make sure to create and configure the required .env files:

  • Copy example files:
    cp apps/backend/.env.example apps/backend/.env
    cp packages/prisma/.env.example packages/prisma/.env
  • Edit apps/backend/.env to provide the necessary values. Required configuration for apps/backend/.env includes:
    • Blockchain Configuration:

      • ETHEREUM_RPC_URL - Ethereum Mainnet RPC endpoint URL
      • SEPOLIA_RPC_URL - Ethereum Sepolia testnet RPC endpoint URL
    • Paymaster Signer Configuration:

      • PAYMASTER_SIGNER_PRIVATE_KEY - Private key for signing paymaster operations (with 0x prefix)
      • PAYMASTER_SIGNER_ADDRESS - Address derived from the signer private key
      • PAYMASTER_ADDRESS - Deployed paymaster contract address
    • EIP-712 Domain Configuration:

      • PAYMASTER_EIP712_DOMAIN_NAME - Domain name for EIP-712 signing (e.g., "MyPaymasterECDSASigner")
      • PAYMASTER_EIP712_DOMAIN_VERSION - Domain version for EIP-712 signing (e.g., 1)
      • PAYMASTER_EIP712_DOMAIN_SIGNATURE_TTL_SECONDS - Signature validity duration in seconds (e.g., 600)

2. Build and run all services

docker compose up --build

3. Access the applications

4. Run in detached mode

docker compose up -d --build

5. Stop services

docker compose down

Local development setup

See README.local-dev.md for instructions on running the app locally as a contributor or maintainer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •