@block52/poker-vm-sdk 1.2.12 → 1.2.15

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
@@ -45213,6 +45213,21 @@ declare enum PlayerActionType {
45213
45213
  BET = "bet",
45214
45214
  CALL = "call",
45215
45215
  RAISE = "raise",
45216
+ /**
45217
+ * @deprecated Not a dispatchable action. "All-in" is a UX label — going
45218
+ * all-in is a BET/CALL/RAISE whose amount equals the player's whole stack
45219
+ * (a short shove is an all-in-only RAISE, poker-vm#2353). The engine neither
45220
+ * advertises ALL_IN in getLegalActions nor accepts it via performAction (the
45221
+ * handler was removed, poker-vm#2353) — dispatching it throws.
45222
+ *
45223
+ * This member survives ONLY as the internal *recorded* action type:
45224
+ * baseAction.execute rewrites a full-stack commit to ALL_IN, and round-end
45225
+ * reopening + aggression detection (#2134) read it. Do not dispatch it and do
45226
+ * not add new consumers.
45227
+ *
45228
+ * NOTE: distinct from the still-required `PlayerStatus.ALL_IN` (a player's
45229
+ * state once their chips reach 0), which is NOT deprecated.
45230
+ */
45216
45231
  ALL_IN = "all-in",
45217
45232
  MUCK = "muck",
45218
45233
  SHOW = "show"
@@ -45380,6 +45395,10 @@ type LegalActionDTO = {
45380
45395
  };
45381
45396
  type WinnerDTO = {
45382
45397
  address: string;
45398
+ /** Seat the winner occupied when the pot was awarded. Stamped by the engine
45399
+ * at win time so consumers don't have to resolve it from players[] — which
45400
+ * fails (→ seat 0) once the winner leaves the table. */
45401
+ seat: number;
45383
45402
  amount: string;
45384
45403
  cards: string[] | undefined;
45385
45404
  name: string | undefined;
@@ -45412,6 +45431,15 @@ type ResultDTO = {
45412
45431
  playerId: string;
45413
45432
  payout: string;
45414
45433
  };
45434
+ /**
45435
+ * A single place in a tournament (SNG/MTT) prize structure.
45436
+ * This is the PROSPECTIVE payout by finishing place — distinct from ResultDTO,
45437
+ * which records the SETTLED payout for an actual player once they finish.
45438
+ */
45439
+ type PayoutPlaceDTO = {
45440
+ place: number;
45441
+ amount: string;
45442
+ };
45415
45443
  type TexasHoldemGameState = {
45416
45444
  type: string;
45417
45445
  address: string;
@@ -45455,6 +45483,7 @@ type TexasHoldemStateDTO = {
45455
45483
  legalActions: LegalActionDTO[];
45456
45484
  availableSeats: number[];
45457
45485
  rakeCollected?: string;
45486
+ payouts?: PayoutPlaceDTO[];
45458
45487
  signature: string;
45459
45488
  };
45460
45489
  /**
@@ -46876,4 +46905,4 @@ declare const Client: typeof IgniteClient & Constructor<{
46876
46905
  declare const registry: Registry;
46877
46906
 
46878
46907
  export { AllPlayerActions, BLOCK52_HD_PATH, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameFormat, GameStatus, GameVariant, HandType, KEYS, 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, TexasHoldemRound, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, isCashFormat, isEmptyAddress, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, parseGameFormat, parseGameVariant, registry };
46879
- export type { AccountDTO, ActionDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, EquityHand, EquityRequest, EquityResponse, EquityResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LegalActionDTO, PerformActionResponse, PlayerDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SitInMethod, SitOutMethod, TexasHoldemGameState, TexasHoldemStateDTO, TransactionDTO, TransactionResponse, WalletInfo, WinnerDTO, WithdrawResponseDTO };
46908
+ export type { AccountDTO, ActionDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, EquityHand, EquityRequest, EquityResponse, EquityResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LegalActionDTO, PayoutPlaceDTO, PerformActionResponse, PlayerDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SitInMethod, SitOutMethod, TexasHoldemGameState, TexasHoldemStateDTO, TransactionDTO, TransactionResponse, WalletInfo, WinnerDTO, WithdrawResponseDTO };
package/dist/index.esm.js CHANGED
@@ -56023,6 +56023,21 @@ var PlayerActionType;
56023
56023
  PlayerActionType["BET"] = "bet";
56024
56024
  PlayerActionType["CALL"] = "call";
56025
56025
  PlayerActionType["RAISE"] = "raise";
56026
+ /**
56027
+ * @deprecated Not a dispatchable action. "All-in" is a UX label — going
56028
+ * all-in is a BET/CALL/RAISE whose amount equals the player's whole stack
56029
+ * (a short shove is an all-in-only RAISE, poker-vm#2353). The engine neither
56030
+ * advertises ALL_IN in getLegalActions nor accepts it via performAction (the
56031
+ * handler was removed, poker-vm#2353) — dispatching it throws.
56032
+ *
56033
+ * This member survives ONLY as the internal *recorded* action type:
56034
+ * baseAction.execute rewrites a full-stack commit to ALL_IN, and round-end
56035
+ * reopening + aggression detection (#2134) read it. Do not dispatch it and do
56036
+ * not add new consumers.
56037
+ *
56038
+ * NOTE: distinct from the still-required `PlayerStatus.ALL_IN` (a player's
56039
+ * state once their chips reach 0), which is NOT deprecated.
56040
+ */
56026
56041
  PlayerActionType["ALL_IN"] = "all-in";
56027
56042
  PlayerActionType["MUCK"] = "muck";
56028
56043
  PlayerActionType["SHOW"] = "show";
@@ -60918,7 +60933,7 @@ class SigningCosmosClient extends CosmosClient {
60918
60933
  // SNG/Tournament games are DEFINED by startingStack + blindLevelDuration.
60919
60934
  // Refuse to create one with missing/zero values rather than silently
60920
60935
  // defaulting (Long.UZERO / 0) — a zero startingStack makes the prize pool
60921
- // zero (PayoutManager.totalPrizePool = startingStack * runners) and pays
60936
+ // zero (SngPayoutManager.totalPrizePool = startingStack * runners) and pays
60922
60937
  // the winner $0; a zero blindLevelDuration breaks blind escalation.
60923
60938
  // No defaults — fail loud at creation (Commandment #7). (#2282)
60924
60939
  const isSng = gameFormat === GameFormat.SIT_AND_GO || gameFormat === GameFormat.TOURNAMENT;