https://github.com/zilliqa/zq2-staking
https://github.com/zilliqa/zq2-staking
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zilliqa/zq2-staking
- Owner: Zilliqa
- Created: 2024-10-30T10:43:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-11T11:41:41.000Z (12 months ago)
- Last Synced: 2025-07-11T14:07:49.397Z (12 months ago)
- Language: TypeScript
- Size: 4.44 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZQ Staking Portal
## Running locally
1. Install dependencies
```sh
npm install
```
2. Run the development server
```sh
npm run dev
```
3. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Environments
Rename selected environment to `.env` to use it with `npm run dev`.
### .env.mocked_wallet
This enables easy UX/UI workflow where you can modify the wallet states in the code to check for different scenarios.
### .env.local_zq2
This one makes the app connected to locally run docker-compose ZQ2 network.
## Adding new Delegator
1. Fetch delegator static data using `npx tsx src/script/fetchPoolStaticData.ts`
## Deployment
The app is powered by `z app` utility. The `prototestnet` deployment is automatic on push to `main` branch. The `protomainnet` deployment is automatic on release. Deployment to `devnet` environment requires manual `z app sync`.