@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.js CHANGED
@@ -2845,6 +2845,7 @@ function createBaseMsgCreateGame() {
2845
2845
  startingStack: Long.UZERO,
2846
2846
  blindLevelDuration: 0,
2847
2847
  gameVariant: "",
2848
+ entryFee: Long.UZERO,
2848
2849
  };
2849
2850
  }
2850
2851
  const MsgCreateGame = {
@@ -2897,6 +2898,9 @@ const MsgCreateGame = {
2897
2898
  if (message.gameVariant !== "") {
2898
2899
  writer.uint32(130).string(message.gameVariant);
2899
2900
  }
2901
+ if (!message.entryFee.equals(Long.UZERO)) {
2902
+ writer.uint32(136).uint64(message.entryFee.toString());
2903
+ }
2900
2904
  return writer;
2901
2905
  },
2902
2906
  decode(input, length) {
@@ -3018,6 +3022,13 @@ const MsgCreateGame = {
3018
3022
  message.gameVariant = reader.string();
3019
3023
  continue;
3020
3024
  }
3025
+ case 17: {
3026
+ if (tag !== 136) {
3027
+ break;
3028
+ }
3029
+ message.entryFee = Long.fromString(reader.uint64().toString(), true);
3030
+ continue;
3031
+ }
3021
3032
  }
3022
3033
  if ((tag & 7) === 4 || tag === 0) {
3023
3034
  break;
@@ -3044,6 +3055,7 @@ const MsgCreateGame = {
3044
3055
  startingStack: isSet$2b(object.startingStack) ? Long.fromValue(object.startingStack) : Long.UZERO,
3045
3056
  blindLevelDuration: isSet$2b(object.blindLevelDuration) ? globalThis.Number(object.blindLevelDuration) : 0,
3046
3057
  gameVariant: isSet$2b(object.gameVariant) ? globalThis.String(object.gameVariant) : "",
3058
+ entryFee: isSet$2b(object.entryFee) ? Long.fromValue(object.entryFee) : Long.UZERO,
3047
3059
  };
3048
3060
  },
3049
3061
  toJSON(message) {
@@ -3096,6 +3108,9 @@ const MsgCreateGame = {
3096
3108
  if (message.gameVariant !== "") {
3097
3109
  obj.gameVariant = message.gameVariant;
3098
3110
  }
3111
+ if (!message.entryFee.equals(Long.UZERO)) {
3112
+ obj.entryFee = (message.entryFee || Long.UZERO).toString();
3113
+ }
3099
3114
  return obj;
3100
3115
  },
3101
3116
  create(base) {
@@ -3139,6 +3154,9 @@ const MsgCreateGame = {
3139
3154
  : Long.UZERO;
3140
3155
  message.blindLevelDuration = object.blindLevelDuration ?? 0;
3141
3156
  message.gameVariant = object.gameVariant ?? "";
3157
+ message.entryFee = (object.entryFee !== undefined && object.entryFee !== null)
3158
+ ? Long.fromValue(object.entryFee)
3159
+ : Long.UZERO;
3142
3160
  return message;
3143
3161
  },
3144
3162
  };
@@ -56053,6 +56071,11 @@ exports.NonPlayerActionType = void 0;
56053
56071
  NonPlayerActionType["JOIN"] = "join";
56054
56072
  NonPlayerActionType["LEAVE"] = "leave";
56055
56073
  NonPlayerActionType["NEW_HAND"] = "new-hand";
56074
+ // Entry big blind auto-posted when a post-now joiner activates off the blind
56075
+ // seats (poker-vm#2553). Recorded in ANTE; counted toward the pot + the
56076
+ // player's bet (they're matched) but excluded from the first-to-act /
56077
+ // has-acted scans (it's a non-player action, like DEAD_SMALL_BLIND).
56078
+ NonPlayerActionType["POST"] = "post";
56056
56079
  NonPlayerActionType["SIT_IN"] = "sit-in";
56057
56080
  // Sit in and wait for the big blind — distinct action from SIT_IN (post now)
56058
56081
  // so each has a single responsibility. Sets WAITING_FOR_BIG_BLIND. (#2139)
@@ -61175,6 +61198,8 @@ class SigningCosmosClient extends CosmosClient {
61175
61198
  // SNG/Tournament configuration
61176
61199
  startingStack: sngConfig ? Long.fromString(sngConfig.startingStack.toString(), true) : Long.UZERO,
61177
61200
  blindLevelDuration: sngConfig?.blindLevelDuration ?? 0,
61201
+ // SNG flat entry fee (micro-units), skimmed to the creator at join time (poker-vm#2118)
61202
+ entryFee: sngConfig?.entryFee ? Long.fromString(sngConfig.entryFee.toString(), true) : Long.UZERO,
61178
61203
  });
61179
61204
  // Create the transaction message
61180
61205
  const msg = {
@@ -61202,7 +61227,8 @@ class SigningCosmosClient extends CosmosClient {
61202
61227
  }),
61203
61228
  ...(sngConfig && {
61204
61229
  startingStack: sngConfig.startingStack.toString(),
61205
- blindLevelDuration: sngConfig.blindLevelDuration
61230
+ blindLevelDuration: sngConfig.blindLevelDuration,
61231
+ entryFee: sngConfig.entryFee?.toString() ?? "0"
61206
61232
  })
61207
61233
  });
61208
61234
  try {