Feat/betting ux and stark net transactions#20
Merged
tosoham merged 11 commits intoShonen-Labs:mainfrom May 4, 2025
Merged
Conversation
|
@legend4tech is attempting to deploy a commit to the poulavbhowmick03's projects Team on Vercel. A member of the Team first needs to authorize it. |
tosoham
previously requested changes
May 3, 2025
Contributor
tosoham
left a comment
There was a problem hiding this comment.
There are build errors please resolve
tosoham
reviewed
May 4, 2025
Contributor
tosoham
left a comment
There was a problem hiding this comment.
@legend4tech can you show me a video where you have implemented the betting UI
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.
On-Chain Betting Integration with StarkNet
Overview
This PR implements the full frontend flow for on-chain betting via StarkNet, including:
⚠️ Note: Transactions are currently mocked—functionality is in place, but no real contract calls are made yet (see Next Steps).
✅ Wallet connection & authentication
✅ Agent selection & bet amount input
✅ Transaction triggering & status tracking
Key Features
1. Wallet Connection
@starknet-react/core2. Betting Interface
3. Transaction Handling (Mocked)
Technical Notes
File Structure
Why Mocked Transactions?
The frontend logic is fully functional, but since no betting contract has been deployed yet:
lib/starknet.tsTesting Instructions
Next Steps
To enable real transactions, we need:
lib/starknet.tswith actual contract callsProvidersThis PR delivers the complete frontend foundation—backend integration will be seamless once the contract is ready.
This version:
Closes #8