@block52/poker-vm-sdk 1.2.4 → 1.2.6
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 +24 -1
- package/dist/index.esm.js +3024 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3024 -0
- package/dist/index.js.map +1 -1
- package/dist/signingClient.d.ts +22 -1
- package/dist/signingClient.d.ts.map +1 -1
- package/dist/types/game.d.ts +2 -0
- package/dist/types/game.d.ts.map +1 -1
- package/package.json +1 -1
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';
|
|
@@ -45316,6 +45316,7 @@ type GameOptions = {
|
|
|
45316
45316
|
startingStack?: bigint;
|
|
45317
45317
|
blindLevelDuration?: number;
|
|
45318
45318
|
blindLevel?: number;
|
|
45319
|
+
sngStartTime?: number;
|
|
45319
45320
|
levelStartTime?: number;
|
|
45320
45321
|
otherOptions?: Record<string, any>;
|
|
45321
45322
|
};
|
|
@@ -45346,6 +45347,7 @@ type GameOptionsDTO = {
|
|
|
45346
45347
|
blindLevel?: number;
|
|
45347
45348
|
nextSmallBlind?: string;
|
|
45348
45349
|
nextBigBlind?: string;
|
|
45350
|
+
sngStartTime?: number;
|
|
45349
45351
|
levelStartTime?: number;
|
|
45350
45352
|
otherOptions?: Record<string, any>;
|
|
45351
45353
|
};
|
|
@@ -46460,6 +46462,27 @@ declare class SigningCosmosClient extends CosmosClient {
|
|
|
46460
46462
|
* rejects (invalid signature, malformed msg, insufficient gas).
|
|
46461
46463
|
*/
|
|
46462
46464
|
performActionSync(gameId: string, action: string, amount?: bigint, data?: string): Promise<string>;
|
|
46465
|
+
/**
|
|
46466
|
+
* Signs a MsgPerformAction and returns the base64-encoded TxRaw WITHOUT
|
|
46467
|
+
* broadcasting. Used by the optimistic gateway settlement relay
|
|
46468
|
+
* (OPTIMISTIC_ACTION_ARCHITECTURE.md §6.10): the FE hands the signed bytes
|
|
46469
|
+
* to the gateway, which relays them to the chain's existing tx pipeline —
|
|
46470
|
+
* no chain changes, valid player signature.
|
|
46471
|
+
*
|
|
46472
|
+
* Pass `signerData` to use a locally-tracked sequence (the caller queries
|
|
46473
|
+
* the account once and increments +1 per action, avoiding a per-action
|
|
46474
|
+
* sequence query — required because optimistic actions are signed faster
|
|
46475
|
+
* than the chain commits). Omit it to fetch account_number/sequence from
|
|
46476
|
+
* the chain (one-shot, e.g. the first action of a session).
|
|
46477
|
+
*
|
|
46478
|
+
* Requires the player account to EXIST on-chain (funded). Same gasless
|
|
46479
|
+
* fee + msg shape as {@link performActionSync}.
|
|
46480
|
+
*/
|
|
46481
|
+
signPerformAction(gameId: string, action: string, amount?: bigint, data?: string, signerData?: SignerData): Promise<{
|
|
46482
|
+
base64: string;
|
|
46483
|
+
sequence: number;
|
|
46484
|
+
accountNumber: number;
|
|
46485
|
+
}>;
|
|
46463
46486
|
/**
|
|
46464
46487
|
* Top up a player's stack at a table
|
|
46465
46488
|
* The player must be seated at the table and have sufficient wallet balance.
|