Skip to content

generic-money/generic-app

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Environment Variables

Use .env.local for local configuration.

  • NEXT_PUBLIC_PROJECT_ID: Reown project id.
  • MAINNET_RPC_URL: Mainnet RPC URL used by server-side endpoints.
  • NEXT_PUBLIC_HIDE_USDC_ON_REDEEM: Feature flag (default false). Set to true or 1 to hide USDC from redemption dropdowns while keeping deposits enabled.
  • NEXT_PUBLIC_HIDE_USDT_ON_REDEEM: Feature flag (default false). Set to true or 1 to hide USDT from redemption dropdowns while keeping deposits enabled.
  • NEXT_PUBLIC_HIDE_USDC_USDT_ON_REDEEM: Convenience flag to hide both USDC and USDT on redeem.

Status Transaction Review

In development and test builds, open the app with ?gmTxReview=1 to log each Status withdrawal transaction payload before it reaches the wallet. Review mode is disabled in production builds. The deposit experience lives at /; /deposit redirects there and preserves query parameters. Add gmSkip flags as needed, for example:

/?gmTxReview=1&gmSkip=send,balance,liquidity,attestation

Available skip flags are predeposit, liquidity, balance, allowance, send, receipt, and attestation. Use send when an impersonator can show eth_sendTransaction payloads but cannot actually sign or broadcast them; the app logs the request, returns a fake tx hash, and pauses. In the browser console, use window.gmTxReview.status(), advanceToGUnits({ shares }), advanceToCollateral({ amount }), markBridgeSubmitted({ amount, txHash, recipient }), and clear() to move through impersonator tests without signing real transactions.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Releases

No releases published

Packages

 
 
 

Contributors