@block52/poker-vm-sdk 1.0.3 → 1.0.4

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
@@ -45099,6 +45099,11 @@ declare enum GameType {
45099
45099
  SIT_AND_GO = "sit-and-go",
45100
45100
  TOURNAMENT = "tournament"
45101
45101
  }
45102
+ declare enum GameFormat {
45103
+ CASH = "cash",
45104
+ SIT_AND_GO = "sit-and-go",
45105
+ TOURNAMENT = "tournament"
45106
+ }
45102
45107
  declare enum GameStatus {
45103
45108
  WAITING_FOR_PLAYERS = "waiting-for-players",
45104
45109
  REGISTRATION = "registration",
@@ -45144,7 +45149,7 @@ type GameOptions = {
45144
45149
  smallBlind: bigint;
45145
45150
  bigBlind: bigint;
45146
45151
  timeout: number;
45147
- type: GameType;
45152
+ format: GameFormat;
45148
45153
  rake?: RakeConfig$1;
45149
45154
  owner?: string;
45150
45155
  startingStack?: bigint;
@@ -45159,7 +45164,7 @@ type GameOptionsDTO = {
45159
45164
  smallBlind?: string;
45160
45165
  bigBlind?: string;
45161
45166
  timeout?: number;
45162
- type?: GameType;
45167
+ format?: GameFormat;
45163
45168
  rake?: RakeConfigDTO;
45164
45169
  owner?: string;
45165
45170
  startingStack?: string;
@@ -45231,7 +45236,7 @@ type TexasHoldemGameState = {
45231
45236
  signature: string;
45232
45237
  };
45233
45238
  type TexasHoldemStateDTO = {
45234
- type: GameType;
45239
+ gameFormat: GameFormat;
45235
45240
  address: string;
45236
45241
  gameOptions: GameOptionsDTO;
45237
45242
  smallBlindPosition?: number;
@@ -46356,5 +46361,5 @@ declare const Client: typeof IgniteClient & Constructor<{
46356
46361
  }>;
46357
46362
  declare const registry: Registry;
46358
46363
 
46359
- export { AllPlayerActions, BLOCK52_HD_PATH, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameStatus, GameType, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params, PlayerActionType, PlayerStatus, PokerGameIntegration, PokerSolver, RPCMethods, SUIT, SigningCosmosClient, TexasHoldemRound, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, generateWallet, getAddressFromMnemonic, getDefaultCosmosConfig, isValidMnemonic, registry };
46364
+ export { AllPlayerActions, BLOCK52_HD_PATH, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameFormat, GameStatus, GameType, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params, PlayerActionType, PlayerStatus, PokerGameIntegration, PokerSolver, RPCMethods, SUIT, SigningCosmosClient, TexasHoldemRound, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, generateWallet, getAddressFromMnemonic, getDefaultCosmosConfig, isValidMnemonic, registry };
46360
46365
  export type { AccountDTO, ActionDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, EquityHand, EquityRequest, EquityResponse, EquityResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, HandEvaluation, ISignedResponse, LegalActionDTO, PerformActionResponse, PlayerDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, TexasHoldemGameState, TexasHoldemStateDTO, TransactionDTO, TransactionResponse, WalletInfo, WinnerDTO, WithdrawResponseDTO };
package/dist/index.esm.js CHANGED
@@ -55502,6 +55502,13 @@ var GameType;
55502
55502
  GameType["SIT_AND_GO"] = "sit-and-go";
55503
55503
  GameType["TOURNAMENT"] = "tournament";
55504
55504
  })(GameType || (GameType = {}));
55505
+ // GameFormat represents the game structure/format (preferred over GameType for new code)
55506
+ var GameFormat;
55507
+ (function (GameFormat) {
55508
+ GameFormat["CASH"] = "cash";
55509
+ GameFormat["SIT_AND_GO"] = "sit-and-go";
55510
+ GameFormat["TOURNAMENT"] = "tournament";
55511
+ })(GameFormat || (GameFormat = {}));
55505
55512
  var GameStatus;
55506
55513
  (function (GameStatus) {
55507
55514
  GameStatus["WAITING_FOR_PLAYERS"] = "waiting-for-players";
@@ -57668,5 +57675,5 @@ const registry = new Registry([
57668
57675
  ...msgTypes,
57669
57676
  ]);
57670
57677
 
57671
- export { AllPlayerActions, BLOCK52_HD_PATH, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameStatus, GameType, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params$c as Params, PlayerActionType, PlayerStatus, PokerGameIntegration, PokerSolver, RPCMethods, SUIT, SigningCosmosClient, TexasHoldemRound, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, generateWallet, getAddressFromMnemonic, getDefaultCosmosConfig, isValidMnemonic, registry };
57678
+ export { AllPlayerActions, BLOCK52_HD_PATH, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameFormat, GameStatus, GameType, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params$c as Params, PlayerActionType, PlayerStatus, PokerGameIntegration, PokerSolver, RPCMethods, SUIT, SigningCosmosClient, TexasHoldemRound, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, generateWallet, getAddressFromMnemonic, getDefaultCosmosConfig, isValidMnemonic, registry };
57672
57679
  //# sourceMappingURL=index.esm.js.map