Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

zkpaypay/zkpaypay-webapp

Repository files navigation

ZKpaypay

Demo Page

Youtube Demo Movie is below. Demo movie

Deployment is done by updating the forked repository below and deploying to Vercel.

Overview

Akindo description page is here

System Architecture

The overall architecture is as follows. This repository corresponds to the Frontend in the diagram.

System Architecture

Contracts deployed on the Sepolia Scroll testnet are as follows.

Contract Name Address URL
Scroll JPY 0xba3e23dd4263ecfaf6e861a0a2c468c2ee2c3186 Scrollscan
ZKpaypay 0x5C848dcFf45257c7758dEdF1e975026b1dfE2db1 Scrollscan

For information about contracts, please refer to the following repository.

Technologies Used

Technology Use URL
Scroll Seporia Execution base of Plasma Next Contracts scroll.io
Cabinet RPC Node for Scroll Seporia cabinet-node.com
ENS Name resolution of wallet addresses ens.domains
rainbowkit Wallet rainbowkit.io
web3auth Wallet provider web3auth.io

Quick Start

Create .env.local and set the following environment variables.

# Seporia Scroll's RPC JSON API key issued at https://app.cabinet-node.com/
NEXT_PUBLIC_CABINET_SCROLL_SEPORIA_RPC_JSON_API_KEY=${JSON API Key}
# The Client Secret of the application registered at https://dashboard.web3auth.io/
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=${Client ID}

# Supabase settings
NEXT_PUBLIC_SUPABASE_URL=${Supabase URL}
NEXT_PUBLIC_SUPABASE_ANON_KEY=${Supabase Anon Key}

Launch the development environment with the following command.

npm run dev

For Developers

Fetching the schema from supabase

Run the following command and generate database.types.ts.

supabase gen types --lang=typescript --project-id xttxgubekhgwkbvseoxw --schema public > database.types.ts