@block52/poker-vm-sdk 1.23.0 → 1.25.0

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.
Files changed (30) hide show
  1. package/dist/cosmosClient.d.ts +11 -1
  2. package/dist/cosmosClient.d.ts.map +1 -1
  3. package/dist/index.d.ts +393 -54
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.esm.js +974 -128
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +977 -128
  8. package/dist/index.js.map +1 -1
  9. package/dist/pokerchain.poker.v1/registry.d.ts.map +1 -1
  10. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/genesis.d.ts +4 -19
  11. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/genesis.d.ts.map +1 -1
  12. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/params.d.ts +64 -0
  13. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/params.d.ts.map +1 -1
  14. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/query.d.ts +378 -6
  15. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/query.d.ts.map +1 -1
  16. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/tx.d.ts +369 -40
  17. package/dist/pokerchain.poker.v1/types/pokerchain/poker/v1/tx.d.ts.map +1 -1
  18. package/dist/pokerchain.poker.v1/types.d.ts +1 -2
  19. package/dist/pokerchain.poker.v1/types.d.ts.map +1 -1
  20. package/dist/signingClient.d.ts +28 -4
  21. package/dist/signingClient.d.ts.map +1 -1
  22. package/dist/types/game.d.ts +66 -0
  23. package/dist/types/game.d.ts.map +1 -1
  24. package/dist/types/rest.d.ts +8 -0
  25. package/dist/types/rest.d.ts.map +1 -1
  26. package/dist/utils/createTournament.d.ts +43 -0
  27. package/dist/utils/createTournament.d.ts.map +1 -0
  28. package/dist/utils/tournamentState.d.ts +15 -0
  29. package/dist/utils/tournamentState.d.ts.map +1 -0
  30. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { EquityResult, EquityResponse, CosmosConfig, Coin } from "./sdkTypes";
2
2
  import type { AccountQueryResponse, GetTxResponse, WithdrawalRequestResponse } from "./types/rest";
3
3
  import { IClient } from "./IClient";
