@totalis/hip4-client 0.103.0 → 0.104.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,28 @@
|
|
|
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.104.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Live `WALLET_BALANCE_CHANGED` payloads carry the transfer's `log_index`, `sender`,
|
|
11
|
+
`recipient` and `amount` (atomic USDC, 6 decimals), all optional:
|
|
12
|
+
wallet-history notices and older events lack them (TT-2796, contract
|
|
13
|
+
`240.0.0-wallet-transfer-parties`). The event now arrives
|
|
14
|
+
within seconds of the transfer, and the same transfer can arrive more than
|
|
15
|
+
once. Identify a transfer by `transaction_hash` and `log_index`; treat the
|
|
16
|
+
notice as a reason to reread balances, not something to count.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Social positions (TT-2710). A HyperCore holding's `cost` counts each pair
|
|
21
|
+
at 1 on top of the net shares' cost, so a position held on both sides no
|
|
22
|
+
longer reads as costing 0; `value - cost` is what the shares held would
|
|
23
|
+
still make at the mark, and `pnl` is unchanged. A paired position that cost
|
|
24
|
+
1 or more now shows on following positions instead of counting as dust.
|
|
25
|
+
A comment's `positions` is null for makers, API operators and the other
|
|
26
|
+
roles the public feed leaves out.
|
|
27
|
+
|
|
6
28
|
## 0.103.0
|
|
7
29
|
|
|
8
30
|
### Changed
|
|
@@ -5628,7 +5628,7 @@ export type components = {
|
|
|
5628
5628
|
readonly pairs: components["schemas"]["Shares"];
|
|
5629
5629
|
/** @description What each net share cost, fees included, rounded half away from zero to 8 decimals; for a settled position, as it settled. Null with no net shares, once sold, or when unknown. */
|
|
5630
5630
|
readonly entry: components["schemas"]["Price"] | null;
|
|
5631
|
-
/** @description What the
|
|
5631
|
+
/** @description What the shares held now cost, fees included: the net shares at average cost plus 1 for each pair, so value - cost is what the shares held would still make at the mark. Null once closed or when unknown. */
|
|
5632
5632
|
readonly cost: components["schemas"]["$defs-Amount"] | null;
|
|
5633
5633
|
/** @description The net side's Value per share used here, market data's published mark (docs.totalis.trade, Chance, Price and Value); null when unknown, with no net shares, and once closed. */
|
|
5634
5634
|
readonly mark: components["schemas"]["Price"] | null;
|
|
@@ -5911,7 +5911,7 @@ export type components = {
|
|
|
5911
5911
|
readonly holder: boolean | null;
|
|
5912
5912
|
/** @description The HyperCore outcome sides of its market (the outcome, or any of the question's outcomes) its author's account wallet holds now, newest opened first; empty when it holds none. Null once it is deleted; when the author's public trader profile is off or their account is not ACTIVE, since exact positions would show which wallet is theirs, as GET /v1/traders/{username} refuses to; and while it is not known: off Mainnet, while the account index is behind or does not hold history since launch, when the author has no single account wallet, when an outcome token of the market moved to or from it by transfer, or before the market catalog names the question's outcomes. Servers before contract 214 omit it. */
|
|
5913
5913
|
readonly singles: readonly components["schemas"]["CommentSingle"][] | null;
|
|
5914
|
-
/** @description Its author's HyperCore positions on its market (the outcome, or any of the question's outcomes) held now by the holdings ledger's rules, newest opened first, as the position read they open counts them; empty when they hold none. Null once it is deleted, when the author's public profile is off or their account is not ACTIVE, when the author has no single account wallet, while the holdings ledger is behind (not yet caught up, or stopped for over five minutes), and before the market catalog names the question's outcomes. Replaces singles once callers moved. Servers before contract 236 omit it. */
|
|
5914
|
+
/** @description Its author's HyperCore positions on its market (the outcome, or any of the question's outcomes) held now by the holdings ledger's rules, newest opened first, as the position read they open counts them; empty when they hold none. Null once it is deleted, when the author's public profile is off or their account is not ACTIVE, when the author has no single account wallet, when the author is a maker, an API operator or another role the public social feed leaves out, while the holdings ledger is behind (not yet caught up, or stopped for over five minutes), and before the market catalog names the question's outcomes. Replaces singles once callers moved. Servers before contract 236 omit it. */
|
|
5915
5915
|
readonly positions?: readonly components["schemas"]["SingleSummary"][] | null;
|
|
5916
5916
|
readonly like_count: number;
|
|
5917
5917
|
/** @description Live replies; always 0 on a reply. */
|
|
@@ -308,7 +308,7 @@ export type components = {
|
|
|
308
308
|
* @constant
|
|
309
309
|
*/
|
|
310
310
|
readonly event_type: "WALLET_BALANCE_CHANGED";
|
|
311
|
-
/** @description An observed USDC transfer touched this linked wallet. Refresh GET /v1/me/balances for the wallet balance. */
|
|
311
|
+
/** @description An observed USDC transfer touched this linked wallet. Refresh GET /v1/me/balances for the wallet balance. The same transfer can be reported more than once. */
|
|
312
312
|
readonly payload: {
|
|
313
313
|
/** @description Linked wallet the transfer touched, as sender or recipient. */
|
|
314
314
|
readonly address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
@@ -316,6 +316,14 @@ export type components = {
|
|
|
316
316
|
readonly transaction_hash: components["schemas"]["Bytes32"];
|
|
317
317
|
/** @description HyperEVM block number (decimal) of the transfer. */
|
|
318
318
|
readonly block_number: string;
|
|
319
|
+
/** @description Transfer log index within its block. Together with transaction_hash, identifies one transfer. Present on live notices; absent on wallet-history notices and older events. */
|
|
320
|
+
readonly log_index?: number;
|
|
321
|
+
/** @description Address the USDC came from (the Transfer's from; zero for a mint). Present on live notices; absent on wallet-history notices and older events. */
|
|
322
|
+
readonly sender?: string;
|
|
323
|
+
/** @description Address the USDC went to (the Transfer's to; zero for a burn). Present on live notices; absent on wallet-history notices and older events. */
|
|
324
|
+
readonly recipient?: string;
|
|
325
|
+
/** @description Transferred amount in atomic USDC (6 decimals, "1000000" = 1 USDC). Present on live notices; absent on wallet-history notices and older events. */
|
|
326
|
+
readonly amount?: components["schemas"]["Uint"];
|
|
319
327
|
};
|
|
320
328
|
}) | (components["schemas"]["EventBase"] & {
|
|
321
329
|
/**
|
|
@@ -1268,6 +1276,8 @@ export type components = {
|
|
|
1268
1276
|
/** @description When the withdrawal last changed, RFC3339 UTC. */
|
|
1269
1277
|
readonly updated_at: components["schemas"]["Timestamp"];
|
|
1270
1278
|
};
|
|
1279
|
+
/** Format: uint256-decimal */
|
|
1280
|
+
readonly Uint: string;
|
|
1271
1281
|
/** Format: date-time */
|
|
1272
1282
|
readonly "$defs-Timestamp": string;
|
|
1273
1283
|
/** @description Freshness of the read. Pages of one list share the snapshot bound into their cursor. */
|
|
@@ -1361,8 +1371,6 @@ export type components = {
|
|
|
1361
1371
|
/** @description Stream cursor the client asked to resume after; null when it started without one. */
|
|
1362
1372
|
readonly cursor: components["schemas"]["Cursor"] | null;
|
|
1363
1373
|
};
|
|
1364
|
-
/** Format: uint256-decimal */
|
|
1365
|
-
readonly Uint: string;
|
|
1366
1374
|
readonly ScoreboardCompetitor: {
|
|
1367
1375
|
/** @description The participant's name as our catalog spells it, cut to 96 characters ending in an ellipsis when longer. */
|
|
1368
1376
|
readonly name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
3
|
-
export declare const realtimeSha256 = "
|
|
1
|
+
export declare const sdkVersion = "240.0.0-wallet-transfer-parties";
|
|
2
|
+
export declare const openapiSha256 = "f0b5dd6f997303eb57793b850c6c4df046ec9e562bfff500d6ccc88020602fa1";
|
|
3
|
+
export declare const realtimeSha256 = "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
6
|
-
readonly "comments.schema.json": "
|
|
6
|
+
readonly "comments.schema.json": "6c59e0d7f45ec944fa4362a6999656cd6a3967bd7a60057665a0d68977addb67";
|
|
7
7
|
readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
|
|
8
8
|
readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
|
|
9
9
|
readonly "error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f";
|
|
@@ -15,8 +15,8 @@ export declare const jsonSchemaSha256: {
|
|
|
15
15
|
readonly "market-data.schema.json": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
18
|
-
readonly "realtime.schema.json": "
|
|
19
|
-
readonly "social.schema.json": "
|
|
18
|
+
readonly "realtime.schema.json": "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
19
|
+
readonly "social.schema.json": "ffa1af6c12c974b1c786ca420670861a6e9389b3b9c052e3644bb9905033a919";
|
|
20
20
|
};
|
|
21
21
|
export declare const operations: {
|
|
22
22
|
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSocialLeaderboard", "getSocialPerson", "getSocialPosition", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
4
|
-
export const realtimeSha256 = "
|
|
2
|
+
export const sdkVersion = "240.0.0-wallet-transfer-parties";
|
|
3
|
+
export const openapiSha256 = "f0b5dd6f997303eb57793b850c6c4df046ec9e562bfff500d6ccc88020602fa1";
|
|
4
|
+
export const realtimeSha256 = "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
7
|
-
"comments.schema.json": "
|
|
7
|
+
"comments.schema.json": "6c59e0d7f45ec944fa4362a6999656cd6a3967bd7a60057665a0d68977addb67",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
10
|
"error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f",
|
|
@@ -16,8 +16,8 @@ export const jsonSchemaSha256 = {
|
|
|
16
16
|
"market-data.schema.json": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
|
-
"realtime.schema.json": "
|
|
20
|
-
"social.schema.json": "
|
|
19
|
+
"realtime.schema.json": "bea4893352a7110f2659560f3338d9fb5eb441269652a989a7aa9d42a5394554",
|
|
20
|
+
"social.schema.json": "ffa1af6c12c974b1c786ca420670861a6e9389b3b9c052e3644bb9905033a919"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
23
23
|
"client": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.104.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": [
|