react-native-monflowts 0.0.0-stage → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/Monflowts.podspec +22 -0
- package/README.md +229 -2
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +8 -0
- package/android/src/main/java/com/monflowts/MonflowtsAssetsModule.kt +219 -0
- package/android/src/main/java/com/monflowts/MonflowtsCrashFeedModule.kt +175 -0
- package/android/src/main/java/com/monflowts/MonflowtsHapticModule.kt +170 -0
- package/android/src/main/java/com/monflowts/MonflowtsLottieView.kt +96 -0
- package/android/src/main/java/com/monflowts/MonflowtsLottieViewManager.kt +53 -0
- package/android/src/main/java/com/monflowts/MonflowtsPackage.kt +70 -0
- package/android/src/main/java/com/monflowts/MonflowtsSoundModule.kt +132 -0
- package/android/src/main/java/com/monflowts/MonflowtsSpeechModule.kt +81 -0
- package/android/src/main/java/com/monflowts/MonflowtsSvgView.kt +355 -0
- package/android/src/main/java/com/monflowts/MonflowtsSvgViewManager.kt +59 -0
- package/android/src/main/java/com/monflowts/MonflowtsWebView.kt +86 -0
- package/android/src/main/java/com/monflowts/MonflowtsWebViewManager.kt +33 -0
- package/android/src/main/java/com/monflowts/MonflowtsWheelView.kt +98 -0
- package/android/src/main/java/com/monflowts/MonflowtsWheelViewManager.kt +46 -0
- package/ios/Monflowts-Bridging-Header.h +5 -0
- package/ios/MonflowtsAssetsBridge.m +14 -0
- package/ios/MonflowtsAssetsModule.swift +217 -0
- package/ios/MonflowtsCrashFeedBridge.m +9 -0
- package/ios/MonflowtsCrashFeedModule.swift +88 -0
- package/ios/MonflowtsHTTP1EventSource.swift +296 -0
- package/ios/MonflowtsHapticBridge.m +8 -0
- package/ios/MonflowtsHapticModule.swift +55 -0
- package/ios/MonflowtsLottieBridge.m +12 -0
- package/ios/MonflowtsLottieUIView.swift +95 -0
- package/ios/MonflowtsLottieViewManager.swift +13 -0
- package/ios/MonflowtsSSEParser.swift +58 -0
- package/ios/MonflowtsSoundBridge.m +8 -0
- package/ios/MonflowtsSoundModule.swift +100 -0
- package/ios/MonflowtsSpeechBridge.m +9 -0
- package/ios/MonflowtsSpeechModule.swift +61 -0
- package/ios/MonflowtsSvgBridge.m +11 -0
- package/ios/MonflowtsSvgUIView.swift +431 -0
- package/ios/MonflowtsSvgViewManager.swift +13 -0
- package/ios/MonflowtsWebBridge.m +8 -0
- package/ios/MonflowtsWebUIView.swift +92 -0
- package/ios/MonflowtsWebViewManager.swift +14 -0
- package/ios/MonflowtsWheelBridge.m +7 -0
- package/ios/MonflowtsWheelUIView.swift +126 -0
- package/ios/MonflowtsWheelViewManager.swift +14 -0
- package/lib/module/HapticsManager.js +93 -0
- package/lib/module/HapticsManager.js.map +1 -0
- package/lib/module/HubContent.js +642 -0
- package/lib/module/HubContent.js.map +1 -0
- package/lib/module/Icons.js +64 -0
- package/lib/module/Icons.js.map +1 -0
- package/lib/module/MonflowtsHub.js +233 -0
- package/lib/module/MonflowtsHub.js.map +1 -0
- package/lib/module/NativeLottieView.js +6 -0
- package/lib/module/NativeLottieView.js.map +1 -0
- package/lib/module/NativeSvgView.js +6 -0
- package/lib/module/NativeSvgView.js.map +1 -0
- package/lib/module/NativeWebView.js +14 -0
- package/lib/module/NativeWebView.js.map +1 -0
- package/lib/module/NativeWheelView.js +6 -0
- package/lib/module/NativeWheelView.js.map +1 -0
- package/lib/module/SoundManager.js +120 -0
- package/lib/module/SoundManager.js.map +1 -0
- package/lib/module/SpeechManager.js +40 -0
- package/lib/module/SpeechManager.js.map +1 -0
- package/lib/module/api/client.js +109 -0
- package/lib/module/api/client.js.map +1 -0
- package/lib/module/api/gameTypes.js +2 -0
- package/lib/module/api/gameTypes.js.map +1 -0
- package/lib/module/api/http.js +252 -0
- package/lib/module/api/http.js.map +1 -0
- package/lib/module/api/mutations.js +359 -0
- package/lib/module/api/mutations.js.map +1 -0
- package/lib/module/api/playerTypes.js +2 -0
- package/lib/module/api/playerTypes.js.map +1 -0
- package/lib/module/api/queries.js +403 -0
- package/lib/module/api/queries.js.map +1 -0
- package/lib/module/api/sdkTypes.js +2 -0
- package/lib/module/api/sdkTypes.js.map +1 -0
- package/lib/module/assets/assetKeys.js +4 -0
- package/lib/module/assets/assetKeys.js.map +1 -0
- package/lib/module/assets/assetSync.js +61 -0
- package/lib/module/assets/assetSync.js.map +1 -0
- package/lib/module/assets/nativeAssets.js +25 -0
- package/lib/module/assets/nativeAssets.js.map +1 -0
- package/lib/module/assets/remote.js +47 -0
- package/lib/module/assets/remote.js.map +1 -0
- package/lib/module/components/AbandonPolicyNotice.js +200 -0
- package/lib/module/components/AbandonPolicyNotice.js.map +1 -0
- package/lib/module/components/AnimatedAmount.js +39 -0
- package/lib/module/components/AnimatedAmount.js.map +1 -0
- package/lib/module/components/CoinFlyOverlay.js +157 -0
- package/lib/module/components/CoinFlyOverlay.js.map +1 -0
- package/lib/module/components/GameCharacter.js +45 -0
- package/lib/module/components/GameCharacter.js.map +1 -0
- package/lib/module/components/GameRulesModal.js +279 -0
- package/lib/module/components/GameRulesModal.js.map +1 -0
- package/lib/module/components/HypeCallout.js +103 -0
- package/lib/module/components/HypeCallout.js.map +1 -0
- package/lib/module/components/InsufficientFundsOverlay.js +285 -0
- package/lib/module/components/InsufficientFundsOverlay.js.map +1 -0
- package/lib/module/components/JackpotNearMiss.js +89 -0
- package/lib/module/components/JackpotNearMiss.js.map +1 -0
- package/lib/module/components/JackpotTeaser.js +341 -0
- package/lib/module/components/JackpotTeaser.js.map +1 -0
- package/lib/module/components/MonflowtsButton.js +129 -0
- package/lib/module/components/MonflowtsButton.js.map +1 -0
- package/lib/module/components/MonflowtsChipGroup.js +40 -0
- package/lib/module/components/MonflowtsChipGroup.js.map +1 -0
- package/lib/module/components/MonflowtsPressable.js +42 -0
- package/lib/module/components/MonflowtsPressable.js.map +1 -0
- package/lib/module/components/QuitConfirmModal.js +180 -0
- package/lib/module/components/QuitConfirmModal.js.map +1 -0
- package/lib/module/components/SessionTimer.js +77 -0
- package/lib/module/components/SessionTimer.js.map +1 -0
- package/lib/module/components/SideDemoTab.js +110 -0
- package/lib/module/components/SideDemoTab.js.map +1 -0
- package/lib/module/components/StakeInput.js +138 -0
- package/lib/module/components/StakeInput.js.map +1 -0
- package/lib/module/constants.js +50 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/content.js +21 -0
- package/lib/module/content.js.map +1 -0
- package/lib/module/effects/EffectBurst.js +56 -0
- package/lib/module/effects/EffectBurst.js.map +1 -0
- package/lib/module/effects/beaverStates.js +11 -0
- package/lib/module/effects/beaverStates.js.map +1 -0
- package/lib/module/effects/hypePhrases.js +67 -0
- package/lib/module/effects/hypePhrases.js.map +1 -0
- package/lib/module/effects/particleAnims.js +17 -0
- package/lib/module/effects/particleAnims.js.map +1 -0
- package/lib/module/hooks/useAvailableGames.js +29 -0
- package/lib/module/hooks/useAvailableGames.js.map +1 -0
- package/lib/module/hooks/useCrash.js +137 -0
- package/lib/module/hooks/useCrash.js.map +1 -0
- package/lib/module/hooks/useCrashFeed.js +49 -0
- package/lib/module/hooks/useCrashFeed.js.map +1 -0
- package/lib/module/hooks/useCurrency.js +13 -0
- package/lib/module/hooks/useCurrency.js.map +1 -0
- package/lib/module/hooks/useFairSeed.js +55 -0
- package/lib/module/hooks/useFairSeed.js.map +1 -0
- package/lib/module/hooks/useGameEvents.js +186 -0
- package/lib/module/hooks/useGameEvents.js.map +1 -0
- package/lib/module/hooks/useGameHistory.js +55 -0
- package/lib/module/hooks/useGameHistory.js.map +1 -0
- package/lib/module/hooks/useLeaderboard.js +83 -0
- package/lib/module/hooks/useLeaderboard.js.map +1 -0
- package/lib/module/hooks/useMines.js +166 -0
- package/lib/module/hooks/useMines.js.map +1 -0
- package/lib/module/hooks/useNotifications.js +66 -0
- package/lib/module/hooks/useNotifications.js.map +1 -0
- package/lib/module/hooks/usePlayGame.js +408 -0
- package/lib/module/hooks/usePlayGame.js.map +1 -0
- package/lib/module/hooks/usePlinko.js +75 -0
- package/lib/module/hooks/usePlinko.js.map +1 -0
- package/lib/module/hooks/useRaffleDrawState.js +57 -0
- package/lib/module/hooks/useRaffleDrawState.js.map +1 -0
- package/lib/module/hooks/useRefreshWallet.js +24 -0
- package/lib/module/hooks/useRefreshWallet.js.map +1 -0
- package/lib/module/hooks/useResponsive.js +16 -0
- package/lib/module/hooks/useResponsive.js.map +1 -0
- package/lib/module/hooks/useRevealWin.js +120 -0
- package/lib/module/hooks/useRevealWin.js.map +1 -0
- package/lib/module/hooks/useScreenShake.js +32 -0
- package/lib/module/hooks/useScreenShake.js.map +1 -0
- package/lib/module/hooks/useWallet.js +77 -0
- package/lib/module/hooks/useWallet.js.map +1 -0
- package/lib/module/i18n.js +104 -0
- package/lib/module/i18n.js.map +1 -0
- package/lib/module/index.js +22 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lottieAnimations.js +15 -0
- package/lib/module/lottieAnimations.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/stores/assetStore.js +140 -0
- package/lib/module/stores/assetStore.js.map +1 -0
- package/lib/module/stores/authStore.js +47 -0
- package/lib/module/stores/authStore.js.map +1 -0
- package/lib/module/stores/gameStore.js +23 -0
- package/lib/module/stores/gameStore.js.map +1 -0
- package/lib/module/stores/sdkInitStore.js +155 -0
- package/lib/module/stores/sdkInitStore.js.map +1 -0
- package/lib/module/stores/settingsStore.js +40 -0
- package/lib/module/stores/settingsStore.js.map +1 -0
- package/lib/module/theme.js +160 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/apolloError.js +69 -0
- package/lib/module/utils/apolloError.js.map +1 -0
- package/lib/module/utils/crashMultiplier.js +8 -0
- package/lib/module/utils/crashMultiplier.js.map +1 -0
- package/lib/module/utils/crashMultiplier.test.js +34 -0
- package/lib/module/utils/crashMultiplier.test.js.map +1 -0
- package/lib/module/utils/deviceAnalytics.js +51 -0
- package/lib/module/utils/deviceAnalytics.js.map +1 -0
- package/lib/module/utils/idempotency.js +66 -0
- package/lib/module/utils/idempotency.js.map +1 -0
- package/lib/module/utils/layout.js +14 -0
- package/lib/module/utils/layout.js.map +1 -0
- package/lib/module/utils/safeInlineScript.js +12 -0
- package/lib/module/utils/safeInlineScript.js.map +1 -0
- package/lib/module/utils/sseClient.js +40 -0
- package/lib/module/utils/sseClient.js.map +1 -0
- package/lib/module/views/DepositSelect.js +275 -0
- package/lib/module/views/DepositSelect.js.map +1 -0
- package/lib/module/views/Dice.js +111 -0
- package/lib/module/views/Dice.js.map +1 -0
- package/lib/module/views/DiceBattle.js +815 -0
- package/lib/module/views/DiceBattle.js.map +1 -0
- package/lib/module/views/DiceLobby.js +577 -0
- package/lib/module/views/DiceLobby.js.map +1 -0
- package/lib/module/views/FortuneWheel.js +892 -0
- package/lib/module/views/FortuneWheel.js.map +1 -0
- package/lib/module/views/Freefall.js +808 -0
- package/lib/module/views/Freefall.js.map +1 -0
- package/lib/module/views/History.js +366 -0
- package/lib/module/views/History.js.map +1 -0
- package/lib/module/views/Home.js +554 -0
- package/lib/module/views/Home.js.map +1 -0
- package/lib/module/views/Jetstream.js +889 -0
- package/lib/module/views/Jetstream.js.map +1 -0
- package/lib/module/views/Leaderboard.js +1206 -0
- package/lib/module/views/Leaderboard.js.map +1 -0
- package/lib/module/views/MillionaireHunter.js +1697 -0
- package/lib/module/views/MillionaireHunter.js.map +1 -0
- package/lib/module/views/Minefield.js +826 -0
- package/lib/module/views/Minefield.js.map +1 -0
- package/lib/module/views/PaymentWebView.js +546 -0
- package/lib/module/views/PaymentWebView.js.map +1 -0
- package/lib/module/views/PlayerCard.js +184 -0
- package/lib/module/views/PlayerCard.js.map +1 -0
- package/lib/module/views/Profile.js +531 -0
- package/lib/module/views/Profile.js.map +1 -0
- package/lib/module/views/RaffleDraw.js +1242 -0
- package/lib/module/views/RaffleDraw.js.map +1 -0
- package/lib/module/views/RevealWin.js +1267 -0
- package/lib/module/views/RevealWin.js.map +1 -0
- package/lib/module/views/Splash.js +363 -0
- package/lib/module/views/Splash.js.map +1 -0
- package/lib/module/views/Success.js +363 -0
- package/lib/module/views/Success.js.map +1 -0
- package/lib/module/views/TicketShop.js +372 -0
- package/lib/module/views/TicketShop.js.map +1 -0
- package/lib/module/views/TriviaLobby.js +582 -0
- package/lib/module/views/TriviaLobby.js.map +1 -0
- package/lib/module/views/TriviaMaster.js +884 -0
- package/lib/module/views/TriviaMaster.js.map +1 -0
- package/lib/module/views/Wallet.js +622 -0
- package/lib/module/views/Wallet.js.map +1 -0
- package/lib/module/views/WithdrawFlow.js +445 -0
- package/lib/module/views/WithdrawFlow.js.map +1 -0
- package/lib/module/views/gridGeometry.js +26 -0
- package/lib/module/views/gridGeometry.js.map +1 -0
- package/lib/module/views/revealWinHelpers.js +29 -0
- package/lib/module/views/revealWinHelpers.js.map +1 -0
- package/lib/module/views/ticketBundlePresets.js +29 -0
- package/lib/module/views/ticketBundlePresets.js.map +1 -0
- package/lib/module/views/triviaHelpers.js +78 -0
- package/lib/module/views/triviaHelpers.js.map +1 -0
- package/lib/module/voiceClips.js +16 -0
- package/lib/module/voiceClips.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/HapticsManager.d.ts +28 -0
- package/lib/typescript/src/HapticsManager.d.ts.map +1 -0
- package/lib/typescript/src/HubContent.d.ts +7 -0
- package/lib/typescript/src/HubContent.d.ts.map +1 -0
- package/lib/typescript/src/Icons.d.ts +14 -0
- package/lib/typescript/src/Icons.d.ts.map +1 -0
- package/lib/typescript/src/MonflowtsHub.d.ts +5 -0
- package/lib/typescript/src/MonflowtsHub.d.ts.map +1 -0
- package/lib/typescript/src/NativeLottieView.d.ts +13 -0
- package/lib/typescript/src/NativeLottieView.d.ts.map +1 -0
- package/lib/typescript/src/NativeSvgView.d.ts +12 -0
- package/lib/typescript/src/NativeSvgView.d.ts.map +1 -0
- package/lib/typescript/src/NativeWebView.d.ts +22 -0
- package/lib/typescript/src/NativeWebView.d.ts.map +1 -0
- package/lib/typescript/src/NativeWheelView.d.ts +9 -0
- package/lib/typescript/src/NativeWheelView.d.ts.map +1 -0
- package/lib/typescript/src/SoundManager.d.ts +29 -0
- package/lib/typescript/src/SoundManager.d.ts.map +1 -0
- package/lib/typescript/src/SpeechManager.d.ts +10 -0
- package/lib/typescript/src/SpeechManager.d.ts.map +1 -0
- package/lib/typescript/src/api/client.d.ts +7 -0
- package/lib/typescript/src/api/client.d.ts.map +1 -0
- package/lib/typescript/src/api/gameTypes.d.ts +326 -0
- package/lib/typescript/src/api/gameTypes.d.ts.map +1 -0
- package/lib/typescript/src/api/http.d.ts +61 -0
- package/lib/typescript/src/api/http.d.ts.map +1 -0
- package/lib/typescript/src/api/mutations.d.ts +22 -0
- package/lib/typescript/src/api/mutations.d.ts.map +1 -0
- package/lib/typescript/src/api/playerTypes.d.ts +53 -0
- package/lib/typescript/src/api/playerTypes.d.ts.map +1 -0
- package/lib/typescript/src/api/queries.d.ts +21 -0
- package/lib/typescript/src/api/queries.d.ts.map +1 -0
- package/lib/typescript/src/api/sdkTypes.d.ts +87 -0
- package/lib/typescript/src/api/sdkTypes.d.ts.map +1 -0
- package/lib/typescript/src/assets/assetKeys.d.ts +3 -0
- package/lib/typescript/src/assets/assetKeys.d.ts.map +1 -0
- package/lib/typescript/src/assets/assetSync.d.ts +41 -0
- package/lib/typescript/src/assets/assetSync.d.ts.map +1 -0
- package/lib/typescript/src/assets/nativeAssets.d.ts +30 -0
- package/lib/typescript/src/assets/nativeAssets.d.ts.map +1 -0
- package/lib/typescript/src/assets/remote.d.ts +8 -0
- package/lib/typescript/src/assets/remote.d.ts.map +1 -0
- package/lib/typescript/src/components/AbandonPolicyNotice.d.ts +16 -0
- package/lib/typescript/src/components/AbandonPolicyNotice.d.ts.map +1 -0
- package/lib/typescript/src/components/AnimatedAmount.d.ts +12 -0
- package/lib/typescript/src/components/AnimatedAmount.d.ts.map +1 -0
- package/lib/typescript/src/components/CoinFlyOverlay.d.ts +17 -0
- package/lib/typescript/src/components/CoinFlyOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/GameCharacter.d.ts +14 -0
- package/lib/typescript/src/components/GameCharacter.d.ts.map +1 -0
- package/lib/typescript/src/components/GameRulesModal.d.ts +10 -0
- package/lib/typescript/src/components/GameRulesModal.d.ts.map +1 -0
- package/lib/typescript/src/components/HypeCallout.d.ts +11 -0
- package/lib/typescript/src/components/HypeCallout.d.ts.map +1 -0
- package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts +12 -0
- package/lib/typescript/src/components/InsufficientFundsOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/JackpotNearMiss.d.ts +8 -0
- package/lib/typescript/src/components/JackpotNearMiss.d.ts.map +1 -0
- package/lib/typescript/src/components/JackpotTeaser.d.ts +13 -0
- package/lib/typescript/src/components/JackpotTeaser.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsButton.d.ts +21 -0
- package/lib/typescript/src/components/MonflowtsButton.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsChipGroup.d.ts +18 -0
- package/lib/typescript/src/components/MonflowtsChipGroup.d.ts.map +1 -0
- package/lib/typescript/src/components/MonflowtsPressable.d.ts +39 -0
- package/lib/typescript/src/components/MonflowtsPressable.d.ts.map +1 -0
- package/lib/typescript/src/components/QuitConfirmModal.d.ts +11 -0
- package/lib/typescript/src/components/QuitConfirmModal.d.ts.map +1 -0
- package/lib/typescript/src/components/SessionTimer.d.ts +14 -0
- package/lib/typescript/src/components/SessionTimer.d.ts.map +1 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts +18 -0
- package/lib/typescript/src/components/SideDemoTab.d.ts.map +1 -0
- package/lib/typescript/src/components/StakeInput.d.ts +16 -0
- package/lib/typescript/src/components/StakeInput.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +21 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/content.d.ts +53 -0
- package/lib/typescript/src/content.d.ts.map +1 -0
- package/lib/typescript/src/effects/EffectBurst.d.ts +20 -0
- package/lib/typescript/src/effects/EffectBurst.d.ts.map +1 -0
- package/lib/typescript/src/effects/beaverStates.d.ts +4 -0
- package/lib/typescript/src/effects/beaverStates.d.ts.map +1 -0
- package/lib/typescript/src/effects/hypePhrases.d.ts +11 -0
- package/lib/typescript/src/effects/hypePhrases.d.ts.map +1 -0
- package/lib/typescript/src/effects/particleAnims.d.ts +9 -0
- package/lib/typescript/src/effects/particleAnims.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAvailableGames.d.ts +14 -0
- package/lib/typescript/src/hooks/useAvailableGames.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCrash.d.ts +13 -0
- package/lib/typescript/src/hooks/useCrash.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCrashFeed.d.ts +22 -0
- package/lib/typescript/src/hooks/useCrashFeed.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCurrency.d.ts +6 -0
- package/lib/typescript/src/hooks/useCurrency.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useFairSeed.d.ts +8 -0
- package/lib/typescript/src/hooks/useFairSeed.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGameEvents.d.ts +50 -0
- package/lib/typescript/src/hooks/useGameEvents.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useGameHistory.d.ts +14 -0
- package/lib/typescript/src/hooks/useGameHistory.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useLeaderboard.d.ts +71 -0
- package/lib/typescript/src/hooks/useLeaderboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useMines.d.ts +11 -0
- package/lib/typescript/src/hooks/useMines.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useNotifications.d.ts +26 -0
- package/lib/typescript/src/hooks/useNotifications.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlayGame.d.ts +62 -0
- package/lib/typescript/src/hooks/usePlayGame.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePlinko.d.ts +8 -0
- package/lib/typescript/src/hooks/usePlinko.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRaffleDrawState.d.ts +50 -0
- package/lib/typescript/src/hooks/useRaffleDrawState.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRefreshWallet.d.ts +8 -0
- package/lib/typescript/src/hooks/useRefreshWallet.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useResponsive.d.ts +8 -0
- package/lib/typescript/src/hooks/useResponsive.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRevealWin.d.ts +10 -0
- package/lib/typescript/src/hooks/useRevealWin.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useScreenShake.d.ts +14 -0
- package/lib/typescript/src/hooks/useScreenShake.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useWallet.d.ts +23 -0
- package/lib/typescript/src/hooks/useWallet.d.ts.map +1 -0
- package/lib/typescript/src/i18n.d.ts +29 -0
- package/lib/typescript/src/i18n.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/lottieAnimations.d.ts +2 -0
- package/lib/typescript/src/lottieAnimations.d.ts.map +1 -0
- package/lib/typescript/src/stores/assetStore.d.ts +17 -0
- package/lib/typescript/src/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/authStore.d.ts +25 -0
- package/lib/typescript/src/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/gameStore.d.ts +14 -0
- package/lib/typescript/src/stores/gameStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/sdkInitStore.d.ts +38 -0
- package/lib/typescript/src/stores/sdkInitStore.d.ts.map +1 -0
- package/lib/typescript/src/stores/settingsStore.d.ts +23 -0
- package/lib/typescript/src/stores/settingsStore.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +149 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +49 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/apolloError.d.ts +12 -0
- package/lib/typescript/src/utils/apolloError.d.ts.map +1 -0
- package/lib/typescript/src/utils/crashMultiplier.d.ts +2 -0
- package/lib/typescript/src/utils/crashMultiplier.d.ts.map +1 -0
- package/lib/typescript/src/utils/crashMultiplier.test.d.ts +2 -0
- package/lib/typescript/src/utils/crashMultiplier.test.d.ts.map +1 -0
- package/lib/typescript/src/utils/deviceAnalytics.d.ts +3 -0
- package/lib/typescript/src/utils/deviceAnalytics.d.ts.map +1 -0
- package/lib/typescript/src/utils/idempotency.d.ts +14 -0
- package/lib/typescript/src/utils/idempotency.d.ts.map +1 -0
- package/lib/typescript/src/utils/layout.d.ts +10 -0
- package/lib/typescript/src/utils/layout.d.ts.map +1 -0
- package/lib/typescript/src/utils/safeInlineScript.d.ts +5 -0
- package/lib/typescript/src/utils/safeInlineScript.d.ts.map +1 -0
- package/lib/typescript/src/utils/sseClient.d.ts +5 -0
- package/lib/typescript/src/utils/sseClient.d.ts.map +1 -0
- package/lib/typescript/src/views/DepositSelect.d.ts +9 -0
- package/lib/typescript/src/views/DepositSelect.d.ts.map +1 -0
- package/lib/typescript/src/views/Dice.d.ts +10 -0
- package/lib/typescript/src/views/Dice.d.ts.map +1 -0
- package/lib/typescript/src/views/DiceBattle.d.ts +15 -0
- package/lib/typescript/src/views/DiceBattle.d.ts.map +1 -0
- package/lib/typescript/src/views/DiceLobby.d.ts +12 -0
- package/lib/typescript/src/views/DiceLobby.d.ts.map +1 -0
- package/lib/typescript/src/views/FortuneWheel.d.ts +13 -0
- package/lib/typescript/src/views/FortuneWheel.d.ts.map +1 -0
- package/lib/typescript/src/views/Freefall.d.ts +13 -0
- package/lib/typescript/src/views/Freefall.d.ts.map +1 -0
- package/lib/typescript/src/views/History.d.ts +7 -0
- package/lib/typescript/src/views/History.d.ts.map +1 -0
- package/lib/typescript/src/views/Home.d.ts +13 -0
- package/lib/typescript/src/views/Home.d.ts.map +1 -0
- package/lib/typescript/src/views/Jetstream.d.ts +14 -0
- package/lib/typescript/src/views/Jetstream.d.ts.map +1 -0
- package/lib/typescript/src/views/Leaderboard.d.ts +8 -0
- package/lib/typescript/src/views/Leaderboard.d.ts.map +1 -0
- package/lib/typescript/src/views/MillionaireHunter.d.ts +13 -0
- package/lib/typescript/src/views/MillionaireHunter.d.ts.map +1 -0
- package/lib/typescript/src/views/Minefield.d.ts +13 -0
- package/lib/typescript/src/views/Minefield.d.ts.map +1 -0
- package/lib/typescript/src/views/PaymentWebView.d.ts +29 -0
- package/lib/typescript/src/views/PaymentWebView.d.ts.map +1 -0
- package/lib/typescript/src/views/PlayerCard.d.ts +15 -0
- package/lib/typescript/src/views/PlayerCard.d.ts.map +1 -0
- package/lib/typescript/src/views/Profile.d.ts +9 -0
- package/lib/typescript/src/views/Profile.d.ts.map +1 -0
- package/lib/typescript/src/views/RaffleDraw.d.ts +12 -0
- package/lib/typescript/src/views/RaffleDraw.d.ts.map +1 -0
- package/lib/typescript/src/views/RevealWin.d.ts +13 -0
- package/lib/typescript/src/views/RevealWin.d.ts.map +1 -0
- package/lib/typescript/src/views/Splash.d.ts +10 -0
- package/lib/typescript/src/views/Splash.d.ts.map +1 -0
- package/lib/typescript/src/views/Success.d.ts +12 -0
- package/lib/typescript/src/views/Success.d.ts.map +1 -0
- package/lib/typescript/src/views/TicketShop.d.ts +15 -0
- package/lib/typescript/src/views/TicketShop.d.ts.map +1 -0
- package/lib/typescript/src/views/TriviaLobby.d.ts +12 -0
- package/lib/typescript/src/views/TriviaLobby.d.ts.map +1 -0
- package/lib/typescript/src/views/TriviaMaster.d.ts +16 -0
- package/lib/typescript/src/views/TriviaMaster.d.ts.map +1 -0
- package/lib/typescript/src/views/Wallet.d.ts +10 -0
- package/lib/typescript/src/views/Wallet.d.ts.map +1 -0
- package/lib/typescript/src/views/WithdrawFlow.d.ts +9 -0
- package/lib/typescript/src/views/WithdrawFlow.d.ts.map +1 -0
- package/lib/typescript/src/views/gridGeometry.d.ts +19 -0
- package/lib/typescript/src/views/gridGeometry.d.ts.map +1 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts +15 -0
- package/lib/typescript/src/views/revealWinHelpers.d.ts.map +1 -0
- package/lib/typescript/src/views/ticketBundlePresets.d.ts +18 -0
- package/lib/typescript/src/views/ticketBundlePresets.d.ts.map +1 -0
- package/lib/typescript/src/views/triviaHelpers.d.ts +31 -0
- package/lib/typescript/src/views/triviaHelpers.d.ts.map +1 -0
- package/lib/typescript/src/voiceClips.d.ts +4 -0
- package/lib/typescript/src/voiceClips.d.ts.map +1 -0
- package/package.json +160 -4
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { t } from "../i18n.js";
|
|
4
|
+
import { gameRules } from "../content.js";
|
|
5
|
+
export function canSubmitTriviaAnswer(input) {
|
|
6
|
+
return !!input.gamePlayId && !input.submissionLocked && !input.showResult;
|
|
7
|
+
}
|
|
8
|
+
export function buildTriviaAnswerPayload(answerIndex) {
|
|
9
|
+
return {
|
|
10
|
+
selectedOptionIndex: answerIndex >= 0 ? answerIndex : null,
|
|
11
|
+
timedOut: answerIndex < 0
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function resolveNextTriviaQuestion(input) {
|
|
15
|
+
if (input.result.sessionComplete) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return input.result.nextQuestion ?? input.questions[input.currentQuestionIndex + 1] ?? null;
|
|
19
|
+
}
|
|
20
|
+
function passRequirement(rules, titleCase) {
|
|
21
|
+
const threshold = rules?.passThreshold;
|
|
22
|
+
const questionCount = rules?.questionCount ?? 0;
|
|
23
|
+
if (!threshold?.value) {
|
|
24
|
+
return questionCount > 0 ? t(titleCase ? 'trivia.pass.allCorrectTitle' : 'trivia.pass.allCorrect', {
|
|
25
|
+
count: questionCount
|
|
26
|
+
}) : t(titleCase ? 'trivia.pass.fullQuizTitle' : 'trivia.pass.fullQuiz');
|
|
27
|
+
}
|
|
28
|
+
if (threshold.type === 'FIXED_COUNT') {
|
|
29
|
+
return questionCount > 0 ? t('trivia.pass.fixedOfTotal', {
|
|
30
|
+
value: threshold.value,
|
|
31
|
+
count: questionCount
|
|
32
|
+
}) : t('trivia.pass.fixed', {
|
|
33
|
+
value: threshold.value
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return t('trivia.pass.percentage', {
|
|
37
|
+
value: threshold.value
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export function formatTriviaPassRequirement(rules) {
|
|
41
|
+
return passRequirement(rules, false);
|
|
42
|
+
}
|
|
43
|
+
function formatTriviaPassRequirementTitle(rules) {
|
|
44
|
+
return passRequirement(rules, true);
|
|
45
|
+
}
|
|
46
|
+
export function formatTriviaPassShort(rules) {
|
|
47
|
+
const threshold = rules?.passThreshold;
|
|
48
|
+
const questionCount = rules?.questionCount ?? 0;
|
|
49
|
+
if (!threshold?.value) {
|
|
50
|
+
return questionCount > 0 ? `${questionCount}/${questionCount}` : t('trivia.pass.shortAll');
|
|
51
|
+
}
|
|
52
|
+
if (threshold.type === 'FIXED_COUNT') {
|
|
53
|
+
return questionCount > 0 ? `${threshold.value}/${questionCount}` : `${threshold.value}`;
|
|
54
|
+
}
|
|
55
|
+
return `${threshold.value}%`;
|
|
56
|
+
}
|
|
57
|
+
export function getTriviaInfoRows(rules) {
|
|
58
|
+
const questionCount = rules?.questionCount ?? gameRules('FAST_FINGER').questionCount ?? 0;
|
|
59
|
+
const timeLimitSeconds = rules?.timeLimitSeconds ?? gameRules('FAST_FINGER').timeLimitSeconds ?? 0;
|
|
60
|
+
return [{
|
|
61
|
+
icon: 'timer',
|
|
62
|
+
label: t('trivia.info.timePerQuestion', {
|
|
63
|
+
seconds: timeLimitSeconds
|
|
64
|
+
}),
|
|
65
|
+
sub: t('trivia.info.timePerQuestionSub')
|
|
66
|
+
}, {
|
|
67
|
+
icon: 'chart',
|
|
68
|
+
label: t('trivia.info.questionCount', {
|
|
69
|
+
count: questionCount
|
|
70
|
+
}),
|
|
71
|
+
sub: t('trivia.info.questionCountSub')
|
|
72
|
+
}, {
|
|
73
|
+
icon: 'trophy',
|
|
74
|
+
label: formatTriviaPassRequirementTitle(rules),
|
|
75
|
+
sub: t('trivia.info.passMarkSub')
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=triviaHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["t","gameRules","canSubmitTriviaAnswer","input","gamePlayId","submissionLocked","showResult","buildTriviaAnswerPayload","answerIndex","selectedOptionIndex","timedOut","resolveNextTriviaQuestion","result","sessionComplete","nextQuestion","questions","currentQuestionIndex","passRequirement","rules","titleCase","threshold","passThreshold","questionCount","value","count","type","formatTriviaPassRequirement","formatTriviaPassRequirementTitle","formatTriviaPassShort","getTriviaInfoRows","timeLimitSeconds","icon","label","seconds","sub"],"sourceRoot":"../../../src","sources":["views/triviaHelpers.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { voiceUrl } from "./assets/remote.js";
|
|
4
|
+
import { useI18nStore } from "./i18n.js";
|
|
5
|
+
const UNSCOPED_VOICE_LANGUAGE = 'en';
|
|
6
|
+
export function isSoundEffect(id) {
|
|
7
|
+
return id.startsWith('#');
|
|
8
|
+
}
|
|
9
|
+
export function clipKeyFor(id, language) {
|
|
10
|
+
if (isSoundEffect(id)) return `voice/sfx_${id.slice(1)}`;
|
|
11
|
+
return language === UNSCOPED_VOICE_LANGUAGE ? `voice/${id}` : `voice/${language}-${id}`;
|
|
12
|
+
}
|
|
13
|
+
export function clipUrlFor(id) {
|
|
14
|
+
return voiceUrl(clipKeyFor(id, useI18nStore.getState().language));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=voiceClips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["voiceUrl","useI18nStore","UNSCOPED_VOICE_LANGUAGE","isSoundEffect","id","startsWith","clipKeyFor","language","slice","clipUrlFor","getState"],"sourceRoot":"../../src","sources":["voiceClips.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,oBAAiB;AAC1C,SAASC,YAAY,QAAQ,WAAQ;AAErC,MAAMC,uBAAuB,GAAG,IAAI;AAEpC,OAAO,SAASC,aAAaA,CAACC,EAAU,EAAW;EACjD,OAAOA,EAAE,CAACC,UAAU,CAAC,GAAG,CAAC;AAC3B;AAEA,OAAO,SAASC,UAAUA,CAACF,EAAU,EAAEG,QAAgB,EAAU;EAC/D,IAAIJ,aAAa,CAACC,EAAE,CAAC,EAAE,OAAO,aAAaA,EAAE,CAACI,KAAK,CAAC,CAAC,CAAC,EAAE;EACxD,OAAOD,QAAQ,KAAKL,uBAAuB,GAAG,SAASE,EAAE,EAAE,GAAG,SAASG,QAAQ,IAAIH,EAAE,EAAE;AACzF;AAEA,OAAO,SAASK,UAAUA,CAACL,EAAU,EAAiB;EACpD,OAAOJ,QAAQ,CAACM,UAAU,CAACF,EAAE,EAAEH,YAAY,CAACS,QAAQ,CAAC,CAAC,CAACH,QAAQ,CAAC,CAAC;AACnE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type HapticIntensity = 'light' | 'medium' | 'heavy' | 'selection' | 'success' | 'warning' | 'error';
|
|
2
|
+
/**
|
|
3
|
+
* Haptic feedback manager.
|
|
4
|
+
*
|
|
5
|
+
* Routes through the native MonflowtsHaptic module when present:
|
|
6
|
+
* - iOS: UIImpactFeedbackGenerator / UISelectionFeedbackGenerator /
|
|
7
|
+
* UINotificationFeedbackGenerator for proper Apple-tuned haptics.
|
|
8
|
+
* - Android (API 29+): VibrationEffect.EFFECT_TICK / EFFECT_CLICK /
|
|
9
|
+
* EFFECT_HEAVY_CLICK — OS-tuned haptic primitives.
|
|
10
|
+
* - Android (API 26-28): VibrationEffect.createOneShot with amplitude.
|
|
11
|
+
*
|
|
12
|
+
* Falls back to RN's Vibration (timed motor burst) when the native module
|
|
13
|
+
* is missing — e.g. running an old build with a fresh JS bundle.
|
|
14
|
+
*/
|
|
15
|
+
export declare class HapticsManager {
|
|
16
|
+
private _isMuted;
|
|
17
|
+
setMute(mute: boolean): void;
|
|
18
|
+
trigger(intensity?: HapticIntensity): void;
|
|
19
|
+
light(): void;
|
|
20
|
+
medium(): void;
|
|
21
|
+
heavy(): void;
|
|
22
|
+
selection(): void;
|
|
23
|
+
success(): void;
|
|
24
|
+
warning(): void;
|
|
25
|
+
error(): void;
|
|
26
|
+
}
|
|
27
|
+
export declare const haptics: HapticsManager;
|
|
28
|
+
//# sourceMappingURL=HapticsManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HapticsManager.d.ts","sourceRoot":"","sources":["../../../src/HapticsManager.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAoC3G;;;;;;;;;;;;GAYG;AACH,qBAAa,cAAc;IACvB,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAI5B,OAAO,CAAC,SAAS,GAAE,eAAyB,GAAG,IAAI;IA2BnD,KAAK,IAAI,IAAI;IACb,MAAM,IAAI,IAAI;IACd,KAAK,IAAI,IAAI;IACb,SAAS,IAAI,IAAI;IACjB,OAAO,IAAI,IAAI;IACf,OAAO,IAAI,IAAI;IACf,KAAK,IAAI,IAAI;CAChB;AAED,eAAO,MAAM,OAAO,gBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HubContent.d.ts","sourceRoot":"","sources":["../../../src/HubContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAqFtD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACvB,MAAM,EAAE,eAAe,CAAC;CAC3B,CA2gBA,CAAC;AA2CF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SvgIconProps {
|
|
3
|
+
name: string;
|
|
4
|
+
d?: string;
|
|
5
|
+
stroked?: boolean;
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
stroke?: string;
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
style?: object;
|
|
11
|
+
}
|
|
12
|
+
declare const SvgIcon: React.FC<SvgIconProps>;
|
|
13
|
+
export default SvgIcon;
|
|
14
|
+
//# sourceMappingURL=Icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../src/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgBD,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6BnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonflowtsHub.d.ts","sourceRoot":"","sources":["../../../src/MonflowtsHub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAwMtD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAW3C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
export interface MonflowtsLottieProps {
|
|
3
|
+
sourceJson: string;
|
|
4
|
+
loop?: boolean;
|
|
5
|
+
speed?: number;
|
|
6
|
+
autoPlay?: boolean;
|
|
7
|
+
playing?: boolean;
|
|
8
|
+
onMonflowtsAnimationFinish?: () => void;
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
}
|
|
11
|
+
declare const MonflowtsLottieView: import("react-native").HostComponent<MonflowtsLottieProps>;
|
|
12
|
+
export default MonflowtsLottieView;
|
|
13
|
+
//# sourceMappingURL=NativeLottieView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeLottieView.d.ts","sourceRoot":"","sources":["../../../src/NativeLottieView.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B,CAAC,EAAE,MAAM,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,mBAAmB,4DAAsE,CAAC;AAChG,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
export interface MonflowtsSvgProps {
|
|
3
|
+
d: string;
|
|
4
|
+
fill?: string;
|
|
5
|
+
stroke?: string;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
svgViewBox?: string;
|
|
8
|
+
style?: ViewStyle;
|
|
9
|
+
}
|
|
10
|
+
declare const MonflowtsSvgView: import("react-native").HostComponent<MonflowtsSvgProps>;
|
|
11
|
+
export default MonflowtsSvgView;
|
|
12
|
+
//# sourceMappingURL=NativeSvgView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeSvgView.d.ts","sourceRoot":"","sources":["../../../src/NativeSvgView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,gBAAgB,yDACyC,CAAC;AAEhE,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
export interface NativeWebViewEvent {
|
|
3
|
+
nativeEvent: {
|
|
4
|
+
data: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
interface NativeWebViewProps {
|
|
8
|
+
html: string;
|
|
9
|
+
onMessage?: (event: NativeWebViewEvent) => void;
|
|
10
|
+
style?: ViewStyle;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Lightweight native WebView bridge.
|
|
14
|
+
*
|
|
15
|
+
* - iOS: WKWebView — JS sends via `window.webkit.messageHandlers.monflowtsBridge.postMessage(str)`
|
|
16
|
+
* - Android: android.webkit.WebView — JS sends via `window.monflowtsBridge.postMessage(str)`
|
|
17
|
+
*
|
|
18
|
+
* Both platforms deliver events as `{ nativeEvent: { data: string } }` to `onMessage`.
|
|
19
|
+
*/
|
|
20
|
+
declare const MonflowtsWebView: import("react-native").HostComponent<NativeWebViewProps>;
|
|
21
|
+
export default MonflowtsWebView;
|
|
22
|
+
//# sourceMappingURL=NativeWebView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeWebView.d.ts","sourceRoot":"","sources":["../../../src/NativeWebView.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,gBAAgB,0DAC0C,CAAC;AAEjE,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { WheelSegment } from './types';
|
|
3
|
+
interface NativeWheelProps {
|
|
4
|
+
segments: WheelSegment[];
|
|
5
|
+
style?: ViewStyle;
|
|
6
|
+
}
|
|
7
|
+
declare const MonflowtsWheelView: import("react-native").HostComponent<NativeWheelProps>;
|
|
8
|
+
export default MonflowtsWheelView;
|
|
9
|
+
//# sourceMappingURL=NativeWheelView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeWheelView.d.ts","sourceRoot":"","sources":["../../../src/NativeWheelView.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,UAAU,gBAAgB;IACtB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,QAAA,MAAM,kBAAkB,wDAC0C,CAAC;AAEnE,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare class SoundManager {
|
|
2
|
+
private _isMuted;
|
|
3
|
+
resume(): void;
|
|
4
|
+
setMute(mute: boolean): void;
|
|
5
|
+
private playNamed;
|
|
6
|
+
playClick(): void;
|
|
7
|
+
playSelect(): void;
|
|
8
|
+
playChestOpen(): void;
|
|
9
|
+
playPurchaseSuccess(): void;
|
|
10
|
+
playCountdownTick(): void;
|
|
11
|
+
playRollTick(): void;
|
|
12
|
+
playWinChime(): void;
|
|
13
|
+
playDrawSound(): void;
|
|
14
|
+
playSpinTick(): void;
|
|
15
|
+
playCoinCollect(): void;
|
|
16
|
+
playCoinDrop(index: number): void;
|
|
17
|
+
playDigThud(): void;
|
|
18
|
+
playMetalPing(index?: number): void;
|
|
19
|
+
playEngineHum(level: number): void;
|
|
20
|
+
playWhoosh(): void;
|
|
21
|
+
playGemReveal(): void;
|
|
22
|
+
playPoof(): void;
|
|
23
|
+
playGameTheme(game: 'plinko' | 'mines' | 'crash'): void;
|
|
24
|
+
playBigWin(): void;
|
|
25
|
+
playEncourage(): void;
|
|
26
|
+
playNearMiss(): void;
|
|
27
|
+
}
|
|
28
|
+
export declare const sounds: SoundManager;
|
|
29
|
+
//# sourceMappingURL=SoundManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoundManager.d.ts","sourceRoot":"","sources":["../../../src/SoundManager.ts"],"names":[],"mappings":"AAoCA,qBAAa,YAAY;IACrB,OAAO,CAAC,QAAQ,CAAS;IAEzB,MAAM,IAAI,IAAI;IAId,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAI5B,OAAO,CAAC,SAAS;IA4BjB,SAAS,IAAI,IAAI;IAIjB,UAAU,IAAI,IAAI;IAIlB,aAAa,IAAI,IAAI;IAIrB,mBAAmB,IAAI,IAAI;IAI3B,iBAAiB,IAAI,IAAI;IAIzB,YAAY,IAAI,IAAI;IAIpB,YAAY,IAAI,IAAI;IAIpB,aAAa,IAAI,IAAI;IAIrB,YAAY,IAAI,IAAI;IAIpB,eAAe,IAAI,IAAI;IAIvB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIjC,WAAW,IAAI,IAAI;IAInB,aAAa,CAAC,KAAK,GAAE,MAAU,GAAG,IAAI;IAItC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlC,UAAU,IAAI,IAAI;IAIlB,aAAa,IAAI,IAAI;IAIrB,QAAQ,IAAI,IAAI;IAIhB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI;IAIvD,UAAU,IAAI,IAAI;IAIlB,aAAa,IAAI,IAAI;IAIrB,YAAY,IAAI,IAAI;CAGvB;AAED,eAAO,MAAM,MAAM,cAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class SpeechManager {
|
|
2
|
+
private _isMuted;
|
|
3
|
+
private _ttsFallback;
|
|
4
|
+
setMute(mute: boolean): void;
|
|
5
|
+
setTtsFallback(enabled: boolean): void;
|
|
6
|
+
say(id: string): void;
|
|
7
|
+
stop(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const speech: SpeechManager;
|
|
10
|
+
//# sourceMappingURL=SpeechManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechManager.d.ts","sourceRoot":"","sources":["../../../src/SpeechManager.ts"],"names":[],"mappings":"AAYA,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAK5B,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAItC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAcrB,IAAI,IAAI,IAAI;CAKb;AAED,eAAO,MAAM,MAAM,eAAsB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApolloClient } from '@apollo/client';
|
|
2
|
+
/**
|
|
3
|
+
* Create a configured Apollo Client for the Monflowts SDK.
|
|
4
|
+
* The player JWT is injected via an auth link on every request.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createApolloClient(apiUrl: string, getToken: () => string | null): ApolloClient;
|
|
7
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAIb,MAAM,gBAAgB,CAAC;AAqExB;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,MAAM,GAAG,IAAI,gBAuB9B"}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Game types — mirrors GQL server engine types
|
|
3
|
+
*/
|
|
4
|
+
export type GameCode = 'MILLIONAIRE_HUNTER' | 'DICE_ROLL' | 'FAST_FINGER' | 'RAFFLE_DRAW' | 'SPIN_WHEEL' | 'REVEAL_WIN' | 'PLINKO' | 'MINES' | 'CRASH';
|
|
5
|
+
export type Channel = 'USSD' | 'MOBILE';
|
|
6
|
+
export type PlayOutcome = 'WIN' | 'LOSS' | 'JACKPOT' | 'CONSOLATION';
|
|
7
|
+
export type PlayStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'EXPIRED' | 'CANCELLED';
|
|
8
|
+
export type RaffleEntryStatus = 'ACTIVE' | 'DRAWN' | 'WON' | 'EXPIRED';
|
|
9
|
+
export interface DemoConfig {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
winRatePercent: number;
|
|
12
|
+
}
|
|
13
|
+
export interface AvailableGame {
|
|
14
|
+
id: string;
|
|
15
|
+
gameCode: GameCode;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string | null;
|
|
18
|
+
tagLine?: string | null;
|
|
19
|
+
imageUrl?: string | null;
|
|
20
|
+
supportedChannels: Channel[];
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
playCost?: PlayCost | null;
|
|
23
|
+
uiConfig?: Record<string, unknown> | null;
|
|
24
|
+
gameplayRules?: GameplayRules | null;
|
|
25
|
+
demoConfig?: DemoConfig | null;
|
|
26
|
+
}
|
|
27
|
+
export interface PlayCost {
|
|
28
|
+
type: 'FIXED' | 'BY_CHANNEL';
|
|
29
|
+
fixedAmountKobo?: number | null;
|
|
30
|
+
channelPricing?: ChannelPriceEntry[] | null;
|
|
31
|
+
}
|
|
32
|
+
export interface ChannelPriceEntry {
|
|
33
|
+
channel: Channel;
|
|
34
|
+
amountKobo: number;
|
|
35
|
+
}
|
|
36
|
+
export interface AbandonPolicy {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
timeoutSeconds: number;
|
|
39
|
+
penaltyType: 'FORFEIT_STAKE';
|
|
40
|
+
}
|
|
41
|
+
export interface GameplayRules {
|
|
42
|
+
stakeOptions?: number[];
|
|
43
|
+
jackpotAmountKobo?: number;
|
|
44
|
+
maxWinKobo?: number;
|
|
45
|
+
abandonPolicy?: AbandonPolicy;
|
|
46
|
+
gridSize?: number;
|
|
47
|
+
treasureCount?: number;
|
|
48
|
+
maxPicks?: number;
|
|
49
|
+
numberOfDice?: number;
|
|
50
|
+
diceCount?: number;
|
|
51
|
+
sides?: number;
|
|
52
|
+
diceSides?: number;
|
|
53
|
+
stakeCountOptions?: number[];
|
|
54
|
+
winDistribution?: Record<string, number>;
|
|
55
|
+
segments?: SpinWheelSegment[];
|
|
56
|
+
spinDurationMs?: number;
|
|
57
|
+
questionCount?: number;
|
|
58
|
+
timeLimitSeconds?: number;
|
|
59
|
+
passThreshold?: {
|
|
60
|
+
type?: 'PERCENTAGE' | 'FIXED_COUNT';
|
|
61
|
+
value?: number;
|
|
62
|
+
};
|
|
63
|
+
greedFactor?: {
|
|
64
|
+
difficultyBias?: string;
|
|
65
|
+
adaptiveTimeReductionPercent?: number;
|
|
66
|
+
};
|
|
67
|
+
maxEntriesPerUser?: number;
|
|
68
|
+
winnersPerDraw?: number;
|
|
69
|
+
drawSchedule?: DrawSchedule | null;
|
|
70
|
+
drawDate?: string;
|
|
71
|
+
ticketBundles?: ConfigTicketBundle[];
|
|
72
|
+
rows?: number;
|
|
73
|
+
cols?: number;
|
|
74
|
+
revealsPerRound?: number;
|
|
75
|
+
roundsPerSession?: number;
|
|
76
|
+
nearMissEnabled?: boolean;
|
|
77
|
+
symbols?: RevealWinSymbol[];
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* DB-driven raffle ticket bundle. Defines the quantity and presentation only — the
|
|
82
|
+
* per-ticket price is server-authoritative (derived from playCost at purchase time), so
|
|
83
|
+
* bundles never carry their own price. `imageKey` references the SDK preset image palette
|
|
84
|
+
* (see ticketBundlePresets.ts).
|
|
85
|
+
*/
|
|
86
|
+
export interface ConfigTicketBundle {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
tickets: number;
|
|
90
|
+
imageKey?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface SpinWheelSegment {
|
|
93
|
+
label: string;
|
|
94
|
+
value: number;
|
|
95
|
+
weight: number;
|
|
96
|
+
payoutKobo: number;
|
|
97
|
+
color?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface DrawSchedule {
|
|
100
|
+
frequency: string;
|
|
101
|
+
weekdays?: number[];
|
|
102
|
+
drawTime?: string;
|
|
103
|
+
timezone?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface PlayResult {
|
|
106
|
+
gamePlayId: string;
|
|
107
|
+
outcome: PlayOutcome;
|
|
108
|
+
amountWonKobo: number;
|
|
109
|
+
prizeTierCode?: string | null;
|
|
110
|
+
gameResult: Record<string, unknown>;
|
|
111
|
+
isDemo?: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface InitPlayResult {
|
|
114
|
+
sessionId: string;
|
|
115
|
+
expiresAt: string;
|
|
116
|
+
amountPaidKobo: number;
|
|
117
|
+
timeoutSeconds: number;
|
|
118
|
+
}
|
|
119
|
+
export interface DiceRollResult {
|
|
120
|
+
playerDice: number[];
|
|
121
|
+
botDice: number[];
|
|
122
|
+
playerSum: number;
|
|
123
|
+
botSum: number;
|
|
124
|
+
diceCount: number;
|
|
125
|
+
diceSides: number;
|
|
126
|
+
session?: {
|
|
127
|
+
currentRound: number;
|
|
128
|
+
totalRounds: number;
|
|
129
|
+
winsAllowed: number;
|
|
130
|
+
isLastRound: boolean;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface SpinWheelResult {
|
|
134
|
+
segmentIndex: number;
|
|
135
|
+
segmentLabel: string;
|
|
136
|
+
segmentPayoutKobo: number;
|
|
137
|
+
totalSegments: number;
|
|
138
|
+
segments: Array<{
|
|
139
|
+
label: string;
|
|
140
|
+
payoutKobo: number;
|
|
141
|
+
}>;
|
|
142
|
+
spinDurationMs: number;
|
|
143
|
+
}
|
|
144
|
+
export interface MillionaireHunterResult {
|
|
145
|
+
grid: string[];
|
|
146
|
+
gridSize: number;
|
|
147
|
+
playerPicks: number[];
|
|
148
|
+
treasureLocations: number[];
|
|
149
|
+
treasureCount: number;
|
|
150
|
+
hits: number;
|
|
151
|
+
totalPicks: number;
|
|
152
|
+
}
|
|
153
|
+
export interface RevealWinBoard {
|
|
154
|
+
rows: number;
|
|
155
|
+
cols: number;
|
|
156
|
+
}
|
|
157
|
+
export interface RevealWinTile {
|
|
158
|
+
index: number;
|
|
159
|
+
symbolCode: string;
|
|
160
|
+
assetKey?: string | null;
|
|
161
|
+
}
|
|
162
|
+
export interface RevealWinProgress {
|
|
163
|
+
symbolCode: string;
|
|
164
|
+
count: number;
|
|
165
|
+
target: number;
|
|
166
|
+
prizeTierCode?: string | null;
|
|
167
|
+
prizeAmountKobo?: number | null;
|
|
168
|
+
}
|
|
169
|
+
export interface RevealWinRound {
|
|
170
|
+
roundId: string;
|
|
171
|
+
status: string;
|
|
172
|
+
board: RevealWinBoard;
|
|
173
|
+
revealsPerRound: number;
|
|
174
|
+
revealsRemaining: number;
|
|
175
|
+
roundsRemaining: number;
|
|
176
|
+
lastRevealedTile?: RevealWinTile | null;
|
|
177
|
+
revealedTiles: {
|
|
178
|
+
index: number;
|
|
179
|
+
symbolCode: string;
|
|
180
|
+
}[];
|
|
181
|
+
matchProgress: RevealWinProgress[];
|
|
182
|
+
outcome?: string | null;
|
|
183
|
+
amountWonKobo: number;
|
|
184
|
+
prizeTierCode?: string | null;
|
|
185
|
+
message?: string | null;
|
|
186
|
+
fullBoard?: string[] | null;
|
|
187
|
+
isDemo: boolean;
|
|
188
|
+
}
|
|
189
|
+
export interface RevealWinSymbol {
|
|
190
|
+
code: string;
|
|
191
|
+
assetKey: string;
|
|
192
|
+
weight: number;
|
|
193
|
+
prizeTierCode: string | null;
|
|
194
|
+
}
|
|
195
|
+
export interface FastFingerQuestion {
|
|
196
|
+
questionId: string;
|
|
197
|
+
questionText: string;
|
|
198
|
+
questionImageUrl?: string;
|
|
199
|
+
options: string[];
|
|
200
|
+
optionImageUrls?: string[];
|
|
201
|
+
difficultyLevel?: string;
|
|
202
|
+
}
|
|
203
|
+
export interface FastFingerSession {
|
|
204
|
+
gamePlayId: string;
|
|
205
|
+
questions: FastFingerQuestion[];
|
|
206
|
+
timeLimitSeconds: number;
|
|
207
|
+
questionCount: number;
|
|
208
|
+
}
|
|
209
|
+
export interface FastFingerResult {
|
|
210
|
+
gamePlayId: string;
|
|
211
|
+
outcome: PlayOutcome;
|
|
212
|
+
correctCount: number;
|
|
213
|
+
totalQuestions: number;
|
|
214
|
+
passed: boolean;
|
|
215
|
+
amountWonKobo: number;
|
|
216
|
+
prizeTierCode?: string;
|
|
217
|
+
timeTakenMs?: number;
|
|
218
|
+
isDemo: boolean;
|
|
219
|
+
}
|
|
220
|
+
export interface FastFingerAnswerResult {
|
|
221
|
+
correct: boolean;
|
|
222
|
+
correctOptionIndex: number;
|
|
223
|
+
questionIndex: number;
|
|
224
|
+
sessionComplete: boolean;
|
|
225
|
+
nextQuestion?: FastFingerQuestion;
|
|
226
|
+
correctCount: number;
|
|
227
|
+
totalQuestions: number;
|
|
228
|
+
outcome?: string;
|
|
229
|
+
amountWonKobo?: number;
|
|
230
|
+
passed?: boolean;
|
|
231
|
+
isDemo: boolean;
|
|
232
|
+
}
|
|
233
|
+
export interface QuizCategory {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
questionCount: number;
|
|
237
|
+
}
|
|
238
|
+
export interface RaffleEntry {
|
|
239
|
+
id: string;
|
|
240
|
+
entryNumber: string;
|
|
241
|
+
status: RaffleEntryStatus;
|
|
242
|
+
}
|
|
243
|
+
export interface RaffleEntryResult {
|
|
244
|
+
entries: RaffleEntry[];
|
|
245
|
+
totalEntries: number;
|
|
246
|
+
gamePlayId: string;
|
|
247
|
+
}
|
|
248
|
+
export interface PlinkoResult {
|
|
249
|
+
gamePlayId: string;
|
|
250
|
+
rows: number;
|
|
251
|
+
risk: string;
|
|
252
|
+
slot: number;
|
|
253
|
+
path: string[];
|
|
254
|
+
multiplier: number;
|
|
255
|
+
stakeKobo: number;
|
|
256
|
+
amountWonKobo: number;
|
|
257
|
+
outcome: string;
|
|
258
|
+
serverSeedHash: string;
|
|
259
|
+
clientSeed: string;
|
|
260
|
+
nonce: number;
|
|
261
|
+
}
|
|
262
|
+
export type MinesStatus = 'IN_PROGRESS' | 'BUST' | 'CASHED_OUT';
|
|
263
|
+
export interface MinesRound {
|
|
264
|
+
gamePlayId: string;
|
|
265
|
+
gridSize: number;
|
|
266
|
+
mineCount: number;
|
|
267
|
+
revealed: number[];
|
|
268
|
+
safeRevealed: number;
|
|
269
|
+
currentMultiplier: number;
|
|
270
|
+
nextMultiplier: number | null;
|
|
271
|
+
potentialPayoutKobo: number;
|
|
272
|
+
stakeKobo: number;
|
|
273
|
+
status: MinesStatus;
|
|
274
|
+
amountWonKobo: number;
|
|
275
|
+
serverSeedHash: string;
|
|
276
|
+
clientSeed: string;
|
|
277
|
+
nonce: number;
|
|
278
|
+
minePositions: number[] | null;
|
|
279
|
+
serverSeed: string | null;
|
|
280
|
+
}
|
|
281
|
+
export type CrashStatus = 'RUNNING' | 'WON' | 'BUSTED';
|
|
282
|
+
export interface CrashRound {
|
|
283
|
+
gamePlayId: string;
|
|
284
|
+
startAtMs: number;
|
|
285
|
+
growthRatePerSecond: number;
|
|
286
|
+
maxMultiplier: number;
|
|
287
|
+
stakeKobo: number;
|
|
288
|
+
status: CrashStatus;
|
|
289
|
+
multiplier: number;
|
|
290
|
+
amountWonKobo: number;
|
|
291
|
+
serverSeedHash: string;
|
|
292
|
+
clientSeed: string;
|
|
293
|
+
nonce: number;
|
|
294
|
+
bustMultiplier: number | null;
|
|
295
|
+
serverSeed: string | null;
|
|
296
|
+
}
|
|
297
|
+
export interface FairSeedState {
|
|
298
|
+
serverSeedHash: string;
|
|
299
|
+
clientSeed: string;
|
|
300
|
+
nonce: number;
|
|
301
|
+
}
|
|
302
|
+
export interface FairSeedRotation {
|
|
303
|
+
revealedServerSeed: string;
|
|
304
|
+
revealedServerSeedHash: string;
|
|
305
|
+
nextServerSeedHash: string;
|
|
306
|
+
clientSeed: string;
|
|
307
|
+
}
|
|
308
|
+
export interface GamePlayRecord {
|
|
309
|
+
id: string;
|
|
310
|
+
playerId: string;
|
|
311
|
+
gameId: string;
|
|
312
|
+
gameCode: GameCode;
|
|
313
|
+
gameName: string;
|
|
314
|
+
channel: Channel;
|
|
315
|
+
status: PlayStatus;
|
|
316
|
+
outcome?: PlayOutcome | null;
|
|
317
|
+
amountPaidKobo: number;
|
|
318
|
+
amountWonKobo?: number | null;
|
|
319
|
+
prizeTierCode?: string | null;
|
|
320
|
+
gameInput?: Record<string, unknown> | null;
|
|
321
|
+
gameResult?: Record<string, unknown> | null;
|
|
322
|
+
startedAt?: string;
|
|
323
|
+
completedAt?: string;
|
|
324
|
+
createdAt: string;
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=gameTypes.d.ts.map
|