@block52/poker-vm-sdk 1.2.12 → 1.2.13
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 +26 -1
- package/dist/index.esm.js +16 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/types/game.d.ts +25 -0
- package/dist/types/game.d.ts.map +1 -1
- package/package.json +1 -1
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"
|
|
@@ -45412,6 +45427,15 @@ type ResultDTO = {
|
|
|
45412
45427
|
playerId: string;
|
|
45413
45428
|
payout: string;
|
|
45414
45429
|
};
|
|
45430
|
+
/**
|
|
45431
|
+
* A single place in a tournament (SNG/MTT) prize structure.
|
|
45432
|
+
* This is the PROSPECTIVE payout by finishing place — distinct from ResultDTO,
|
|
45433
|
+
* which records the SETTLED payout for an actual player once they finish.
|
|
45434
|
+
*/
|
|
45435
|
+
type PayoutPlaceDTO = {
|
|
45436
|
+
place: number;
|
|
45437
|
+
amount: string;
|
|
45438
|
+
};
|
|
45415
45439
|
type TexasHoldemGameState = {
|
|
45416
45440
|
type: string;
|
|
45417
45441
|
address: string;
|
|
@@ -45455,6 +45479,7 @@ type TexasHoldemStateDTO = {
|
|
|
45455
45479
|
legalActions: LegalActionDTO[];
|
|
45456
45480
|
availableSeats: number[];
|
|
45457
45481
|
rakeCollected?: string;
|
|
45482
|
+
payouts?: PayoutPlaceDTO[];
|
|
45458
45483
|
signature: string;
|
|
45459
45484
|
};
|
|
45460
45485
|
/**
|
|
@@ -46876,4 +46901,4 @@ declare const Client: typeof IgniteClient & Constructor<{
|
|
|
46876
46901
|
declare const registry: Registry;
|
|
46877
46902
|
|
|
46878
46903
|
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 };
|
|
46904
|
+
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 (
|
|
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;
|