@block52/poker-vm-sdk 1.24.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 +385 -46
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.esm.js +945 -107
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +948 -107
  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 +361 -32
  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 +23 -0
  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 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/pokerchain.poker.v1/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA6BtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAiB5C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/pokerchain.poker.v1/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAgCtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAoB5C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -2,9 +2,9 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import Long from "long";
3
3
  import { Params } from "./params";
4
4
  export declare const protobufPackage = "pokerchain.poker.v1";
5
- /** WithdrawalRequest represents a pending withdrawal from Cosmos to Base chain. */
5
+ /** WithdrawalRequest represents a pending withdrawal from Cosmos to Ethereum mainnet. */
6
6
  export interface WithdrawalRequest {
7
- /** Unique withdrawal nonce (used as ID and for Base contract) */
7
+ /** Unique withdrawal nonce (used as ID and for the CosmosBridge contract) */
8
8
  nonce: string;
9
9
  /** Cosmos address of the user who initiated withdrawal */
10
10
  cosmosAddress: string;
@@ -31,24 +31,10 @@ export interface DepositSyncState {
31
31
  /** Ethereum block height used for the last query (for determinism) */
32
32
  lastEthBlockHeight: Long;
33
33
  }
34
- /**
35
- * ValidatorBond mirrors a validator's bonded USDC from Vault.sol (Ethereum) into
36
- * poker-module state. Used to split the SNG protocol fee (poker-vm#2592) across
37
- * validators proportionally to true bonded USDC (NOT consensus power).
38
- * NOTE: bondedUsdc is mirrored from Vault.sol via the SyncEthereum EndBlock path,
39
- * so it is only as fresh as the last sync — a join between syncs splits on slightly
40
- * stale weights. Acceptable, as bonds change rarely.
41
- */
42
- export interface ValidatorBond {
43
- /** Validator address (bond owner) */
44
- validator: string;
45
- /** Bonded USDC in microunits (6 decimals), mirrored from Vault.sol */
46
- bondedUsdc: Long;
47
- }
48
34
  /** GenesisState defines the poker module's genesis state. */
49
35
  export interface GenesisState {
50
36
  /** params defines all the parameters of the module. */
51
- params?: Params | undefined;
37
+ params: Params | undefined;
52
38
  /** Bridge state - processed Ethereum transaction hashes (prevents double-minting) */
53
39
  processedEthTxs: string[];
54
40
  /** Withdrawal requests - pending and completed withdrawals */
@@ -56,11 +42,10 @@ export interface GenesisState {
56
42
  /** Withdrawal nonce counter - increments for each new withdrawal */
57
43
  withdrawalNonce: Long;
58
44
  /** Deposit sync state - tracks automatic deposit synchronization */
59
- depositSyncState?: DepositSyncState | undefined;
45
+ depositSyncState: DepositSyncState | undefined;
60
46
  }
61
47
  export declare const WithdrawalRequest: MessageFns<WithdrawalRequest>;
62
48
  export declare const DepositSyncState: MessageFns<DepositSyncState>;
63
- export declare const ValidatorBond: MessageFns<ValidatorBond>;
64
49
  export declare const GenesisState: MessageFns<GenesisState>;
65
50
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
66
51
  export 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 {} ? {
@@ -1 +1 @@
1
- {"version":3,"file":"genesis.d.ts","sourceRoot":"","sources":["../../../../../../src/pokerchain.poker.v1/types/pokerchain/poker/v1/genesis.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,eAAe,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AAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAMnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -3,8 +3,72 @@ import Long from "long";
3
3
  export declare const protobufPackage = "pokerchain.poker.v1";
4
4
  /** Params defines the parameters for the module. */
5
5
  export interface Params {
6
+ /**
7
+ * vrf_shuffle_enforced is DEPRECATED as of PR 5 of #163. The
8
+ * legacy block-hash shuffle has been removed entirely; VRF-keyed
9
+ * shuffling is now always on. The field is retained for proto
10
+ * compatibility with state on disk and for historical block
11
+ * replay; its value is ignored. Do not remove or repurpose this
12
+ * tag — doing so would break replay of blocks recorded between
13
+ * PR 4 and PR 5.
14
+ *
15
+ * @deprecated
16
+ */
17
+ vrfShuffleEnforced: boolean;
18
+ /**
19
+ * sng_payout_structures maps entrant_count -> ordered payout
20
+ * percentages in basis points (1/10000). Each entry's basis
21
+ * points MUST sum to exactly 10000. The Nth entry pays place
22
+ * N+1. Used by SNG finalization to credit prize-pool shares.
23
+ * Reject SNG game creation if no entry exists for max_players.
24
+ */
25
+ sngPayoutStructures: {
26
+ [key: number]: SngPayoutStructure;
27
+ };
28
+ /**
29
+ * gateway_operators is the allowlist of addresses permitted to call the
30
+ * privileged GameStateFull query (unmasked deck + hole cards), used by
31
+ * the optimistic WS action gateway to serve chain tables off the hot
32
+ * path (poker-vm#2211, #217). Operators authenticate with the same
33
+ * EIP-191 signed-query scheme as players; an empty list disables the
34
+ * query entirely. Updated via governance (MsgUpdateParams).
35
+ */
36
+ gatewayOperators: string[];
37
+ /**
38
+ * min_validator_bond is the minimum self-bond, in USDC micro-units
39
+ * (6 decimals; 10000000 = 10 USDC), that a validator must supply in
40
+ * MsgCreateValidator to join the active set. Enforced at tx time by the
41
+ * ante handler (MinValidatorBondDecorator), not by staking hooks. This
42
+ * is a temporary bring-up threshold, changeable by governance via
43
+ * MsgUpdateParams — no chain upgrade required (#289).
44
+ */
45
+ minValidatorBond: Long;
46
+ /**
47
+ * protocol_fee_bps is the network protocol fee, in basis points (1/10000),
48
+ * skimmed from each player's buy-in on join for SNG/Tournament games and
49
+ * split to bonded validators by stake (poker-vm#2592). It is snapshotted onto
50
+ * each game's gameOptions at creation (MsgCreateGame), so a later governance
51
+ * change only affects games created afterward. 0 = no protocol fee. Cash games
52
+ * never carry a protocol fee. Changeable by governance via MsgUpdateParams;
53
+ * must be <= 10000. (poker-vm#2592 / pokerchain#340)
54
+ */
55
+ protocolFeeBps: number;
56
+ }
57
+ export interface Params_SngPayoutStructuresEntry {
58
+ key: number;
59
+ value: SngPayoutStructure | undefined;
60
+ }
61
+ /**
62
+ * SngPayoutStructure holds the ordered payout percentages for a
63
+ * given SNG entrant count, expressed in basis points (1/10000).
64
+ * payouts[0] is paid to 1st place, payouts[1] to 2nd, etc.
65
+ */
66
+ export interface SngPayoutStructure {
67
+ payoutsBps: number[];
6
68
  }
7
69
  export declare const Params: MessageFns<Params>;
70
+ export declare const Params_SngPayoutStructuresEntry: MessageFns<Params_SngPayoutStructuresEntry>;
71
+ export declare const SngPayoutStructure: MessageFns<SngPayoutStructure>;
8
72
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
9
73
  export 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 {} ? {
10
74
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/pokerchain.poker.v1/types/pokerchain/poker/v1/params.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,oDAAoD;AACpD,MAAM,WAAW,MAAM;CACtB;AAMD,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,CAqCrC,CAAC;AAEF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,CAAC,SAAS,UAAU,CAAC,KAA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AC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -10,7 +10,7 @@ export interface QueryParamsRequest {
10
10
  /** QueryParamsResponse is response type for the Query/Params RPC method. */
11
11
  export interface QueryParamsResponse {
12
12
  /** params holds all the parameters of this module. */
13
- params?: Params | undefined;
13
+ params: Params | undefined;
14
14
  }
15
15
  /** QueryGameRequest defines the QueryGameRequest message. */
16
16
  export interface QueryGameRequest {
@@ -58,6 +58,29 @@ export interface QueryGameStateRequest {
58
58
  export interface QueryGameStateResponse {
59
59
  gameState: string;
60
60
  }
61
+ /**
62
+ * QueryOptimisticPendingAction is one decoded mempool MsgPerformAction the caller
63
+ * (ws-server) has read from unconfirmed_txs and wants folded into the projection.
64
+ */
65
+ export interface QueryOptimisticPendingAction {
66
+ player: string;
67
+ action: string;
68
+ amount: Long;
69
+ data: string;
70
+ }
71
+ export interface QueryOptimisticGameStateRequest {
72
+ gameId: string;
73
+ /** requesting player (per-player card masking) */
74
+ playerAddress: string;
75
+ /** Unix seconds; validated within 1h of block time */
76
+ timestamp: Long;
77
+ /** EIP-191 signature of the timestamp */
78
+ signature: string;
79
+ pendingActions: QueryOptimisticPendingAction[];
80
+ }
81
+ export interface QueryOptimisticGameStateResponse {
82
+ gameState: string;
83
+ }
61
84
  /** QueryGameStatePublicRequest defines the QueryGameStatePublicRequest message. */
62
85
  export interface QueryGameStatePublicRequest {
63
86
  gameId: string;
@@ -66,6 +89,46 @@ export interface QueryGameStatePublicRequest {
66
89
  export interface QueryGameStatePublicResponse {
67
90
  gameState: string;
68
91
  }
92
+ /**
93
+ * QueryGameStateFullRequest requests the unmasked game state. operator_address
94
+ * must be in the gateway_operators params allowlist; signature is the EIP-191
95
+ * personal_sign of "pokerchain-query:<timestamp>" by the operator's key.
96
+ */
97
+ export interface QueryGameStateFullRequest {
98
+ gameId: string;
99
+ operatorAddress: string;
100
+ /** Unix timestamp in seconds (±1h of block time) */
101
+ timestamp: Long;
102
+ signature: string;
103
+ }
104
+ /**
105
+ * QueryGameStateFullResponse carries the unmasked state plus the root game
106
+ * metadata the gateway needs to serve the table (canonical
107
+ * GameStateResponseDTO fields — format/variant live outside the game state).
108
+ */
109
+ export interface QueryGameStateFullResponse {
110
+ /** JSON-serialized TexasHoldemStateDTO, deck and all hole cards UNMASKED */
111
+ gameState: string;
112
+ format: string;
113
+ variant: string;
114
+ creator: string;
115
+ }
116
+ /**
117
+ * QueryGameStateAtRequest defines the request for fetching a snapshot of game state
118
+ * at a specific (hand_number, action_index).
119
+ */
120
+ export interface QueryGameStateAtRequest {
121
+ gameId: string;
122
+ /** 1-indexed hand number; must equal the live hand for MVP */
123
+ handNumber: Long;
124
+ /** Global action index (matches ActionDTO.index). State returned reflects actions at or before this index. */
125
+ actionIndex: Long;
126
+ }
127
+ /** QueryGameStateAtResponse defines the response for the snapshot query. */
128
+ export interface QueryGameStateAtResponse {
129
+ /** JSON-encoded TexasHoldemStateDTO with previousActions truncated and hole cards masked (public view). */
130
+ gameState: string;
131
+ }
69
132
  /** QueryIsTxProcessedRequest defines the request for checking if a tx has been processed */
70
133
  export interface QueryIsTxProcessedRequest {
71
134
  ethTxHash: string;
@@ -80,18 +143,18 @@ export interface QueryGetWithdrawalRequestRequest {
80
143
  }
81
144
  /** QueryGetWithdrawalRequestResponse defines the response for getting a withdrawal request */
82
145
  export interface QueryGetWithdrawalRequestResponse {
83
- withdrawalRequest?: WithdrawalRequest | undefined;
146
+ withdrawalRequest: WithdrawalRequest | undefined;
84
147
  }
85
148
  /** QueryListWithdrawalRequestsRequest defines the request for listing withdrawal requests */
86
149
  export interface QueryListWithdrawalRequestsRequest {
87
150
  /** Optional: filter by cosmos address (empty = all withdrawals) */
88
151
  cosmosAddress: string;
89
- pagination?: PageRequest | undefined;
152
+ pagination: PageRequest | undefined;
90
153
  }
91
154
  /** QueryListWithdrawalRequestsResponse defines the response for listing withdrawal requests */
92
155
  export interface QueryListWithdrawalRequestsResponse {
93
156
  withdrawalRequests: WithdrawalRequest[];
94
- pagination?: PageResponse | undefined;
157
+ pagination: PageResponse | undefined;
95
158
  }
96
159
  /** QueryCalculateEquityRequest defines the request for calculating hand equity */
97
160
  export interface QueryCalculateEquityRequest {
@@ -152,8 +215,165 @@ export interface PvmStatus {
152
215
  }
153
216
  /** QueryVersionResponse defines the response for getting version info */
154
217
  export interface QueryVersionResponse {
155
- chain?: ChainVersion | undefined;
156
- pvm?: PvmStatus | undefined;
218
+ chain: ChainVersion | undefined;
219
+ pvm: PvmStatus | undefined;
220
+ }
221
+ /** QueryGameByNameRequest is the request for resolving a table name. */
222
+ export interface QueryGameByNameRequest {
223
+ /** raw name; normalized server-side like MsgCreateGame */
224
+ name: string;
225
+ }
226
+ /** QueryGameByNameResponse carries the game a claimed name points at. */
227
+ export interface QueryGameByNameResponse {
228
+ /** the normalized (stored) name */
229
+ name: string;
230
+ /** the game that claimed it */
231
+ gameId: string;
232
+ }
233
+ /** QueryNameAvailableRequest is the request for a table-name availability check. */
234
+ export interface QueryNameAvailableRequest {
235
+ /** raw name; normalized server-side like MsgCreateGame */
236
+ name: string;
237
+ }
238
+ /** QueryNameAvailableResponse reports availability and price for a name. */
239
+ export interface QueryNameAvailableResponse {
240
+ /** the normalized name that would be stored */
241
+ name: string;
242
+ /** true when no game has claimed it */
243
+ available: boolean;
244
+ /** naming fee in micro-USDC (GameNameFee) */
245
+ fee: Long;
246
+ }
247
+ /** QueryNftAvatarRequest defines the request for getting a player's NFT avatar */
248
+ export interface QueryNftAvatarRequest {
249
+ cosmosAddress: string;
250
+ }
251
+ /** QueryNftAvatarResponse defines the response for getting a player's NFT avatar */
252
+ export interface QueryNftAvatarResponse {
253
+ /** The cosmos address */
254
+ cosmosAddress: string;
255
+ /** The ETH address that owns the NFT */
256
+ ethAddress: string;
257
+ /** NFT contract address */
258
+ contractAddress: string;
259
+ /** NFT token ID */
260
+ tokenId: string;
261
+ }
262
+ /**
263
+ * QuerySngClaimSignatureRequest is the request for fetching the
264
+ * validator-signed payload backing an SngWinNFT.claim() call.
265
+ */
266
+ export interface QuerySngClaimSignatureRequest {
267
+ /** pokerchain game ID */
268
+ gameId: string;
269
+ /** requesting player (must be a paid finisher) */
270
+ cosmosAddress: string;
271
+ }
272
+ /**
273
+ * QuerySngClaimSignatureResponse mirrors the SngWinNFT.claim() argument
274
+ * shape exactly — the UI passes these fields straight to the contract.
275
+ *
276
+ * All numeric fields are returned as strings so the UI can pass them
277
+ * to BigInt() without parsing-precision loss. The signature is a
278
+ * 0x-prefixed 65-byte hex string (standard EVM v/r/s encoding,
279
+ * `v` adjusted to 27/28).
280
+ */
281
+ export interface QuerySngClaimSignatureResponse {
282
+ /** 0x-prefixed EVM address — recipient of the NFT */
283
+ recipient: string;
284
+ /** 0x-prefixed bytes32 of the pokerchain gameId */
285
+ gameId: string;
286
+ /** finishing position (1 = winner) */
287
+ place: number;
288
+ /** USDC microunits, decimal string */
289
+ payout: string;
290
+ /** pokerchain block time at tournament-end (seconds) */
291
+ timestamp: Long;
292
+ /** 0x-prefixed keccak256(format) — keccak256("sit-and-go") for SNG */
293
+ format: string;
294
+ /** 0x-prefixed 65-byte validator signature */
295
+ signature: string;
296
+ }
297
+ /**
298
+ * QueryBridgeSignerRequest asks a node which Ethereum address it signs
299
+ * withdrawals with.
300
+ */
301
+ export interface QueryBridgeSignerRequest {
302
+ /** validator address to bind the attestation to */
303
+ cosmosAddress: string;
304
+ }
305
+ /**
306
+ * QueryBridgeSignerResponse carries the signer address and a proof of key
307
+ * possession bound to cosmos_address.
308
+ */
309
+ export interface QueryBridgeSignerResponse {
310
+ /** echoed back, and committed to by the signature */
311
+ cosmosAddress: string;
312
+ /** 0x-prefixed address this node signs withdrawals with */
313
+ ethAddress: string;
314
+ /** the exact text that was signed (EIP-191 personal_sign) */
315
+ message: string;
316
+ /** 0x-prefixed 65-byte signature over `message` */
317
+ signature: string;
318
+ }
319
+ /**
320
+ * QueryWithdrawalSignatureRequest is the request for fetching a validator
321
+ * signature for a pending withdrawal.
322
+ */
323
+ export interface QueryWithdrawalSignatureRequest {
324
+ /** Withdrawal nonce, 0x-prefixed bytes32 */
325
+ nonce: string;
326
+ }
327
+ /**
328
+ * QueryWithdrawalSignatureResponse mirrors the CosmosBridge.withdraw()
329
+ * argument list, so a caller can pass these straight through.
330
+ */
331
+ export interface QueryWithdrawalSignatureResponse {
332
+ /** 0x-prefixed EVM address the USDC is owed to */
333
+ receiver: string;
334
+ /** USDC microunits, decimal string */
335
+ amount: string;
336
+ /** 0x-prefixed bytes32 withdrawal nonce */
337
+ nonce: string;
338
+ /** 0x-prefixed 65-byte validator signature */
339
+ signature: string;
340
+ }
341
+ /** QueryDeckRequest is request type for the Query/Deck RPC method. */
342
+ export interface QueryDeckRequest {
343
+ gameId: string;
344
+ handNumber: Long;
345
+ }
346
+ /**
347
+ * QueryDeckResponse carries the authoritative deck for a hand. When the VRF
348
+ * seed is not yet committed, committed=false and deck is empty.
349
+ */
350
+ export interface QueryDeckResponse {
351
+ deck: string;
352
+ committed: boolean;
353
+ }
354
+ /** QueryTournamentLeaderboardRequest asks for one tournament's standings. */
355
+ export interface QueryTournamentLeaderboardRequest {
356
+ tournamentId: string;
357
+ }
358
+ /**
359
+ * QueryTournamentLeaderboardResponse carries the engine's LeaderboardDTO as
360
+ * JSON, verbatim (camelCase fields, BigNumber values as strings), the same way
361
+ * QueryGameStateResponse carries table state.
362
+ */
363
+ export interface QueryTournamentLeaderboardResponse {
364
+ leaderboard: string;
365
+ }
366
+ /** QueryTournamentRequest asks for one tournament's state. */
367
+ export interface QueryTournamentRequest {
368
+ tournamentId: string;
369
+ }
370
+ /**
371
+ * QueryTournamentResponse carries the engine's TournamentStateDTO as JSON,
372
+ * verbatim, plus the creator (who receives entry fees).
373
+ */
374
+ export interface QueryTournamentResponse {
375
+ tournament: string;
376
+ creator: string;
157
377
  }
158
378
  export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
159
379
  export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
@@ -167,8 +387,15 @@ export declare const QueryLegalActionsRequest: MessageFns<QueryLegalActionsReque
167
387
  export declare const QueryLegalActionsResponse: MessageFns<QueryLegalActionsResponse>;
168
388
  export declare const QueryGameStateRequest: MessageFns<QueryGameStateRequest>;
169
389
  export declare const QueryGameStateResponse: MessageFns<QueryGameStateResponse>;
390
+ export declare const QueryOptimisticPendingAction: MessageFns<QueryOptimisticPendingAction>;
391
+ export declare const QueryOptimisticGameStateRequest: MessageFns<QueryOptimisticGameStateRequest>;
392
+ export declare const QueryOptimisticGameStateResponse: MessageFns<QueryOptimisticGameStateResponse>;
170
393
  export declare const QueryGameStatePublicRequest: MessageFns<QueryGameStatePublicRequest>;
171
394
  export declare const QueryGameStatePublicResponse: MessageFns<QueryGameStatePublicResponse>;
395
+ export declare const QueryGameStateFullRequest: MessageFns<QueryGameStateFullRequest>;
396
+ export declare const QueryGameStateFullResponse: MessageFns<QueryGameStateFullResponse>;
397
+ export declare const QueryGameStateAtRequest: MessageFns<QueryGameStateAtRequest>;
398
+ export declare const QueryGameStateAtResponse: MessageFns<QueryGameStateAtResponse>;
172
399
  export declare const QueryIsTxProcessedRequest: MessageFns<QueryIsTxProcessedRequest>;
173
400
  export declare const QueryIsTxProcessedResponse: MessageFns<QueryIsTxProcessedResponse>;
174
401
  export declare const QueryGetWithdrawalRequestRequest: MessageFns<QueryGetWithdrawalRequestRequest>;
@@ -183,6 +410,24 @@ export declare const QueryVersionRequest: MessageFns<QueryVersionRequest>;
183
410
  export declare const ChainVersion: MessageFns<ChainVersion>;
184
411
  export declare const PvmStatus: MessageFns<PvmStatus>;
185
412
  export declare const QueryVersionResponse: MessageFns<QueryVersionResponse>;
413
+ export declare const QueryGameByNameRequest: MessageFns<QueryGameByNameRequest>;
414
+ export declare const QueryGameByNameResponse: MessageFns<QueryGameByNameResponse>;
415
+ export declare const QueryNameAvailableRequest: MessageFns<QueryNameAvailableRequest>;
416
+ export declare const QueryNameAvailableResponse: MessageFns<QueryNameAvailableResponse>;
417
+ export declare const QueryNftAvatarRequest: MessageFns<QueryNftAvatarRequest>;
418
+ export declare const QueryNftAvatarResponse: MessageFns<QueryNftAvatarResponse>;
419
+ export declare const QuerySngClaimSignatureRequest: MessageFns<QuerySngClaimSignatureRequest>;
420
+ export declare const QuerySngClaimSignatureResponse: MessageFns<QuerySngClaimSignatureResponse>;
421
+ export declare const QueryBridgeSignerRequest: MessageFns<QueryBridgeSignerRequest>;
422
+ export declare const QueryBridgeSignerResponse: MessageFns<QueryBridgeSignerResponse>;
423
+ export declare const QueryWithdrawalSignatureRequest: MessageFns<QueryWithdrawalSignatureRequest>;
424
+ export declare const QueryWithdrawalSignatureResponse: MessageFns<QueryWithdrawalSignatureResponse>;
425
+ export declare const QueryDeckRequest: MessageFns<QueryDeckRequest>;
426
+ export declare const QueryDeckResponse: MessageFns<QueryDeckResponse>;
427
+ export declare const QueryTournamentLeaderboardRequest: MessageFns<QueryTournamentLeaderboardRequest>;
428
+ export declare const QueryTournamentLeaderboardResponse: MessageFns<QueryTournamentLeaderboardResponse>;
429
+ export declare const QueryTournamentRequest: MessageFns<QueryTournamentRequest>;
430
+ export declare const QueryTournamentResponse: MessageFns<QueryTournamentResponse>;
186
431
  /** Query defines the gRPC querier service. */
187
432
  export interface Query {
188
433
  /** Parameters queries the parameters of the module. */
@@ -199,6 +444,47 @@ export interface Query {
199
444
  GameState(request: QueryGameStateRequest): Promise<QueryGameStateResponse>;
200
445
  /** GameStatePublic Queries the public game state (unauthenticated, all cards masked). */
201
446
  GameStatePublic(request: QueryGameStatePublicRequest): Promise<QueryGameStatePublicResponse>;
447
+ /**
448
+ * GameStateFull queries the UNMASKED game state (deck + all hole cards)
449
+ * for registered gateway operators only (#217). Authenticated via the
450
+ * EIP-191 signed-query scheme; the recovered address must be in the
451
+ * gateway_operators params allowlist.
452
+ */
453
+ GameStateFull(request: QueryGameStateFullRequest): Promise<QueryGameStateFullResponse>;
454
+ /**
455
+ * GameStateAt returns the public game state for a specific (hand_number, action_index).
456
+ * Used by readonly share links for social posting (see poker-vm#2025).
457
+ * Scope: currently supports the live (current) hand only — returns the state with
458
+ * previousActions truncated to actions at or before action_index. Clients replay the
459
+ * truncated action log via the SDK engine to render the precise visual state at that
460
+ * moment. Historical hand snapshots (past hands) are not yet supported and return 404.
461
+ */
462
+ GameStateAt(request: QueryGameStateAtRequest): Promise<QueryGameStateAtResponse>;
463
+ /**
464
+ * TournamentLeaderboard returns a tournament's live standings for the lobby
465
+ * and the in-play leaderboard (block52/pokerchain#405, poker-vm#2613). The
466
+ * response carries the engine's LeaderboardDTO as JSON, verbatim, the same
467
+ * way game_state serves table state: the keeper loads the stored
468
+ * TournamentStateDTO and calls engine.Leaderboard — the chain computes no
469
+ * ranking of its own, so this query, the ws-server oracle and every
470
+ * validator agree. Unauthenticated: standings are public.
471
+ */
472
+ TournamentLeaderboard(request: QueryTournamentLeaderboardRequest): Promise<QueryTournamentLeaderboardResponse>;
473
+ /**
474
+ * Tournament returns a tournament's full state — options, entrants, tables,
475
+ * clock, payouts and results — as the engine's TournamentStateDTO JSON,
476
+ * verbatim (poker-vm#2613). Public: the director's state carries no hole
477
+ * cards or decks.
478
+ */
479
+ Tournament(request: QueryTournamentRequest): Promise<QueryTournamentResponse>;
480
+ /**
481
+ * OptimisticGameState replays PENDING mempool actions (supplied by the caller,
482
+ * since a query cannot see the mempool itself) onto the committed state via the
483
+ * PVM and returns the per-player-masked projection (#2473). gRPC-only (the
484
+ * repeated pending_actions don't fit an HTTP GET path); called by the ws-server
485
+ * relay to serve sub-block-latency state. Authenticated like GameState.
486
+ */
487
+ OptimisticGameState(request: QueryOptimisticGameStateRequest): Promise<QueryOptimisticGameStateResponse>;
202
488
  /** IsTxProcessed checks if an Ethereum transaction hash has been processed */
203
489
  IsTxProcessed(request: QueryIsTxProcessedRequest): Promise<QueryIsTxProcessedResponse>;
204
490
  /** GetWithdrawalRequest queries a specific withdrawal request by nonce */
@@ -209,6 +495,80 @@ export interface Query {
209
495
  CalculateEquity(request: QueryCalculateEquityRequest): Promise<QueryCalculateEquityResponse>;
210
496
  /** Version returns chain version info and PVM health status */
211
497
  Version(request: QueryVersionRequest): Promise<QueryVersionResponse>;
498
+ /** NftAvatar queries the registered NFT avatar for a cosmos address */
499
+ NftAvatar(request: QueryNftAvatarRequest): Promise<QueryNftAvatarResponse>;
500
+ /**
501
+ * GameByName resolves a paid table name (ENS-style, #337) to its game.
502
+ * The name is normalized exactly as MsgCreateGame does; NOT_FOUND when the
503
+ * name is unclaimed, INVALID_ARGUMENT when it is not a valid table name.
504
+ */
505
+ GameByName(request: QueryGameByNameRequest): Promise<QueryGameByNameResponse>;
506
+ /**
507
+ * NameAvailable reports whether a table name can still be claimed, and what
508
+ * it would cost. Cheap (a single index Has) — safe for a debounced
509
+ * create-table form. Normalized exactly as MsgCreateGame does (#374).
510
+ */
511
+ NameAvailable(request: QueryNameAvailableRequest): Promise<QueryNameAvailableResponse>;
512
+ /**
513
+ * SngClaimSignature returns a validator-signed payload that the
514
+ * recipient passes to SngWinNFT.claim() on Ethereum to mint a
515
+ * commemorative NFT for their paid SNG finish.
516
+ *
517
+ * The chain validates that the requesting cosmos address has a
518
+ * paid finish in gameState.results[] for the given game, looks up
519
+ * the linked ETH address via the NftAvatar mapping (the same
520
+ * cosmos→ETH linkage used by withdrawals), and signs
521
+ * keccak256(abi.encodePacked(recipient, gameId, place, payout,
522
+ * timestamp, format)) with the validator_eth_private_key. The
523
+ * signature is single-validator (whichever node serves the query);
524
+ * any validator's signature is accepted by the smart contract,
525
+ * mirroring the withdraw flow.
526
+ *
527
+ * Refs block52/poker-vm#2119, block52/poker-vm#2120 (contract),
528
+ * block52/ui#373 (UI).
529
+ */
530
+ SngClaimSignature(request: QuerySngClaimSignatureRequest): Promise<QuerySngClaimSignatureResponse>;
531
+ /**
532
+ * WithdrawalSignature returns a validator signature for a pending withdrawal,
533
+ * which the recipient passes to CosmosBridge.withdraw() on Ethereum mainnet.
534
+ *
535
+ * This is a QUERY, deliberately. A signature is per-validator by construction
536
+ * -- every validator holds a different Ethereum key -- so it can never live in
537
+ * consensus state. Signing used to run in EndBlock and write the result to
538
+ * state, which halted the chain at height 110147 (block52/pokerchain#343).
539
+ *
540
+ * The signature is single-validator (whichever node serves the query); the
541
+ * contract accepts any whitelisted validator's signature, mirroring the SNG
542
+ * claim flow. Nodes without a validator_eth_private_key return a clear error
543
+ * so callers can retry against a validator endpoint.
544
+ */
545
+ WithdrawalSignature(request: QueryWithdrawalSignatureRequest): Promise<QueryWithdrawalSignatureResponse>;
546
+ /**
547
+ * BridgeSigner reports the Ethereum address this node signs withdrawals with,
548
+ * together with an attestation proving it actually holds the key.
549
+ *
550
+ * The whitelist contract (WhiteListVault) has no enumeration method, so the
551
+ * set of registered signers has to be tracked by hand. This query lets each
552
+ * validator report its own signer address instead of anyone reading private
553
+ * keys off a host to derive it.
554
+ *
555
+ * The attestation is signed with the BRIDGE key, not the cosmos key: a query
556
+ * handler has no access to the cosmos consensus key (CometBFT holds it) or to
557
+ * a keyring. It commits to the caller-supplied cosmos address, so the
558
+ * response cannot be replayed as a claim about a different validator, and
559
+ * recovering the signer must yield eth_address — which is what proves the
560
+ * node holds that key rather than merely echoing a configured string.
561
+ *
562
+ * Refs block52/pokerchain#344.
563
+ */
564
+ BridgeSigner(request: QueryBridgeSignerRequest): Promise<QueryBridgeSignerResponse>;
565
+ /**
566
+ * Deck is DISABLED (#356): every request is refused with PermissionDenied.
567
+ * It returned the full committed deck for any hand, including hands not yet
568
+ * played, over public REST. Operators read the deck through the signed,
569
+ * allowlisted GameStateFull query. Kept so the API keeps its shape.
570
+ */
571
+ Deck(request: QueryDeckRequest): Promise<QueryDeckResponse>;
212
572
  }
213
573
  export declare const QueryServiceName = "pokerchain.poker.v1.Query";
214
574
  export declare class QueryClientImpl implements Query {
@@ -224,11 +584,23 @@ export declare class QueryClientImpl implements Query {
224
584
  LegalActions(request: QueryLegalActionsRequest): Promise<QueryLegalActionsResponse>;
225
585
  GameState(request: QueryGameStateRequest): Promise<QueryGameStateResponse>;
226
586
  GameStatePublic(request: QueryGameStatePublicRequest): Promise<QueryGameStatePublicResponse>;
587
+ GameStateFull(request: QueryGameStateFullRequest): Promise<QueryGameStateFullResponse>;
588
+ GameStateAt(request: QueryGameStateAtRequest): Promise<QueryGameStateAtResponse>;
589
+ TournamentLeaderboard(request: QueryTournamentLeaderboardRequest): Promise<QueryTournamentLeaderboardResponse>;
590
+ Tournament(request: QueryTournamentRequest): Promise<QueryTournamentResponse>;
591
+ OptimisticGameState(request: QueryOptimisticGameStateRequest): Promise<QueryOptimisticGameStateResponse>;
227
592
  IsTxProcessed(request: QueryIsTxProcessedRequest): Promise<QueryIsTxProcessedResponse>;
228
593
  GetWithdrawalRequest(request: QueryGetWithdrawalRequestRequest): Promise<QueryGetWithdrawalRequestResponse>;
229
594
  ListWithdrawalRequests(request: QueryListWithdrawalRequestsRequest): Promise<QueryListWithdrawalRequestsResponse>;
230
595
  CalculateEquity(request: QueryCalculateEquityRequest): Promise<QueryCalculateEquityResponse>;
231
596
  Version(request: QueryVersionRequest): Promise<QueryVersionResponse>;
597
+ NftAvatar(request: QueryNftAvatarRequest): Promise<QueryNftAvatarResponse>;
598
+ GameByName(request: QueryGameByNameRequest): Promise<QueryGameByNameResponse>;
599
+ NameAvailable(request: QueryNameAvailableRequest): Promise<QueryNameAvailableResponse>;
600
+ SngClaimSignature(request: QuerySngClaimSignatureRequest): Promise<QuerySngClaimSignatureResponse>;
601
+ WithdrawalSignature(request: QueryWithdrawalSignatureRequest): Promise<QueryWithdrawalSignatureResponse>;
602
+ BridgeSigner(request: QueryBridgeSignerRequest): Promise<QueryBridgeSignerResponse>;
603
+ Deck(request: QueryDeckRequest): Promise<QueryDeckResponse>;
232
604
  }
233
605
  interface Rpc {
234
606
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;