@totalis/hip4-client 0.83.0 → 0.84.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  `@totalis/hip4-client` follows [semantic versioning](https://semver.org).
4
4
  The contract version the generated types come from is `sdkVersion` in `./version`.
5
5
 
6
+ ## 0.84.0
7
+
8
+ ### Added
9
+
10
+ - `getGolden`: `golden.placement`, the account's latest golden placement as
11
+ `placeGolden` answers it, plus `created_at`, or null (TT-2627).
12
+ - `getGoldenSuggestions` items are `GoldenSuggestedCombo`: `payout` is the
13
+ live best house offer, with its `accept_before` and the five's `band`
14
+ (`HUGE`, `BIG`, `STEADY`). Contract `211.0.0-golden-live-fives`.
15
+
6
16
  ## 0.83.0
7
17
 
8
18
  ### Added
@@ -724,7 +724,7 @@ export type paths = {
724
724
  };
725
725
  /**
726
726
  * List golden suggestions
727
- * @description Up to three ready-made golden Combos that share no outcome, for an account whose golden ticket is available: 5 legs from golden markets at the 1 USDC golden stake, each priced recently by a Totalis maker quote to the promo account. Picking one only fills the slip; place it through POST /v1/me/golden/rfqs, which requotes. A suggestion leaves the list once a leg is no longer a golden market or its quote is two hours old.
727
+ * @description Up to three ready-made golden Combos from different games, for an account whose golden ticket is available: 5 legs from golden markets at the 1 USDC golden stake, one per fair-multiplier band, biggest first. Each shows the best house-maker offer the promo account holds on it right now, live while any ticket holder reads golden Combos; a five with no such offer, or one paying under the golden value floor, is left out. Picking one only fills the slip; place it through POST /v1/me/golden/rfqs, which asks afresh, so the slip's own offer is what places.
728
728
  */
729
729
  readonly get: operations["getGoldenSuggestions"];
730
730
  readonly put?: never;
@@ -3257,6 +3257,34 @@ export type components = {
3257
3257
  readonly HyperevmKeeperOperationKind: "DEPOSIT_USER_AUTHORIZED" | "WITHDRAW_USER" | "ACCEPT" | "SETTLE" | "CACHE_SETTLEMENT" | "CLAIM" | "SELL_BACK" | "TRANSFER_TICKET" | "ATTEST" | "SYNC" | "TOTALIS_PAYOUT" | "CORE_EXIT" | "SET_AGENT";
3258
3258
  readonly Hash32: string;
3259
3259
  readonly Uint256: string;
3260
+ /**
3261
+ * GoldenPlacementState
3262
+ * @enum {string}
3263
+ */
3264
+ readonly GoldenPlacementState: "PLACING" | "BOUGHT" | "DELIVERED" | "FAILED";
3265
+ /**
3266
+ * GoldenPlacementFailure
3267
+ * @enum {string}
3268
+ */
3269
+ readonly GoldenPlacementFailure: "MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED";
3270
+ /** GoldenSuggestedCombo */
3271
+ readonly GoldenSuggestedCombo: {
3272
+ readonly legs: readonly components["schemas"]["$defs-Leg"][];
3273
+ /** @description Browse contract 4 discovery card each leg was picked from, in leg order, as read when the five was composed. Lets a client draw a leg that is not on its own page; its prices are not current. */
3274
+ readonly cards: readonly components["schemas"]["Card"][];
3275
+ readonly stake: components["schemas"]["$defs-Amount"];
3276
+ /** @description What the best house-maker offer on this five pays on a win now, after the taker and profit fees, in USDC base units. An indication: the offer is the promo account's, so the slip asks for its own. */
3277
+ readonly payout: components["schemas"]["$defs-Amount"];
3278
+ /** @description When the server first saw that offer. */
3279
+ readonly quoted_at: components["schemas"]["$defs-Timestamp"];
3280
+ /** @description When that offer stops being takeable. Drop the number once it passes without a newer read; never show it after. */
3281
+ readonly accept_before: components["schemas"]["$defs-Timestamp"];
3282
+ /**
3283
+ * @description The fair-multiplier band the five was composed for, a stable slot key: a five that drops out and is replaced keeps its band.
3284
+ * @enum {string}
3285
+ */
3286
+ readonly band: "HUGE" | "BIG" | "STEADY";
3287
+ };
3260
3288
  /** SuggestedCombo */
3261
3289
  readonly SuggestedCombo: {
3262
3290
  readonly legs: readonly components["schemas"]["$defs-Leg"][];
@@ -7842,7 +7870,19 @@ export interface operations {
7842
7870
  /** @description The gifted position once PLACED; null otherwise. */
7843
7871
  readonly position_id: null | components["schemas"]["Bytes32"];
7844
7872
  /** @description While AVAILABLE, why the latest placement failed, if one did; null otherwise. */
7845
- readonly last_failure: null | ("MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED");
7873
+ readonly last_failure: null | components["schemas"]["GoldenPlacementFailure"];
7874
+ /** @description The account's latest placement, the same object placeGolden answers plus when it was recorded, so a client that lost a placement's answer settles it from here; null before the first. */
7875
+ readonly placement: null | {
7876
+ readonly placement_id: components["schemas"]["Uuid"];
7877
+ /** @description As placeGolden answers it, now. */
7878
+ readonly state: components["schemas"]["GoldenPlacementState"];
7879
+ /** @description The placed quote's digest: the position this placement buys, which is the account's once DELIVERED. */
7880
+ readonly position_id: components["schemas"]["Bytes32"];
7881
+ /** @description Why it failed, once FAILED; null otherwise. */
7882
+ readonly failure: null | components["schemas"]["GoldenPlacementFailure"];
7883
+ /** @description When the placement was recorded. */
7884
+ readonly created_at: components["schemas"]["$defs-Timestamp"];
7885
+ };
7846
7886
  };
7847
7887
  };
7848
7888
  };
@@ -7899,8 +7939,8 @@ export interface operations {
7899
7939
  };
7900
7940
  content: {
7901
7941
  readonly "application/json": {
7902
- /** @description In order; empty when none is priced. `payout` is the Totalis maker quote's win amount after the profit fee, indicative only. */
7903
- readonly combos: readonly components["schemas"]["SuggestedCombo"][];
7942
+ /** @description Biggest band first; empty while none has a live offer. */
7943
+ readonly combos: readonly components["schemas"]["GoldenSuggestedCombo"][];
7904
7944
  };
7905
7945
  };
7906
7946
  };
