@block52/poker-vm-sdk 1.2.4 → 1.2.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _cosmjs_stargate from '@cosmjs/stargate';
2
- import { StdFee, DeliverTxResponse, GasPrice } from '@cosmjs/stargate';
2
+ import { StdFee, DeliverTxResponse, GasPrice, SignerData } from '@cosmjs/stargate';
3
3
  import * as _cosmjs_proto_signing from '@cosmjs/proto-signing';
4
4
  import { GeneratedType, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet, Registry } from '@cosmjs/proto-signing';
5
5
  import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
@@ -46460,6 +46460,27 @@ declare class SigningCosmosClient extends CosmosClient {
46460
46460
  * rejects (invalid signature, malformed msg, insufficient gas).
46461
46461
  */
46462
46462
  performActionSync(gameId: string, action: string, amount?: bigint, data?: string): Promise<string>;
46463
+ /**
46464
+ * Signs a MsgPerformAction and returns the base64-encoded TxRaw WITHOUT
46465
+ * broadcasting. Used by the optimistic gateway settlement relay
46466
+ * (OPTIMISTIC_ACTION_ARCHITECTURE.md §6.10): the FE hands the signed bytes
46467
+ * to the gateway, which relays them to the chain's existing tx pipeline —
46468
+ * no chain changes, valid player signature.
46469
+ *
46470
+ * Pass `signerData` to use a locally-tracked sequence (the caller queries
46471
+ * the account once and increments +1 per action, avoiding a per-action
46472
+ * sequence query — required because optimistic actions are signed faster
46473
+ * than the chain commits). Omit it to fetch account_number/sequence from
46474
+ * the chain (one-shot, e.g. the first action of a session).
46475
+ *
46476
+ * Requires the player account to EXIST on-chain (funded). Same gasless
46477
+ * fee + msg shape as {@link performActionSync}.
46478
+ */
46479
+ signPerformAction(gameId: string, action: string, amount?: bigint, data?: string, signerData?: SignerData): Promise<{
46480
+ base64: string;
46481
+ sequence: number;
46482
+ accountNumber: number;
46483
+ }>;
46463
46484
  /**
46464
46485
  * Top up a player's stack at a table
46465
46486
  * The player must be seated at the table and have sufficient wallet balance.