@block52/poker-vm-sdk 1.3.4 → 1.3.5

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
@@ -8830,6 +8830,76 @@ const WithdrawalRequest = {
8830
8830
  return message;
8831
8831
  },
8832
8832
  };
8833
+ function createBaseValidatorBond() {
8834
+ return { validator: "", bondedUsdc: Long.UZERO };
8835
+ }
8836
+ const ValidatorBond = {
8837
+ encode(message, writer = new BinaryWriter()) {
8838
+ if (message.validator !== "") {
8839
+ writer.uint32(10).string(message.validator);
8840
+ }
8841
+ if (!message.bondedUsdc.equals(Long.UZERO)) {
8842
+ writer.uint32(16).uint64(message.bondedUsdc.toString());
8843
+ }
8844
+ return writer;
8845
+ },
8846
+ decode(input, length) {
8847
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8848
+ const end = length === undefined ? reader.len : reader.pos + length;
8849
+ const message = createBaseValidatorBond();
8850
+ while (reader.pos < end) {
8851
+ const tag = reader.uint32();
8852
+ switch (tag >>> 3) {
8853
+ case 1: {
8854
+ if (tag !== 10) {
8855
+ break;
8856
+ }
8857
+ message.validator = reader.string();
8858
+ continue;
8859
+ }
8860
+ case 2: {
8861
+ if (tag !== 16) {
8862
+ break;
8863
+ }
8864
+ message.bondedUsdc = Long.fromString(reader.uint64().toString(), true);
8865
+ continue;
8866
+ }
8867
+ }
8868
+ if ((tag & 7) === 4 || tag === 0) {
8869
+ break;
8870
+ }
8871
+ reader.skip(tag & 7);
8872
+ }
8873
+ return message;
8874
+ },
8875
+ fromJSON(object) {
8876
+ return {
8877
+ validator: isSet$2a(object.validator) ? globalThis.String(object.validator) : "",
8878
+ bondedUsdc: isSet$2a(object.bondedUsdc) ? Long.fromValue(object.bondedUsdc) : Long.UZERO,
8879
+ };
8880
+ },
8881
+ toJSON(message) {
8882
+ const obj = {};
8883
+ if (message.validator !== "") {
8884
+ obj.validator = message.validator;
8885
+ }
8886
+ if (!message.bondedUsdc.equals(Long.UZERO)) {
8887
+ obj.bondedUsdc = (message.bondedUsdc || Long.UZERO).toString();
8888
+ }
8889
+ return obj;
8890
+ },
8891
+ create(base) {
8892
+ return ValidatorBond.fromPartial(base ?? {});
8893
+ },
8894
+ fromPartial(object) {
8895
+ const message = createBaseValidatorBond();
8896
+ message.validator = object.validator ?? "";
8897
+ message.bondedUsdc = (object.bondedUsdc !== undefined && object.bondedUsdc !== null)
8898
+ ? Long.fromValue(object.bondedUsdc)
8899
+ : Long.UZERO;
8900
+ return message;
8901
+ },
8902
+ };
8833
8903
  function bytesFromBase64$E(b64) {
8834
8904
  if (globalThis.Buffer) {
8835
8905
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -56124,6 +56194,12 @@ exports.PlayerStatus = void 0;
56124
56194
  // post the big blind via the normal ante flow. (#2139)
56125
56195
  PlayerStatus["WAITING_FOR_BIG_BLIND"] = "waiting-for-big-blind";
56126
56196
  PlayerStatus["SHOWING"] = "showing";
56197
+ // A player who declined to show a losing hand at showdown. Distinct from
56198
+ // FOLDED (folded during a betting round) so the UI/logs can tell them apart;
56199
+ // excluded from hand evaluation exactly like folded. The engine keeps the
56200
+ // internal status FOLDED and surfaces MUCKED only in the serialized DTO
56201
+ // (poker-vm#2140).
56202
+ PlayerStatus["MUCKED"] = "mucked";
56127
56203
  })(exports.PlayerStatus || (exports.PlayerStatus = {}));
56128
56204
  const SIT_IN_METHOD_NEXT_BB = "next-bb";
56129
56205
  const SIT_IN_METHOD_POST_NOW = "post-now";
@@ -62152,6 +62228,7 @@ exports.SIT_IN_METHOD_POST_NOW = SIT_IN_METHOD_POST_NOW;
62152
62228
  exports.SIT_OUT_METHOD_NEXT_BB = SIT_OUT_METHOD_NEXT_BB;
62153
62229
  exports.SIT_OUT_METHOD_NEXT_HAND = SIT_OUT_METHOD_NEXT_HAND;
62154
62230
  exports.SigningCosmosClient = SigningCosmosClient;
62231
+ exports.ValidatorBond = ValidatorBond;
62155
62232
  exports.WithdrawalRequest = WithdrawalRequest;
62156
62233
  exports.createSigningClientFromMnemonic = createSigningClientFromMnemonic;
62157
62234
  exports.createWalletFromMnemonic = createWalletFromMnemonic;