@@ -8046,14 +8086,11 @@ export interface operations {
8046
8086
  content: {
8047
8087
  readonly "application/json": {
8048
8088
  readonly placement_id: components["schemas"]["Uuid"];
8049
- /**
8050
- * @description PLACING until the promo account's accept lands, BOUGHT until the gift lands, then DELIVERED; FAILED leaves the golden ticket available again. Read GET /v1/me/golden for its progress.
8051
- * @enum {string}
8052
- */
8053
- readonly state: "PLACING" | "BOUGHT" | "DELIVERED" | "FAILED";
8089
+ /** @description PLACING until the promo account's accept lands, BOUGHT until the gift lands, then DELIVERED; FAILED leaves the golden ticket available again. Read GET /v1/me/golden for its progress. */
8090
+ readonly state: components["schemas"]["GoldenPlacementState"];
8054
8091
  /** @description The quote's digest: the position the gift delivers. */
8055
8092
  readonly position_id: components["schemas"]["Bytes32"];
8056
- readonly failure: null | ("MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED");
8093
+ readonly failure: null | components["schemas"]["GoldenPlacementFailure"];
8057
8094
  };
8058
8095
  };
8059
8096
  };
@@ -1,5 +1,5 @@
1
- export declare const sdkVersion = "210.0.0-x-handle";
2
- export declare const openapiSha256 = "6396986bd3e2372fa6a021bed8745631c98cdc4a775b903d96f366195c6ebda4";
1
+ export declare const sdkVersion = "211.0.0-golden-live-fives";
2
+ export declare const openapiSha256 = "35c16104e0eaa909bfa93999c770a4f209173d37f0ee16c328807ecdecf6c9d5";
3
3
  export declare const realtimeSha256 = "f4f1078418b5302417babe1380b85b0c4f89cb0fdfaff3a46154dd2018625c07";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6";
@@ -1,6 +1,6 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
- export const sdkVersion = "210.0.0-x-handle";
3
- export const openapiSha256 = "6396986bd3e2372fa6a021bed8745631c98cdc4a775b903d96f366195c6ebda4";
2
+ export const sdkVersion = "211.0.0-golden-live-fives";
3
+ export const openapiSha256 = "35c16104e0eaa909bfa93999c770a4f209173d37f0ee16c328807ecdecf6c9d5";
4
4
  export const realtimeSha256 = "f4f1078418b5302417babe1380b85b0c4f89cb0fdfaff3a46154dd2018625c07";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [