Build/configure vercel - migrate to Sepolia testnet#8
Merged
davidmelendez merged 7 commits intoOct 13, 2025
Merged
Conversation
…o Sepolia, and modify RandomnessComponent with new contract addresses and temporary dev mode implementation for randomness generation.
…terface for randomness generation, and remove unused code for improved clarity and performance.
…amline error handling and improve code clarity.
xJeffx23
approved these changes
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: migrate to Sepolia testnet and simplify Randomness UI
📌 Description
This PR migrates the entire project from local devnet to Sepolia testnet and simplifies the Randomness component UI to focus exclusively on the development mode (
devnet_generatefunction). Additionally, it fixes TypeScript build errors on Vercel and improves the handling of invalid contracts in localStorage.🎯 Motivation and Context
The project needed to be deployed to a public testnet (Sepolia) for broader testing and accessibility. The previous setup was configured only for local devnet, causing deployment failures on Vercel. Additionally, the Randomness component had complex VRF production mode options that were not yet functional, creating confusion for users.
Key issues resolved:
minimatchtype definitions🛠️ How to Test the Change
devnet_generateget_generation_numbers(id)🖼️ Screenshots
Production URL: https://starklottorandoness.vercel.app/debug
The UI now shows a simplified interface focused on development mode generation.
🔍 Type of Change
📝 Changes Made
1. Vercel Build Fixes
minimatch@^9.0.3to devDependencies to resolve TypeScript build errorsNEXT_PUBLIC_SEPOLIA_PROVIDER_URL2. Network Migration (Devnet → Sepolia)
Modified files:
packages/nextjs/scaffold.config.ts: ChangedtargetNetworksfrom[chains.devnet]to[chains.sepolia]packages/snfoundry/deployments/: Removeddevnet_latest.jsonpackages/nextjs/contracts/deployedContracts.ts: Regenerated with only Sepolia contracts3. Randomness Component Simplification
File:
packages/nextjs/app/debug/_components/contract/RandomnessComponent.tsxRemoved:
request_randomness_prod)Simplified to:
devnet_generatefunction4. localStorage Handling Improvements
File:
packages/nextjs/app/debug/_components/DebugContracts.tsx5. Code Cleanup
File:
packages/nextjs/services/web3/provider.ts✅ Checklist Before Merging
📌 Additional Notes
Environment Variables Required
The following environment variable must be configured in Vercel:
NEXT_PUBLIC_SEPOLIA_PROVIDER_URL=https://starknet-sepolia.public.blastapi.io/rpc/v0_7
Future Work
RandomnessComponent.tsxis preserved for future implementationContract Addresses (Sepolia)
0x2e91ef979c67ef901846fed17a9d72c9c745536266d01962339076bd7717714Known Limitations
devnet_generatefor random number generation (local algorithm with seed)