8000 GitHub - gin/2025-chromion
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gin/2025-chromion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2025-chromion

Quick start

# Install dependencies (Foundry, Expo, Next, and the dependencies within those)
make install

# Open a new terminal window to start a local blockchain
make anvil

# Deploy vault
make deploy

# Try out the mobile app
make dev.mobile

# Try out the web app
make dev.web

Notes

#-------------------------------------------------------------------------------
# Mobile app (Expo: iOS)
# purpose: to record game performance
#-------------------------------------------------------------------------------
cd mobile-app

# Copy and paste your Google Maps API key to create a .env file
echo "EXPO_PUBLIC_GOOGLE_MAPS_KEY=your_google_maps_api_key" > .env 

# Using npm because Expo needs extra setup to use pnpm
npm install
npx expo start


#-------------------------------------------------------------------------------
# Smart contract (Foundry)
# purpose: for money vault
#-------------------------------------------------------------------------------
cd contract
forge build


#-------------------------------------------------------------------------------
# Frontend (Web)
# purpose: analytics
#-------------------------------------------------------------------------------
cd frontend
pnpm add @rainbow-me/rainbowkit
pnpm add wagmi viem@2.x @tanstack/react-query

# UI related
pnpm add react-icons

# Frontend testing
pnpm add -D @synthetixio/synpress
pnpm create playwright

# Run frontend tests
pnpm exec playwright test
pnpm exec playwright test --ui
pnpm exec playwright test --headed

# Create cache for frontend tests
pnpm synpress
pnpm synpress tests/wallet-setup

Bugs in dependencies

Synpress 4.0.5

Reported: Synthetixio/synpress#1285
[🐛 Bug]: CLI's wallet-setup cache builder looks for wallet-setup in a different location to docs
Description
For wallet-setup config, docs is using wallet-setup/basic.setup.ts but npx synpress looks in test/wallet-setup/basic.setup.ts. Using tests/ (with letter "s") prefix errors. User can resolve this by specifying the path with npx synpress tests/wallet-setup.

Fix suggestion
either:

  • (Preferred fix) update docs to instruct users to use tests/wallet-setup/basic.setup.ts (this matches the tests/ directory for example.spec.ts in the docs), and then update CLI to look in tests/ instead of test/

or

  • update CLI to look in wallet-setup/ instead of test/wallet-setup/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0