@totalis/hip4-client 0.117.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 +96 -0
- package/dist/generated/account-read.d.ts +1 -1
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +1 -1
- package/dist/generated/client.d.ts +7 -1
- package/dist/generated/errors.d.ts +23 -2
- package/dist/generated/errors.js +85 -0
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +657 -30
- package/dist/generated/realtime.d.ts +67 -6
- package/dist/generated/version.d.ts +8 -8
- package/dist/generated/version.js +13 -6
- package/package.json +3 -2
|
@@ -606,7 +606,7 @@ export type components = {
|
|
|
606
606
|
readonly scoreboards?: boolean;
|
|
607
607
|
/** @description Opt in to network frames: the HyperEVM gas price against the level Totalis accepts quotes at, after each snapshot, then on every change the app acts on. Without it the socket gets no network frame. */
|
|
608
608
|
readonly network?: boolean;
|
|
609
|
-
/** @description Opt in to the live lane: up to 8 outcome IDs whose order book the socket follows from the start, independent of outcome_ids. This is interest revision 0. With books, marks, mark_ticks or
|
|
609
|
+
/** @description Opt in to the live lane: up to 8 outcome IDs whose order book the socket follows from the start, independent of outcome_ids. This is interest revision 0. With books, marks, mark_ticks, trades or charts present, even empty, the subscriptionResponse carries live and the socket accepts setInterest and resnapshot frames; without all five it gets no live-lane frame and accepts no frame after its subscribe. */
|
|
610
610
|
readonly books?: readonly components["schemas"]["UInt32String"][];
|
|
611
611
|
/** @description Opt in to the live lane: up to 8 perps whose mark the socket follows for a chart from the start (markSnapshot with recent recorded runs, mark per node read, markSealed). Part of interest revision 0. */
|
|
612
612
|
readonly marks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
@@ -614,6 +614,8 @@ export type components = {
|
|
|
614
614
|
readonly mark_ticks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
615
615
|
/** @description Opt in to the live lane: up to 64 outcome IDs whose taker orders the socket follows (tradesSnapshot, then trades frames), independent of outcome_ids. Part of interest revision 0. */
|
|
616
616
|
readonly trades?: readonly components["schemas"]["UInt32String"][];
|
|
617
|
+
/** @description Opt in to the live lane: up to 64 chart lines (`chance:<outcome_id>`, `mark:<coin>`) whose committed points the socket follows (chartSnapshot, then chartPoints frames), independent of outcome_ids. Part of interest revision 0. */
|
|
618
|
+
readonly charts?: readonly components["schemas"]["ChartSeries"][];
|
|
617
619
|
/** @description bookProgress cadence for revision 0; 1000 when absent. */
|
|
618
620
|
readonly progress_interval_ms?: components["schemas"]["MarketProgressInterval"];
|
|
619
621
|
};
|
|
@@ -646,6 +648,8 @@ export type components = {
|
|
|
646
648
|
readonly max_marks: number;
|
|
647
649
|
/** @description Most ticked perps one interest revision may follow. Currently 64, every perp Totalis can track. */
|
|
648
650
|
readonly max_mark_ticks: number;
|
|
651
|
+
/** @description Most chart lines one interest revision may follow. Currently 64. Present only when the subscribe frame carried charts (even empty): a subscription that will follow chart lines later sends charts: [] to learn it. */
|
|
652
|
+
readonly max_charts?: number;
|
|
649
653
|
};
|
|
650
654
|
/** @description A perp as Hyperliquid names it: BTC, or a builder-deployed perp with its dex, xyz:SP500. */
|
|
651
655
|
readonly MarketPerpCoin: string;
|
|
@@ -666,10 +670,12 @@ export type components = {
|
|
|
666
670
|
readonly mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
667
671
|
/** @description Every outcome whose taker orders the socket follows from this revision on; absent is none, so a client that never names trades is unchanged. More than 64 closes the socket with SUBSCRIPTION_DENIED. */
|
|
668
672
|
readonly trades?: readonly components["schemas"]["UInt32String"][];
|
|
673
|
+
/** @description Every chart line whose committed points the socket follows from this revision on; absent is none. More than max_charts closes the socket with SUBSCRIPTION_DENIED. */
|
|
674
|
+
readonly charts?: readonly components["schemas"]["ChartSeries"][];
|
|
669
675
|
/** @description bookProgress cadence from this revision on. */
|
|
670
676
|
readonly progress_interval_ms: components["schemas"]["MarketProgressInterval"];
|
|
671
677
|
};
|
|
672
|
-
/** @description Client to server: ask again for the complete state of followed books. Until each
|
|
678
|
+
/** @description Client to server: ask again for the complete state of followed books or chart lines, at least one of them. Until each snapshot arrives, treat the book as stale and ignore the line's chartPoints. */
|
|
673
679
|
readonly MarketResnapshot: {
|
|
674
680
|
/**
|
|
675
681
|
* @description Always resnapshot. Accepted only on a live-lane socket; otherwise INVALID_SUBSCRIPTION. At most 8192 bytes.
|
|
@@ -677,15 +683,17 @@ export type components = {
|
|
|
677
683
|
*/
|
|
678
684
|
readonly method: "resnapshot";
|
|
679
685
|
/** @description Followed books whose local state failed a check (a bookDelta seq that is not the previous plus one, a bookProgress seq that differs from yours). Each gets a fresh bookSnapshot; an outcome the socket does not follow is ignored. */
|
|
680
|
-
readonly books
|
|
681
|
-
|
|
686
|
+
readonly books?: readonly components["schemas"]["UInt32String"][];
|
|
687
|
+
/** @description Followed chart lines whose local state failed a check (a chartPoints whose after is not the line's last through). Each gets a fresh chartSnapshot; a line the socket does not follow is ignored. */
|
|
688
|
+
readonly charts?: readonly components["schemas"]["ChartSeries"][];
|
|
689
|
+
} | unknown | unknown;
|
|
682
690
|
readonly MarketInterestFrame: {
|
|
683
691
|
/**
|
|
684
692
|
* @description Frame discriminator, always interest.
|
|
685
693
|
* @constant
|
|
686
694
|
*/
|
|
687
695
|
readonly channel: "interest";
|
|
688
|
-
/** @description Every live-lane frame after this one belongs to revision rev. A book, perp
|
|
696
|
+
/** @description Every live-lane frame after this one belongs to revision rev. A book, perp, trade outcome or chart line of rev that was not in the previously acknowledged revision gets its bookSnapshot, markSnapshot, tradesSnapshot or chartSnapshot next (ticked perps their first markTicks); one in both keeps its chain. Drop frames for anything rev does not follow. */
|
|
689
697
|
readonly data: {
|
|
690
698
|
/** @description The revision applied from this frame on. */
|
|
691
699
|
readonly rev: number;
|
|
@@ -695,6 +703,8 @@ export type components = {
|
|
|
695
703
|
readonly refused_marks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
696
704
|
/** @description Ticked perps refused for the same reason. */
|
|
697
705
|
readonly refused_mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
706
|
+
/** @description Chart lines refused for the same reason. Present only when the revision carried charts. */
|
|
707
|
+
readonly refused_charts?: readonly components["schemas"]["ChartSeries"][];
|
|
698
708
|
};
|
|
699
709
|
};
|
|
700
710
|
/** @description [px, sz, n]: one price level of an outcome's YES book. */
|
|
@@ -945,7 +955,7 @@ export type components = {
|
|
|
945
955
|
readonly data: {
|
|
946
956
|
/** @description The outcome these orders traded. */
|
|
947
957
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
948
|
-
/** @description Every taker order of the outcome at or above this height is in orders or follows in trades frames; below it, orders may be missing. It starts about five minutes before the source started and moves up past a hole in the source, past the 50 orders kept, and for an outcome with no order in about the last hour, to about an hour back. Null while Totalis has no trade source, also between moving to another source and that source's first state: then nothing is claimed complete, and a later tradesSnapshot says from where it is again. */
|
|
958
|
+
/** @description Every taker order of the outcome at or above this height is in orders or follows in trades frames; below it, orders may be missing here: read them from GET /v1/markets/{outcome_id}/trades?before_height= this height. It starts about five minutes before the source started and moves up past a hole in the source, past the 50 orders kept, and for an outcome with no order in about the last hour, to about an hour back. Null while Totalis has no trade source, also between moving to another source and that source's first state: then nothing is claimed complete, and a later tradesSnapshot says from where it is again. */
|
|
949
959
|
readonly complete_from_height: components["schemas"]["MarketHeight"] | null;
|
|
950
960
|
/** @description The outcome's latest taker orders the source holds, newest block first and each block's orders in execution order, as its trades frame carries them: up to 50 in whole blocks, more only when its newest block alone held more. Merge by id; never animate them as new trades. */
|
|
951
961
|
readonly orders: readonly components["schemas"]["MarketTakerOrder"][];
|
|
@@ -967,6 +977,44 @@ export type components = {
|
|
|
967
977
|
readonly orders: readonly components["schemas"]["MarketTakerOrder"][];
|
|
968
978
|
};
|
|
969
979
|
};
|
|
980
|
+
readonly MarketChartSnapshotFrame: {
|
|
981
|
+
/**
|
|
982
|
+
* @description Frame discriminator, always chartSnapshot.
|
|
983
|
+
* @constant
|
|
984
|
+
*/
|
|
985
|
+
readonly channel: "chartSnapshot";
|
|
986
|
+
/** @description The line's committed record over the last 300 seconds: only points the recorder committed, never the live number, which keeps coming from references. Sent when a revision adds the line, once Totalis holds its record, when the record had to be read again (a recorder restart it was not told of, another market-data process), when a chartPoints frame would not continue the socket's last one, and when the client asks (resnapshot). Replace the line's local window with it. It carries points only: where a line ends (end, final) comes from the chart read alone, read again when the market stream shows the market expired, postponed or settled. Join a chart read (GET /v1/charts/{series}) on the read's through: points before it are the read's, points at or after it (an event exactly at through too) are the lane's and continue the read's partial bucket. A read whose through is before from reads again once, bypassing caches; still before from, the stretch between is drawn as unknown. On grids under a minute the lane's points extend the line; on minute grids only sealed minutes do: each minute's close (its value at the minute's end) is derived from the committed points once through passes the minute's end, and the current minute shows only as the tip. */
|
|
987
|
+
readonly data: {
|
|
988
|
+
/** @description The followed line. */
|
|
989
|
+
readonly series: components["schemas"]["ChartSeries"];
|
|
990
|
+
/** @description Start of the window held: 300 seconds before through, for every line and range. */
|
|
991
|
+
readonly from: components["schemas"]["ChartMicros"];
|
|
992
|
+
/** @description How far the record reaches: every point before it is committed and, from from on, in points; the next chartPoints continues from it. */
|
|
993
|
+
readonly through: components["schemas"]["ChartMicros"];
|
|
994
|
+
/** @description The value held at from, null when unknown there. */
|
|
995
|
+
readonly entering: components["schemas"]["ChartValue"];
|
|
996
|
+
/** @description Every committed point in [from, through), in time order. */
|
|
997
|
+
readonly points: components["schemas"]["ChartPoints"];
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
readonly MarketChartPointsFrame: {
|
|
1001
|
+
/**
|
|
1002
|
+
* @description Frame discriminator, always chartPoints.
|
|
1003
|
+
* @constant
|
|
1004
|
+
*/
|
|
1005
|
+
readonly channel: "chartPoints";
|
|
1006
|
+
/** @description One per committed batch of the line's feed, about once a second and a second behind the live number, in order. Apply it only when after is the line's last through, then move that through and drop points older than 300 seconds before it into the held value; one whose after is earlier was already applied and changes nothing; one whose after is later means frames were missed: send resnapshot with the line. While the record does not advance (a recorder or database outage) no frame comes, and the stretch stays unproven. */
|
|
1007
|
+
readonly data: {
|
|
1008
|
+
/** @description The followed line. */
|
|
1009
|
+
readonly series: components["schemas"]["ChartSeries"];
|
|
1010
|
+
/** @description The through of the line's previous frame: this frame continues only from it. */
|
|
1011
|
+
readonly after: components["schemas"]["ChartMicros"];
|
|
1012
|
+
/** @description How far the record now reaches. */
|
|
1013
|
+
readonly through: components["schemas"]["ChartMicros"];
|
|
1014
|
+
/** @description The line's points committed in [after, through), in time order; often none, when only through moved, which still proves the line held its value until through. */
|
|
1015
|
+
readonly points: components["schemas"]["ChartPoints"];
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
970
1018
|
readonly MarketNetworkFrame: {
|
|
971
1019
|
/**
|
|
972
1020
|
* @description Frame discriminator, always network.
|
|
@@ -1455,6 +1503,19 @@ export type components = {
|
|
|
1455
1503
|
/** @description Stream cursor the client asked to resume after; null when it started without one. */
|
|
1456
1504
|
readonly cursor: components["schemas"]["Cursor"] | null;
|
|
1457
1505
|
};
|
|
1506
|
+
/** @description A chart line: `chance:<outcome_id>` is the outcome's YES chance (any id a HIP-4 asset can have, 0 to 419496729), `mark:<coin>` a perp's mark. */
|
|
1507
|
+
readonly ChartSeries: string;
|
|
1508
|
+
/** @description An instant in Unix microseconds. A line has at most one point per microsecond, so (line, instant) names a point. */
|
|
1509
|
+
readonly ChartMicros: number;
|
|
1510
|
+
/** @description A line's value, or null where it became unknown. */
|
|
1511
|
+
readonly ChartValue: string | null;
|
|
1512
|
+
/** @description Points in time order as two aligned arrays. A value holds until the next point; a null holds unknown until the next known value. */
|
|
1513
|
+
readonly ChartPoints: {
|
|
1514
|
+
/** @description Instants, strictly increasing. */
|
|
1515
|
+
readonly at: readonly components["schemas"]["ChartMicros"][];
|
|
1516
|
+
/** @description The value from each instant on, aligned with at. */
|
|
1517
|
+
readonly value: readonly components["schemas"]["ChartValue"][];
|
|
1518
|
+
};
|
|
1458
1519
|
readonly ScoreboardCompetitor: {
|
|
1459
1520
|
/** @description The participant's name as our catalog spells it, cut to 96 characters ending in an ellipsis when longer. */
|
|
1460
1521
|
readonly name: string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
3
|
-
export declare const realtimeSha256 = "
|
|
1
|
+
export declare const sdkVersion = "257.0.0-trading-rewards";
|
|
2
|
+
export declare const openapiSha256 = "d6dc9da3304d55379e7fbe170dae74d6e827f9ac0e202cbfd8987903d0301805";
|
|
3
|
+
export declare const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
6
6
|
readonly "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4";
|
|
7
7
|
readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
|
|
8
8
|
readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
|
|
9
|
-
readonly "error.schema.json": "
|
|
9
|
+
readonly "error.schema.json": "99fcc618cb2e1d3193be3e19d840649afaa1ee48daddb635bd2543a878622a80";
|
|
10
10
|
readonly "hypercore.schema.json": "521372f8980353bcdd90ca3d0292bc6b41c69dbad3164bfd501b1ca99dac4cb8";
|
|
11
11
|
readonly "identity.schema.json": "896d975e5f4076cb34ae33f2dcfc41559fd3df1ed39e3d72ac9e342ca1f957fa";
|
|
12
12
|
readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
|
|
13
13
|
readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
|
|
14
14
|
readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
|
|
15
|
-
readonly "market-data.schema.json": "
|
|
15
|
+
readonly "market-data.schema.json": "f9d03e347dc579a8386c045d83dc5e00429c4aeaf818d29b72901b8f0432c2b3";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
18
|
-
readonly "realtime.schema.json": "
|
|
18
|
+
readonly "realtime.schema.json": "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
|
|
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", "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", "getGenesis", "getGolden", "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", "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", "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
|
-
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "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"];
|
|
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
|
+
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,22 +1,22 @@
|
|
|
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 = "257.0.0-trading-rewards";
|
|
3
|
+
export const openapiSha256 = "d6dc9da3304d55379e7fbe170dae74d6e827f9ac0e202cbfd8987903d0301805";
|
|
4
|
+
export const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
7
7
|
"comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "99fcc618cb2e1d3193be3e19d840649afaa1ee48daddb635bd2543a878622a80",
|
|
11
11
|
"hypercore.schema.json": "521372f8980353bcdd90ca3d0292bc6b41c69dbad3164bfd501b1ca99dac4cb8",
|
|
12
12
|
"identity.schema.json": "896d975e5f4076cb34ae33f2dcfc41559fd3df1ed39e3d72ac9e342ca1f957fa",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
14
14
|
"maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
|
|
15
15
|
"maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
|
|
16
|
-
"market-data.schema.json": "
|
|
16
|
+
"market-data.schema.json": "f9d03e347dc579a8386c045d83dc5e00429c4aeaf818d29b72901b8f0432c2b3",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
|
-
"realtime.schema.json": "
|
|
19
|
+
"realtime.schema.json": "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009",
|
|
20
20
|
"social.schema.json": "d1d6bb03269ac5a527c134bfd884f41b5baac0a48cc12f98980d08691020e1a4"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
@@ -29,6 +29,7 @@ export const operations = {
|
|
|
29
29
|
"approveWallet",
|
|
30
30
|
"bindEmbeddedWallet",
|
|
31
31
|
"cancelRfq",
|
|
32
|
+
"claimGoldenLink",
|
|
32
33
|
"confirmComboCopyAgent",
|
|
33
34
|
"confirmCoreCopyAgent",
|
|
34
35
|
"createCashout",
|
|
@@ -51,6 +52,7 @@ export const operations = {
|
|
|
51
52
|
"getAccountPosition",
|
|
52
53
|
"getAccountValue",
|
|
53
54
|
"getBalances",
|
|
55
|
+
"getChart",
|
|
54
56
|
"getCopyAgents",
|
|
55
57
|
"getCopyBudget",
|
|
56
58
|
"getCopySettings",
|
|
@@ -59,6 +61,7 @@ export const operations = {
|
|
|
59
61
|
"getDeployment",
|
|
60
62
|
"getGenesis",
|
|
61
63
|
"getGolden",
|
|
64
|
+
"getGoldenLinkSuggestions",
|
|
62
65
|
"getGoldenMarkets",
|
|
63
66
|
"getGoldenOffer",
|
|
64
67
|
"getGoldenSuggestions",
|
|
@@ -87,6 +90,7 @@ export const operations = {
|
|
|
87
90
|
"getMarketStats",
|
|
88
91
|
"getMyGenesis",
|
|
89
92
|
"getMyReferralBonus",
|
|
93
|
+
"getMyTradingRewards",
|
|
90
94
|
"getOperation",
|
|
91
95
|
"getOutcomeMetadata",
|
|
92
96
|
"getOwnMaker",
|
|
@@ -95,6 +99,7 @@ export const operations = {
|
|
|
95
99
|
"getPerpMarks",
|
|
96
100
|
"getPicture",
|
|
97
101
|
"getProfitLeaderboard",
|
|
102
|
+
"getPublicGoldenMarkets",
|
|
98
103
|
"getQuestion",
|
|
99
104
|
"getQuestionRecurringRound",
|
|
100
105
|
"getQuestionScoreTimeline",
|
|
@@ -132,6 +137,7 @@ export const operations = {
|
|
|
132
137
|
"listMakerActivity",
|
|
133
138
|
"listMakerPositions",
|
|
134
139
|
"listMakerQuoteHistory",
|
|
140
|
+
"listMarketTrades",
|
|
135
141
|
"listMarkets",
|
|
136
142
|
"listMyNotifications",
|
|
137
143
|
"listOperations",
|
|
@@ -182,6 +188,7 @@ export const operations = {
|
|
|
182
188
|
"createQuote",
|
|
183
189
|
"getAccountActivity",
|
|
184
190
|
"getAccountPosition",
|
|
191
|
+
"getChart",
|
|
185
192
|
"getCollateralReduction",
|
|
186
193
|
"getDeployment",
|
|
187
194
|
"getMakerActivity",
|
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",
|