@block52/poker-vm-sdk 1.3.2 → 1.3.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
@@ -44924,6 +44924,8 @@ interface MsgCreateGame {
44924
44924
  blindLevelDuration: number;
44925
44925
  /** Poker variant (texas-holdem/omaha) */
44926
44926
  gameVariant: string;
44927
+ /** SNG flat entry fee in micro-units, skimmed to the creator (poker-vm#2118) */
44928
+ entryFee: Long;
44927
44929
  }
44928
44930
  declare const MsgCreateGame: MessageFns<MsgCreateGame>;
44929
44931
  /** MsgJoinGame defines the MsgJoinGame message. */
@@ -45239,6 +45241,7 @@ declare enum NonPlayerActionType {
45239
45241
  JOIN = "join",
45240
45242
  LEAVE = "leave",
45241
45243
  NEW_HAND = "new-hand",
45244
+ POST = "post",
45242
45245
  SIT_IN = "sit-in",
45243
45246
  SIT_IN_AND_WAIT = "sit-in-and-wait",
45244
45247
  SIT_OUT = "sit-out",
@@ -45251,6 +45254,7 @@ declare const AllPlayerActions: {
45251
45254
  JOIN: NonPlayerActionType.JOIN;
45252
45255
  LEAVE: NonPlayerActionType.LEAVE;
45253
45256
  NEW_HAND: NonPlayerActionType.NEW_HAND;
45257
+ POST: NonPlayerActionType.POST;
45254
45258
  SIT_IN: NonPlayerActionType.SIT_IN;
45255
45259
  SIT_IN_AND_WAIT: NonPlayerActionType.SIT_IN_AND_WAIT;
45256
45260
  SIT_OUT: NonPlayerActionType.SIT_OUT;
@@ -45339,6 +45343,7 @@ type GameOptions = {
45339
45343
  timeout: number;
45340
45344
  rake?: RakeConfig$1;
45341
45345
  startingStack?: bigint;
45346
+ entryFee?: bigint;
45342
45347
  blindLevelDuration?: number;
45343
45348
  blindLevel?: number;
45344
45349
  sngStartTime?: number;
@@ -45368,6 +45373,7 @@ type GameOptionsDTO = {
45368
45373
  timeout: number;
45369
45374
  rake?: RakeConfigDTO;
45370
45375
  startingStack?: string;
45376
+ entryFee?: string;
45371
45377
  blindLevelDuration?: number;
45372
45378
  blindLevel?: number;
45373
45379
  nextSmallBlind?: string;
@@ -46505,6 +46511,7 @@ interface RakeConfig {
46505
46511
  interface SNGConfig {
46506
46512
  startingStack: bigint;
46507
46513
  blindLevelDuration: number;
46514
+ entryFee?: bigint;
46508
46515
  }
46509
46516
  /**
46510
46517
  * Signing Cosmos Client that extends the read-only CosmosClient with transaction capabilities
package/dist/index.esm.js CHANGED
@@ -2843,6 +2843,7 @@ function createBaseMsgCreateGame() {
2843
2843
  startingStack: Long.UZERO,
2844
2844
  blindLevelDuration: 0,
2845
2845
  gameVariant: "",
2846
+ entryFee: Long.UZERO,
2846
2847
  };
2847
2848
  }
2848
2849
  const MsgCreateGame = {
@@ -2895,6 +2896,9 @@ const MsgCreateGame = {
2895
2896
  if (message.gameVariant !== "") {
2896
2897
  writer.uint32(130).string(message.gameVariant);
2897
2898
  }
2899
+ if (!message.entryFee.equals(Long.UZERO)) {
2900
+ writer.uint32(136).uint64(message.entryFee.toString());
2901
+ }
2898
2902
  return writer;
2899
2903
  },
2900
2904
  decode(input, length) {
@@ -3016,6 +3020,13 @@ const MsgCreateGame = {
3016
3020
  message.gameVariant = reader.string();
3017
3021
  continue;
3018
3022
  }
3023
+ case 17: {
3024
+ if (tag !== 136) {
3025
+ break;
3026
+ }
3027
+ message.entryFee = Long.fromString(reader.uint64().toString(), true);
3028
+ continue;
3029
+ }
3019
3030
  }
3020
3031
  if ((tag & 7) === 4 || tag === 0) {
3021
3032
  break;
@@ -3042,6 +3053,7 @@ const MsgCreateGame = {
3042
3053
  startingStack: isSet$2b(object.startingStack) ? Long.fromValue(object.startingStack) : Long.UZERO,
3043
3054
  blindLevelDuration: isSet$2b(object.blindLevelDuration) ? globalThis.Number(object.blindLevelDuration) : 0,
3044
3055
  gameVariant: isSet$2b(object.gameVariant) ? globalThis.String(object.gameVariant) : "",
3056
+ entryFee: isSet$2b(object.entryFee) ? Long.fromValue(object.entryFee) : Long.UZERO,
3045
3057
  };
3046
3058
  },
3047
3059
  toJSON(message) {
@@ -3094,6 +3106,9 @@ const MsgCreateGame = {
3094
3106
  if (message.gameVariant !== "") {
3095
3107
  obj.gameVariant = message.gameVariant;
3096
3108
  }
3109
+ if (!message.entryFee.equals(Long.UZERO)) {
3110
+ obj.entryFee = (message.entryFee || Long.UZERO).toString();
3111
+ }
3097
3112
  return obj;
3098
3113
  },
3099
3114
  create(base) {
@@ -3137,6 +3152,9 @@ const MsgCreateGame = {
3137
3152
  : Long.UZERO;
3138
3153
  message.blindLevelDuration = object.blindLevelDuration ?? 0;
3139
3154
  message.gameVariant = object.gameVariant ?? "";
3155
+ message.entryFee = (object.entryFee !== undefined && object.entryFee !== null)
3156
+ ? Long.fromValue(object.entryFee)
3157
+ : Long.UZERO;
3140
3158
  return message;
3141
3159
  },
3142
3160
  };
@@ -56051,6 +56069,11 @@ var NonPlayerActionType;
56051
56069
  NonPlayerActionType["JOIN"] = "join";
56052
56070
  NonPlayerActionType["LEAVE"] = "leave";
56053
56071
  NonPlayerActionType["NEW_HAND"] = "new-hand";
56072
+ // Entry big blind auto-posted when a post-now joiner activates off the blind
56073
+ // seats (poker-vm#2553). Recorded in ANTE; counted toward the pot + the
56074
+ // player's bet (they're matched) but excluded from the first-to-act /
56075
+ // has-acted scans (it's a non-player action, like DEAD_SMALL_BLIND).
56076
+ NonPlayerActionType["POST"] = "post";
56054
56077
  NonPlayerActionType["SIT_IN"] = "sit-in";
56055
56078
  // Sit in and wait for the big blind — distinct action from SIT_IN (post now)
56056
56079
  // so each has a single responsibility. Sets WAITING_FOR_BIG_BLIND. (#2139)
@@ -61173,6 +61196,8 @@ class SigningCosmosClient extends CosmosClient {
61173
61196
  // SNG/Tournament configuration
61174
61197
  startingStack: sngConfig ? Long.fromString(sngConfig.startingStack.toString(), true) : Long.UZERO,
61175
61198
  blindLevelDuration: sngConfig?.blindLevelDuration ?? 0,
61199
+ // SNG flat entry fee (micro-units), skimmed to the creator at join time (poker-vm#2118)
61200
+ entryFee: sngConfig?.entryFee ? Long.fromString(sngConfig.entryFee.toString(), true) : Long.UZERO,
61176
61201
  });
61177
61202
  // Create the transaction message
61178
61203
  const msg = {
@@ -61200,7 +61225,8 @@ class SigningCosmosClient extends CosmosClient {
61200
61225
  }),
61201
61226
  ...(sngConfig && {
61202
61227
  startingStack: sngConfig.startingStack.toString(),
61203
- blindLevelDuration: sngConfig.blindLevelDuration
61228
+ blindLevelDuration: sngConfig.blindLevelDuration,
61229
+ entryFee: sngConfig.entryFee?.toString() ?? "0"
61204
61230
  })
61205
61231
  });
61206
61232
  try {