@totalis/hip4-client 0.92.0 → 0.93.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 +31 -0
- package/dist/generated/account-read.d.ts +4 -0
- package/dist/generated/browse.d.ts +4 -0
- package/dist/generated/client.d.ts +2 -1
- package/dist/generated/errors.d.ts +1 -0
- package/dist/generated/errors.js +10 -0
- package/dist/generated/openapi.d.ts +98 -2
- package/dist/generated/realtime.d.ts +4 -0
- package/dist/generated/version.d.ts +4 -4
- package/dist/generated/version.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
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.93.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Referral bonus (contract `222.0.0-referral-bonus`). `getMyReferralBonus`,
|
|
11
|
+
`GET /v1/me/referral-bonus`: the signed-in account's referral bonus. A
|
|
12
|
+
referral is someone the account's own invite code admitted; once their own
|
|
13
|
+
Combo stake since signing up reaches `qualifying_stake` ($50) the account
|
|
14
|
+
earns `bonus` ($5), up to `monthly_cap` ($500) a UTC month. The answer has
|
|
15
|
+
`started_at` (null until the bonus starts), `months` (`earned`, `capped`,
|
|
16
|
+
`bonus`), the most recent `qualified` referrals with their `outcome`
|
|
17
|
+
(`EARNED`, `CAPPED`, `BEFORE_START`, `SELF`) and the most recent `pending`
|
|
18
|
+
referrals with what they have `staked`. Answers `CONTRACT_UNAVAILABLE` where
|
|
19
|
+
the bonus is off. Additive.
|
|
20
|
+
- Awaiting result (contract `221.0.0-awaiting-result`). Optional
|
|
21
|
+
`Market.awaiting_result` (`boolean | null`): `true` while a market's event
|
|
22
|
+
is over and Hyperliquid has not recorded its result (a live scoreboard shows
|
|
23
|
+
its game final, or a price market's observation time has passed), `false`
|
|
24
|
+
when it is known not to be, `null` or absent when unknown. Optional
|
|
25
|
+
per-side `last_chance` (integer string at scale 10^18, or `null`) on
|
|
26
|
+
`MarketSide` and on stream `reference_upserts` items: the side's last real
|
|
27
|
+
chance, set only while `awaiting_result` is `true` and `reference.chance` is
|
|
28
|
+
null. Both are display only: they never change trading, `chance`, `mark` or
|
|
29
|
+
Combo admission. The market stream sends `awaiting_result` in catalog
|
|
30
|
+
upserts. Nothing sends them yet; a schema that rejects unknown properties
|
|
31
|
+
must accept them before the backend starts to. Additive.
|
|
32
|
+
- Market-data now sends `awaiting_result` and `last_chance` (omitted when
|
|
33
|
+
null). Games read `true` once their live scoreboard shows final; price
|
|
34
|
+
markets once their observation time passes. The last chance is the last real
|
|
35
|
+
price (a trade, or a tight-book midpoint), not clamped to a one-sided book.
|
|
36
|
+
|
|
6
37
|
## 0.92.0
|
|
7
38
|
|
|
8
39
|
### Added
|
|
@@ -535,6 +535,8 @@ export type components = {
|
|
|
535
535
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
536
536
|
/** @description Current position owner wallet (lowercase). */
|
|
537
537
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
538
|
+
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
539
|
+
readonly owner_username: components["schemas"]["Username"] | null;
|
|
538
540
|
/**
|
|
539
541
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
540
542
|
* @enum {string}
|
|
@@ -906,6 +908,8 @@ export type components = {
|
|
|
906
908
|
/** @description Hyperliquid trade ID, as a decimal string. */
|
|
907
909
|
readonly tid: components["schemas"]["NonZeroUInt64String"];
|
|
908
910
|
};
|
|
911
|
+
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
912
|
+
readonly Username: string;
|
|
909
913
|
/**
|
|
910
914
|
* @description Where the quote stands now. OPEN: live and acceptable. AWAITING_CONFIRMATION: the taker accepted it and the maker has not answered within its two-second deadline yet. ACCEPTED: the maker confirmed and the trade is queued or on its way to chain. FILLED: the trade committed on chain. FAILED: the trade reverted or expired unexecuted. DECLINED: the maker declined the acceptance. TIMED_OUT: the maker did not answer the acceptance in time. CANCELLED: the maker withdrew the quote. REPLACED: the maker's newer quote on the same RFQ replaced it. EXPIRED: it or its RFQ lapsed unaccepted. NOT_SELECTED: the RFQ's taker accepted another quote first. RFQ_CANCELLED: the taker cancelled or replaced the RFQ.
|
|
911
915
|
* @enum {string}
|
|
@@ -464,6 +464,8 @@ export type components = {
|
|
|
464
464
|
readonly coin: string;
|
|
465
465
|
/** @description Current reference price of this side, or why none is available. */
|
|
466
466
|
readonly reference: components["schemas"]["Reference"];
|
|
467
|
+
/** @description For display only: the side's last real chance at the probability scale (10^18), set only while the market's awaiting_result is true and reference.chance is null. It is the newest evidence the chance rule holds, unclamped: the last book execution, or the last midpoint of a book at most 10% of scale wide. It needs a fresh, uncrossed book on this side; an empty book keeps it. YES and NO sum to scale. Null or absent otherwise. It is not a price, a value or a chance: never trade, value a position or pick a Combo leg with it. */
|
|
468
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
467
469
|
};
|
|
468
470
|
readonly DateEvent: {
|
|
469
471
|
/**
|
|
@@ -519,6 +521,8 @@ export type components = {
|
|
|
519
521
|
];
|
|
520
522
|
/** @description Display dates and the market class; null when the market has neither reviewed timing nor a market class. Never controls availability or settlement. */
|
|
521
523
|
readonly dates: components["schemas"]["MarketDates"] | null;
|
|
524
|
+
/** @description For display only: whether the market's event is over while Hyperliquid has not recorded its result. true when a live scoreboard shows its game final (every winner, spread and total market of that game) or a price market's observation time has passed with its result unresolved; false when its event is known not to be over yet or its result is recorded; null or absent when unknown: other kinds of market, a game no scoreboard covers or reads now, or a native result that could not be read. It never closes trading, settles, or changes chance, mark, eligibility or Combo admission. */
|
|
525
|
+
readonly awaiting_result?: boolean | null;
|
|
522
526
|
};
|
|
523
527
|
readonly DiscoveryQuestionItem: components["schemas"]["DiscoveryDisplay"] & {
|
|
524
528
|
/** @description Item ID, question: followed by the native question ID. */
|
|
@@ -57,6 +57,7 @@ export type paths = {
|
|
|
57
57
|
readonly "/v1/me/notifications": Pick<SharedPaths["/v1/me/notifications"], "parameters" | "get">;
|
|
58
58
|
readonly "/v1/me/notifications/read": Pick<SharedPaths["/v1/me/notifications/read"], "parameters" | "post">;
|
|
59
59
|
readonly "/v1/me/genesis": Pick<SharedPaths["/v1/me/genesis"], "parameters" | "get">;
|
|
60
|
+
readonly "/v1/me/referral-bonus": Pick<SharedPaths["/v1/me/referral-bonus"], "parameters" | "get">;
|
|
60
61
|
readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
|
|
61
62
|
readonly "/v1/me/copy-fills": Pick<SharedPaths["/v1/me/copy-fills"], "parameters" | "get">;
|
|
62
63
|
readonly "/v1/me/copy-agents": Pick<SharedPaths["/v1/me/copy-agents"], "parameters" | "get">;
|
|
@@ -117,4 +118,4 @@ export type paths = {
|
|
|
117
118
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
118
119
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
119
120
|
};
|
|
120
|
-
export type operations = Pick<SharedOperations, "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" | "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" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
121
|
+
export type operations = Pick<SharedOperations, "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" | "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" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
@@ -449,6 +449,7 @@ export declare const operationErrors: {
|
|
|
449
449
|
readonly getMarketScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
450
450
|
readonly getMarketStats: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
451
451
|
readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
452
|
+
readonly getMyReferralBonus: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
452
453
|
readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
453
454
|
readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
454
455
|
readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1246,6 +1246,16 @@ export const operationErrors = {
|
|
|
1246
1246
|
"INVALID_QUERY",
|
|
1247
1247
|
"CONTRACT_UNAVAILABLE"
|
|
1248
1248
|
],
|
|
1249
|
+
"getMyReferralBonus": [
|
|
1250
|
+
"UNAUTHENTICATED",
|
|
1251
|
+
"FORBIDDEN",
|
|
1252
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1253
|
+
"RATE_LIMITED",
|
|
1254
|
+
"ORIGIN_REQUIRED",
|
|
1255
|
+
"IDENTITY_NOT_FOUND",
|
|
1256
|
+
"INVALID_QUERY",
|
|
1257
|
+
"CONTRACT_UNAVAILABLE"
|
|
1258
|
+
],
|
|
1249
1259
|
"getOperation": [
|
|
1250
1260
|
"UNAUTHENTICATED",
|
|
1251
1261
|
"FORBIDDEN",
|
|
@@ -1183,6 +1183,26 @@ export type paths = {
|
|
|
1183
1183
|
readonly patch?: never;
|
|
1184
1184
|
readonly trace?: never;
|
|
1185
1185
|
};
|
|
1186
|
+
readonly "/v1/me/referral-bonus": {
|
|
1187
|
+
readonly parameters: {
|
|
1188
|
+
readonly query?: never;
|
|
1189
|
+
readonly header?: never;
|
|
1190
|
+
readonly path?: never;
|
|
1191
|
+
readonly cookie?: never;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* Get my referral bonus
|
|
1195
|
+
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
|
|
1196
|
+
*/
|
|
1197
|
+
readonly get: operations["getMyReferralBonus"];
|
|
1198
|
+
readonly put?: never;
|
|
1199
|
+
readonly post?: never;
|
|
1200
|
+
readonly delete?: never;
|
|
1201
|
+
readonly options?: never;
|
|
1202
|
+
readonly head?: never;
|
|
1203
|
+
readonly patch?: never;
|
|
1204
|
+
readonly trace?: never;
|
|
1205
|
+
};
|
|
1186
1206
|
readonly "/v1/me/copy-summary": {
|
|
1187
1207
|
readonly parameters: {
|
|
1188
1208
|
readonly query?: never;
|
|
@@ -3602,6 +3622,8 @@ export type components = {
|
|
|
3602
3622
|
/** @description Opaque list cursor. Send a previous response's next_cursor back unchanged; never build or parse one. */
|
|
3603
3623
|
readonly PageCursor: string;
|
|
3604
3624
|
readonly LowercaseNonZeroAddress: string;
|
|
3625
|
+
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
3626
|
+
readonly Username: string;
|
|
3605
3627
|
readonly UInt32String: string;
|
|
3606
3628
|
readonly Leg: {
|
|
3607
3629
|
/** @description HIP-4 outcome ID of the leg, as a decimal string. */
|
|
@@ -3655,6 +3677,8 @@ export type components = {
|
|
|
3655
3677
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
3656
3678
|
/** @description Current position owner wallet (lowercase). */
|
|
3657
3679
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
3680
|
+
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
3681
|
+
readonly owner_username: components["schemas"]["Username"] | null;
|
|
3658
3682
|
/**
|
|
3659
3683
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
3660
3684
|
* @enum {string}
|
|
@@ -4146,8 +4170,6 @@ export type components = {
|
|
|
4146
4170
|
};
|
|
4147
4171
|
/** Format: uuid */
|
|
4148
4172
|
readonly Uuid: string;
|
|
4149
|
-
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
4150
|
-
readonly Username: string;
|
|
4151
4173
|
/** @description A random (version 4) UUID, lowercase. */
|
|
4152
4174
|
readonly AvatarSeed: string;
|
|
4153
4175
|
/** @description An X profile picture on pbs.twimg.com or abs.twimg.com, at the size X gave Privy, usually the 48-pixel file ending in _normal; X also serves _bigger (73 px) and _400x400 under the same name. */
|
|
@@ -4707,6 +4729,8 @@ export type components = {
|
|
|
4707
4729
|
readonly coin: string;
|
|
4708
4730
|
/** @description Current reference price of this side, or why none is available. */
|
|
4709
4731
|
readonly reference: components["schemas"]["Reference"];
|
|
4732
|
+
/** @description For display only: the side's last real chance at the probability scale (10^18), set only while the market's awaiting_result is true and reference.chance is null. It is the newest evidence the chance rule holds, unclamped: the last book execution, or the last midpoint of a book at most 10% of scale wide. It needs a fresh, uncrossed book on this side; an empty book keeps it. YES and NO sum to scale. Null or absent otherwise. It is not a price, a value or a chance: never trade, value a position or pick a Combo leg with it. */
|
|
4733
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
4710
4734
|
};
|
|
4711
4735
|
readonly DateEvent: {
|
|
4712
4736
|
/**
|
|
@@ -4759,6 +4783,8 @@ export type components = {
|
|
|
4759
4783
|
readonly sides: readonly components["schemas"]["MarketSide"][];
|
|
4760
4784
|
/** @description Display dates and the market class; null when the market has neither reviewed timing nor a market class. Never controls availability or settlement. */
|
|
4761
4785
|
readonly dates: components["schemas"]["MarketDates"] | null;
|
|
4786
|
+
/** @description For display only: whether the market's event is over while Hyperliquid has not recorded its result. true when a live scoreboard shows its game final (every winner, spread and total market of that game) or a price market's observation time has passed with its result unresolved; false when its event is known not to be over yet or its result is recorded; null or absent when unknown: other kinds of market, a game no scoreboard covers or reads now, or a native result that could not be read. It never closes trading, settles, or changes chance, mark, eligibility or Combo admission. */
|
|
4787
|
+
readonly awaiting_result?: boolean | null;
|
|
4762
4788
|
};
|
|
4763
4789
|
readonly DiscoveryQuestionItem: components["schemas"]["DiscoveryDisplay"] & {
|
|
4764
4790
|
/** @description Item ID, question: followed by the native question ID. */
|
|
@@ -9334,6 +9360,76 @@ export interface operations {
|
|
|
9334
9360
|
readonly 503: components["responses"]["Unavailable"];
|
|
9335
9361
|
};
|
|
9336
9362
|
};
|
|
9363
|
+
readonly getMyReferralBonus: {
|
|
9364
|
+
readonly parameters: {
|
|
9365
|
+
readonly query?: never;
|
|
9366
|
+
readonly header?: never;
|
|
9367
|
+
readonly path?: never;
|
|
9368
|
+
readonly cookie?: never;
|
|
9369
|
+
};
|
|
9370
|
+
readonly requestBody?: never;
|
|
9371
|
+
readonly responses: {
|
|
9372
|
+
/** @description The referral bonus */
|
|
9373
|
+
readonly 200: {
|
|
9374
|
+
headers: {
|
|
9375
|
+
readonly "Cache-Control"?: "no-store";
|
|
9376
|
+
readonly [name: string]: unknown;
|
|
9377
|
+
};
|
|
9378
|
+
content: {
|
|
9379
|
+
readonly "application/json": {
|
|
9380
|
+
/** @description A referral qualifies once their own Combo stake since signing up with the account's code reaches this, in HyperEVM USDC base units (10^-6). */
|
|
9381
|
+
readonly qualifying_stake: components["schemas"]["$defs-Amount"];
|
|
9382
|
+
/** @description What each qualified referral earns, in HyperEVM USDC base units (10^-6). */
|
|
9383
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9384
|
+
/** @description The most the account earns in one UTC month, in HyperEVM USDC base units (10^-6). */
|
|
9385
|
+
readonly monthly_cap: components["schemas"]["$defs-Amount"];
|
|
9386
|
+
/** @description When the bonus started in this deployment; null until it has. A referral that qualified before it earns nothing. */
|
|
9387
|
+
readonly started_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
9388
|
+
/** @description Each UTC month a referral qualified in, newest first. */
|
|
9389
|
+
readonly months: readonly {
|
|
9390
|
+
/** @description The UTC month, YYYY-MM. */
|
|
9391
|
+
readonly month: string;
|
|
9392
|
+
/** @description Referrals that qualified this month and earned the bonus. */
|
|
9393
|
+
readonly earned: number;
|
|
9394
|
+
/** @description Referrals that qualified this month after the cap was reached; they earn nothing, and nothing carries over. */
|
|
9395
|
+
readonly capped: number;
|
|
9396
|
+
/** @description What the month's referrals earned, in HyperEVM USDC base units (10^-6). */
|
|
9397
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9398
|
+
}[];
|
|
9399
|
+
/** @description The 100 most recently qualified referrals, newest first. */
|
|
9400
|
+
readonly qualified: readonly {
|
|
9401
|
+
/** @description The referral's username, or null until they pick one. */
|
|
9402
|
+
readonly username: components["schemas"]["Username"] | null;
|
|
9403
|
+
/** @description When their stake reached qualifying_stake: the commit of the Combo that took it there. */
|
|
9404
|
+
readonly qualified_at: components["schemas"]["$defs-Timestamp"];
|
|
9405
|
+
/**
|
|
9406
|
+
* @description EARNED earned the bonus; CAPPED came after the month's cap; BEFORE_START qualified before started_at; SELF shares a wallet with the account.
|
|
9407
|
+
* @enum {unknown}
|
|
9408
|
+
*/
|
|
9409
|
+
readonly outcome: "EARNED" | "CAPPED" | "BEFORE_START" | "SELF";
|
|
9410
|
+
/** @description What this referral earned, in HyperEVM USDC base units (10^-6). */
|
|
9411
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9412
|
+
}[];
|
|
9413
|
+
/** @description The 100 most recently admitted referrals who have not qualified yet, newest first. */
|
|
9414
|
+
readonly pending: readonly {
|
|
9415
|
+
/** @description The referral's username, or null until they pick one. */
|
|
9416
|
+
readonly username: components["schemas"]["Username"] | null;
|
|
9417
|
+
/** @description When they signed up with the account's code. */
|
|
9418
|
+
readonly admitted_at: components["schemas"]["$defs-Timestamp"];
|
|
9419
|
+
/** @description Their own Combo stake since then, in HyperEVM USDC base units (10^-6). */
|
|
9420
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
9421
|
+
}[];
|
|
9422
|
+
};
|
|
9423
|
+
};
|
|
9424
|
+
};
|
|
9425
|
+
readonly 400: components["responses"]["Error"];
|
|
9426
|
+
readonly 401: components["responses"]["Error"];
|
|
9427
|
+
readonly 403: components["responses"]["Error"];
|
|
9428
|
+
readonly 404: components["responses"]["Error"];
|
|
9429
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9430
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9431
|
+
};
|
|
9432
|
+
};
|
|
9337
9433
|
readonly getCopySummary: {
|
|
9338
9434
|
readonly parameters: {
|
|
9339
9435
|
readonly query?: never;
|
|
@@ -1380,6 +1380,8 @@ export type components = {
|
|
|
1380
1380
|
readonly deadline: components["schemas"]["Deadline"] | components["schemas"]["$defs-Deadline"];
|
|
1381
1381
|
/** @description The YES and NO sides, in that order. */
|
|
1382
1382
|
readonly sides: readonly components["schemas"]["PublicationCatalogSide"][];
|
|
1383
|
+
/** @description For display only: whether the market's event is over while its result is not recorded, as the market's awaiting_result. Absent means null. A change arrives as a catalog upsert, without a metadata revision. */
|
|
1384
|
+
readonly awaiting_result?: boolean | null;
|
|
1383
1385
|
/** @description Publication version at which this item last changed; at most the packet's terminal version. */
|
|
1384
1386
|
readonly version: components["schemas"]["PositiveInt64"];
|
|
1385
1387
|
};
|
|
@@ -1522,6 +1524,8 @@ export type components = {
|
|
|
1522
1524
|
readonly side: components["schemas"]["Side"];
|
|
1523
1525
|
/** @description Current reference price of this side, or why none is available. */
|
|
1524
1526
|
readonly reference: components["schemas"]["FeedReference"];
|
|
1527
|
+
/** @description For display only: the side's last real chance while its market awaits its result and reference.chance is null, as the market side's last_chance. Absent means null. It travels in this reference upsert, so a newer upsert replaces both. */
|
|
1528
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
1525
1529
|
/** @description Publication version at which this reference last changed. */
|
|
1526
1530
|
readonly version: components["schemas"]["PositiveInt64"];
|
|
1527
1531
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "222.0.0-referral-bonus";
|
|
2
|
+
export declare const openapiSha256 = "7af9309ed00fe5096f9f0c9237b49a0be02baa1c173f2607d3c473175a54cad2";
|
|
3
3
|
export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
|
|
@@ -12,13 +12,13 @@ export declare const jsonSchemaSha256: {
|
|
|
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": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
18
18
|
readonly "realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
19
19
|
};
|
|
20
20
|
export declare const operations: {
|
|
21
|
-
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", "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", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
21
|
+
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", "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", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
22
22
|
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
23
23
|
readonly operator: readonly ["live", "ready"];
|
|
24
24
|
};
|
|
@@ -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 = "222.0.0-referral-bonus";
|
|
3
|
+
export const openapiSha256 = "7af9309ed00fe5096f9f0c9237b49a0be02baa1c173f2607d3c473175a54cad2";
|
|
4
4
|
export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
|
|
@@ -13,7 +13,7 @@ export const jsonSchemaSha256 = {
|
|
|
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": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
19
|
"realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15"
|
|
@@ -81,6 +81,7 @@ export const operations = {
|
|
|
81
81
|
"getMarketScoreTimeline",
|
|
82
82
|
"getMarketStats",
|
|
83
83
|
"getMyGenesis",
|
|
84
|
+
"getMyReferralBonus",
|
|
84
85
|
"getOperation",
|
|
85
86
|
"getOwnMaker",
|
|
86
87
|
"getPartnerReport",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.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": [
|