4
- import type { LegalActionDTO, GameOptionsResponse, GameListItem, BlockResponse, GameStateResponse, LeaderboardDTO } from "./types/game";
4
+ import type { LegalActionDTO, GameOptionsResponse, GameListItem, BlockResponse, GameStateResponse, LeaderboardDTO, TournamentStateDTO } from "./types/game";
5
5
  export declare class CosmosClient implements IClient {
6
6
  protected readonly config: CosmosConfig;
7
7
  private readonly restClient;
@@ -110,6 +110,16 @@ export declare class CosmosClient implements IClient {
110
110
  * malformed leaderboard — throws.
111
111
  */
112
112
  getTournamentLeaderboard(tournamentId: string): Promise<LeaderboardDTO | null>;
113
+ /**
114
+ * A multi-table tournament's full record: options, entrants, tables, level
115
+ * clock, prize pool, payouts and results (poker-vm#2613,
116
+ * block52/pokerchain#445). Unauthenticated.
117
+ *
118
+ * @returns the tournament, or null when the chain has no tournament with
119
+ * this ID (gRPC NotFound, HTTP 404). Any other failure, including a
120
+ * malformed record, throws.
121
+ */
122
+ getTournament(tournamentId: string): Promise<TournamentStateDTO | null>;
113
123
  /**
114
124
  * Calculate equity for multiple hands using Monte Carlo simulation
115
125
  * Used when players are all-in and showing to display win percentages
@@ -1 +1 @@
1
- {"version":3,"file":"cosmosClient.d.ts","sourceRoot":"","sources":["../src/cosmosClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAsC,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACvI,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB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,MAAM,EAAE,EAAE,EACjB,KAAK,GAAE,MAAM,EAAO,EACpB,IAAI,GAAE,MAAM,EAAO,EACnB,WAAW,GAAE,MAAc,GAC5B,OAAO,CAAC,cAAc,CAAC;IAmB1B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC;AAKD,eAAO,MAAM,eAAe,GAAI,SAAS,YAAY,KAAG,YAUvD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,YAAY,KAAG,YAG7D,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAAI,SAAQ,MAAoB,KAAG,YAOpE,CAAC;AAGH,OAAO,EACH,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,IAAI,EACT,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACtB,MAAM,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -43965,8 +43965,67 @@ interface MessageFns$4<T> {
43965
43965
 
43966
43966
  /** Params defines the parameters for the module. */
43967
43967
  interface Params {
43968
+ /**
43969
+ * vrf_shuffle_enforced is DEPRECATED as of PR 5 of #163. The
43970
+ * legacy block-hash shuffle has been removed entirely; VRF-keyed
43971
+ * shuffling is now always on. The field is retained for proto
43972
+ * compatibility with state on disk and for historical block
43973
+ * replay; its value is ignored. Do not remove or repurpose this
43974
+ * tag — doing so would break replay of blocks recorded between
43975
+ * PR 4 and PR 5.
43976
+ *
43977
+ * @deprecated
43978
+ */
43979
+ vrfShuffleEnforced: boolean;
43980
+ /**
43981
+ * sng_payout_structures maps entrant_count -> ordered payout
43982
+ * percentages in basis points (1/10000). Each entry's basis
43983
+ * points MUST sum to exactly 10000. The Nth entry pays place
43984
+ * N+1. Used by SNG finalization to credit prize-pool shares.
43985
+ * Reject SNG game creation if no entry exists for max_players.
43986
+ */
43987
+ sngPayoutStructures: {
43988
+ [key: number]: SngPayoutStructure;
43989
+ };
43990
+ /**
43991
+ * gateway_operators is the allowlist of addresses permitted to call the
43992
+ * privileged GameStateFull query (unmasked deck + hole cards), used by
43993
+ * the optimistic WS action gateway to serve chain tables off the hot
43994
+ * path (poker-vm#2211, #217). Operators authenticate with the same
43995
+ * EIP-191 signed-query scheme as players; an empty list disables the
43996
+ * query entirely. Updated via governance (MsgUpdateParams).
43997
+ */
43998
+ gatewayOperators: string[];
43999
+ /**
44000
+ * min_validator_bond is the minimum self-bond, in USDC micro-units
44001
+ * (6 decimals; 10000000 = 10 USDC), that a validator must supply in
44002
+ * MsgCreateValidator to join the active set. Enforced at tx time by the
44003
+ * ante handler (MinValidatorBondDecorator), not by staking hooks. This
44004
+ * is a temporary bring-up threshold, changeable by governance via
44005
+ * MsgUpdateParams — no chain upgrade required (#289).
44006
+ */
44007
+ minValidatorBond: Long;
44008
+ /**
44009
+ * protocol_fee_bps is the network protocol fee, in basis points (1/10000),
44010
+ * skimmed from each player's buy-in on join for SNG/Tournament games and
44011
+ * split to bonded validators by stake (poker-vm#2592). It is snapshotted onto
44012
+ * each game's gameOptions at creation (MsgCreateGame), so a later governance
44013
+ * change only affects games created afterward. 0 = no protocol fee. Cash games
44014
+ * never carry a protocol fee. Changeable by governance via MsgUpdateParams;
44015
+ * must be <= 10000. (poker-vm#2592 / pokerchain#340)
44016
+ */
44017
+ protocolFeeBps: number;
43968
44018
  }
43969
44019
  declare const Params: MessageFns$3<Params>;
44020
+ /**
44021
+ * SngPayoutStructure holds the ordered payout percentages for a
44022
+ * given SNG entrant count, expressed in basis points (1/10000).
44023
+ * payouts[0] is paid to 1st place, payouts[1] to 2nd, etc.
44024
+ */
44025
+ interface SngPayoutStructure {
44026
+ payoutsBps: number[];
44027
+ }
44028
+ declare const SngPayoutStructure: MessageFns$3<SngPayoutStructure>;
43970
44029
  type Builtin$3 = Date | Function | Uint8Array | string | number | boolean | undefined;
43971
44030
  type DeepPartial$3<T> = T extends Builtin$3 ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial$3<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial$3<U>> : T extends {} ? {
43972
44031
  [K in keyof T]?: DeepPartial$3<T[K]>;
@@ -43986,9 +44045,9 @@ interface MessageFns$3<T> {
43986
44045
  fromPartial<I extends Exact$3<DeepPartial$3<T>, I>>(object: I): T;
43987
44046
  }
43988
44047
 
43989
- /** WithdrawalRequest represents a pending withdrawal from Cosmos to Base chain. */
44048
+ /** WithdrawalRequest represents a pending withdrawal from Cosmos to Ethereum mainnet. */
43990
44049
  interface WithdrawalRequest {
43991
- /** Unique withdrawal nonce (used as ID and for Base contract) */
44050
+ /** Unique withdrawal nonce (used as ID and for the CosmosBridge contract) */
43992
44051
  nonce: string;
43993
44052
  /** Cosmos address of the user who initiated withdrawal */
43994
44053
  cosmosAddress: string;
@@ -44006,21 +44065,6 @@ interface WithdrawalRequest {
44006
44065
  completedAt: Long;
44007
44066
  }
44008
44067
  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>;
44024
44068
  type Builtin$2 = Date | Function | Uint8Array | string | number | boolean | undefined;
44025
44069
  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 {} ? {
44026
44070
  [K in keyof T]?: DeepPartial$2<T[K]>;
@@ -44055,7 +44099,7 @@ declare const QueryGameStateRequest: MessageFns$1<QueryGameStateRequest>;
44055
44099
  interface QueryListWithdrawalRequestsRequest {
44056
44100
  /** Optional: filter by cosmos address (empty = all withdrawals) */
44057
44101
  cosmosAddress: string;
44058
- pagination?: PageRequest | undefined;
44102
+ pagination: PageRequest | undefined;
44059
44103
  }
44060
44104
  declare const QueryListWithdrawalRequestsRequest: MessageFns$1<QueryListWithdrawalRequestsRequest>;
44061
44105
  type Builtin$1 = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -44162,7 +44206,90 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
44162
44206
  * @request GET:/block52/pokerchain/poker/v1/params
44163
44207
  */
44164
44208
  queryParams: (query?: Record<string, any>, params?: RequestParams) => Promise<AxiosResponse<{
44165
- params?: {};
44209
+ params: {
44210
+ vrf_shuffle_enforced: boolean;
44211
+ sng_payout_structures: {
44212
+ [x: number]: {
44213
+ payouts_bps: number[];
44214
+ };
44215
+ };
44216
+ gateway_operators: string[];
44217
+ min_validator_bond: {
44218
+ high: number;
44219
+ low: number;
44220
+ unsigned: boolean;
44221
+ add: {};
44222
+ and: {};
44223
+ compare: {};
44224
+ comp: {};
44225
+ divide: {};
44226
+ div: {};
44227
+ equals: {};
44228
+ eq: {};
44229
+ get_high_bits: {};
44230
+ get_high_bits_unsigned: {};
44231
+ get_low_bits: {};
44232
+ get_low_bits_unsigned: {};
44233
+ get_num_bits_abs: {};
44234
+ greater_than: {};
44235
+ gt: {};
44236
+ greater_than_or_equal: {};
44237
+ gte: {};
44238
+ ge: {};
44239
+ is_even: {};
44240
+ is_negative: {};
44241
+ is_odd: {};
44242
+ is_positive: {};
44243
+ is_safe_integer: {};
44244
+ is_zero: {};
44245
+ eqz: {};
44246
+ less_than: {};
44247
+ lt: {};
44248
+ less_than_or_equal: {};
44249
+ lte: {};
44250
+ le: {};
44251
+ modulo: {};
44252
+ mod: {};
44253
+ rem: {};
44254
+ multiply: {};
44255
+ mul: {};
44256
+ negate: {};
44257
+ neg: {};
44258
+ not: {};
44259
+ count_leading_zeros: {};
44260
+ clz: {};
44261
+ count_trailing_zeros: {};
44262
+ ctz: {};
44263
+ not_equals: {};
44264
+ neq: {};
44265
+ ne: {};
44266
+ or: {};
44267
+ shift_left: {};
44268
+ shl: {};
44269
+ shift_right: {};
44270
+ shr: {};
44271
+ shift_right_unsigned: {};
44272
+ shru: {};
44273
+ shr_u: {};
44274
+ rotate_left: {};
44275
+ rotl: {};
44276
+ rotate_right: {};
44277
+ rotr: {};
44278
+ subtract: {};
44279
+ sub: {};
44280
+ to_big_int: {};
44281
+ to_int: {};
44282
+ to_number: {};
44283
+ to_bytes: {};
44284
+ to_bytes_le: {};
44285
+ to_bytes_be: {};
44286
+ to_signed: {};
44287
+ to_string: {};
44288
+ to_unsigned: {};
44289
+ xor: {};
44290
+ };
44291
+ protocol_fee_bps: number;
44292
+ };
44166
44293
  }, any, {}>>;
44167
44294
  /**
44168
44295
  * QueryGame
@@ -44242,7 +44369,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
44242
44369
  * @request GET:/block52/pokerchain/poker/v1/withdrawal_request/{nonce}
44243
44370
  */
44244
44371
  queryGetWithdrawalRequest: (nonce: string, query?: Record<string, any>, params?: RequestParams) => Promise<AxiosResponse<{
44245
- withdrawal_request?: {
44372
+ withdrawal_request: {
44246
44373
  nonce: string;
44247
44374
  cosmos_address: string;
44248
44375
  base_address: string;
@@ -44709,7 +44836,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
44709
44836
  xor: {};
44710
44837
  };
44711
44838
  }[];
44712
- pagination?: {
44839
+ pagination: {
44713
44840
  next_key: string;
44714
44841
  total: {
44715
44842
  high: number;
@@ -44818,7 +44945,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
44818
44945
  * @request GET:/block52/pokerchain/poker/v1/version
44819
44946
  */
44820
44947
  queryVersion: (query?: Record<string, any>, params?: RequestParams) => Promise<AxiosResponse<{
44821
- chain?: {
44948
+ chain: {
44822
44949
  name: string;
44823
44950
  version: string;
44824
44951
  consensus_version: {
@@ -44896,7 +45023,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
44896
45023
  xor: {};
44897
45024
  };
44898
45025
  };
44899
- pvm?: {
45026
+ pvm: {
44900
45027
  healthy: boolean;
44901
45028
  version: string;
44902
45029
  endpoint: string;
@@ -44910,7 +45037,7 @@ interface MsgUpdateParams {
44910
45037
  /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
44911
45038
  authority: string;
44912
45039
  /** NOTE: All parameters must be supplied. */
44913
- params?: Params | undefined;
45040
+ params: Params | undefined;
44914
45041
  }
44915
45042
  declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
44916
45043
  /** MsgCreateGame defines the MsgCreateGame message. */
@@ -44939,46 +45066,62 @@ interface MsgCreateGame {
44939
45066
  blindLevelDuration: number;
44940
45067
  /** Poker variant (texas-holdem/omaha) */
44941
45068
  gameVariant: string;
44942
- /** SNG flat entry fee in micro-units, skimmed to the creator (poker-vm#2118) */
45069
+ /**
45070
+ * SNG flat entry fee in micro-units. Skimmed from each player's buy-in
45071
+ * at join time and sent to the table creator (poker-vm#2118). Cash
45072
+ * games must leave this at 0; SNGs may set it >= 0.
45073
+ */
44943
45074
  entryFee: Long;
44944
45075
  /**
44945
- * Optional ENS-style table name (field 19). Lowercase [a-z0-9-], 1-32 chars,
44946
- * globally unique, $0.10/char to validators. Empty = unnamed. (block52/pokerchain#337)
45076
+ * The 32-byte player entropy seed the creator folds into HAND 1's VRF deck
45077
+ * (#2450 Layer 2 hand-1 anchor). The proposer pre-scans MsgCreateGame,
45078
+ * derives the gameId, and commits a hand-1 DeckSeed with this seed, so hand 1
45079
+ * is chain-authoritative like every other hand. Empty = proposer-only entropy.
45080
+ */
45081
+ playerSeed: Uint8Array;
45082
+ /**
45083
+ * Optional ENS-style human-readable table name. Lowercase ASCII [a-z0-9-],
45084
+ * 1-32 code points, no leading/trailing/double hyphen. GLOBALLY UNIQUE
45085
+ * (first-come-first-served) — a duplicate reverts. Costs $0.10/char
45086
+ * (100_000 micro-USDC/char), charged on top of the game-creation cost and
45087
+ * paid to validators. Empty = unnamed (no fee), identified by gameId only.
45088
+ * (block52/pokerchain#337, block52/ui#562)
44947
45089
  */
44948
45090
  name: string;
44949
45091
  /**
44950
- * Betting structure (field 20): "no-limit" | "pot-limit". Empty = the
44951
- * variant's default, pot-limit for omaha, no-limit for texas-holdem.
44952
- * (block52/pokerchain#407)
45092
+ * Betting structure, orthogonal to the variant: "no-limit", "pot-limit", or
45093
+ * "fixed-limit" (texas-holdem only, poker-vm#2654). Empty = the variant's default:
45094
+ * pot-limit for omaha (PLO), no-limit for texas-holdem. (#407)
44953
45095
  */
44954
45096
  bettingLimit: string;
44955
45097
  /**
44956
- * Scheduled start for a sit-and-go, unix seconds (field 21). With it,
44957
- * min_players may be below max_players: the tournament starts when the table
44958
- * fills or at this time with at least min_players registered, and is
44959
- * cancelled with refunds if fewer have registered 15 minutes after it.
44960
- * 0 = unscheduled: starts only when full. (poker-vm#2680)
45098
+ * Start of a tournament, unix seconds (poker-vm#2680, #2776). Required for a
45099
+ * tournament and refused otherwise. It starts at this time with at least
45100
+ * min_players registered (the engine's START action), never earlier, and is
45101
+ * cancelled with refunds if fewer have registered 15 minutes after it. A
45102
+ * sit-and-go has none: it starts when the table fills.
44961
45103
  */
44962
45104
  startTime: Long;
44963
45105
  /**
44964
- * Blind structure for a sit-and-go / tournament (field 22): JSON of the SDK's
44965
- * BlindStructureDTO — a preset ({"preset":"turbo"}) or an explicit double /
44966
- * linear / percentage / table structure. Empty = the blinds double every
44967
- * blind_level_duration minutes. Cash games must leave it empty.
44968
- * (poker-vm#1734, block52/pokerchain#434)
45106
+ * Blind structure for a sit-and-go / tournament (poker-vm#1734 via #2613,
45107
+ * block52/pokerchain#434): JSON of the SDK's BlindStructureDTO — a preset
45108
+ * ({"preset":"turbo"}), or an explicit double / linear / percentage / table
45109
+ * structure. The engine derives every level's blinds, big-blind ante and
45110
+ * duration from it. Empty = the blinds double every blind_level_duration
45111
+ * minutes, as before. Cash games must leave it empty.
44969
45112
  */
44970
45113
  blindStructure: string;
44971
45114
  /**
44972
- * Late registration for a scheduled sit-and-go (field 23): after the start,
44973
- * new players may still join while the blind level (0-based) is below this,
44974
- * until anyone has finished in the money. Requires start_time. 0 = none: the
44975
- * field is fixed at the start. (poker-vm#2731)
45115
+ * Late registration for a tournament (poker-vm#2731): after the
45116
+ * start, new players may still join while the blind level (0-based) is
45117
+ * below this, until anyone has finished in the money. Requires start_time.
45118
+ * 0 = none: the field is fixed at the start.
44976
45119
  */
44977
45120
  lateRegistrationLevels: number;
44978
45121
  /**
44979
- * Hold a scheduled sit-and-go until start_time even when the table fills
44980
- * first (poker-vm#2760): it starts only at the start time. Requires
44981
- * start_time. false = it starts when the table fills, as before.
45122
+ * Hold a table until start_time even when it fills first (poker-vm#2760). A
45123
+ * tournament always does, whatever this says; only sent by older clients.
45124
+ * Refused on any other format.
44982
45125
  */
44983
45126
  waitForStartTime: boolean;
44984
45127
  }
@@ -44996,10 +45139,14 @@ interface MsgLeaveGame {
44996
45139
  creator: string;
44997
45140
  gameId: string;
44998
45141
  /**
44999
- * finishing_order: place-1-first player addresses for an SNG that finalized
45000
- * off-chain (WS-first money-movers, poker-vm#2325). Empty for cash games and
45001
- * for SNGs the chain already finalized. The chain validates this ordering
45002
- * and recomputes payouts with its own prize-pool math. (pokerchain#229)
45142
+ * finishing_order is the place-1-first list of player addresses for an
45143
+ * SNG that finalized off-chain (WS-first money-movers, poker-vm#2325). The
45144
+ * chain never sees the tournament-ending gameplay action, so GameStates
45145
+ * .Results can be empty when the winner leaves. When present and Results
45146
+ * is empty, the chain validates this ordering structurally and recomputes
45147
+ * the payouts with its OWN prize-pool math — the caller supplies only the
45148
+ * ORDER, never any amount. Empty for cash games and for SNGs the chain
45149
+ * already finalized itself. (pokerchain#229)
45003
45150
  */
45004
45151
  finishingOrder: string[];
45005
45152
  }
@@ -45055,7 +45202,7 @@ declare const MsgProcessDeposit: MessageFns<MsgProcessDeposit>;
45055
45202
  /**
45056
45203
  * MsgInitiateWithdrawal defines the MsgInitiateWithdrawal message.
45057
45204
  * Initiates a withdrawal by burning USDC on Cosmos and creating a withdrawal request
45058
- * that can be completed on Base chain with a validator signature.
45205
+ * that can be completed on Ethereum mainnet with a validator signature.
45059
45206
  */
45060
45207
  interface MsgInitiateWithdrawal {
45061
45208
  creator: string;
@@ -45087,6 +45234,45 @@ interface MsgDeleteGame {
45087
45234
  gameId: string;
45088
45235
  }
45089
45236
  declare const MsgDeleteGame: MessageFns<MsgDeleteGame>;
45237
+ /**
45238
+ * MsgCreateTournament opens a multi-table tournament (poker-vm#2613). Every
45239
+ * field is required (Commandment 7); the engine's NewTournament validates them.
45240
+ * Money fields are micro-USDC; chip fields are chips.
45241
+ */
45242
+ interface MsgCreateTournament {
45243
+ creator: string;
45244
+ /** Gross buy-in per entrant, micro-USDC. */
45245
+ buyIn: Long;
45246
+ /**
45247
+ * Flat entry fee per entrant, micro-USDC, paid to the creator at
45248
+ * registration and never refunded. 0 = none. Must be below buy_in.
45249
+ */
45250
+ entryFee: Long;
45251
+ /** Chips each entrant starts with. */
45252
+ startingStack: Long;
45253
+ /** Seats per table, 2..9. */
45254
+ seatsPerTable: number;
45255
+ /**
45256
+ * The tournament is cancelled with refunds if fewer than this have
45257
+ * registered at start_time. At least 2.
45258
+ */
45259
+ minEntrants: number;
45260
+ /** Registration closes at this many entrants. min_entrants..180. */
45261
+ maxEntrants: number;
45262
+ /**
45263
+ * Scheduled start, unix seconds; registration closes then. Must be in the
45264
+ * future.
45265
+ */
45266
+ startTime: Long;
45267
+ /**
45268
+ * JSON of the engine's BlindStructureDTO: a preset ({"preset":"turbo"}) or an
45269
+ * explicit double / linear / percentage / table structure (poker-vm#1734).
45270
+ */
45271
+ blindStructure: string;
45272
+ /** Every directed table's action clock, seconds (gameOptions.timeout). */
45273
+ actionTimeoutSeconds: number;
45274
+ }
45275
+ declare const MsgCreateTournament: MessageFns<MsgCreateTournament>;
45090
45276
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45091
45277
  type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
45092
45278
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -45677,6 +45863,70 @@ type LeaderboardDTO = {
45677
45863
  nextLevelAt?: number;
45678
45864
  entries: LeaderboardEntryDTO[];
45679
45865
  };
45866
+ /**
45867
+ * A multi-table tournament's options (engine TournamentOptionsDTO, set by
45868
+ * MsgCreateTournament). Chip and money fields are strings; `startTime` is epoch
45869
+ * **milliseconds** here (MsgCreateTournament.start_time is unix seconds).
45870
+ */
45871
+ type TournamentOptionsDTO = {
45872
+ buyIn: string;
45873
+ entryFee?: string;
45874
+ protocolFeeBps?: number;
45875
+ startingStack: string;
45876
+ seatsPerTable: number;
45877
+ minEntrants: number;
45878
+ maxEntrants: number;
45879
+ startTime: number;
45880
+ blindStructure: BlindStructureDTO;
45881
+ actionTimeoutSeconds: number;
45882
+ };
45883
+ /** One registered player (engine TournamentEntrantDTO). */
45884
+ type TournamentEntrantDTO = {
45885
+ address: string;
45886
+ status: TournamentEntrantStatus;
45887
+ tableId?: string;
45888
+ seat?: number;
45889
+ stack: string;
45890
+ };
45891
+ /** The director's view of one table (engine TournamentTableDTO). */
45892
+ type TournamentTableDTO = {
45893
+ tableId: string;
45894
+ ordinal: number;
45895
+ players: string[];
45896
+ broken: boolean;
45897
+ handNumber: number;
45898
+ atBoundary: boolean;
45899
+ hold?: string;
45900
+ };
45901
+ /** A reserved table move that has not executed yet (engine MoveIntentDTO). */
45902
+ type MoveIntentDTO = {
45903
+ key: string;
45904
+ address: string;
45905
+ from: string;
45906
+ to: string;
45907
+ seat: number;
45908
+ reason: string;
45909
+ };
45910
+ /**
45911
+ * The tournament record: the `tournament` JSON string of the chain's Tournament
45912
+ * query, parsed by parseTournamentStateDTO. Mirrors pvm/go/engine
45913
+ * TournamentStateDTO field for field.
45914
+ */
45915
+ type TournamentStateDTO = {
45916
+ tournamentId: string;
45917
+ status: TournamentStatus;
45918
+ options: TournamentOptionsDTO;
45919
+ entrants: TournamentEntrantDTO[];
45920
+ tables: TournamentTableDTO[];
45921
+ startedAt?: number;
45922
+ level: number;
45923
+ levelStartTime?: number;
45924
+ prizePool: string;
45925
+ payouts: PayoutPlaceDTO[];
45926
+ results: ResultDTO[];
45927
+ intents: MoveIntentDTO[];
45928
+ seq: number;
45929
+ };
45680
45930
  /**
45681
45931
  * The reveal a sealed hand is stopped on (poker-vm#2695): "board" = the next
45682
45932
  * street is due from the dealer, "deal" = the deck is due at showdown, "" =
@@ -45723,6 +45973,8 @@ type TexasHoldemStateDTO = {
45723
45973
  smallBlindPosition?: number;
45724
45974
  bigBlindPosition?: number;
45725
45975
  dealer?: number;
45976
+ /** Set only on a directed table of a multi-table tournament: the tournament it belongs to (poker-vm#2613). The game id is `<tournamentId>-t<n>`. */
45977
+ tournamentId?: string;
45726
45978
  players: PlayerDTO[];
45727
45979
  communityCards: string[];
45728
45980
  deck: string;
@@ -46306,6 +46558,61 @@ declare function isLateRegistrationOpen(options: GameOptionsDTO, results: Result
46306
46558
  */
46307
46559
  declare function parseLeaderboardDTO(json: string): LeaderboardDTO;
46308
46560
 
46561
+ /**
46562
+ * Parses the `tournament` JSON string of the chain's Tournament query
46563
+ * (GET /block52/pokerchain/poker/v1/tournament/{id}) into a TournamentStateDTO.
46564
+ * Checks the fields consumers rely on and throws on anything missing or
46565
+ * mistyped — never fills a default (Commandment 7).
46566
+ *
46567
+ * One wire quirk is normalised: the engine is Go, and a nil slice marshals as
46568
+ * `null`. A registering tournament has no tables, results or intents yet, so
46569
+ * `tables`, `payouts`, `results` and `intents` may arrive as `null` and are
46570
+ * returned as `[]`. That is an encoding artefact, not a hidden default: every
46571
+ * other missing or mistyped field throws.
46572
+ */
46573
+ declare function parseTournamentStateDTO(json: string): TournamentStateDTO;
46574
+
46575
+ /** The most entrants a tournament can register (engine MaxTournamentEntrants). */
46576
+ declare const MAX_TOURNAMENT_ENTRANTS = 180;
46577
+ /**
46578
+ * What a multi-table tournament is created with (MsgCreateTournament,
46579
+ * poker-vm#2613). Every field is required — there are no defaults
46580
+ * (Commandment 7); the chain and the engine validate again.
46581
+ */
46582
+ type CreateTournamentParams = {
46583
+ /** Gross buy-in per entrant, micro-USDC (the entry fee and the protocol cut come out of it). */
46584
+ buyIn: bigint;
46585
+ /** Flat entry fee per entrant, micro-USDC, paid to the creator at registration and never refunded. 0n = none. Must be below the buy-in. */
46586
+ entryFee: bigint;
46587
+ /** Chips each entrant starts with. */
46588
+ startingStack: bigint;
46589
+ /** Seats per table, 2..9. */
46590
+ seatsPerTable: number;
46591
+ /** The tournament is cancelled with refunds if fewer have registered at the start. At least 2. */
46592
+ minEntrants: number;
46593
+ /** Registration closes at this many entrants: minEntrants..180. */
46594
+ maxEntrants: number;
46595
+ /** Scheduled start, unix **seconds**; registration closes then. Must be in the future when the tx lands. */
46596
+ startTime: number;
46597
+ /** A preset (`{ preset: "turbo" }`) or an explicit double / linear / percentage / table structure. */
46598
+ blindStructure: BlindStructureDTO;
46599
+ /** Every directed table's action clock, seconds. */
46600
+ actionTimeoutSeconds: number;
46601
+ };
46602
+ /**
46603
+ * Throws if the parameters could never create a tournament. Mirrors the
46604
+ * structural rules of the engine's NewTournament and the chain's
46605
+ * CreateTournament, so a form fails before it signs; it does not check the
46606
+ * start time against the clock or the blind structure's own rules (the engine
46607
+ * does).
46608
+ */
46609
+ declare function assertCreatableTournament(p: CreateTournamentParams): void;
46610
+ /**
46611
+ * The MsgCreateTournament for these parameters. The blind structure travels as
46612
+ * its JSON string, the way the engine reads it.
46613
+ */
46614
+ declare function buildMsgCreateTournament(creator: string, p: CreateTournamentParams): MsgCreateTournament;
46615
+
46309
46616
  /**
46310
46617
  * Poker hand types in order of strength (weakest to strongest)
46311
46618
  */
@@ -46971,6 +47278,16 @@ declare class CosmosClient implements IClient {
46971
47278
  * malformed leaderboard — throws.
46972
47279
  */
46973
47280
  getTournamentLeaderboard(tournamentId: string): Promise<LeaderboardDTO | null>;
47281
+ /**
47282
+ * A multi-table tournament's full record: options, entrants, tables, level
47283
+ * clock, prize pool, payouts and results (poker-vm#2613,
47284
+ * block52/pokerchain#445). Unauthenticated.
47285
+ *
47286
+ * @returns the tournament, or null when the chain has no tournament with
47287
+ * this ID (gRPC NotFound, HTTP 404). Any other failure, including a
47288
+ * malformed record, throws.
47289
+ */
47290
+ getTournament(tournamentId: string): Promise<TournamentStateDTO | null>;
46974
47291
  /**
46975
47292
  * Calculate equity for multiple hands using Monte Carlo simulation
46976
47293
  * Used when players are all-in and showing to display win percentages
@@ -47102,6 +47419,28 @@ declare class SigningCosmosClient extends CosmosClient {
47102
47419
  * block52/pokerchain#439).
47103
47420
  */
47104
47421
  createGame(gameFormat: string, gameVariant: string, minPlayers: number, maxPlayers: number, minBuyInB52USDC: bigint, maxBuyInB52USDC: bigint, smallBlindB52USDC: bigint, bigBlindB52USDC: bigint, timeout: number, rakeConfig?: RakeConfig, sngConfig?: SNGConfig, name?: string, bettingLimit?: BettingLimit): Promise<string>;
47422
+ /**
47423
+ * Create a multi-table tournament (MsgCreateTournament, poker-vm#2613).
47424
+ * The creator pays the creation fee and is paid each entrant's entry fee.
47425
+ *
47426
+ * @returns the transaction hash and the chain-assigned tournament id (from
47427
+ * the `tournament_created` event).
47428
+ */
47429
+ createTournament(params: CreateTournamentParams): Promise<{
47430
+ transactionHash: string;
47431
+ tournamentId: string;
47432
+ }>;
47433
+ /**
47434
+ * Register the signer for a tournament (MsgRegisterTournament): escrows the
47435
+ * buy-in. The entry fee and the protocol cut are taken at registration.
47436
+ */
47437
+ registerTournament(tournamentId: string): Promise<string>;
47438
+ /**
47439
+ * Withdraw the signer's registration (MsgUnregisterTournament): returns the
47440
+ * escrowed net buy-in (the entry fee and protocol cut are not refunded).
47441
+ */
47442
+ unregisterTournament(tournamentId: string): Promise<string>;
47443
+ private tournamentMsg;
47105
47444
  /**
47106
47445
  * Join a poker game
47107
47446
  */
@@ -47663,5 +48002,5 @@ declare const Client: typeof IgniteClient & Constructor<{
47663
48002
  }>;
47664
48003
  declare const registry: Registry;
47665
48004
 
47666
- export { AllPlayerActions, BLIND_PRESETS, BLIND_PRESET_STRUCTURES, BLIND_PROGRESSIONS, BLOCK52_HD_PATH, BettingLimit, Board, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GAME_NAME_MICRO_PER_CHAR, GameFormat, GameStatus, GameVariant, HandType, KEYS, MAX_GAME_NAME_LENGTH, MSG_CREATE_VALIDATOR_TYPE_URL, 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, TOURNAMENT_ENTRANT_STATUSES, TOURNAMENT_STATUSES, TexasHoldemRound, TxExecutionError, ValidatorBond, WithdrawalRequest, assertCreatableBettingLimit, assertExecuted, buildMsgCreateValidator, computeGameNameFee, createSigningClientFromMnemonic, createWalletFromMnemonic, decToAtomics, expandBlindLevel, formatBlindStructure, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getBettingLimit, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, holeCardsPerPlayer, isCashFormat, isEmptyAddress, isLateRegistrationOpen, isPotLimit, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, lateRegistrationClosesAt, parseBlindStructure, parseGameFormat, parseGameVariant, parseLeaderboardDTO, registry, resolveBlindPreset, roundBlind, toValoperAddress, txFailureHash, txFailurePhase };
47667
- export type { AccountDTO, ActionDTO, AnteRuleDTO, BlindLevelDTO, BlindPreset, BlindProgression, BlindStructureDTO, BlindStructurePresetDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, CreateValidatorParams, DoubleBlindStructureDTO, EquityHand, EquityRequest, EquityResponse, EquityResult, ExecutionResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LeaderboardDTO, LeaderboardEntryDTO, LegalActionDTO, LinearBlindStructureDTO, PayoutPlaceDTO, PercentageBlindStructureDTO, PerformActionResponse, PlayerDTO, PotDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SealedAwaiting, SealedDTO, SitInMethod, SitOutMethod, TableBlindStructureDTO, TexasHoldemGameState, TexasHoldemStateDTO, TournamentClockDTO, TournamentEntrantStatus, TournamentStatus, TransactionDTO, TransactionResponse, TxFailurePhase, WalletInfo, WinnerDTO, WinnerPotDTO, WithdrawResponseDTO };
48005
+ export { AllPlayerActions, BLIND_PRESETS, BLIND_PRESET_STRUCTURES, BLIND_PROGRESSIONS, BLOCK52_HD_PATH, BettingLimit, Board, COSMOS_CONSTANTS, Client, CosmosClient, Deck, GAME_NAME_MICRO_PER_CHAR, GameFormat, GameStatus, GameVariant, HandType, KEYS, MAX_GAME_NAME_LENGTH, MAX_TOURNAMENT_ENTRANTS, MSG_CREATE_VALIDATOR_TYPE_URL, 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, TOURNAMENT_ENTRANT_STATUSES, TOURNAMENT_STATUSES, TexasHoldemRound, TxExecutionError, WithdrawalRequest, assertCreatableBettingLimit, assertCreatableTournament, assertExecuted, buildMsgCreateTournament, buildMsgCreateValidator, computeGameNameFee, createSigningClientFromMnemonic, createWalletFromMnemonic, decToAtomics, expandBlindLevel, formatBlindStructure, formatGameFormatDisplay, formatGameVariantDisplay, generateWallet, getActionByType, getAddressFromMnemonic, getBettingLimit, getDefaultCosmosConfig, getGameFormat, getGameFormatForCosmos, getGameFormatFromObject, getGameVariant, hasAction, holeCardsPerPlayer, isCashFormat, isEmptyAddress, isLateRegistrationOpen, isPotLimit, isSitAndGoFormat, isTournamentFormat, isValidMnemonic, isValidPlayerAddress, lateRegistrationClosesAt, parseBlindStructure, parseGameFormat, parseGameVariant, parseLeaderboardDTO, parseTournamentStateDTO, registry, resolveBlindPreset, roundBlind, toValoperAddress, txFailureHash, txFailurePhase };
48006
+ export type { AccountDTO, ActionDTO, AnteRuleDTO, BlindLevelDTO, BlindPreset, BlindProgression, BlindStructureDTO, BlindStructurePresetDTO, Block, BlockDTO, BlockHeader, BlockHeaderDTO, BlockID, BlockResponse, BurnResponseDTO, Card, CreateTournamentParams, CreateValidatorParams, DoubleBlindStructureDTO, EquityHand, EquityRequest, EquityResponse, EquityResult, ExecutionResult, GameListItem, GameOptions, GameOptionsDTO, GameOptionsResponse, GameStateResponse, GameStateResponseDTO, HandEvaluation, ISignedResponse, LeaderboardDTO, LeaderboardEntryDTO, LegalActionDTO, LinearBlindStructureDTO, MoveIntentDTO, PayoutPlaceDTO, PercentageBlindStructureDTO, PerformActionResponse, PlayerDTO, PotDTO, RPCRequest, RPCRequestParams, RPCResponse, RakeConfig, RakeConfigDTO, ResultDTO, SealedAwaiting, SealedDTO, SitInMethod, SitOutMethod, TableBlindStructureDTO, TexasHoldemGameState, TexasHoldemStateDTO, TournamentClockDTO, TournamentEntrantDTO, TournamentEntrantStatus, TournamentOptionsDTO, TournamentStateDTO, TournamentStatus, TournamentTableDTO, TransactionDTO, TransactionResponse, TxFailurePhase, WalletInfo, WinnerDTO, WinnerPotDTO, WithdrawResponseDTO };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAkC/C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEV,CAAC;AAEH,QAAA,MAAM,QAAQ,UAiCZ,CAAA;AAGF,cAAc,6BAA6B,CAAA;AAG3C,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGpG,cAAc,eAAe,CAAA;AAG7B,cAAc,eAAe,CAAA;AAG7B,cAAc,yBAAyB,CAAA;AAGvC,cAAc,qBAAqB,CAAA;AAGnC,cAAc,sBAAsB,CAAA;AAGpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;A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