✨ feat: Add SuiBets — decentralised P2P sports betting on Sui blockchain#640
Open
elpou88 wants to merge 5 commits into
Open
✨ feat: Add SuiBets — decentralised P2P sports betting on Sui blockchain#640elpou88 wants to merge 5 commits into
elpou88 wants to merge 5 commits into
Conversation
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.
SuiBets Exchange Connector
SuiBets is a decentralised P2P sports betting dApp on the Sui blockchain. This PR adds it as a new pmxt exchange, making all P2P bet offers queryable through the unified pmxt API.
How it maps to pmxt concepts
UnifiedMarketUnifiedEventYESNOpriceliquiditycontractAddressUsage
What's on-chain
SuiBets uses the Sui blockchain for escrow. When
isOnchain: true, the creator stake is locked in a Move smart contract (contractAddress= Sui object ID). Settlement is fully on-chain — no house, no custody.0xd51fe151bec66a15b086a67c1cfce9b05759ddac1d73fcd3e14324ad202b2e59Files added
core/src/exchanges/suibets/api.ts— Inline OpenAPI spec for SuiBets REST APIcore/src/exchanges/suibets/fetcher.ts— Fetches raw P2P offers from SuiBets APIcore/src/exchanges/suibets/normalizer.ts— Maps offers →UnifiedMarket/UnifiedEventcore/src/exchanges/suibets/index.ts—SuiBetsExchangeclasscore/src/index.ts— RegistersSuiBetsin the pmxt namespacecc @SamTinnerholm — as discussed on X 🙌