@block52/poker-vm-sdk 1.22.0 → 1.23.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/dist/index.d.ts CHANGED
@@ -45576,6 +45576,20 @@ type WinnerDTO = {
45576
45576
  cards: string[] | undefined;
45577
45577
  name: string | undefined;
45578
45578
  description: string | undefined;
45579
+ /** What the winner took from each pot, main pot first (ui#918): `pot`
45580
+ * indexes the state's `pots` / `potDetails`, and `amount` is the sum of
45581
+ * these shares. Absent on states from an engine before 1.23.0. */
45582
+ pots?: WinnerPotDTO[];
45583
+ };
45584
+ /** One pot's share of a win (ui#918). */
45585
+ type WinnerPotDTO = {
45586
+ pot: number;
45587
+ amount: string;
45588
+ };
45589
+ /** One pot as players see it: its chips and the seats that can win it (ui#918). */
45590
+ type PotDTO = {
45591
+ amount: string;
45592
+ eligibleSeats: number[];
45579
45593
  };
45580
45594
  type SitOutMethod = "next-hand" | "next-bb";
45581
45595
  declare const SIT_OUT_METHOD_NEXT_HAND: SitOutMethod;
@@ -45713,6 +45727,7 @@ type TexasHoldemStateDTO = {
45713
45727
  communityCards: string[];
45714
45728
  deck: string;
45715
45729
  pots: string[];
45730
+ potDetails?: PotDTO[];
45716
45731
  totalPot: string;
45717
45732
  lastActedSeat?: number;
45718
45733
  nextToAct: number;
@@ -47649,4 +47664,4 @@ declare const Client: typeof IgniteClient & Constructor<{
47649
47664
  declare const registry: Registry;
47650
47665
 
47651
47666
  export { AllPlayerActions, BLIND_PRESETS, BLIND_PRESET_STRUCTURES, BLIND_PROGRESSIONS, BLOCK52_HD_PATH, BettingLimit, Board, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GAME_NAME_MICRO_PER_CHAR, GameFormat, GameStatus, GameVariant, HandType, KEYS, MAX_GAME_NAME_LENGTH, MSG_CREATE_VALIDATOR_TYPE_URL, MissingWalletError, NonPlayerActionType, Params, PlayerActionType, PlayerStatus, PokerGameIntegration, PokerSolver, RPCMethods, SIT_IN_METHOD_NEXT_BB, SIT_IN_METHOD_POST_NOW, SIT_OUT_METHOD_NEXT_BB, SIT_OUT_METHOD_NEXT_HAND, SUIT, SigningCosmosClient, TOURNAMENT_ENTRANT_STATUSES, TOURNAMENT_STATUSES, TexasHoldemRound, TxExecutionError, ValidatorBond, WithdrawalRequest, assertCreatableBettingLimit, assertExecuted, buildMsgCreateValidator, computeGameNameFee, createSigningClientFromMnemonic, createWalletFromMnemonic, decToAtomics, expandBlindLevel, formatBlindStructure, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getBettingLimit, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, holeCardsPerPlayer, isCashFormat, isEmptyAddress, isLateRegistrationOpen, isPotLimit, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, lateRegistrationClosesAt, parseBlindStructure, parseGameFormat, parseGameVariant, parseLeaderboardDTO, registry, resolveBlindPreset, roundBlind, toValoperAddress, txFailureHash, txFailurePhase };
47652
- export type { AccountDTO, ActionDTO, AnteRuleDTO, BlindLevelDTO, BlindPreset, BlindProgression, BlindStructureDTO, BlindStructurePresetDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, CreateValidatorParams, DoubleBlindStructureDTO, EquityHand, EquityRequest, EquityResponse, EquityResult, ExecutionResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LeaderboardDTO, LeaderboardEntryDTO, LegalActionDTO, LinearBlindStructureDTO, PayoutPlaceDTO, PercentageBlindStructureDTO, PerformActionResponse, PlayerDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SealedAwaiting, SealedDTO, SitInMethod, SitOutMethod, TableBlindStructureDTO, TexasHoldemGameState, TexasHoldemStateDTO, TournamentClockDTO, TournamentEntrantStatus, TournamentStatus, TransactionDTO, TransactionResponse, TxFailurePhase, WalletInfo, WinnerDTO, WithdrawResponseDTO };
47667
+ export type { AccountDTO, ActionDTO, AnteRuleDTO, BlindLevelDTO, BlindPreset, BlindProgression, BlindStructureDTO, BlindStructurePresetDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, CreateValidatorParams, DoubleBlindStructureDTO, EquityHand, EquityRequest, EquityResponse, EquityResult, ExecutionResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LeaderboardDTO, LeaderboardEntryDTO, LegalActionDTO, LinearBlindStructureDTO, PayoutPlaceDTO, PercentageBlindStructureDTO, PerformActionResponse, PlayerDTO, PotDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SealedAwaiting, SealedDTO, SitInMethod, SitOutMethod, TableBlindStructureDTO, TexasHoldemGameState, TexasHoldemStateDTO, TournamentClockDTO, TournamentEntrantStatus, TournamentStatus, TransactionDTO, TransactionResponse, TxFailurePhase, WalletInfo, WinnerDTO, WinnerPotDTO, WithdrawResponseDTO };
package/dist/index.esm.js CHANGED
@@ -56168,7 +56168,7 @@ var NonPlayerActionType;
56168
56168
  NonPlayerActionType["TIMEOUT"] = "timeout";
56169
56169
  // Time bank (ui#19/#20): the player to act extends their turn's action-clock
56170
56170
  // deadline by their whole bank, once per decision: gameOptions.timeBankMs
56171
- // the first time, 30s the second, then 5s refilling 5s per orbit up to
56171
+ // the first time, 30s the second, then empty, refilling 5s per orbit up to
56172
56172
  // gameOptions.timeBankCapMs. Records a no-chip turn that does NOT advance the
56173
56173
  // betting order or move the clock anchor; the deadline adds the user's
56174
56174
  // PlayerDTO.timeBankLastGrantMs for the current turn. Rejected off-turn,