@playmos/sdk 0.3.11 → 0.3.12

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/server.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { Z as PlaymosError, W as WebhookEvent } from './errors-Dpeesyop.cjs';
1
+ import { a2 as PlaymosError, W as WebhookEvent } from './errors-CYKgt2VU.cjs';
2
+ export { ad as enterPathToBytes32 } from './errors-CYKgt2VU.cjs';
2
3
 
3
4
  /**
4
5
  * Webhook signature verification (spec §6.2) — server-side only.
@@ -23,15 +24,6 @@ declare function verifyWebhook(rawBody: string | Buffer, signatureHeader: string
23
24
  toleranceSeconds?: number;
24
25
  }): WebhookEvent;
25
26
 
26
- /**
27
- * Builders for the two settling calls. Both mirror the proven entry batch:
28
- * [approve(spender, amount), settle(...)] sent atomically via EIP-5792.
29
- */
30
-
31
- /** The server derives these identically (keccak256 of UTF-8 bytes) so the
32
- * off-chain record and the on-chain call line up. */
33
- declare const toBytes32: (s: string) => `0x${string}`;
34
-
35
27
  interface HasEnteredArgs {
36
28
  prizePool: `0x${string}`;
37
29
  /** Same plain string pin as enterRound roundKey / body roundId. */
@@ -55,4 +47,4 @@ interface HasEnteredArgs {
55
47
  */
56
48
  declare function hasEntered(args: HasEnteredArgs): Promise<boolean>;
57
49
 
58
- export { type HasEnteredArgs, WebhookSignatureError, toBytes32 as enterPathToBytes32, hasEntered, verifyWebhook };
50
+ export { type HasEnteredArgs, WebhookSignatureError, hasEntered, verifyWebhook };
package/dist/server.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Z as PlaymosError, W as WebhookEvent } from './errors-Dpeesyop.js';
1
+ import { a2 as PlaymosError, W as WebhookEvent } from './errors-CYKgt2VU.js';
2
+ export { ad as enterPathToBytes32 } from './errors-CYKgt2VU.js';
2
3
 
3
4
  /**
4
5
  * Webhook signature verification (spec §6.2) — server-side only.
@@ -23,15 +24,6 @@ declare function verifyWebhook(rawBody: string | Buffer, signatureHeader: string
23
24
  toleranceSeconds?: number;
24
25
  }): WebhookEvent;
25
26
 
26
- /**
27
- * Builders for the two settling calls. Both mirror the proven entry batch:
28
- * [approve(spender, amount), settle(...)] sent atomically via EIP-5792.
29
- */
30
-
31
- /** The server derives these identically (keccak256 of UTF-8 bytes) so the
32
- * off-chain record and the on-chain call line up. */
33
- declare const toBytes32: (s: string) => `0x${string}`;
34
-
35
27
  interface HasEnteredArgs {
36
28
  prizePool: `0x${string}`;
37
29
  /** Same plain string pin as enterRound roundKey / body roundId. */
@@ -55,4 +47,4 @@ interface HasEnteredArgs {
55
47
  */
56
48
  declare function hasEntered(args: HasEnteredArgs): Promise<boolean>;
57
49
 
58
- export { type HasEnteredArgs, WebhookSignatureError, toBytes32 as enterPathToBytes32, hasEntered, verifyWebhook };
50
+ export { type HasEnteredArgs, WebhookSignatureError, hasEntered, verifyWebhook };
package/dist/server.js CHANGED
@@ -1,5 +1,5 @@
1
- import { PlaymosError, ApiError, toBytes32 } from './chunk-35WJANW4.js';
2
- export { toBytes32 as enterPathToBytes32 } from './chunk-35WJANW4.js';
1
+ import { PlaymosError, ApiError, toBytes32 } from './chunk-2CW4U5YB.js';
2
+ export { toBytes32 as enterPathToBytes32 } from './chunk-2CW4U5YB.js';
3
3
  import { timingSafeEqual, createHmac } from 'crypto';
4
4
  import { encodeFunctionData, decodeFunctionResult } from 'viem';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playmos/sdk",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Playmos SDK — stablecoin payments for games on Base. One SDK for IAP (1%), skill-game prize-pool entries (10%, 60/30/10), and agent economies. USD in, USDC on-chain, no crypto UX for players.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -46,13 +46,13 @@
46
46
  "test:watch": "vitest"
47
47
  },
48
48
  "dependencies": {
49
- "viem": "^2.21.0"
49
+ "viem": "^2.55.11"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/node": "^22.0.0",
52
+ "@types/node": "^26.1.2",
53
53
  "tsup": "^8.3.0",
54
54
  "typescript": "^5.6.0",
55
- "vitest": "^2.1.0"
55
+ "vitest": "^3.2.6"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=18 <25"