@totalis/hip4-client 0.118.0 → 0.119.1
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 +21 -0
- package/dist/generated/client.d.ts +2 -1
- package/dist/generated/errors.d.ts +1 -0
- package/dist/generated/errors.js +11 -0
- package/dist/generated/openapi.d.ts +81 -1
- package/dist/generated/version.d.ts +3 -3
- package/dist/generated/version.js +3 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
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.119.1
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- `getChart` (`GET /v1/charts/{series}`): the `Cache-Control` description
|
|
11
|
+
now says old chance windows cache like any sealed window once Totalis has
|
|
12
|
+
finished backfilling chance minutes from before its live recording.
|
|
13
|
+
Documentation only; no type changes.
|
|
14
|
+
|
|
15
|
+
## 0.119.0
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
Contract `257.0.0-trading-rewards`, additive:
|
|
20
|
+
|
|
21
|
+
- `getMyTradingRewards` (`GET /v1/me/trading-rewards`): the signed-in
|
|
22
|
+
account's one-time trading rewards: its own Combo stake since `starts_at`,
|
|
23
|
+
the tiers, and each tier it reached with its payout `status` (`PENDING`,
|
|
24
|
+
`PAYING`, `PAID` with its `transaction_hash`, or `CAPPED` once the budget
|
|
25
|
+
ran out). Answers `CONTRACT_UNAVAILABLE` where trading rewards are off.
|
|
26
|
+
|
|
6
27
|
## 0.118.0
|
|
7
28
|
|
|
8
29
|
### Removed
|
|
@@ -81,6 +81,7 @@ export type paths = {
|
|
|
81
81
|
readonly "/v1/genesis": Pick<SharedPaths["/v1/genesis"], "parameters" | "get">;
|
|
82
82
|
readonly "/v1/me/genesis": Pick<SharedPaths["/v1/me/genesis"], "parameters" | "get">;
|
|
83
83
|
readonly "/v1/me/referral-bonus": Pick<SharedPaths["/v1/me/referral-bonus"], "parameters" | "get">;
|
|
84
|
+
readonly "/v1/me/trading-rewards": Pick<SharedPaths["/v1/me/trading-rewards"], "parameters" | "get">;
|
|
84
85
|
readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
|
|
85
86
|
readonly "/v1/me/copy-fills": Pick<SharedPaths["/v1/me/copy-fills"], "parameters" | "get">;
|
|
86
87
|
readonly "/v1/me/copy-agents": Pick<SharedPaths["/v1/me/copy-agents"], "parameters" | "get">;
|
|
@@ -147,4 +148,4 @@ export type paths = {
|
|
|
147
148
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
148
149
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
149
150
|
};
|
|
150
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "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" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
151
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "claimGoldenLink" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getAccountValue" | "getBalances" | "getChart" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenLinkSuggestions" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getMyTradingRewards" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getPublicGoldenMarkets" | "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" | "listFollowers" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarketTrades" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialFollowers" | "listSocialFollowing" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "searchTraders" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
@@ -629,6 +629,7 @@ export declare const operationErrors: {
|
|
|
629
629
|
readonly getMarketStats: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
630
630
|
readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
631
631
|
readonly getMyReferralBonus: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
632
|
+
readonly getMyTradingRewards: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "INTERNAL_ERROR"];
|
|
632
633
|
readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
|
633
634
|
readonly getOutcomeMetadata: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INTERNAL_ERROR"];
|
|
634
635
|
readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND", "INTERNAL_ERROR"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1576,6 +1576,17 @@ export const operationErrors = {
|
|
|
1576
1576
|
"CONTRACT_UNAVAILABLE",
|
|
1577
1577
|
"INTERNAL_ERROR"
|
|
1578
1578
|
],
|
|
1579
|
+
"getMyTradingRewards": [
|
|
1580
|
+
"UNAUTHENTICATED",
|
|
1581
|
+
"FORBIDDEN",
|
|
1582
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1583
|
+
"RATE_LIMITED",
|
|
1584
|
+
"ORIGIN_REQUIRED",
|
|
1585
|
+
"IDENTITY_NOT_FOUND",
|
|
1586
|
+
"INVALID_QUERY",
|
|
1587
|
+
"CONTRACT_UNAVAILABLE",
|
|
1588
|
+
"INTERNAL_ERROR"
|
|
1589
|
+
],
|
|
1579
1590
|
"getOperation": [
|
|
1580
1591
|
"UNAUTHENTICATED",
|
|
1581
1592
|
"FORBIDDEN",
|
|
@@ -1667,6 +1667,26 @@ export type paths = {
|
|
|
1667
1667
|
readonly patch?: never;
|
|
1668
1668
|
readonly trace?: never;
|
|
1669
1669
|
};
|
|
1670
|
+
readonly "/v1/me/trading-rewards": {
|
|
1671
|
+
readonly parameters: {
|
|
1672
|
+
readonly query?: never;
|
|
1673
|
+
readonly header?: never;
|
|
1674
|
+
readonly path?: never;
|
|
1675
|
+
readonly cookie?: never;
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Get my trading rewards
|
|
1679
|
+
* @description The authenticated account's one-time trading rewards. Each tier the account's own Combo stake since starts_at reaches pays its reward once, and every tier pays on its own, to the account wallet, from the program's budget; a tier reached after the budget ran out is CAPPED and pays nothing. A one-leg entry is a single-market buy, not a Combo; a golden Combo is not the account's own stake; and a voided Combo, every leg settled at half, counts for nothing. Answers CONTRACT_UNAVAILABLE where trading rewards are off.
|
|
1680
|
+
*/
|
|
1681
|
+
readonly get: operations["getMyTradingRewards"];
|
|
1682
|
+
readonly put?: never;
|
|
1683
|
+
readonly post?: never;
|
|
1684
|
+
readonly delete?: never;
|
|
1685
|
+
readonly options?: never;
|
|
1686
|
+
readonly head?: never;
|
|
1687
|
+
readonly patch?: never;
|
|
1688
|
+
readonly trace?: never;
|
|
1689
|
+
};
|
|
1670
1690
|
readonly "/v1/me/copy-summary": {
|
|
1671
1691
|
readonly parameters: {
|
|
1672
1692
|
readonly query?: never;
|
|
@@ -11889,6 +11909,66 @@ export interface operations {
|
|
|
11889
11909
|
readonly 503: components["responses"]["Unavailable"];
|
|
11890
11910
|
};
|
|
11891
11911
|
};
|
|
11912
|
+
readonly getMyTradingRewards: {
|
|
11913
|
+
readonly parameters: {
|
|
11914
|
+
readonly query?: never;
|
|
11915
|
+
readonly header?: never;
|
|
11916
|
+
readonly path?: never;
|
|
11917
|
+
readonly cookie?: never;
|
|
11918
|
+
};
|
|
11919
|
+
readonly requestBody?: never;
|
|
11920
|
+
readonly responses: {
|
|
11921
|
+
/** @description The account's trading rewards */
|
|
11922
|
+
readonly 200: {
|
|
11923
|
+
headers: {
|
|
11924
|
+
readonly "Cache-Control"?: "no-store";
|
|
11925
|
+
readonly [name: string]: unknown;
|
|
11926
|
+
};
|
|
11927
|
+
content: {
|
|
11928
|
+
readonly "application/json": {
|
|
11929
|
+
/** @description Only Combos committed at or after this count. */
|
|
11930
|
+
readonly starts_at: components["schemas"]["$defs-Timestamp"];
|
|
11931
|
+
/** @description The account's own Combo stake since starts_at, in HyperEVM USDC base units (10^-6). */
|
|
11932
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
11933
|
+
/** @description Whether the program's budget can no longer pay even the smallest reward: a tier reached now is CAPPED. */
|
|
11934
|
+
readonly budget_spent: boolean;
|
|
11935
|
+
/** @description The tiers, lowest first. */
|
|
11936
|
+
readonly tiers: readonly {
|
|
11937
|
+
/** @description Own Combo stake since starts_at that reaches the tier, in HyperEVM USDC base units (10^-6). */
|
|
11938
|
+
readonly threshold: components["schemas"]["$defs-Amount"];
|
|
11939
|
+
/** @description What reaching it pays, in HyperEVM USDC base units (10^-6). */
|
|
11940
|
+
readonly reward: components["schemas"]["$defs-Amount"];
|
|
11941
|
+
}[];
|
|
11942
|
+
/** @description Each tier the account reached, lowest first. */
|
|
11943
|
+
readonly rewards: readonly {
|
|
11944
|
+
/** @description The tier's threshold, in HyperEVM USDC base units (10^-6). */
|
|
11945
|
+
readonly threshold: components["schemas"]["$defs-Amount"];
|
|
11946
|
+
/** @description Its reward, in HyperEVM USDC base units (10^-6). */
|
|
11947
|
+
readonly reward: components["schemas"]["$defs-Amount"];
|
|
11948
|
+
/** @description When the account's stake reached the tier: the commit of the Combo that took it there. */
|
|
11949
|
+
readonly qualified_at: components["schemas"]["$defs-Timestamp"];
|
|
11950
|
+
/**
|
|
11951
|
+
* @description PENDING: earned, its payout not sent yet; PAYING: its payout is on its way; PAID: the reward reached the account wallet; CAPPED: reached after the budget ran out, so it pays nothing.
|
|
11952
|
+
* @enum {unknown}
|
|
11953
|
+
*/
|
|
11954
|
+
readonly status: "PENDING" | "PAYING" | "PAID" | "CAPPED";
|
|
11955
|
+
/** @description The HyperEVM transaction that paid it; null unless PAID. */
|
|
11956
|
+
readonly transaction_hash: components["schemas"]["Bytes32"] | null;
|
|
11957
|
+
/** @description When it was paid; null unless PAID. */
|
|
11958
|
+
readonly paid_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
11959
|
+
}[];
|
|
11960
|
+
};
|
|
11961
|
+
};
|
|
11962
|
+
};
|
|
11963
|
+
readonly 400: components["responses"]["Error"];
|
|
11964
|
+
readonly 401: components["responses"]["Error"];
|
|
11965
|
+
readonly 403: components["responses"]["Error"];
|
|
11966
|
+
readonly 404: components["responses"]["Error"];
|
|
11967
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
11968
|
+
readonly 500: components["responses"]["InternalError"];
|
|
11969
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
11970
|
+
};
|
|
11971
|
+
};
|
|
11892
11972
|
readonly getCopySummary: {
|
|
11893
11973
|
readonly parameters: {
|
|
11894
11974
|
readonly query?: never;
|
|
@@ -14184,7 +14264,7 @@ export interface operations {
|
|
|
14184
14264
|
/** @description The line on the server's grid. Totalis records every change of a chance or perp mark: second detail for seven days, minute detail from 2026-10-18 18:53 UTC on, forever. The grid's step is the shortest of a fixed ladder (250 ms up to 28 days, aligned to Unix time) that covers the window in at most 240 buckets. A step under a minute draws second detail while the window's first day of it is kept (until eight days after that day's start, and not before Totalis began recording the line's feed); otherwise the window comes on a one-minute grid of minute closes. Each bucket carries the first, lowest, highest and last value it saw at their real times, in time order, and where the line became unknown; a value held into a bucket shows at its start. Everything before `through` is final; continue the bucket that holds it from live points at or after `through`, and the result equals a later read. A line with no record is empty, never a guessed value, and nothing before 2026-10-18 18:53 UTC is drawn. */
|
|
14185
14265
|
readonly 200: {
|
|
14186
14266
|
headers: {
|
|
14187
|
-
/** @description 60 seconds on minute grids and one bucket (at least a second) on finer ones. A window recorded through its end (a line whose end is final, settled, or a window in the past): an hour while that end is under seven days old, then a day.
|
|
14267
|
+
/** @description 60 seconds on minute grids and one bucket (at least a second) on finer ones. A window recorded through its end (a line whose end is final, settled, or a window in the past): an hour while that end is under seven days old, then a day. Until Totalis finished backfilling chance minutes before the first minute it recorded chance live, a chance line's ALL window and any window reaching that minute, also for a mark line read for a market, and a line cut at an end from its expiry alone (final false, a postponement can still move it) keep the minute or bucket age. Never past grid.valid_until or the drop of the second detail it was drawn from, even when that leaves max-age=0. Errors are never stored. */
|
|
14188
14268
|
readonly "Cache-Control"?: string;
|
|
14189
14269
|
readonly [name: string]: unknown;
|
|
14190
14270
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "257.0.0-trading-rewards";
|
|
2
|
+
export declare const openapiSha256 = "a3b1954d9843ed8a7f8c4abaeee8383b1fae5d80d61a027a9a5722ad8adc07ee";
|
|
3
3
|
export declare const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
@@ -19,7 +19,7 @@ export declare const jsonSchemaSha256: {
|
|
|
19
19
|
readonly "social.schema.json": "d1d6bb03269ac5a527c134bfd884f41b5baac0a48cc12f98980d08691020e1a4";
|
|
20
20
|
};
|
|
21
21
|
export declare const operations: {
|
|
22
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "claimGoldenLink", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getChart", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenLinkSuggestions", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getPublicGoldenMarkets", "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", "listFollowers", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarketTrades", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialFollowers", "listSocialFollowing", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "searchTraders", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
22
|
+
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "claimGoldenLink", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getChart", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenLinkSuggestions", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getMyTradingRewards", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getPublicGoldenMarkets", "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", "listFollowers", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarketTrades", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialFollowers", "listSocialFollowing", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "searchTraders", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
23
23
|
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getChart", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
24
24
|
readonly operator: readonly ["live", "ready"];
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "257.0.0-trading-rewards";
|
|
3
|
+
export const openapiSha256 = "a3b1954d9843ed8a7f8c4abaeee8383b1fae5d80d61a027a9a5722ad8adc07ee";
|
|
4
4
|
export const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
@@ -90,6 +90,7 @@ export const operations = {
|
|
|
90
90
|
"getMarketStats",
|
|
91
91
|
"getMyGenesis",
|
|
92
92
|
"getMyReferralBonus",
|
|
93
|
+
"getMyTradingRewards",
|
|
93
94
|
"getOperation",
|
|
94
95
|
"getOutcomeMetadata",
|
|
95
96
|
"getOwnMaker",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.119.1",
|
|
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": [
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
"generate": "node scripts/generate.mjs",
|
|
65
65
|
"check": "node scripts/generate.mjs --check && node scripts/compatibility.mjs && tsc --noEmit -p tsconfig.test.json",
|
|
66
66
|
"build": "npm run generate && tsc",
|
|
67
|
-
"test": "node scripts/check-test-clock.mjs && npm run build && node
|
|
67
|
+
"test": "node scripts/check-test-clock.mjs && npm run build && node scripts/test-runtimes.mjs",
|
|
68
|
+
"test:node": "node scripts/check-test-clock.mjs && npm run build && node --import ./test/setup.mjs --test test/*.test.mjs",
|
|
68
69
|
"test:react-native": "npm run build && node --import ./test/setup.mjs --import ./test/runtimes/react-native.mjs --test test/*.test.mjs",
|
|
69
70
|
"test:staging-read": "npm run build && node test/staging-read-smoke.mjs",
|
|
70
71
|
"test:production-read": "npm run build && node test/staging-read-smoke.mjs production",
|