@totalis/hip4-client 0.118.0 → 0.119.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 +12 -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 +80 -0
- 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,18 @@
|
|
|
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.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
Contract `257.0.0-trading-rewards`, additive:
|
|
11
|
+
|
|
12
|
+
- `getMyTradingRewards` (`GET /v1/me/trading-rewards`): the signed-in
|
|
13
|
+
account's one-time trading rewards: its own Combo stake since `starts_at`,
|
|
14
|
+
the tiers, and each tier it reached with its payout `status` (`PENDING`,
|
|
15
|
+
`PAYING`, `PAID` with its `transaction_hash`, or `CAPPED` once the budget
|
|
16
|
+
ran out). Answers `CONTRACT_UNAVAILABLE` where trading rewards are off.
|
|
17
|
+
|
|
6
18
|
## 0.118.0
|
|
7
19
|
|
|
8
20
|
### 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;
|
|
@@ -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 = "d6dc9da3304d55379e7fbe170dae74d6e827f9ac0e202cbfd8987903d0301805";
|
|
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 = "d6dc9da3304d55379e7fbe170dae74d6e827f9ac0e202cbfd8987903d0301805";
|
|
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.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": [
|
|
@@ -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",
|