@nktkas/hyperliquid 0.24.2 → 0.25.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +197 -117
- package/esm/mod.d.ts +11 -11
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/src/clients/exchange.d.ts +29 -18
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +50 -48
- package/esm/src/clients/info.d.ts +79 -75
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +294 -163
- package/esm/src/clients/multiSign.d.ts +11 -7
- package/esm/src/clients/multiSign.d.ts.map +1 -1
- package/esm/src/clients/subscription.d.ts +105 -32
- package/esm/src/clients/subscription.d.ts.map +1 -1
- package/esm/src/clients/subscription.js +114 -33
- package/esm/src/{base.d.ts → errors.d.ts} +1 -1
- package/esm/src/errors.d.ts.map +1 -0
- package/esm/src/schemas/_base.d.ts +10 -0
- package/esm/src/schemas/_base.d.ts.map +1 -0
- package/esm/src/schemas/_base.js +12 -0
- package/esm/src/schemas/exchange/requests.d.ts +8953 -0
- package/esm/src/schemas/exchange/requests.d.ts.map +1 -0
- package/esm/src/schemas/exchange/requests.js +1413 -0
- package/esm/src/schemas/exchange/responses.d.ts +567 -0
- package/esm/src/schemas/exchange/responses.d.ts.map +1 -0
- package/esm/src/schemas/exchange/responses.js +243 -0
- package/esm/src/schemas/explorer/requests.d.ts +44 -0
- package/esm/src/schemas/explorer/requests.d.ts.map +1 -0
- package/esm/src/schemas/explorer/requests.js +32 -0
- package/esm/src/schemas/explorer/responses.d.ts +360 -0
- package/esm/src/schemas/explorer/responses.d.ts.map +1 -0
- package/esm/src/schemas/explorer/responses.js +56 -0
- package/esm/src/schemas/info/accounts.d.ts +2159 -0
- package/esm/src/schemas/info/accounts.d.ts.map +1 -0
- package/esm/src/schemas/info/accounts.js +622 -0
- package/esm/src/schemas/info/assets.d.ts +945 -0
- package/esm/src/schemas/info/assets.d.ts.map +1 -0
- package/esm/src/schemas/info/assets.js +265 -0
- package/esm/src/schemas/info/markets.d.ts +138 -0
- package/esm/src/schemas/info/markets.d.ts.map +1 -0
- package/esm/src/schemas/info/markets.js +58 -0
- package/esm/src/schemas/info/orders.d.ts +957 -0
- package/esm/src/schemas/info/orders.d.ts.map +1 -0
- package/esm/src/schemas/info/orders.js +297 -0
- package/esm/src/schemas/info/requests.d.ts +882 -0
- package/esm/src/schemas/info/requests.d.ts.map +1 -0
- package/esm/src/schemas/info/requests.js +655 -0
- package/esm/src/schemas/info/validators.d.ts +305 -0
- package/esm/src/schemas/info/validators.d.ts.map +1 -0
- package/esm/src/schemas/info/validators.js +112 -0
- package/esm/src/schemas/info/vaults.d.ts +447 -0
- package/esm/src/schemas/info/vaults.d.ts.map +1 -0
- package/esm/src/schemas/info/vaults.js +110 -0
- package/esm/src/schemas/mod.d.ts +100 -0
- package/esm/src/schemas/mod.d.ts.map +1 -0
- package/esm/src/schemas/mod.js +113 -0
- package/esm/src/schemas/subscriptions/requests.d.ts +332 -0
- package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -0
- package/esm/src/schemas/subscriptions/requests.js +258 -0
- package/esm/src/schemas/subscriptions/responses.d.ts +3643 -0
- package/esm/src/schemas/subscriptions/responses.d.ts.map +1 -0
- package/esm/src/schemas/subscriptions/responses.js +233 -0
- package/esm/src/signing/mod.d.ts +109 -29
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +135 -29
- package/esm/src/transports/base.d.ts +2 -2
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +2 -2
- package/esm/src/transports/http/http_transport.d.ts +2 -1
- package/esm/src/transports/http/http_transport.d.ts.map +1 -1
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/esm/src/transports/websocket/websocket_transport.d.ts +2 -1
- package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/package.json +6 -5
- package/script/mod.d.ts +11 -11
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -1
- package/script/src/clients/exchange.d.ts +29 -18
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +56 -54
- package/script/src/clients/info.d.ts +79 -75
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +294 -163
- package/script/src/clients/multiSign.d.ts +11 -7
- package/script/src/clients/multiSign.d.ts.map +1 -1
- package/script/src/clients/subscription.d.ts +105 -32
- package/script/src/clients/subscription.d.ts.map +1 -1
- package/script/src/clients/subscription.js +114 -33
- package/script/src/{base.d.ts → errors.d.ts} +1 -1
- package/script/src/errors.d.ts.map +1 -0
- package/script/src/schemas/_base.d.ts +10 -0
- package/script/src/schemas/_base.d.ts.map +1 -0
- package/script/src/schemas/_base.js +48 -0
- package/script/src/schemas/exchange/requests.d.ts +8953 -0
- package/script/src/schemas/exchange/requests.d.ts.map +1 -0
- package/script/src/schemas/exchange/requests.js +1449 -0
- package/script/src/schemas/exchange/responses.d.ts +567 -0
- package/script/src/schemas/exchange/responses.d.ts.map +1 -0
- package/script/src/schemas/exchange/responses.js +279 -0
- package/script/src/schemas/explorer/requests.d.ts +44 -0
- package/script/src/schemas/explorer/requests.d.ts.map +1 -0
- package/script/src/schemas/explorer/requests.js +68 -0
- package/script/src/schemas/explorer/responses.d.ts +360 -0
- package/script/src/schemas/explorer/responses.d.ts.map +1 -0
- package/script/src/schemas/explorer/responses.js +92 -0
- package/script/src/schemas/info/accounts.d.ts +2159 -0
- package/script/src/schemas/info/accounts.d.ts.map +1 -0
- package/script/src/schemas/info/accounts.js +658 -0
- package/script/src/schemas/info/assets.d.ts +945 -0
- package/script/src/schemas/info/assets.d.ts.map +1 -0
- package/script/src/schemas/info/assets.js +301 -0
- package/script/src/schemas/info/markets.d.ts +138 -0
- package/script/src/schemas/info/markets.d.ts.map +1 -0
- package/script/src/schemas/info/markets.js +94 -0
- package/script/src/schemas/info/orders.d.ts +957 -0
- package/script/src/schemas/info/orders.d.ts.map +1 -0
- package/script/src/schemas/info/orders.js +333 -0
- package/script/src/schemas/info/requests.d.ts +882 -0
- package/script/src/schemas/info/requests.d.ts.map +1 -0
- package/script/src/schemas/info/requests.js +692 -0
- package/script/src/schemas/info/validators.d.ts +305 -0
- package/script/src/schemas/info/validators.d.ts.map +1 -0
- package/script/src/schemas/info/validators.js +148 -0
- package/script/src/schemas/info/vaults.d.ts +447 -0
- package/script/src/schemas/info/vaults.d.ts.map +1 -0
- package/script/src/schemas/info/vaults.js +146 -0
- package/script/src/schemas/mod.d.ts +100 -0
- package/script/src/schemas/mod.d.ts.map +1 -0
- package/script/src/schemas/mod.js +154 -0
- package/script/src/schemas/subscriptions/requests.d.ts +332 -0
- package/script/src/schemas/subscriptions/requests.d.ts.map +1 -0
- package/script/src/schemas/subscriptions/requests.js +294 -0
- package/script/src/schemas/subscriptions/responses.d.ts +3643 -0
- package/script/src/schemas/subscriptions/responses.d.ts.map +1 -0
- package/script/src/schemas/subscriptions/responses.js +269 -0
- package/script/src/signing/mod.d.ts +109 -29
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +137 -33
- package/script/src/transports/base.d.ts +2 -2
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +3 -3
- package/script/src/transports/http/http_transport.d.ts +2 -1
- package/script/src/transports/http/http_transport.d.ts.map +1 -1
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/script/src/transports/websocket/websocket_transport.d.ts +2 -1
- package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/esm/src/base.d.ts.map +0 -1
- package/esm/src/signing/_sorter.d.ts +0 -127
- package/esm/src/signing/_sorter.d.ts.map +0 -1
- package/esm/src/signing/_sorter.js +0 -693
- package/esm/src/types/exchange/requests.d.ts +0 -1345
- package/esm/src/types/exchange/requests.d.ts.map +0 -1
- package/esm/src/types/exchange/requests.js +0 -1
- package/esm/src/types/exchange/responses.d.ts +0 -233
- package/esm/src/types/exchange/responses.d.ts.map +0 -1
- package/esm/src/types/exchange/responses.js +0 -1
- package/esm/src/types/explorer/requests.d.ts +0 -32
- package/esm/src/types/explorer/requests.d.ts.map +0 -1
- package/esm/src/types/explorer/requests.js +0 -1
- package/esm/src/types/explorer/responses.d.ts +0 -58
- package/esm/src/types/explorer/responses.d.ts.map +0 -1
- package/esm/src/types/explorer/responses.js +0 -1
- package/esm/src/types/info/accounts.d.ts +0 -864
- package/esm/src/types/info/accounts.d.ts.map +0 -1
- package/esm/src/types/info/accounts.js +0 -1
- package/esm/src/types/info/assets.d.ts +0 -354
- package/esm/src/types/info/assets.d.ts.map +0 -1
- package/esm/src/types/info/assets.js +0 -1
- package/esm/src/types/info/markets.d.ts +0 -79
- package/esm/src/types/info/markets.d.ts.map +0 -1
- package/esm/src/types/info/markets.js +0 -1
- package/esm/src/types/info/orders.d.ts +0 -266
- package/esm/src/types/info/orders.d.ts.map +0 -1
- package/esm/src/types/info/orders.js +0 -1
- package/esm/src/types/info/requests.d.ts +0 -634
- package/esm/src/types/info/requests.d.ts.map +0 -1
- package/esm/src/types/info/requests.js +0 -1
- package/esm/src/types/info/validators.d.ts +0 -147
- package/esm/src/types/info/validators.d.ts.map +0 -1
- package/esm/src/types/info/validators.js +0 -1
- package/esm/src/types/info/vaults.d.ts +0 -119
- package/esm/src/types/info/vaults.d.ts.map +0 -1
- package/esm/src/types/info/vaults.js +0 -1
- package/esm/src/types/mod.d.ts +0 -38
- package/esm/src/types/mod.d.ts.map +0 -1
- package/esm/src/types/mod.js +0 -24
- package/esm/src/types/subscriptions/requests.d.ts +0 -143
- package/esm/src/types/subscriptions/requests.d.ts.map +0 -1
- package/esm/src/types/subscriptions/requests.js +0 -1
- package/esm/src/types/subscriptions/responses.d.ts +0 -213
- package/esm/src/types/subscriptions/responses.d.ts.map +0 -1
- package/esm/src/types/subscriptions/responses.js +0 -1
- package/script/src/base.d.ts.map +0 -1
- package/script/src/signing/_sorter.d.ts +0 -127
- package/script/src/signing/_sorter.d.ts.map +0 -1
- package/script/src/signing/_sorter.js +0 -696
- package/script/src/types/exchange/requests.d.ts +0 -1345
- package/script/src/types/exchange/requests.d.ts.map +0 -1
- package/script/src/types/exchange/requests.js +0 -2
- package/script/src/types/exchange/responses.d.ts +0 -233
- package/script/src/types/exchange/responses.d.ts.map +0 -1
- package/script/src/types/exchange/responses.js +0 -2
- package/script/src/types/explorer/requests.d.ts +0 -32
- package/script/src/types/explorer/requests.d.ts.map +0 -1
- package/script/src/types/explorer/requests.js +0 -2
- package/script/src/types/explorer/responses.d.ts +0 -58
- package/script/src/types/explorer/responses.d.ts.map +0 -1
- package/script/src/types/explorer/responses.js +0 -2
- package/script/src/types/info/accounts.d.ts +0 -864
- package/script/src/types/info/accounts.d.ts.map +0 -1
- package/script/src/types/info/accounts.js +0 -2
- package/script/src/types/info/assets.d.ts +0 -354
- package/script/src/types/info/assets.d.ts.map +0 -1
- package/script/src/types/info/assets.js +0 -2
- package/script/src/types/info/markets.d.ts +0 -79
- package/script/src/types/info/markets.d.ts.map +0 -1
- package/script/src/types/info/markets.js +0 -2
- package/script/src/types/info/orders.d.ts +0 -266
- package/script/src/types/info/orders.d.ts.map +0 -1
- package/script/src/types/info/orders.js +0 -2
- package/script/src/types/info/requests.d.ts +0 -634
- package/script/src/types/info/requests.d.ts.map +0 -1
- package/script/src/types/info/requests.js +0 -2
- package/script/src/types/info/validators.d.ts +0 -147
- package/script/src/types/info/validators.d.ts.map +0 -1
- package/script/src/types/info/validators.js +0 -2
- package/script/src/types/info/vaults.d.ts +0 -119
- package/script/src/types/info/vaults.d.ts.map +0 -1
- package/script/src/types/info/vaults.js +0 -2
- package/script/src/types/mod.d.ts +0 -38
- package/script/src/types/mod.d.ts.map +0 -1
- package/script/src/types/mod.js +0 -25
- package/script/src/types/subscriptions/requests.d.ts +0 -143
- package/script/src/types/subscriptions/requests.d.ts.map +0 -1
- package/script/src/types/subscriptions/requests.js +0 -2
- package/script/src/types/subscriptions/responses.d.ts +0 -213
- package/script/src/types/subscriptions/responses.d.ts.map +0 -1
- package/script/src/types/subscriptions/responses.js +0 -2
- /package/esm/src/{base.js → errors.js} +0 -0
- /package/script/src/{base.js → errors.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../src/src/schemas/info/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,6CAA6C;AAC7C,eAAO,MAAM,OAAO;;8CAGnB,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,8BAA8B;AAC9B,eAAO,MAAM,MAAM;IAEX,0CAA0C;;IAK1C,0CAA0C;;IAK1C,oBAAoB;;IAKpB,uBAAuB;;IAoBvB,qBAAqB;;IAKrB,qBAAqB;;IAKrB,qBAAqB;;IAKrB,oBAAoB;;IAKpB,4CAA4C;;IAK5C,iCAAiC;;;;;;;;;;;;;+BAOxC,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAElD,mDAAmD;AACnD,eAAO,MAAM,cAAc;IAEnB,oBAAoB;;IAKpB,oBAAoB;;IAKpB,qBAAqB;;IAKrB,iDAAiD;;;;;;;oDAOxD,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAElE,8BAA8B;AAC9B,eAAO,MAAM,OAAO;IAEZ,uCAAuC;;IAKvC,0CAA0C;;IAK1C,uCAAuC;;IAKvC,mEAAmE;;;;;;;+BAO1E,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,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B,qBAAqB;;QAKrB,+BAA+B;;QAK/B,yBAAyB;;;;;;;IASrC,wBAAwB;;IAKxB,wCAAwC;;IAKxC,uBAAuB;;IAKvB,wCAAwC;;IAKxC,kDAAkD;;IAKlD,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;2BAOtC,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.TokenDetails = exports.SpotMetaAndAssetCtxs = exports.SpotMeta = exports.SpotUniverse = exports.SpotToken = exports.SpotAssetCtx = exports.PredictedFunding = exports.PerpsMetaAndAssetCtxs = exports.PerpsMeta = exports.PerpsUniverse = exports.PerpsAssetCtx = exports.SharedAssetCtx = exports.MarginTables = exports.MarginTable = exports.MarginTier = exports.PerpDex = exports.FundingHistory = exports.Candle = exports.AllMids = void 0;
|
|
37
|
+
const v = __importStar(require("valibot"));
|
|
38
|
+
const _base_js_1 = require("../_base.js");
|
|
39
|
+
/** Mapping of coin symbols to mid prices. */
|
|
40
|
+
exports.AllMids = v.pipe(v.record(v.string(), _base_js_1.UnsignedDecimal), v.description("Mapping of coin symbols to mid prices."));
|
|
41
|
+
/** Candlestick data point. */
|
|
42
|
+
exports.Candle = v.pipe(v.strictObject({
|
|
43
|
+
/** Opening timestamp (ms since epoch). */
|
|
44
|
+
t: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Opening timestamp (ms since epoch).")),
|
|
45
|
+
/** Closing timestamp (ms since epoch). */
|
|
46
|
+
T: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Closing timestamp (ms since epoch).")),
|
|
47
|
+
/** Asset symbol. */
|
|
48
|
+
s: v.pipe(v.string(), v.description("Asset symbol.")),
|
|
49
|
+
/** Candle interval. */
|
|
50
|
+
i: v.pipe(v.union([
|
|
51
|
+
v.literal("1m"),
|
|
52
|
+
v.literal("3m"),
|
|
53
|
+
v.literal("5m"),
|
|
54
|
+
v.literal("15m"),
|
|
55
|
+
v.literal("30m"),
|
|
56
|
+
v.literal("1h"),
|
|
57
|
+
v.literal("2h"),
|
|
58
|
+
v.literal("4h"),
|
|
59
|
+
v.literal("8h"),
|
|
60
|
+
v.literal("12h"),
|
|
61
|
+
v.literal("1d"),
|
|
62
|
+
v.literal("3d"),
|
|
63
|
+
v.literal("1w"),
|
|
64
|
+
v.literal("1M"),
|
|
65
|
+
]), v.description("Candle interval.")),
|
|
66
|
+
/** Opening price. */
|
|
67
|
+
o: v.pipe(_base_js_1.UnsignedDecimal, v.description("Opening price.")),
|
|
68
|
+
/** Closing price. */
|
|
69
|
+
c: v.pipe(_base_js_1.UnsignedDecimal, v.description("Closing price.")),
|
|
70
|
+
/** Highest price. */
|
|
71
|
+
h: v.pipe(_base_js_1.UnsignedDecimal, v.description("Highest price.")),
|
|
72
|
+
/** Lowest price. */
|
|
73
|
+
l: v.pipe(_base_js_1.UnsignedDecimal, v.description("Lowest price.")),
|
|
74
|
+
/** Total volume traded in base currency. */
|
|
75
|
+
v: v.pipe(_base_js_1.UnsignedDecimal, v.description("Total volume traded in base currency.")),
|
|
76
|
+
/** Number of trades executed. */
|
|
77
|
+
n: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Number of trades executed.")),
|
|
78
|
+
}), v.description("Candlestick data point."));
|
|
79
|
+
/** Historical funding rate record for an asset. */
|
|
80
|
+
exports.FundingHistory = v.pipe(v.strictObject({
|
|
81
|
+
/** Asset symbol. */
|
|
82
|
+
coin: v.pipe(v.string(), v.description("Asset symbol.")),
|
|
83
|
+
/** Funding rate. */
|
|
84
|
+
fundingRate: v.pipe(_base_js_1.SignedDecimal, v.description("Funding rate.")),
|
|
85
|
+
/** Premium price. */
|
|
86
|
+
premium: v.pipe(_base_js_1.SignedDecimal, v.description("Premium price.")),
|
|
87
|
+
/** Funding record timestamp (ms since epoch). */
|
|
88
|
+
time: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Funding record timestamp (ms since epoch).")),
|
|
89
|
+
}), v.description("Historical funding rate record for an asset."));
|
|
90
|
+
/** Perpetual dex metadata. */
|
|
91
|
+
exports.PerpDex = v.pipe(v.strictObject({
|
|
92
|
+
/** Short name of the perpetual dex. */
|
|
93
|
+
name: v.pipe(v.string(), v.description("Short name of the perpetual dex.")),
|
|
94
|
+
/** Complete name of the perpetual dex. */
|
|
95
|
+
full_name: v.pipe(v.string(), v.description("Complete name of the perpetual dex.")),
|
|
96
|
+
/** Hex address of the dex deployer. */
|
|
97
|
+
deployer: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Hex address of the dex deployer.")),
|
|
98
|
+
/** Hex address of the oracle updater, or null if not available. */
|
|
99
|
+
oracle_updater: v.pipe(v.nullable(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Hex address of the oracle updater, or null if not available.")),
|
|
100
|
+
}), v.description("Perpetual dex metadata."));
|
|
101
|
+
/** Individual tier in a margin requirements table. */
|
|
102
|
+
exports.MarginTier = v.pipe(v.strictObject({
|
|
103
|
+
/** Lower position size boundary for this tier. */
|
|
104
|
+
lowerBound: v.pipe(_base_js_1.UnsignedDecimal, v.description("Lower position size boundary for this tier.")),
|
|
105
|
+
/** Maximum allowed leverage for this tier. */
|
|
106
|
+
maxLeverage: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.minValue(1), v.description("Maximum allowed leverage for this tier.")),
|
|
107
|
+
}), v.description("Individual tier in a margin requirements table."));
|
|
108
|
+
/** Margin requirements table with multiple tiers. */
|
|
109
|
+
exports.MarginTable = v.pipe(v.strictObject({
|
|
110
|
+
/** Description of the margin table. */
|
|
111
|
+
description: v.pipe(v.string(), v.description("Description of the margin table.")),
|
|
112
|
+
/** Array of margin tiers defining leverage limits. */
|
|
113
|
+
marginTiers: v.pipe(v.array(exports.MarginTier), v.description("Array of margin tiers defining leverage limits.")),
|
|
114
|
+
}), v.description("Margin requirements table with multiple tiers."));
|
|
115
|
+
/** Collection of margin tables indexed by ID. */
|
|
116
|
+
exports.MarginTables = v.pipe(v.array(v.strictTuple([v.pipe(v.number(), v.safeInteger(), v.minValue(0)), exports.MarginTable])), v.description("Collection of margin tables indexed by ID."));
|
|
117
|
+
/** Shared context for assets. */
|
|
118
|
+
exports.SharedAssetCtx = v.pipe(v.strictObject({
|
|
119
|
+
/** Previous day's closing price. */
|
|
120
|
+
prevDayPx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Previous day's closing price.")),
|
|
121
|
+
/** Daily notional volume. */
|
|
122
|
+
dayNtlVlm: v.pipe(_base_js_1.UnsignedDecimal, v.description("Daily notional volume.")),
|
|
123
|
+
/** Mark price. */
|
|
124
|
+
markPx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Mark price.")),
|
|
125
|
+
/** Mid price. */
|
|
126
|
+
midPx: v.pipe(v.nullable(_base_js_1.UnsignedDecimal), v.description("Mid price.")),
|
|
127
|
+
}), v.description("Shared context for assets."));
|
|
128
|
+
/** Context for a perpetual asset. */
|
|
129
|
+
exports.PerpsAssetCtx = v.pipe(v.strictObject({
|
|
130
|
+
...exports.SharedAssetCtx.entries,
|
|
131
|
+
/** Funding rate. */
|
|
132
|
+
funding: v.pipe(_base_js_1.SignedDecimal, v.description("Funding rate.")),
|
|
133
|
+
/** Total open interest. */
|
|
134
|
+
openInterest: v.pipe(_base_js_1.UnsignedDecimal, v.description("Total open interest.")),
|
|
135
|
+
/** Premium price. */
|
|
136
|
+
premium: v.pipe(v.nullable(_base_js_1.SignedDecimal), v.description("Premium price.")),
|
|
137
|
+
/** Oracle price. */
|
|
138
|
+
oraclePx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Oracle price.")),
|
|
139
|
+
/** Array of impact prices. */
|
|
140
|
+
impactPxs: v.pipe(v.nullable(v.array(v.string())), v.description("Array of impact prices.")),
|
|
141
|
+
/** Daily volume in base currency. */
|
|
142
|
+
dayBaseVlm: v.pipe(_base_js_1.UnsignedDecimal, v.description("Daily volume in base currency.")),
|
|
143
|
+
}), v.description("Context for a perpetual asset."));
|
|
144
|
+
/** Trading universe parameters for perpetual assets. */
|
|
145
|
+
exports.PerpsUniverse = v.pipe(v.strictObject({
|
|
146
|
+
/** Minimum decimal places for order sizes. */
|
|
147
|
+
szDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Minimum decimal places for order sizes.")),
|
|
148
|
+
/** Name of the universe. */
|
|
149
|
+
name: v.pipe(v.string(), v.description("Name of the universe.")),
|
|
150
|
+
/** Maximum allowed leverage. */
|
|
151
|
+
maxLeverage: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.minValue(1), v.description("Maximum allowed leverage.")),
|
|
152
|
+
/** Unique identifier for the margin requirements table. */
|
|
153
|
+
marginTableId: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Unique identifier for the margin requirements table.")),
|
|
154
|
+
/** Indicates if only isolated margin trading is allowed. */
|
|
155
|
+
onlyIsolated: v.pipe(v.optional(v.literal(true)), v.description("Indicates if only isolated margin trading is allowed.")),
|
|
156
|
+
/** Indicates if the universe is delisted. */
|
|
157
|
+
isDelisted: v.pipe(v.optional(v.literal(true)), v.description("Indicates if the universe is delisted.")),
|
|
158
|
+
}), v.description("Trading universe parameters for perpetual assets."));
|
|
159
|
+
/** Metadata for perpetual assets. */
|
|
160
|
+
exports.PerpsMeta = v.pipe(v.strictObject({
|
|
161
|
+
/** Trading universes available for perpetual trading. */
|
|
162
|
+
universe: v.pipe(v.array(exports.PerpsUniverse), v.description("Trading universes available for perpetual trading.")),
|
|
163
|
+
/** Margin requirement tables for different leverage tiers. */
|
|
164
|
+
marginTables: v.pipe(exports.MarginTables, v.description("Margin requirement tables for different leverage tiers.")),
|
|
165
|
+
}), v.description("Metadata for perpetual assets."));
|
|
166
|
+
/** Metadata and context for perpetual assets. */
|
|
167
|
+
exports.PerpsMetaAndAssetCtxs = v.pipe(v.strictTuple([
|
|
168
|
+
/** Metadata for assets. */
|
|
169
|
+
v.pipe(exports.PerpsMeta, v.description("Metadata for assets.")),
|
|
170
|
+
/** Context for each perpetual asset. */
|
|
171
|
+
v.pipe(v.array(exports.PerpsAssetCtx), v.description("Context for each perpetual asset.")),
|
|
172
|
+
]), v.description("Metadata and context for perpetual assets."));
|
|
173
|
+
/**
|
|
174
|
+
* Predicted funding data.
|
|
175
|
+
*
|
|
176
|
+
* The first element is the asset symbol and the second element is an array of predicted funding data for each exchange.
|
|
177
|
+
*/
|
|
178
|
+
exports.PredictedFunding = v.pipe(v.strictTuple([
|
|
179
|
+
/** Asset symbol. */
|
|
180
|
+
v.pipe(v.string(), v.description("Asset symbol.")),
|
|
181
|
+
/** Array of predicted funding data for each exchange. */
|
|
182
|
+
v.pipe(v.array(v.strictTuple([
|
|
183
|
+
/** Exchange symbol. */
|
|
184
|
+
v.pipe(v.string(), v.description("Exchange symbol.")),
|
|
185
|
+
/** Predicted funding data. */
|
|
186
|
+
v.pipe(v.nullable(v.strictObject({
|
|
187
|
+
/** Predicted funding rate. */
|
|
188
|
+
fundingRate: v.pipe(_base_js_1.SignedDecimal, v.description("Predicted funding rate.")),
|
|
189
|
+
/** Next funding time (ms since epoch). */
|
|
190
|
+
nextFundingTime: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Next funding time (ms since epoch).")),
|
|
191
|
+
/** Funding interval in hours. */
|
|
192
|
+
fundingIntervalHours: v.pipe(v.optional(v.pipe(v.number(), v.safeInteger(), v.minValue(0))), v.description("Funding interval in hours.")),
|
|
193
|
+
})), v.description("Predicted funding data.")),
|
|
194
|
+
])), v.description("Array of predicted funding data for each exchange.")),
|
|
195
|
+
]), v.description("Predicted funding data." +
|
|
196
|
+
"\n\nThe first element is the asset symbol and the second element is an array of predicted funding data for each exchange."));
|
|
197
|
+
/** Context for a spot asset. */
|
|
198
|
+
exports.SpotAssetCtx = v.pipe(v.strictObject({
|
|
199
|
+
...exports.SharedAssetCtx.entries,
|
|
200
|
+
/** Circulating supply. */
|
|
201
|
+
circulatingSupply: v.pipe(_base_js_1.UnsignedDecimal, v.description("Circulating supply.")),
|
|
202
|
+
/** Asset symbol. */
|
|
203
|
+
coin: v.pipe(v.string(), v.description("Asset symbol.")),
|
|
204
|
+
/** Total supply. */
|
|
205
|
+
totalSupply: v.pipe(_base_js_1.UnsignedDecimal, v.description("Total supply.")),
|
|
206
|
+
/** Daily volume in base currency. */
|
|
207
|
+
dayBaseVlm: v.pipe(_base_js_1.UnsignedDecimal, v.description("Daily volume in base currency.")),
|
|
208
|
+
}), v.description("Context for a spot asset."));
|
|
209
|
+
/** Details for a trading token in spot markets. */
|
|
210
|
+
exports.SpotToken = v.pipe(v.strictObject({
|
|
211
|
+
/** Name of the token. */
|
|
212
|
+
name: v.pipe(v.string(), v.description("Name of the token.")),
|
|
213
|
+
/** Minimum decimal places for order sizes. */
|
|
214
|
+
szDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Minimum decimal places for order sizes.")),
|
|
215
|
+
/** Number of decimals for the token's smallest unit. */
|
|
216
|
+
weiDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Number of decimals for the token's smallest unit.")),
|
|
217
|
+
/** Unique identifier for the token. */
|
|
218
|
+
index: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Unique identifier for the token.")),
|
|
219
|
+
/** Token ID. */
|
|
220
|
+
tokenId: v.pipe(_base_js_1.Hex, v.description("Token ID.")),
|
|
221
|
+
/** Indicates if the token is the primary representation in the system. */
|
|
222
|
+
isCanonical: v.pipe(v.boolean(), v.description("Indicates if the token is the primary representation in the system.")),
|
|
223
|
+
/** EVM contract details. */
|
|
224
|
+
evmContract: v.pipe(v.nullable(v.strictObject({
|
|
225
|
+
/** Contract address. */
|
|
226
|
+
address: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Contract address.")),
|
|
227
|
+
/** Extra decimals in the token's smallest unit. */
|
|
228
|
+
evm_extra_wei_decimals: v.pipe(v.pipe(v.number(), v.safeInteger()), v.description("Extra decimals in the token's smallest unit.")),
|
|
229
|
+
})), v.description("EVM contract details.")),
|
|
230
|
+
/** Full display name of the token. */
|
|
231
|
+
fullName: v.pipe(v.nullable(v.string()), v.description("Full display name of the token.")),
|
|
232
|
+
/** Deployer trading fee share for the token. */
|
|
233
|
+
deployerTradingFeeShare: v.pipe(_base_js_1.UnsignedDecimal, v.description("Deployer trading fee share for the token.")),
|
|
234
|
+
}), v.description("Details for a trading token in spot markets."));
|
|
235
|
+
/** Trading universe parameters for spot assets. */
|
|
236
|
+
exports.SpotUniverse = v.pipe(v.strictObject({
|
|
237
|
+
/** Token indices included in this universe. */
|
|
238
|
+
tokens: v.pipe(v.array(v.pipe(v.number(), v.safeInteger(), v.minValue(0))), v.description("Token indices included in this universe.")),
|
|
239
|
+
/** Name of the universe. */
|
|
240
|
+
name: v.pipe(v.string(), v.description("Name of the universe.")),
|
|
241
|
+
/** Unique identifier of the universe. */
|
|
242
|
+
index: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Unique identifier of the universe.")),
|
|
243
|
+
/** Indicates if the token is the primary representation in the system. */
|
|
244
|
+
isCanonical: v.pipe(v.boolean(), v.description("Indicates if the token is the primary representation in the system.")),
|
|
245
|
+
}), v.description("Trading universe parameters for spot assets."));
|
|
246
|
+
/** Metadata for spot assets. */
|
|
247
|
+
exports.SpotMeta = v.pipe(v.strictObject({
|
|
248
|
+
/** Trading universes available for spot trading. */
|
|
249
|
+
universe: v.pipe(v.array(exports.SpotUniverse), v.description("Trading universes available for spot trading.")),
|
|
250
|
+
/** Tokens available for spot trading. */
|
|
251
|
+
tokens: v.pipe(v.array(exports.SpotToken), v.description("Tokens available for spot trading.")),
|
|
252
|
+
}), v.description("Metadata for spot assets."));
|
|
253
|
+
/** Metadata and context for spot assets. */
|
|
254
|
+
exports.SpotMetaAndAssetCtxs = v.pipe(v.strictTuple([
|
|
255
|
+
/** Metadata for assets. */
|
|
256
|
+
v.pipe(exports.SpotMeta, v.description("Metadata for assets.")),
|
|
257
|
+
/** Context for each spot asset. */
|
|
258
|
+
v.pipe(v.array(exports.SpotAssetCtx), v.description("Context for each spot asset.")),
|
|
259
|
+
]), v.description("Metadata and context for spot assets."));
|
|
260
|
+
/** Details of a token. */
|
|
261
|
+
exports.TokenDetails = v.pipe(v.strictObject({
|
|
262
|
+
/** Name of the token. */
|
|
263
|
+
name: v.pipe(v.string(), v.description("Name of the token.")),
|
|
264
|
+
/** Maximum supply of the token. */
|
|
265
|
+
maxSupply: v.pipe(_base_js_1.UnsignedDecimal, v.description("Maximum supply of the token.")),
|
|
266
|
+
/** Total supply of the token. */
|
|
267
|
+
totalSupply: v.pipe(_base_js_1.UnsignedDecimal, v.description("Total supply of the token.")),
|
|
268
|
+
/** Circulating supply of the token. */
|
|
269
|
+
circulatingSupply: v.pipe(_base_js_1.UnsignedDecimal, v.description("Circulating supply of the token.")),
|
|
270
|
+
/** Decimal places for the minimum tradable unit. */
|
|
271
|
+
szDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Decimal places for the minimum tradable unit.")),
|
|
272
|
+
/** Decimal places for the token's smallest unit. */
|
|
273
|
+
weiDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Decimal places for the token's smallest unit.")),
|
|
274
|
+
/** Mid price of the token. */
|
|
275
|
+
midPx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Mid price of the token.")),
|
|
276
|
+
/** Mark price of the token. */
|
|
277
|
+
markPx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Mark price of the token.")),
|
|
278
|
+
/** Previous day's price of the token. */
|
|
279
|
+
prevDayPx: v.pipe(_base_js_1.UnsignedDecimal, v.description("Previous day's price of the token.")),
|
|
280
|
+
/** Genesis data for the token. */
|
|
281
|
+
genesis: v.pipe(v.nullable(v.strictObject({
|
|
282
|
+
/** User balances. */
|
|
283
|
+
userBalances: v.pipe(v.array(v.strictTuple([v.pipe(_base_js_1.Hex, v.length(42)), v.string()])), v.description("User balances.")),
|
|
284
|
+
/** Existing token balances. */
|
|
285
|
+
existingTokenBalances: v.pipe(v.array(v.strictTuple([v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.string()])), v.description("Existing token balances.")),
|
|
286
|
+
/** Blacklisted users. */
|
|
287
|
+
blacklistUsers: v.pipe(v.array(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Blacklisted users.")),
|
|
288
|
+
})), v.description("Genesis data for the token.")),
|
|
289
|
+
/** Deployer address. */
|
|
290
|
+
deployer: v.pipe(v.nullable(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Deployer address.")),
|
|
291
|
+
/** Gas used during token deployment. */
|
|
292
|
+
deployGas: v.pipe(v.nullable(_base_js_1.UnsignedDecimal), v.description("Gas used during token deployment.")),
|
|
293
|
+
/** Deployment time. */
|
|
294
|
+
deployTime: v.pipe(v.nullable(v.string()), v.description("Deployment time.")),
|
|
295
|
+
/** Seeded USDC amount for the token. */
|
|
296
|
+
seededUsdc: v.pipe(_base_js_1.UnsignedDecimal, v.description("Seeded USDC amount for the token.")),
|
|
297
|
+
/** Non-circulating user balances of the token. */
|
|
298
|
+
nonCirculatingUserBalances: v.pipe(v.array(v.strictTuple([v.pipe(_base_js_1.Hex, v.length(42)), v.string()])), v.description("Non-circulating user balances of the token.")),
|
|
299
|
+
/** Future emissions amount. */
|
|
300
|
+
futureEmissions: v.pipe(_base_js_1.UnsignedDecimal, v.description("Future emissions amount.")),
|
|
301
|
+
}), v.description("Details of a token."));
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** Status of the deploy auction. */
|
|
3
|
+
export declare const DeployAuctionStatus: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
4
|
+
/** Current gas. */
|
|
5
|
+
readonly currentGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Current gas.">]>;
|
|
6
|
+
/** Duration in seconds. */
|
|
7
|
+
readonly durationSeconds: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in seconds.">]>;
|
|
8
|
+
/** Ending gas. */
|
|
9
|
+
readonly endGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Ending gas.">]>;
|
|
10
|
+
/** Starting gas. */
|
|
11
|
+
readonly startGas: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Starting gas.">]>;
|
|
12
|
+
/** Auction start time (seconds since epoch). */
|
|
13
|
+
readonly startTimeSeconds: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Auction start time (seconds since epoch).">]>;
|
|
14
|
+
}, undefined>, v.DescriptionAction<{
|
|
15
|
+
currentGas: string | null;
|
|
16
|
+
durationSeconds: number;
|
|
17
|
+
endGas: string | null;
|
|
18
|
+
startGas: string;
|
|
19
|
+
startTimeSeconds: number;
|
|
20
|
+
}, "Status of the deploy auction.">]>;
|
|
21
|
+
export type DeployAuctionStatus = v.InferOutput<typeof DeployAuctionStatus>;
|
|
22
|
+
/** Exchange system status information. */
|
|
23
|
+
export declare const ExchangeStatus: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
24
|
+
/** Server time (in ms since epoch). */
|
|
25
|
+
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server time (in ms since epoch).">]>;
|
|
26
|
+
readonly specialStatuses: v.SchemaWithPipe<readonly [v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>]>;
|
|
27
|
+
}, undefined>, v.DescriptionAction<{
|
|
28
|
+
time: number;
|
|
29
|
+
specialStatuses: unknown;
|
|
30
|
+
}, "Exchange system status information.">]>;
|
|
31
|
+
export type ExchangeStatus = v.InferOutput<typeof ExchangeStatus>;
|
|
32
|
+
/** Deploy state for spot tokens. */
|
|
33
|
+
export declare const SpotDeployState: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
34
|
+
/** Array of deploy states for tokens. */
|
|
35
|
+
readonly states: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
36
|
+
/** Token ID. */
|
|
37
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Token ID.">]>;
|
|
38
|
+
/** Token specification. */
|
|
39
|
+
readonly spec: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
40
|
+
/** Name of the token. */
|
|
41
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the token.">]>;
|
|
42
|
+
/** Minimum decimal places for order sizes. */
|
|
43
|
+
readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Minimum decimal places for order sizes.">]>;
|
|
44
|
+
/** Number of decimals for the token's smallest unit. */
|
|
45
|
+
readonly weiDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of decimals for the token's smallest unit.">]>;
|
|
46
|
+
}, undefined>, v.DescriptionAction<{
|
|
47
|
+
name: string;
|
|
48
|
+
szDecimals: number;
|
|
49
|
+
weiDecimals: number;
|
|
50
|
+
}, "Token specification.">]>;
|
|
51
|
+
/** Full name of the token. */
|
|
52
|
+
readonly fullName: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Full name of the token.">]>;
|
|
53
|
+
/** Deployer trading fee share for the token. */
|
|
54
|
+
readonly deployerTradingFeeShare: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Deployer trading fee share for the token.">]>;
|
|
55
|
+
/** Spot indices for the token. */
|
|
56
|
+
readonly spots: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number[], "Spot indices for the token.">]>;
|
|
57
|
+
/** Maximum supply of the token. */
|
|
58
|
+
readonly maxSupply: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Maximum supply of the token.">]>;
|
|
59
|
+
/** Hyperliquidity genesis balance of the token. */
|
|
60
|
+
readonly hyperliquidityGenesisBalance: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Hyperliquidity genesis balance of the token.">]>;
|
|
61
|
+
/** Total genesis balance (in wei) for the token. */
|
|
62
|
+
readonly totalGenesisBalanceWei: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total genesis balance (in wei) for the token.">]>;
|
|
63
|
+
/** User genesis balances for the token. */
|
|
64
|
+
readonly userGenesisBalances: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[`0x${string}`, string][], "User genesis balances for the token.">]>;
|
|
65
|
+
/** Existing token genesis balances for the token. */
|
|
66
|
+
readonly existingTokenGenesisBalances: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "Existing token genesis balances for the token.">]>;
|
|
67
|
+
/** Blacklisted users for the token. */
|
|
68
|
+
readonly blacklistUsers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}`[], "Blacklisted users for the token.">]>;
|
|
69
|
+
}, undefined>, undefined>, v.DescriptionAction<{
|
|
70
|
+
token: number;
|
|
71
|
+
spec: {
|
|
72
|
+
name: string;
|
|
73
|
+
szDecimals: number;
|
|
74
|
+
weiDecimals: number;
|
|
75
|
+
};
|
|
76
|
+
fullName: string | null;
|
|
77
|
+
deployerTradingFeeShare: string;
|
|
78
|
+
spots: number[];
|
|
79
|
+
maxSupply: string | null;
|
|
80
|
+
hyperliquidityGenesisBalance: string;
|
|
81
|
+
totalGenesisBalanceWei: string;
|
|
82
|
+
userGenesisBalances: [`0x${string}`, string][];
|
|
83
|
+
existingTokenGenesisBalances: [number, string][];
|
|
84
|
+
blacklistUsers: `0x${string}`[];
|
|
85
|
+
}[], "Array of deploy states for tokens.">]>;
|
|
86
|
+
/** Status of the deploy auction. */
|
|
87
|
+
readonly gasAuction: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
88
|
+
/** Current gas. */
|
|
89
|
+
readonly currentGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Current gas.">]>;
|
|
90
|
+
/** Duration in seconds. */
|
|
91
|
+
readonly durationSeconds: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in seconds.">]>;
|
|
92
|
+
/** Ending gas. */
|
|
93
|
+
readonly endGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Ending gas.">]>;
|
|
94
|
+
/** Starting gas. */
|
|
95
|
+
readonly startGas: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Starting gas.">]>;
|
|
96
|
+
/** Auction start time (seconds since epoch). */
|
|
97
|
+
readonly startTimeSeconds: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Auction start time (seconds since epoch).">]>;
|
|
98
|
+
}, undefined>, v.DescriptionAction<{
|
|
99
|
+
currentGas: string | null;
|
|
100
|
+
durationSeconds: number;
|
|
101
|
+
endGas: string | null;
|
|
102
|
+
startGas: string;
|
|
103
|
+
startTimeSeconds: number;
|
|
104
|
+
}, "Status of the deploy auction.">]>, v.DescriptionAction<{
|
|
105
|
+
currentGas: string | null;
|
|
106
|
+
durationSeconds: number;
|
|
107
|
+
endGas: string | null;
|
|
108
|
+
startGas: string;
|
|
109
|
+
startTimeSeconds: number;
|
|
110
|
+
}, "Status of the deploy auction.">]>;
|
|
111
|
+
}, undefined>, v.DescriptionAction<{
|
|
112
|
+
states: {
|
|
113
|
+
token: number;
|
|
114
|
+
spec: {
|
|
115
|
+
name: string;
|
|
116
|
+
szDecimals: number;
|
|
117
|
+
weiDecimals: number;
|
|
118
|
+
};
|
|
119
|
+
fullName: string | null;
|
|
120
|
+
deployerTradingFeeShare: string;
|
|
121
|
+
spots: number[];
|
|
122
|
+
maxSupply: string | null;
|
|
123
|
+
hyperliquidityGenesisBalance: string;
|
|
124
|
+
totalGenesisBalanceWei: string;
|
|
125
|
+
userGenesisBalances: [`0x${string}`, string][];
|
|
126
|
+
existingTokenGenesisBalances: [number, string][];
|
|
127
|
+
blacklistUsers: `0x${string}`[];
|
|
128
|
+
}[];
|
|
129
|
+
gasAuction: {
|
|
130
|
+
currentGas: string | null;
|
|
131
|
+
durationSeconds: number;
|
|
132
|
+
endGas: string | null;
|
|
133
|
+
startGas: string;
|
|
134
|
+
startTimeSeconds: number;
|
|
135
|
+
};
|
|
136
|
+
}, "Deploy state for spot tokens.">]>;
|
|
137
|
+
export type SpotDeployState = v.InferOutput<typeof SpotDeployState>;
|
|
138
|
+
//# sourceMappingURL=markets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markets.d.ts","sourceRoot":"","sources":["../../../../src/src/schemas/info/markets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,oCAAoC;AACpC,eAAO,MAAM,mBAAmB;IAExB,mBAAmB;;IAKnB,2BAA2B;;IAK3B,kBAAkB;;IAKlB,oBAAoB;;IAKpB,gDAAgD;;;;;;;;qCAOvD,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE5E,0CAA0C;AAC1C,eAAO,MAAM,cAAc;IAEnB,uCAAuC;;;;;;2CAU9C,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAElE,oCAAoC;AACpC,eAAO,MAAM,eAAe;IAEpB,yCAAyC;;QAI7B,gBAAgB;;QAKhB,2BAA2B;;YAGnB,yBAAyB;;YAKzB,8CAA8C;;YAK9C,wDAAwD;;;;;;;QAQhE,8BAA8B;;QAK9B,gDAAgD;;QAKhD,kCAAkC;;QAKlC,mCAAmC;;QAKnC,mDAAmD;;QAKnD,oDAAoD;;QAKpD,2CAA2C;;QAK3C,qDAAqD;;QAKrD,uCAAuC;;;;;;;;;;;;;;;;;;;IASnD,oCAAoC;;QAhIpC,mBAAmB;;QAKnB,2BAA2B;;QAK3B,kBAAkB;;QAKlB,oBAAoB;;QAKpB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAmHvD,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.SpotDeployState = exports.ExchangeStatus = exports.DeployAuctionStatus = void 0;
|
|
37
|
+
const v = __importStar(require("valibot"));
|
|
38
|
+
const _base_js_1 = require("../_base.js");
|
|
39
|
+
/** Status of the deploy auction. */
|
|
40
|
+
exports.DeployAuctionStatus = v.pipe(v.strictObject({
|
|
41
|
+
/** Current gas. */
|
|
42
|
+
currentGas: v.pipe(v.nullable(_base_js_1.UnsignedDecimal), v.description("Current gas.")),
|
|
43
|
+
/** Duration in seconds. */
|
|
44
|
+
durationSeconds: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Duration in seconds.")),
|
|
45
|
+
/** Ending gas. */
|
|
46
|
+
endGas: v.pipe(v.nullable(_base_js_1.UnsignedDecimal), v.description("Ending gas.")),
|
|
47
|
+
/** Starting gas. */
|
|
48
|
+
startGas: v.pipe(_base_js_1.UnsignedDecimal, v.description("Starting gas.")),
|
|
49
|
+
/** Auction start time (seconds since epoch). */
|
|
50
|
+
startTimeSeconds: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Auction start time (seconds since epoch).")),
|
|
51
|
+
}), v.description("Status of the deploy auction."));
|
|
52
|
+
/** Exchange system status information. */
|
|
53
|
+
exports.ExchangeStatus = v.pipe(v.strictObject({
|
|
54
|
+
/** Server time (in ms since epoch). */
|
|
55
|
+
time: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Server time (in ms since epoch).")),
|
|
56
|
+
specialStatuses: v.pipe(v.union([v.unknown(), v.null()])),
|
|
57
|
+
}), v.description("Exchange system status information."));
|
|
58
|
+
/** Deploy state for spot tokens. */
|
|
59
|
+
exports.SpotDeployState = v.pipe(v.strictObject({
|
|
60
|
+
/** Array of deploy states for tokens. */
|
|
61
|
+
states: v.pipe(v.array(v.strictObject({
|
|
62
|
+
/** Token ID. */
|
|
63
|
+
token: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Token ID.")),
|
|
64
|
+
/** Token specification. */
|
|
65
|
+
spec: v.pipe(v.strictObject({
|
|
66
|
+
/** Name of the token. */
|
|
67
|
+
name: v.pipe(v.string(), v.description("Name of the token.")),
|
|
68
|
+
/** Minimum decimal places for order sizes. */
|
|
69
|
+
szDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Minimum decimal places for order sizes.")),
|
|
70
|
+
/** Number of decimals for the token's smallest unit. */
|
|
71
|
+
weiDecimals: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Number of decimals for the token's smallest unit.")),
|
|
72
|
+
}), v.description("Token specification.")),
|
|
73
|
+
/** Full name of the token. */
|
|
74
|
+
fullName: v.pipe(v.nullable(v.string()), v.description("Full name of the token.")),
|
|
75
|
+
/** Deployer trading fee share for the token. */
|
|
76
|
+
deployerTradingFeeShare: v.pipe(_base_js_1.UnsignedDecimal, v.description("Deployer trading fee share for the token.")),
|
|
77
|
+
/** Spot indices for the token. */
|
|
78
|
+
spots: v.pipe(v.array(v.pipe(v.number(), v.safeInteger(), v.minValue(0))), v.description("Spot indices for the token.")),
|
|
79
|
+
/** Maximum supply of the token. */
|
|
80
|
+
maxSupply: v.pipe(v.nullable(_base_js_1.UnsignedDecimal), v.description("Maximum supply of the token.")),
|
|
81
|
+
/** Hyperliquidity genesis balance of the token. */
|
|
82
|
+
hyperliquidityGenesisBalance: v.pipe(_base_js_1.UnsignedDecimal, v.description("Hyperliquidity genesis balance of the token.")),
|
|
83
|
+
/** Total genesis balance (in wei) for the token. */
|
|
84
|
+
totalGenesisBalanceWei: v.pipe(_base_js_1.UnsignedDecimal, v.description("Total genesis balance (in wei) for the token.")),
|
|
85
|
+
/** User genesis balances for the token. */
|
|
86
|
+
userGenesisBalances: v.pipe(v.array(v.strictTuple([v.pipe(_base_js_1.Hex, v.length(42)), _base_js_1.UnsignedDecimal])), v.description("User genesis balances for the token.")),
|
|
87
|
+
/** Existing token genesis balances for the token. */
|
|
88
|
+
existingTokenGenesisBalances: v.pipe(v.array(v.strictTuple([v.pipe(v.number(), v.safeInteger(), v.minValue(0)), _base_js_1.UnsignedDecimal])), v.description("Existing token genesis balances for the token.")),
|
|
89
|
+
/** Blacklisted users for the token. */
|
|
90
|
+
blacklistUsers: v.pipe(v.array(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Blacklisted users for the token.")),
|
|
91
|
+
})), v.description("Array of deploy states for tokens.")),
|
|
92
|
+
/** Status of the deploy auction. */
|
|
93
|
+
gasAuction: v.pipe(exports.DeployAuctionStatus, v.description("Status of the deploy auction.")),
|
|
94
|
+
}), v.description("Deploy state for spot tokens."));
|