@suigar/sdk 2.0.0-beta.0 → 2.0.0-beta.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,118 @@
1
1
  # @suigar/sdk
2
2
 
3
+ ## 2.0.0-beta.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 4b59c7b: Remove the `client.suigar.resolvePvPConflipGame()` client method. Use the exported generated helper `client.suigar.bcs.PvPCoinflipGame.get({ client, objectId })` for one specific live PvP coinflip game object instead.
8
+
9
+ Add `parseCoinType` to `@suigar/sdk/utils` for extracting normalized coin types from generic Move object type strings.
10
+
11
+ - 4b59c7b: Move the SDK into the `packages/sdk` pnpm workspace while keeping the public package API unchanged.
12
+
13
+ ## 2.0.0-beta.9
14
+
15
+ ### Patch Changes
16
+
17
+ - eaf8b3a: Fix metadata encoding so partner metadata is only added when configured and hex metadata values are encoded consistently as bytes. Improve supported-coin and price-info resolution error handling for transaction configuration.
18
+ - 9929e05: Refine Move parser helpers by simplifying BCS type usage, normalizing missing
19
+ `i64` and float mantissa values to `0`, and documenting the numeric conversion
20
+ behavior in `fromMoveI64` and `fromMoveFloat`.
21
+
22
+ ## 2.0.0-beta.8
23
+
24
+ ### Patch Changes
25
+
26
+ - 0292edb: Rename transaction builder option `owner` to `playerAddress` and remove the separate `sender` option so all game transactions use a single explicit player address.
27
+ - 20311be: Improve the public JSDoc for `parseGameDetails`, `toBigInt`, and `toU8` so the
28
+ generated API surface explains their coercion, validation, and decoding
29
+ behavior more clearly.
30
+ - a2aa324: Update PvP coinflip lookup helpers to use bulk object reads for unresolved lobby discovery and support forwarded lookup options.
31
+ - Make `getPvPCoinflipGames()` parse bulk `client.core.getObjects()` results instead of resolving each game individually.
32
+ - Skip per-object fetch or parse failures by default and continue supporting strict rejection with `throwOnError: true`.
33
+ - Forward supported lookup options such as `signal` through `getPvPCoinflipGames()` and `resolvePvPConflipGame(gameId, options?)`.
34
+ - Update tests, README guidance, and repo-local PvP skill documentation to match the current client behavior.
35
+
36
+ ## 2.0.0-beta.7
37
+
38
+ ### Patch Changes
39
+
40
+ - f0ea104: Align numeric utility names, Move decoding helpers, and PvP BCS event helper references with the current SDK API.
41
+
42
+ ## 2.0.0-beta.6
43
+
44
+ ### Patch Changes
45
+
46
+ - ef6bcd4: Rename getPvPCoinflipGames option from rejectOnError to throwOnError.
47
+
48
+ ## 2.0.0-beta.5
49
+
50
+ ### Patch Changes
51
+
52
+ - bf98e0a: Update PvP coinflip registry lookups so `getPvPCoinflipGames()` can skip
53
+ individual game resolution failures by default while still supporting
54
+ `rejectOnError: true` for strict rejection.
55
+ - Document the `rejectOnError` behavior in the public JSDoc and README examples.
56
+ - Clarify repo guidance and skill documentation to distinguish general PvP game
57
+ guidance from the current PvP coinflip-specific runtime surface.
58
+
59
+ ## 2.0.0-beta.4
60
+
61
+ ### Patch Changes
62
+
63
+ - 6daa819: Add BCS parser helpers and a Next.js game integration example app.
64
+ - expose parser helpers through `@suigar/sdk/utils`
65
+ - add `parseGameDetails` for decoding `BetResultEvent.game_details`
66
+ - document generated BCS event decoding and game detail parsing guidance
67
+ - add a testnet-only `apps/playground` app for standard and PvP Suigar transactions
68
+ - integrate Mysten dApp Kit wallet connection, signing, and execution
69
+ - add live transaction code previews and shared decoded event logging with SDK parser helpers
70
+ - add Suigar-themed responsive UI, supported coin selection, and human-readable stake handling
71
+ - update PvP coinflip join so callers only provide `gameId` and the SDK derives the join stake while using the configured price info object id
72
+
73
+ - b89d0b4: Add a public `@suigar/sdk/games` export subpath for shared game option types, and export `SuigarClient` from the package root.
74
+ - bf1f71b: Add `registryIds` to `SuigarConfig` and resolve it from the network config registry map.
75
+
76
+ Document the PvP coinflip runtime helpers more clearly by describing
77
+ registry-backed unresolved game discovery through `getPvPCoinflipGames()` and
78
+ the normalized live-game lookup behavior of `resolvePvPConflipGame()`.
79
+
80
+ - 4861f55: Add public utility exports for shared scaling constants in `@suigar/sdk/utils`, including `RANGE_POINT_LIMIT` and `DEFAULT_RANGE_SCALE`. Update the SDK example app and documentation to use the exported constants and document limbo/range scaling behavior more clearly.
81
+
82
+ ## 2.0.0-beta.3
83
+
84
+ ### Patch Changes
85
+
86
+ - e1cdedc: Improve public transaction builder typings and refresh Sui 2.0+ integration guidance around the gRPC client.
87
+ - Fix exported transaction option types so `BuildGameOptions` and `BuildPvPGameOptions` no longer require the internal `config` field
88
+ - Update installation and integration documentation for Sui 2.0+ by switching examples to `SuiGrpcClient`, clarifying required peer dependencies, and aligning transaction-result examples with the current client API.
89
+
90
+ ## 2.0.0-beta.2
91
+
92
+ ### Patch Changes
93
+
94
+ - 128cb6c: Make SDK configuration network-resolved and expose runtime config inspection through the client extension.
95
+ - `suigar()` now only accepts the extension `name`.
96
+ - The SDK now validates the connected client network and supports `mainnet` and `testnet`.
97
+ - Added `client.suigar.getConfig()` to inspect the resolved network config at runtime.
98
+ - Exported the `SuiNetwork` type and `resolveGamePackageId()` helper.
99
+ - Reworked `SuigarConfig` into a network-resolved structure with `packageIds`, `coinTypes`, and `priceInfoObjectIds`.
100
+ - Replaced the old Pyth-specific price object resolution flow with supported-coin-based `priceInfoObjectId` resolution.
101
+ - Split package and coin configuration into explicit `mainnet` and `testnet` maps and updated transaction builders to use the new structure.
102
+ - Updated generated event helpers, tests, and documentation to match the new configuration and event parsing flow.
103
+
104
+ Notes:
105
+ - Existing prerelease integrations using `suigar({ ...configOverrides })` will need to migrate to `suigar()`.
106
+ - Runtime config inspection should now use `client.suigar.getConfig()`.
107
+
108
+ ## 2.0.0-beta.1
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated the npm release workflows to install dependencies without a committed lockfile and removed the obsolete Node.js cache configuration.
113
+ - Simplified previous-release deprecation logic so prerelease publishes do not attempt to deprecate earlier npm versions.
114
+ - Stopped tracking `package-lock.json` and removed the obsolete changeset file after the version bump.
115
+
3
116
  ## 2.0.0-beta.0
4
117
 
5
118
  ### Major Changes