mirror of
https://github.com/placeholder-soft/web.git
synced 2026-01-12 22:45:00 +08:00
83bc4f642b7eb46e08ea8e65feb136f42bf1ed46
* early wiring for basenames frame * renamed mint to inputSearchValue, improved logic * changed response object * improved flow for basenames frame * updated metadata for frame landing page * stronger type checking for isNameAvailable * removed unnecessary code * improved logic * created API endpoint to fetch registration price * deleted unused frame * refactored isNameAvailable * updated confirmation frame * prepped through confirmation * testing tx * testing in staging env * removed trailing slash from url * created dynamic frameImage * updates to frame response values * linter fixes * linter fixes * improved error handling * added formattedTargetName to state for confirmation frame * updated initialSearchValueFrame to take an optional error argument * linter fixes * updated return value to handle errors * improved error handling * added error handling to frameImage * added strict types for formatEthPrice * linter fix * add strict types * linter fix * minor type fixes * added strict types * removed console log * fixed type issues and improved state handling * added user input sanitization * updated domain for testing * tx test fixes * more debugging * debugging * decoded message state before parsing * logging message and message state * updated resolver and registrar conroller addresses * added name and address args to registration * debugging api encoding * added test address * added addressData to name registration * added nameData to registration * added tx success screen * linter fixes * linter fix * added public images * added dynamic images and image generators * deleted unused image generator * constant initial search frame * updated error handling * updated frameResponses with new images and CTAs * linter fix * updated domain handling for registration image * added error logging to capture message and messageState * debugging background image * restoring correct bg image for registration frame * debugging * allowed name to be string * fixed type issues * strictly typed response data * fixed typing issues * refactored tx frame logic * refactored to use base.id instead of 8453 * added type for initialFrame * improved error messaging * export type * updated txSuccessFrame * updated txSuccess logic * tx success button is now a link * images in public directory * reworked placeholder landing page * explicitly typed initialFrame * refactored to use viem instead of ethers * refactored to use viem * linter fixes * updated domain logic * updated to base instead of sepolia, removed comments * created normalizeName utility * implemented normalizeName, moved validation logic into try block * undoing changes to names landing page * undoing changes to names landing page * updated image name and import path * updated image import and implemented util * updated image import * updated image handling * moved images out of public * improvements from pairing session * modifying domain for tx testing * added enum type to raw error messages, fixed linter issues * error message for invalid underscores * updated neynar keys to env vars * separate functions for formatting wei and convering wei to eth * created file for shared constants * updated imports * updated imports * updated imports * added conditional error if no neynar key is detected * unified domain value across pages * updated imports * minor refactor * removed unused import * reduced abi to necessary method * better variable name
Base Web
Base is a secure, low-cost, developer-friendly Ethereum L2 built to bring the next billion users onchain. It's built on Optimism’s open-source OP Stack.
Setup
- Ensure
nvmis installed. - Clone the repository.
- If
nvmdoesn't auto-load the Node.js environment when changing to the repo directory, runnvm use. - Enable Yarn by running
corepack enable.
Getting started
After cloning the repository begin by installing dependencies at the root.
yarn
yarn build
Local development
To start a development server on localhost, run yarn workspace @app/<project> dev.
For example, to start the web app locally, you would run yarn workspace @app/web dev.
Projects
There are three projects which can be run individually.
Web
yarn workspace @app/web dev
Docs
yarn workspace @app/base-docs dev
Bridge
yarn workspace @app/bridge dev
Contribution
We welcome contributions to Base! To contribute, please see CONTRIBUTING.md.
Description
Languages
TypeScript
81.5%
JavaScript
14.2%
CSS
3.7%
MDX
0.3%
Shell
0.2%
