@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.d.ts +20 -2
- package/dist/index.esm.js +77 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +77 -0
- package/dist/index.js.map +1 -1
- package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/genesis.d.ts +15 -0
- package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/genesis.d.ts.map +1 -1
- package/dist/pokerchain.poker.v1/types.d.ts +2 -1
- package/dist/pokerchain.poker.v1/types.d.ts.map +1 -1
- package/dist/types/game.d.ts +4 -1
- package/dist/types/game.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44006,6 +44006,21 @@ interface WithdrawalRequest {
|
|
|
44006
44006
|
completedAt: Long;
|
|
44007
44007
|
}
|
|
44008
44008
|
declare const WithdrawalRequest: MessageFns$2<WithdrawalRequest>;
|
|
44009
|
+
/**
|
|
44010
|
+
* ValidatorBond mirrors a validator's bonded USDC from Vault.sol (Ethereum) into
|
|
44011
|
+
* poker-module state. Used to split the SNG protocol fee (poker-vm#2592) across
|
|
44012
|
+
* validators proportionally to true bonded USDC (NOT consensus power).
|
|
44013
|
+
* NOTE: bondedUsdc is mirrored from Vault.sol via the SyncEthereum EndBlock path,
|
|
44014
|
+
* so it is only as fresh as the last sync — a join between syncs splits on slightly
|
|
44015
|
+
* stale weights. Acceptable, as bonds change rarely.
|
|
44016
|
+
*/
|
|
44017
|
+
interface ValidatorBond {
|
|
44018
|
+
/** Validator address (bond owner) */
|
|
44019
|
+
validator: string;
|
|
44020
|
+
/** Bonded USDC in microunits (6 decimals), mirrored from Vault.sol */
|
|
44021
|
+
bondedUsdc: Long;
|
|
44022
|
+
}
|
|
44023
|
+
declare const ValidatorBond: MessageFns$2<ValidatorBond>;
|
|
44009
44024
|
type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
44010
44025
|
type DeepPartial$2<T> = T extends Builtin$2 ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$2<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$2<U>> : T extends {} ? {
|
|
44011
44026
|
[K in keyof T]?: DeepPartial$2<T[K]>;
|
|
@@ -45301,7 +45316,8 @@ declare enum PlayerStatus {
|
|
|
45301
45316
|
SITTING_OUT = "sitting-out",
|
|
45302
45317
|
SITTING_IN = "sitting-in",
|
|
45303
45318
|
WAITING_FOR_BIG_BLIND = "waiting-for-big-blind",
|
|
45304
|
-
SHOWING = "showing"
|
|
45319
|
+
SHOWING = "showing",
|
|
45320
|
+
MUCKED = "mucked"
|
|
45305
45321
|
}
|
|
45306
45322
|
type SitInMethod = "next-bb" | "post-now";
|
|
45307
45323
|
declare const SIT_IN_METHOD_NEXT_BB: SitInMethod;
|
|
@@ -45344,6 +45360,7 @@ type GameOptions = {
|
|
|
45344
45360
|
rake?: RakeConfig$1;
|
|
45345
45361
|
startingStack?: bigint;
|
|
45346
45362
|
entryFee?: bigint;
|
|
45363
|
+
protocolFeeBps?: number;
|
|
45347
45364
|
blindLevelDuration?: number;
|
|
45348
45365
|
blindLevel?: number;
|
|
45349
45366
|
sngStartTime?: number;
|
|
@@ -45374,6 +45391,7 @@ type GameOptionsDTO = {
|
|
|
45374
45391
|
rake?: RakeConfigDTO;
|
|
45375
45392
|
startingStack?: string;
|
|
45376
45393
|
entryFee?: string;
|
|
45394
|
+
protocolFeeBps?: number;
|
|
45377
45395
|
blindLevelDuration?: number;
|
|
45378
45396
|
blindLevel?: number;
|
|
45379
45397
|
nextSmallBlind?: string;
|
|
@@ -47028,5 +47046,5 @@ declare const Client: typeof IgniteClient & Constructor<{
|
|
|
47028
47046
|
}>;
|
|
47029
47047
|
declare const registry: Registry;
|
|
47030
47048
|
|
|
47031
|
-
export { AllPlayerActions, BLOCK52_HD_PATH, Board, 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 };
|
|
47049
|
+
export { AllPlayerActions, BLOCK52_HD_PATH, Board, 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, ValidatorBond, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, isCashFormat, isEmptyAddress, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, parseGameFormat, parseGameVariant, registry };
|
|
47032
47050
|
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
|
@@ -8828,6 +8828,76 @@ const WithdrawalRequest = {
|
|
|
8828
8828
|
return message;
|
|
8829
8829
|
},
|
|
8830
8830
|
};
|
|
8831
|
+
function createBaseValidatorBond() {
|
|
8832
|
+
return { validator: "", bondedUsdc: Long.UZERO };
|
|
8833
|
+
}
|
|
8834
|
+
const ValidatorBond = {
|
|
8835
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8836
|
+
if (message.validator !== "") {
|
|
8837
|
+
writer.uint32(10).string(message.validator);
|
|
8838
|
+
}
|
|
8839
|
+
if (!message.bondedUsdc.equals(Long.UZERO)) {
|
|
8840
|
+
writer.uint32(16).uint64(message.bondedUsdc.toString());
|
|
8841
|
+
}
|
|
8842
|
+
return writer;
|
|
8843
|
+
},
|
|
8844
|
+
decode(input, length) {
|
|
8845
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8846
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8847
|
+
const message = createBaseValidatorBond();
|
|
8848
|
+
while (reader.pos < end) {
|
|
8849
|
+
const tag = reader.uint32();
|
|
8850
|
+
switch (tag >>> 3) {
|
|
8851
|
+
case 1: {
|
|
8852
|
+
if (tag !== 10) {
|
|
8853
|
+
break;
|
|
8854
|
+
}
|
|
8855
|
+
message.validator = reader.string();
|
|
8856
|
+
continue;
|
|
8857
|
+
}
|
|
8858
|
+
case 2: {
|
|
8859
|
+
if (tag !== 16) {
|
|
8860
|
+
break;
|
|
8861
|
+
}
|
|
8862
|
+
message.bondedUsdc = Long.fromString(reader.uint64().toString(), true);
|
|
8863
|
+
continue;
|
|
8864
|
+
}
|
|
8865
|
+
}
|
|
8866
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8867
|
+
break;
|
|
8868
|
+
}
|
|
8869
|
+
reader.skip(tag & 7);
|
|
8870
|
+
}
|
|
8871
|
+
return message;
|
|
8872
|
+
},
|
|
8873
|
+
fromJSON(object) {
|
|
8874
|
+
return {
|
|
8875
|
+
validator: isSet$2a(object.validator) ? globalThis.String(object.validator) : "",
|
|
8876
|
+
bondedUsdc: isSet$2a(object.bondedUsdc) ? Long.fromValue(object.bondedUsdc) : Long.UZERO,
|
|
8877
|
+
};
|
|
8878
|
+
},
|
|
8879
|
+
toJSON(message) {
|
|
8880
|
+
const obj = {};
|
|
8881
|
+
if (message.validator !== "") {
|
|
8882
|
+
obj.validator = message.validator;
|
|
8883
|
+
}
|
|
8884
|
+
if (!message.bondedUsdc.equals(Long.UZERO)) {
|
|
8885
|
+
obj.bondedUsdc = (message.bondedUsdc || Long.UZERO).toString();
|
|
8886
|
+
}
|
|
8887
|
+
return obj;
|
|
8888
|
+
},
|
|
8889
|
+
create(base) {
|
|
8890
|
+
return ValidatorBond.fromPartial(base ?? {});
|
|
8891
|
+
},
|
|
8892
|
+
fromPartial(object) {
|
|
8893
|
+
const message = createBaseValidatorBond();
|
|
8894
|
+
message.validator = object.validator ?? "";
|
|
8895
|
+
message.bondedUsdc = (object.bondedUsdc !== undefined && object.bondedUsdc !== null)
|
|
8896
|
+
? Long.fromValue(object.bondedUsdc)
|
|
8897
|
+
: Long.UZERO;
|
|
8898
|
+
return message;
|
|
8899
|
+
},
|
|
8900
|
+
};
|
|
8831
8901
|
function bytesFromBase64$E(b64) {
|
|
8832
8902
|
if (globalThis.Buffer) {
|
|
8833
8903
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -56122,6 +56192,12 @@ var PlayerStatus;
|
|
|
56122
56192
|
// post the big blind via the normal ante flow. (#2139)
|
|
56123
56193
|
PlayerStatus["WAITING_FOR_BIG_BLIND"] = "waiting-for-big-blind";
|
|
56124
56194
|
PlayerStatus["SHOWING"] = "showing";
|
|
56195
|
+
// A player who declined to show a losing hand at showdown. Distinct from
|
|
56196
|
+
// FOLDED (folded during a betting round) so the UI/logs can tell them apart;
|
|
56197
|
+
// excluded from hand evaluation exactly like folded. The engine keeps the
|
|
56198
|
+
// internal status FOLDED and surfaces MUCKED only in the serialized DTO
|
|
56199
|
+
// (poker-vm#2140).
|
|
56200
|
+
PlayerStatus["MUCKED"] = "mucked";
|
|
56125
56201
|
})(PlayerStatus || (PlayerStatus = {}));
|
|
56126
56202
|
const SIT_IN_METHOD_NEXT_BB = "next-bb";
|
|
56127
56203
|
const SIT_IN_METHOD_POST_NOW = "post-now";
|
|
@@ -62133,5 +62209,5 @@ const registry = new Registry([
|
|
|
62133
62209
|
...msgTypes,
|
|
62134
62210
|
]);
|
|
62135
62211
|
|
|
62136
|
-
export { AllPlayerActions, BLOCK52_HD_PATH, Board, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameFormat, GameStatus, GameVariant, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params$c as 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 };
|
|
62212
|
+
export { AllPlayerActions, BLOCK52_HD_PATH, Board, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GameFormat, GameStatus, GameVariant, HandType, KEYS, MissingWalletError, NonPlayerActionType, Params$c as 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, ValidatorBond, WithdrawalRequest, createSigningClientFromMnemonic, createWalletFromMnemonic, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, isCashFormat, isEmptyAddress, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, parseGameFormat, parseGameVariant, registry };
|
|
62137
62213
|
//# sourceMappingURL=index.esm.js.map
|