Skip to content

Conversation

@andreabadesso
Copy link
Collaborator

Motivation

What was the motivation for the changes in this PR?

Acceptance Criteria

  • Include here all things that this PR should solve

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

- Add CLI tool for scaffolding Next.js Hathor dApps
- Include complete Hathor Dice game with nano contract integration
- Add wallet components (ConnectWallet, WalletInfo, NetworkSwitcher)
- Implement dice game components with animations and controls
- Add liquidity pool functionality for LPs
- Include comprehensive hooks for contract interactions
- Add utility libraries for probability calculations and formatting
- Create responsive UI with Tailwind CSS
- Include detailed documentation and examples
- Add How It Works page explaining the game mechanics

The template demonstrates:
- MetaMask Snap integration
- Nano contract interactions (deposits, withdrawals, method calls)
- Provably fair dice game with customizable bets
- Liquidity providing with ROI tracking
- Real-time balance and statistics
- Game history with localStorage persistence

Users can run 'npx @hathor/create-hathor-dapp my-dapp' to get started.
- Wrap async functions in useCallback in useHathorWallet hook
- Wrap async functions in useCallback in useContractBalance hook
- Wrap sync function in useCallback in useGameHistory hook
- Wrap async functions in useCallback in NetworkSwitcher component
- Wrap async functions in useCallback in WalletInfo component
- Add proper dependency arrays to all useEffect hooks
- Add package-lock.json for create-hathor-dapp CLI dependencies

These changes prevent ESLint warnings about missing dependencies
and ensure hooks work correctly with React's dependency system.
@dokploy-2025-08-26-6tmu3h
Copy link

dokploy-2025-08-26-6tmu3h bot commented Nov 10, 2025

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
Webwallet ❌ Failed Preview URL 2025-11-10T17:08:37.631Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants