@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.
Files changed (242) hide show
  1. package/README.md +197 -117
  2. package/esm/mod.d.ts +11 -11
  3. package/esm/mod.d.ts.map +1 -1
  4. package/esm/mod.js +1 -1
  5. package/esm/src/clients/exchange.d.ts +29 -18
  6. package/esm/src/clients/exchange.d.ts.map +1 -1
  7. package/esm/src/clients/exchange.js +50 -48
  8. package/esm/src/clients/info.d.ts +79 -75
  9. package/esm/src/clients/info.d.ts.map +1 -1
  10. package/esm/src/clients/info.js +294 -163
  11. package/esm/src/clients/multiSign.d.ts +11 -7
  12. package/esm/src/clients/multiSign.d.ts.map +1 -1
  13. package/esm/src/clients/subscription.d.ts +105 -32
  14. package/esm/src/clients/subscription.d.ts.map +1 -1
  15. package/esm/src/clients/subscription.js +114 -33
  16. package/esm/src/{base.d.ts → errors.d.ts} +1 -1
  17. package/esm/src/errors.d.ts.map +1 -0
  18. package/esm/src/schemas/_base.d.ts +10 -0
  19. package/esm/src/schemas/_base.d.ts.map +1 -0
  20. package/esm/src/schemas/_base.js +12 -0
  21. package/esm/src/schemas/exchange/requests.d.ts +8953 -0
  22. package/esm/src/schemas/exchange/requests.d.ts.map +1 -0
  23. package/esm/src/schemas/exchange/requests.js +1413 -0
  24. package/esm/src/schemas/exchange/responses.d.ts +567 -0
  25. package/esm/src/schemas/exchange/responses.d.ts.map +1 -0
  26. package/esm/src/schemas/exchange/responses.js +243 -0
  27. package/esm/src/schemas/explorer/requests.d.ts +44 -0
  28. package/esm/src/schemas/explorer/requests.d.ts.map +1 -0
  29. package/esm/src/schemas/explorer/requests.js +32 -0
  30. package/esm/src/schemas/explorer/responses.d.ts +360 -0
  31. package/esm/src/schemas/explorer/responses.d.ts.map +1 -0
  32. package/esm/src/schemas/explorer/responses.js +56 -0
  33. package/esm/src/schemas/info/accounts.d.ts +2159 -0
  34. package/esm/src/schemas/info/accounts.d.ts.map +1 -0
  35. package/esm/src/schemas/info/accounts.js +622 -0
  36. package/esm/src/schemas/info/assets.d.ts +945 -0
  37. package/esm/src/schemas/info/assets.d.ts.map +1 -0
  38. package/esm/src/schemas/info/assets.js +265 -0
  39. package/esm/src/schemas/info/markets.d.ts +138 -0
  40. package/esm/src/schemas/info/markets.d.ts.map +1 -0
  41. package/esm/src/schemas/info/markets.js +58 -0
  42. package/esm/src/schemas/info/orders.d.ts +957 -0
  43. package/esm/src/schemas/info/orders.d.ts.map +1 -0
  44. package/esm/src/schemas/info/orders.js +297 -0
  45. package/esm/src/schemas/info/requests.d.ts +882 -0
  46. package/esm/src/schemas/info/requests.d.ts.map +1 -0
  47. package/esm/src/schemas/info/requests.js +655 -0
  48. package/esm/src/schemas/info/validators.d.ts +305 -0
  49. package/esm/src/schemas/info/validators.d.ts.map +1 -0
  50. package/esm/src/schemas/info/validators.js +112 -0
  51. package/esm/src/schemas/info/vaults.d.ts +447 -0
  52. package/esm/src/schemas/info/vaults.d.ts.map +1 -0
  53. package/esm/src/schemas/info/vaults.js +110 -0
  54. package/esm/src/schemas/mod.d.ts +100 -0
  55. package/esm/src/schemas/mod.d.ts.map +1 -0
  56. package/esm/src/schemas/mod.js +113 -0
  57. package/esm/src/schemas/subscriptions/requests.d.ts +332 -0
  58. package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -0
  59. package/esm/src/schemas/subscriptions/requests.js +258 -0
  60. package/esm/src/schemas/subscriptions/responses.d.ts +3643 -0
  61. package/esm/src/schemas/subscriptions/responses.d.ts.map +1 -0
  62. package/esm/src/schemas/subscriptions/responses.js +233 -0
  63. package/esm/src/signing/mod.d.ts +109 -29
  64. package/esm/src/signing/mod.d.ts.map +1 -1
  65. package/esm/src/signing/mod.js +135 -29
  66. package/esm/src/transports/base.d.ts +2 -2
  67. package/esm/src/transports/base.d.ts.map +1 -1
  68. package/esm/src/transports/base.js +2 -2
  69. package/esm/src/transports/http/http_transport.d.ts +2 -1
  70. package/esm/src/transports/http/http_transport.d.ts.map +1 -1
  71. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
  72. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  73. package/esm/src/transports/websocket/websocket_transport.d.ts +2 -1
  74. package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  75. package/package.json +6 -5
  76. package/script/mod.d.ts +11 -11
  77. package/script/mod.d.ts.map +1 -1
  78. package/script/mod.js +1 -1
  79. package/script/src/clients/exchange.d.ts +29 -18
  80. package/script/src/clients/exchange.d.ts.map +1 -1
  81. package/script/src/clients/exchange.js +56 -54
  82. package/script/src/clients/info.d.ts +79 -75
  83. package/script/src/clients/info.d.ts.map +1 -1
  84. package/script/src/clients/info.js +294 -163
  85. package/script/src/clients/multiSign.d.ts +11 -7
  86. package/script/src/clients/multiSign.d.ts.map +1 -1
  87. package/script/src/clients/subscription.d.ts +105 -32
  88. package/script/src/clients/subscription.d.ts.map +1 -1
  89. package/script/src/clients/subscription.js +114 -33
  90. package/script/src/{base.d.ts → errors.d.ts} +1 -1
  91. package/script/src/errors.d.ts.map +1 -0
  92. package/script/src/schemas/_base.d.ts +10 -0
  93. package/script/src/schemas/_base.d.ts.map +1 -0
  94. package/script/src/schemas/_base.js +48 -0
  95. package/script/src/schemas/exchange/requests.d.ts +8953 -0
  96. package/script/src/schemas/exchange/requests.d.ts.map +1 -0
  97. package/script/src/schemas/exchange/requests.js +1449 -0
  98. package/script/src/schemas/exchange/responses.d.ts +567 -0
  99. package/script/src/schemas/exchange/responses.d.ts.map +1 -0
  100. package/script/src/schemas/exchange/responses.js +279 -0
  101. package/script/src/schemas/explorer/requests.d.ts +44 -0
  102. package/script/src/schemas/explorer/requests.d.ts.map +1 -0
  103. package/script/src/schemas/explorer/requests.js +68 -0
  104. package/script/src/schemas/explorer/responses.d.ts +360 -0
  105. package/script/src/schemas/explorer/responses.d.ts.map +1 -0
  106. package/script/src/schemas/explorer/responses.js +92 -0
  107. package/script/src/schemas/info/accounts.d.ts +2159 -0
  108. package/script/src/schemas/info/accounts.d.ts.map +1 -0
  109. package/script/src/schemas/info/accounts.js +658 -0
  110. package/script/src/schemas/info/assets.d.ts +945 -0
  111. package/script/src/schemas/info/assets.d.ts.map +1 -0
  112. package/script/src/schemas/info/assets.js +301 -0
  113. package/script/src/schemas/info/markets.d.ts +138 -0
  114. package/script/src/schemas/info/markets.d.ts.map +1 -0
  115. package/script/src/schemas/info/markets.js +94 -0
  116. package/script/src/schemas/info/orders.d.ts +957 -0
  117. package/script/src/schemas/info/orders.d.ts.map +1 -0
  118. package/script/src/schemas/info/orders.js +333 -0
  119. package/script/src/schemas/info/requests.d.ts +882 -0
  120. package/script/src/schemas/info/requests.d.ts.map +1 -0
  121. package/script/src/schemas/info/requests.js +692 -0
  122. package/script/src/schemas/info/validators.d.ts +305 -0
  123. package/script/src/schemas/info/validators.d.ts.map +1 -0
  124. package/script/src/schemas/info/validators.js +148 -0
  125. package/script/src/schemas/info/vaults.d.ts +447 -0
  126. package/script/src/schemas/info/vaults.d.ts.map +1 -0
  127. package/script/src/schemas/info/vaults.js +146 -0
  128. package/script/src/schemas/mod.d.ts +100 -0
  129. package/script/src/schemas/mod.d.ts.map +1 -0
  130. package/script/src/schemas/mod.js +154 -0
  131. package/script/src/schemas/subscriptions/requests.d.ts +332 -0
  132. package/script/src/schemas/subscriptions/requests.d.ts.map +1 -0
  133. package/script/src/schemas/subscriptions/requests.js +294 -0
  134. package/script/src/schemas/subscriptions/responses.d.ts +3643 -0
  135. package/script/src/schemas/subscriptions/responses.d.ts.map +1 -0
  136. package/script/src/schemas/subscriptions/responses.js +269 -0
  137. package/script/src/signing/mod.d.ts +109 -29
  138. package/script/src/signing/mod.d.ts.map +1 -1
  139. package/script/src/signing/mod.js +137 -33
  140. package/script/src/transports/base.d.ts +2 -2
  141. package/script/src/transports/base.d.ts.map +1 -1
  142. package/script/src/transports/base.js +3 -3
  143. package/script/src/transports/http/http_transport.d.ts +2 -1
  144. package/script/src/transports/http/http_transport.d.ts.map +1 -1
  145. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
  146. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  147. package/script/src/transports/websocket/websocket_transport.d.ts +2 -1
  148. package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  149. package/esm/src/base.d.ts.map +0 -1
  150. package/esm/src/signing/_sorter.d.ts +0 -127
  151. package/esm/src/signing/_sorter.d.ts.map +0 -1
  152. package/esm/src/signing/_sorter.js +0 -693
  153. package/esm/src/types/exchange/requests.d.ts +0 -1345
  154. package/esm/src/types/exchange/requests.d.ts.map +0 -1
  155. package/esm/src/types/exchange/requests.js +0 -1
  156. package/esm/src/types/exchange/responses.d.ts +0 -233
  157. package/esm/src/types/exchange/responses.d.ts.map +0 -1
  158. package/esm/src/types/exchange/responses.js +0 -1
  159. package/esm/src/types/explorer/requests.d.ts +0 -32
  160. package/esm/src/types/explorer/requests.d.ts.map +0 -1
  161. package/esm/src/types/explorer/requests.js +0 -1
  162. package/esm/src/types/explorer/responses.d.ts +0 -58
  163. package/esm/src/types/explorer/responses.d.ts.map +0 -1
  164. package/esm/src/types/explorer/responses.js +0 -1
  165. package/esm/src/types/info/accounts.d.ts +0 -864
  166. package/esm/src/types/info/accounts.d.ts.map +0 -1
  167. package/esm/src/types/info/accounts.js +0 -1
  168. package/esm/src/types/info/assets.d.ts +0 -354
  169. package/esm/src/types/info/assets.d.ts.map +0 -1
  170. package/esm/src/types/info/assets.js +0 -1
  171. package/esm/src/types/info/markets.d.ts +0 -79
  172. package/esm/src/types/info/markets.d.ts.map +0 -1
  173. package/esm/src/types/info/markets.js +0 -1
  174. package/esm/src/types/info/orders.d.ts +0 -266
  175. package/esm/src/types/info/orders.d.ts.map +0 -1
  176. package/esm/src/types/info/orders.js +0 -1
  177. package/esm/src/types/info/requests.d.ts +0 -634
  178. package/esm/src/types/info/requests.d.ts.map +0 -1
  179. package/esm/src/types/info/requests.js +0 -1
  180. package/esm/src/types/info/validators.d.ts +0 -147
  181. package/esm/src/types/info/validators.d.ts.map +0 -1
  182. package/esm/src/types/info/validators.js +0 -1
  183. package/esm/src/types/info/vaults.d.ts +0 -119
  184. package/esm/src/types/info/vaults.d.ts.map +0 -1
  185. package/esm/src/types/info/vaults.js +0 -1
  186. package/esm/src/types/mod.d.ts +0 -38
  187. package/esm/src/types/mod.d.ts.map +0 -1
  188. package/esm/src/types/mod.js +0 -24
  189. package/esm/src/types/subscriptions/requests.d.ts +0 -143
  190. package/esm/src/types/subscriptions/requests.d.ts.map +0 -1
  191. package/esm/src/types/subscriptions/requests.js +0 -1
  192. package/esm/src/types/subscriptions/responses.d.ts +0 -213
  193. package/esm/src/types/subscriptions/responses.d.ts.map +0 -1
  194. package/esm/src/types/subscriptions/responses.js +0 -1
  195. package/script/src/base.d.ts.map +0 -1
  196. package/script/src/signing/_sorter.d.ts +0 -127
  197. package/script/src/signing/_sorter.d.ts.map +0 -1
  198. package/script/src/signing/_sorter.js +0 -696
  199. package/script/src/types/exchange/requests.d.ts +0 -1345
  200. package/script/src/types/exchange/requests.d.ts.map +0 -1
  201. package/script/src/types/exchange/requests.js +0 -2
  202. package/script/src/types/exchange/responses.d.ts +0 -233
  203. package/script/src/types/exchange/responses.d.ts.map +0 -1
  204. package/script/src/types/exchange/responses.js +0 -2
  205. package/script/src/types/explorer/requests.d.ts +0 -32
  206. package/script/src/types/explorer/requests.d.ts.map +0 -1
  207. package/script/src/types/explorer/requests.js +0 -2
  208. package/script/src/types/explorer/responses.d.ts +0 -58
  209. package/script/src/types/explorer/responses.d.ts.map +0 -1
  210. package/script/src/types/explorer/responses.js +0 -2
  211. package/script/src/types/info/accounts.d.ts +0 -864
  212. package/script/src/types/info/accounts.d.ts.map +0 -1
  213. package/script/src/types/info/accounts.js +0 -2
  214. package/script/src/types/info/assets.d.ts +0 -354
  215. package/script/src/types/info/assets.d.ts.map +0 -1
  216. package/script/src/types/info/assets.js +0 -2
  217. package/script/src/types/info/markets.d.ts +0 -79
  218. package/script/src/types/info/markets.d.ts.map +0 -1
  219. package/script/src/types/info/markets.js +0 -2
  220. package/script/src/types/info/orders.d.ts +0 -266
  221. package/script/src/types/info/orders.d.ts.map +0 -1
  222. package/script/src/types/info/orders.js +0 -2
  223. package/script/src/types/info/requests.d.ts +0 -634
  224. package/script/src/types/info/requests.d.ts.map +0 -1
  225. package/script/src/types/info/requests.js +0 -2
  226. package/script/src/types/info/validators.d.ts +0 -147
  227. package/script/src/types/info/validators.d.ts.map +0 -1
  228. package/script/src/types/info/validators.js +0 -2
  229. package/script/src/types/info/vaults.d.ts +0 -119
  230. package/script/src/types/info/vaults.d.ts.map +0 -1
  231. package/script/src/types/info/vaults.js +0 -2
  232. package/script/src/types/mod.d.ts +0 -38
  233. package/script/src/types/mod.d.ts.map +0 -1
  234. package/script/src/types/mod.js +0 -25
  235. package/script/src/types/subscriptions/requests.d.ts +0 -143
  236. package/script/src/types/subscriptions/requests.d.ts.map +0 -1
  237. package/script/src/types/subscriptions/requests.js +0 -2
  238. package/script/src/types/subscriptions/responses.d.ts +0 -213
  239. package/script/src/types/subscriptions/responses.d.ts.map +0 -1
  240. package/script/src/types/subscriptions/responses.js +0 -2
  241. /package/esm/src/{base.js → errors.js} +0 -0
  242. /package/script/src/{base.js → errors.js} +0 -0
@@ -0,0 +1,945 @@
1
+ import * as v from "valibot";
2
+ /** Mapping of coin symbols to mid prices. */
3
+ export declare const AllMids: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<{
4
+ [x: string]: string;
5
+ }, "Mapping of coin symbols to mid prices.">]>;
6
+ export type AllMids = v.InferOutput<typeof AllMids>;
7
+ /** Candlestick data point. */
8
+ export declare const Candle: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
9
+ /** Opening timestamp (ms since epoch). */
10
+ readonly t: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Opening timestamp (ms since epoch).">]>;
11
+ /** Closing timestamp (ms since epoch). */
12
+ readonly T: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Closing timestamp (ms since epoch).">]>;
13
+ /** Asset symbol. */
14
+ readonly s: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
15
+ /** Candle interval. */
16
+ readonly i: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"1m", undefined>, v.LiteralSchema<"3m", undefined>, v.LiteralSchema<"5m", undefined>, v.LiteralSchema<"15m", undefined>, v.LiteralSchema<"30m", undefined>, v.LiteralSchema<"1h", undefined>, v.LiteralSchema<"2h", undefined>, v.LiteralSchema<"4h", undefined>, v.LiteralSchema<"8h", undefined>, v.LiteralSchema<"12h", undefined>, v.LiteralSchema<"1d", undefined>, v.LiteralSchema<"3d", undefined>, v.LiteralSchema<"1w", undefined>, v.LiteralSchema<"1M", undefined>], undefined>, v.DescriptionAction<"1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M", "Candle interval.">]>;
17
+ /** Opening price. */
18
+ readonly o: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Opening price.">]>;
19
+ /** Closing price. */
20
+ readonly c: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing price.">]>;
21
+ /** Highest price. */
22
+ readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Highest price.">]>;
23
+ /** Lowest price. */
24
+ readonly l: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lowest price.">]>;
25
+ /** Total volume traded in base currency. */
26
+ readonly v: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total volume traded in base currency.">]>;
27
+ /** Number of trades executed. */
28
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of trades executed.">]>;
29
+ }, undefined>, v.DescriptionAction<{
30
+ t: number;
31
+ T: number;
32
+ s: string;
33
+ i: "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M";
34
+ o: string;
35
+ c: string;
36
+ h: string;
37
+ l: string;
38
+ v: string;
39
+ n: number;
40
+ }, "Candlestick data point.">]>;
41
+ export type Candle = v.InferOutput<typeof Candle>;
42
+ /** Historical funding rate record for an asset. */
43
+ export declare const FundingHistory: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
44
+ /** Asset symbol. */
45
+ readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
46
+ /** Funding rate. */
47
+ readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
48
+ /** Premium price. */
49
+ readonly premium: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Premium price.">]>;
50
+ /** Funding record timestamp (ms since epoch). */
51
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Funding record timestamp (ms since epoch).">]>;
52
+ }, undefined>, v.DescriptionAction<{
53
+ coin: string;
54
+ fundingRate: string;
55
+ premium: string;
56
+ time: number;
57
+ }, "Historical funding rate record for an asset.">]>;
58
+ export type FundingHistory = v.InferOutput<typeof FundingHistory>;
59
+ /** Perpetual dex metadata. */
60
+ export declare const PerpDex: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
61
+ /** Short name of the perpetual dex. */
62
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Short name of the perpetual dex.">]>;
63
+ /** Complete name of the perpetual dex. */
64
+ readonly full_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Complete name of the perpetual dex.">]>;
65
+ /** Hex address of the dex deployer. */
66
+ readonly deployer: v.SchemaWithPipe<readonly [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.DescriptionAction<`0x${string}`, "Hex address of the dex deployer.">]>;
67
+ /** Hex address of the oracle updater, or null if not available. */
68
+ readonly oracle_updater: v.SchemaWithPipe<readonly [v.NullableSchema<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}` | null, "Hex address of the oracle updater, or null if not available.">]>;
69
+ }, undefined>, v.DescriptionAction<{
70
+ name: string;
71
+ full_name: string;
72
+ deployer: `0x${string}`;
73
+ oracle_updater: `0x${string}` | null;
74
+ }, "Perpetual dex metadata.">]>;
75
+ export type PerpDex = v.InferOutput<typeof PerpDex>;
76
+ /** Individual tier in a margin requirements table. */
77
+ export declare const MarginTier: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
78
+ /** Lower position size boundary for this tier. */
79
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
80
+ /** Maximum allowed leverage for this tier. */
81
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
82
+ }, undefined>, v.DescriptionAction<{
83
+ lowerBound: string;
84
+ maxLeverage: number;
85
+ }, "Individual tier in a margin requirements table.">]>;
86
+ export type MarginTier = v.InferOutput<typeof MarginTier>;
87
+ /** Margin requirements table with multiple tiers. */
88
+ export declare const MarginTable: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
89
+ /** Description of the margin table. */
90
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
91
+ /** Array of margin tiers defining leverage limits. */
92
+ readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
93
+ /** Lower position size boundary for this tier. */
94
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
95
+ /** Maximum allowed leverage for this tier. */
96
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
97
+ }, undefined>, v.DescriptionAction<{
98
+ lowerBound: string;
99
+ maxLeverage: number;
100
+ }, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
101
+ lowerBound: string;
102
+ maxLeverage: number;
103
+ }[], "Array of margin tiers defining leverage limits.">]>;
104
+ }, undefined>, v.DescriptionAction<{
105
+ description: string;
106
+ marginTiers: {
107
+ lowerBound: string;
108
+ maxLeverage: number;
109
+ }[];
110
+ }, "Margin requirements table with multiple tiers.">]>;
111
+ export type MarginTable = v.InferOutput<typeof MarginTable>;
112
+ /** Collection of margin tables indexed by ID. */
113
+ export declare const MarginTables: 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.StrictObjectSchema<{
114
+ /** Description of the margin table. */
115
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
116
+ /** Array of margin tiers defining leverage limits. */
117
+ readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
118
+ /** Lower position size boundary for this tier. */
119
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
120
+ /** Maximum allowed leverage for this tier. */
121
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
122
+ }, undefined>, v.DescriptionAction<{
123
+ lowerBound: string;
124
+ maxLeverage: number;
125
+ }, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
126
+ lowerBound: string;
127
+ maxLeverage: number;
128
+ }[], "Array of margin tiers defining leverage limits.">]>;
129
+ }, undefined>, v.DescriptionAction<{
130
+ description: string;
131
+ marginTiers: {
132
+ lowerBound: string;
133
+ maxLeverage: number;
134
+ }[];
135
+ }, "Margin requirements table with multiple tiers.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
136
+ description: string;
137
+ marginTiers: {
138
+ lowerBound: string;
139
+ maxLeverage: number;
140
+ }[];
141
+ }][], "Collection of margin tables indexed by ID.">]>;
142
+ export type MarginTables = v.InferOutput<typeof MarginTables>;
143
+ /** Shared context for assets. */
144
+ export declare const SharedAssetCtx: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
145
+ /** Previous day's closing price. */
146
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
147
+ /** Daily notional volume. */
148
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
149
+ /** Mark price. */
150
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
151
+ /** Mid price. */
152
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
153
+ }, undefined>, v.DescriptionAction<{
154
+ prevDayPx: string;
155
+ dayNtlVlm: string;
156
+ markPx: string;
157
+ midPx: string | null;
158
+ }, "Shared context for assets.">]>;
159
+ export type SharedAssetCtx = v.InferOutput<typeof SharedAssetCtx>;
160
+ /** Context for a perpetual asset. */
161
+ export declare const PerpsAssetCtx: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
162
+ /** Funding rate. */
163
+ readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
164
+ /** Total open interest. */
165
+ readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
166
+ /** Premium price. */
167
+ readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
168
+ /** Oracle price. */
169
+ readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Oracle price.">]>;
170
+ /** Array of impact prices. */
171
+ readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
172
+ /** Daily volume in base currency. */
173
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
174
+ /** Previous day's closing price. */
175
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
176
+ /** Daily notional volume. */
177
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
178
+ /** Mark price. */
179
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
180
+ /** Mid price. */
181
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
182
+ }, undefined>, v.DescriptionAction<{
183
+ funding: string;
184
+ openInterest: string;
185
+ premium: string | null;
186
+ oraclePx: string;
187
+ impactPxs: string[] | null;
188
+ dayBaseVlm: string;
189
+ prevDayPx: string;
190
+ dayNtlVlm: string;
191
+ markPx: string;
192
+ midPx: string | null;
193
+ }, "Context for a perpetual asset.">]>;
194
+ export type PerpsAssetCtx = v.InferOutput<typeof PerpsAssetCtx>;
195
+ /** Trading universe parameters for perpetual assets. */
196
+ export declare const PerpsUniverse: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
197
+ /** Minimum decimal places for order sizes. */
198
+ 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.">]>;
199
+ /** Name of the universe. */
200
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
201
+ /** Maximum allowed leverage. */
202
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
203
+ /** Unique identifier for the margin requirements table. */
204
+ readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
205
+ /** Indicates if only isolated margin trading is allowed. */
206
+ readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
207
+ /** Indicates if the universe is delisted. */
208
+ readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
209
+ }, undefined>, v.DescriptionAction<{
210
+ szDecimals: number;
211
+ name: string;
212
+ maxLeverage: number;
213
+ marginTableId: number;
214
+ onlyIsolated?: true | undefined;
215
+ isDelisted?: true | undefined;
216
+ }, "Trading universe parameters for perpetual assets.">]>;
217
+ export type PerpsUniverse = v.InferOutput<typeof PerpsUniverse>;
218
+ /** Metadata for perpetual assets. */
219
+ export declare const PerpsMeta: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
220
+ /** Trading universes available for perpetual trading. */
221
+ readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
222
+ /** Minimum decimal places for order sizes. */
223
+ 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.">]>;
224
+ /** Name of the universe. */
225
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
226
+ /** Maximum allowed leverage. */
227
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
228
+ /** Unique identifier for the margin requirements table. */
229
+ readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
230
+ /** Indicates if only isolated margin trading is allowed. */
231
+ readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
232
+ /** Indicates if the universe is delisted. */
233
+ readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
234
+ }, undefined>, v.DescriptionAction<{
235
+ szDecimals: number;
236
+ name: string;
237
+ maxLeverage: number;
238
+ marginTableId: number;
239
+ onlyIsolated?: true | undefined;
240
+ isDelisted?: true | undefined;
241
+ }, "Trading universe parameters for perpetual assets.">]>, undefined>, v.DescriptionAction<{
242
+ szDecimals: number;
243
+ name: string;
244
+ maxLeverage: number;
245
+ marginTableId: number;
246
+ onlyIsolated?: true | undefined;
247
+ isDelisted?: true | undefined;
248
+ }[], "Trading universes available for perpetual trading.">]>;
249
+ /** Margin requirement tables for different leverage tiers. */
250
+ readonly marginTables: v.SchemaWithPipe<readonly [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.StrictObjectSchema<{
251
+ /** Description of the margin table. */
252
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
253
+ /** Array of margin tiers defining leverage limits. */
254
+ readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
255
+ /** Lower position size boundary for this tier. */
256
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
257
+ /** Maximum allowed leverage for this tier. */
258
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
259
+ }, undefined>, v.DescriptionAction<{
260
+ lowerBound: string;
261
+ maxLeverage: number;
262
+ }, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
263
+ lowerBound: string;
264
+ maxLeverage: number;
265
+ }[], "Array of margin tiers defining leverage limits.">]>;
266
+ }, undefined>, v.DescriptionAction<{
267
+ description: string;
268
+ marginTiers: {
269
+ lowerBound: string;
270
+ maxLeverage: number;
271
+ }[];
272
+ }, "Margin requirements table with multiple tiers.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
273
+ description: string;
274
+ marginTiers: {
275
+ lowerBound: string;
276
+ maxLeverage: number;
277
+ }[];
278
+ }][], "Collection of margin tables indexed by ID.">]>, v.DescriptionAction<[number, {
279
+ description: string;
280
+ marginTiers: {
281
+ lowerBound: string;
282
+ maxLeverage: number;
283
+ }[];
284
+ }][], "Margin requirement tables for different leverage tiers.">]>;
285
+ }, undefined>, v.DescriptionAction<{
286
+ universe: {
287
+ szDecimals: number;
288
+ name: string;
289
+ maxLeverage: number;
290
+ marginTableId: number;
291
+ onlyIsolated?: true | undefined;
292
+ isDelisted?: true | undefined;
293
+ }[];
294
+ marginTables: [number, {
295
+ description: string;
296
+ marginTiers: {
297
+ lowerBound: string;
298
+ maxLeverage: number;
299
+ }[];
300
+ }][];
301
+ }, "Metadata for perpetual assets.">]>;
302
+ export type PerpsMeta = v.InferOutput<typeof PerpsMeta>;
303
+ /** Metadata and context for perpetual assets. */
304
+ export declare const PerpsMetaAndAssetCtxs: v.SchemaWithPipe<readonly [v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
305
+ /** Trading universes available for perpetual trading. */
306
+ readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
307
+ /** Minimum decimal places for order sizes. */
308
+ 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.">]>;
309
+ /** Name of the universe. */
310
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
311
+ /** Maximum allowed leverage. */
312
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
313
+ /** Unique identifier for the margin requirements table. */
314
+ readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
315
+ /** Indicates if only isolated margin trading is allowed. */
316
+ readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
317
+ /** Indicates if the universe is delisted. */
318
+ readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
319
+ }, undefined>, v.DescriptionAction<{
320
+ szDecimals: number;
321
+ name: string;
322
+ maxLeverage: number;
323
+ marginTableId: number;
324
+ onlyIsolated?: true | undefined;
325
+ isDelisted?: true | undefined;
326
+ }, "Trading universe parameters for perpetual assets.">]>, undefined>, v.DescriptionAction<{
327
+ szDecimals: number;
328
+ name: string;
329
+ maxLeverage: number;
330
+ marginTableId: number;
331
+ onlyIsolated?: true | undefined;
332
+ isDelisted?: true | undefined;
333
+ }[], "Trading universes available for perpetual trading.">]>;
334
+ /** Margin requirement tables for different leverage tiers. */
335
+ readonly marginTables: v.SchemaWithPipe<readonly [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.StrictObjectSchema<{
336
+ /** Description of the margin table. */
337
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
338
+ /** Array of margin tiers defining leverage limits. */
339
+ readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
340
+ /** Lower position size boundary for this tier. */
341
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
342
+ /** Maximum allowed leverage for this tier. */
343
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
344
+ }, undefined>, v.DescriptionAction<{
345
+ lowerBound: string;
346
+ maxLeverage: number;
347
+ }, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
348
+ lowerBound: string;
349
+ maxLeverage: number;
350
+ }[], "Array of margin tiers defining leverage limits.">]>;
351
+ }, undefined>, v.DescriptionAction<{
352
+ description: string;
353
+ marginTiers: {
354
+ lowerBound: string;
355
+ maxLeverage: number;
356
+ }[];
357
+ }, "Margin requirements table with multiple tiers.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
358
+ description: string;
359
+ marginTiers: {
360
+ lowerBound: string;
361
+ maxLeverage: number;
362
+ }[];
363
+ }][], "Collection of margin tables indexed by ID.">]>, v.DescriptionAction<[number, {
364
+ description: string;
365
+ marginTiers: {
366
+ lowerBound: string;
367
+ maxLeverage: number;
368
+ }[];
369
+ }][], "Margin requirement tables for different leverage tiers.">]>;
370
+ }, undefined>, v.DescriptionAction<{
371
+ universe: {
372
+ szDecimals: number;
373
+ name: string;
374
+ maxLeverage: number;
375
+ marginTableId: number;
376
+ onlyIsolated?: true | undefined;
377
+ isDelisted?: true | undefined;
378
+ }[];
379
+ marginTables: [number, {
380
+ description: string;
381
+ marginTiers: {
382
+ lowerBound: string;
383
+ maxLeverage: number;
384
+ }[];
385
+ }][];
386
+ }, "Metadata for perpetual assets.">]>, v.DescriptionAction<{
387
+ universe: {
388
+ szDecimals: number;
389
+ name: string;
390
+ maxLeverage: number;
391
+ marginTableId: number;
392
+ onlyIsolated?: true | undefined;
393
+ isDelisted?: true | undefined;
394
+ }[];
395
+ marginTables: [number, {
396
+ description: string;
397
+ marginTiers: {
398
+ lowerBound: string;
399
+ maxLeverage: number;
400
+ }[];
401
+ }][];
402
+ }, "Metadata for assets.">]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
403
+ /** Funding rate. */
404
+ readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
405
+ /** Total open interest. */
406
+ readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
407
+ /** Premium price. */
408
+ readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
409
+ /** Oracle price. */
410
+ readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Oracle price.">]>;
411
+ /** Array of impact prices. */
412
+ readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
413
+ /** Daily volume in base currency. */
414
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
415
+ /** Previous day's closing price. */
416
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
417
+ /** Daily notional volume. */
418
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
419
+ /** Mark price. */
420
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
421
+ /** Mid price. */
422
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
423
+ }, undefined>, v.DescriptionAction<{
424
+ funding: string;
425
+ openInterest: string;
426
+ premium: string | null;
427
+ oraclePx: string;
428
+ impactPxs: string[] | null;
429
+ dayBaseVlm: string;
430
+ prevDayPx: string;
431
+ dayNtlVlm: string;
432
+ markPx: string;
433
+ midPx: string | null;
434
+ }, "Context for a perpetual asset.">]>, undefined>, v.DescriptionAction<{
435
+ funding: string;
436
+ openInterest: string;
437
+ premium: string | null;
438
+ oraclePx: string;
439
+ impactPxs: string[] | null;
440
+ dayBaseVlm: string;
441
+ prevDayPx: string;
442
+ dayNtlVlm: string;
443
+ markPx: string;
444
+ midPx: string | null;
445
+ }[], "Context for each perpetual asset.">]>], undefined>, v.DescriptionAction<[{
446
+ universe: {
447
+ szDecimals: number;
448
+ name: string;
449
+ maxLeverage: number;
450
+ marginTableId: number;
451
+ onlyIsolated?: true | undefined;
452
+ isDelisted?: true | undefined;
453
+ }[];
454
+ marginTables: [number, {
455
+ description: string;
456
+ marginTiers: {
457
+ lowerBound: string;
458
+ maxLeverage: number;
459
+ }[];
460
+ }][];
461
+ }, {
462
+ funding: string;
463
+ openInterest: string;
464
+ premium: string | null;
465
+ oraclePx: string;
466
+ impactPxs: string[] | null;
467
+ dayBaseVlm: string;
468
+ prevDayPx: string;
469
+ dayNtlVlm: string;
470
+ markPx: string;
471
+ midPx: string | null;
472
+ }[]], "Metadata and context for perpetual assets.">]>;
473
+ export type PerpsMetaAndAssetCtxs = v.InferOutput<typeof PerpsMetaAndAssetCtxs>;
474
+ /**
475
+ * Predicted funding data.
476
+ *
477
+ * The first element is the asset symbol and the second element is an array of predicted funding data for each exchange.
478
+ */
479
+ export declare const PredictedFunding: v.SchemaWithPipe<readonly [v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Exchange symbol.">]>, v.SchemaWithPipe<readonly [v.NullableSchema<v.StrictObjectSchema<{
480
+ /** Predicted funding rate. */
481
+ readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Predicted funding rate.">]>;
482
+ /** Next funding time (ms since epoch). */
483
+ readonly nextFundingTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Next funding time (ms since epoch).">]>;
484
+ /** Funding interval in hours. */
485
+ readonly fundingIntervalHours: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "Funding interval in hours.">]>;
486
+ }, undefined>, undefined>, v.DescriptionAction<{
487
+ fundingRate: string;
488
+ nextFundingTime: number;
489
+ fundingIntervalHours?: number | undefined;
490
+ } | null, "Predicted funding data.">]>], undefined>, undefined>, v.DescriptionAction<[string, {
491
+ fundingRate: string;
492
+ nextFundingTime: number;
493
+ fundingIntervalHours?: number | undefined;
494
+ } | null][], "Array of predicted funding data for each exchange.">]>], undefined>, v.DescriptionAction<[string, [string, {
495
+ fundingRate: string;
496
+ nextFundingTime: number;
497
+ fundingIntervalHours?: number | undefined;
498
+ } | null][]], string>]>;
499
+ export type PredictedFunding = v.InferOutput<typeof PredictedFunding>;
500
+ /** Context for a spot asset. */
501
+ export declare const SpotAssetCtx: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
502
+ /** Circulating supply. */
503
+ readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
504
+ /** Asset symbol. */
505
+ readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
506
+ /** Total supply. */
507
+ readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
508
+ /** Daily volume in base currency. */
509
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
510
+ /** Previous day's closing price. */
511
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
512
+ /** Daily notional volume. */
513
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
514
+ /** Mark price. */
515
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
516
+ /** Mid price. */
517
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
518
+ }, undefined>, v.DescriptionAction<{
519
+ circulatingSupply: string;
520
+ coin: string;
521
+ totalSupply: string;
522
+ dayBaseVlm: string;
523
+ prevDayPx: string;
524
+ dayNtlVlm: string;
525
+ markPx: string;
526
+ midPx: string | null;
527
+ }, "Context for a spot asset.">]>;
528
+ export type SpotAssetCtx = v.InferOutput<typeof SpotAssetCtx>;
529
+ /** Details for a trading token in spot markets. */
530
+ export declare const SpotToken: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
531
+ /** Name of the token. */
532
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the token.">]>;
533
+ /** Minimum decimal places for order sizes. */
534
+ 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.">]>;
535
+ /** Number of decimals for the token's smallest unit. */
536
+ 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.">]>;
537
+ /** Unique identifier for the token. */
538
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
539
+ /** Token ID. */
540
+ readonly tokenId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Token ID.">]>;
541
+ /** Indicates if the token is the primary representation in the system. */
542
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
543
+ /** EVM contract details. */
544
+ readonly evmContract: v.SchemaWithPipe<readonly [v.NullableSchema<v.StrictObjectSchema<{
545
+ /** Contract address. */
546
+ readonly address: v.SchemaWithPipe<readonly [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.DescriptionAction<`0x${string}`, "Contract address.">]>;
547
+ /** Extra decimals in the token's smallest unit. */
548
+ readonly evm_extra_wei_decimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>]>, v.DescriptionAction<number, "Extra decimals in the token's smallest unit.">]>;
549
+ }, undefined>, undefined>, v.DescriptionAction<{
550
+ address: `0x${string}`;
551
+ evm_extra_wei_decimals: number;
552
+ } | null, "EVM contract details.">]>;
553
+ /** Full display name of the token. */
554
+ readonly fullName: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Full display name of the token.">]>;
555
+ /** Deployer trading fee share for the token. */
556
+ 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.">]>;
557
+ }, undefined>, v.DescriptionAction<{
558
+ name: string;
559
+ szDecimals: number;
560
+ weiDecimals: number;
561
+ index: number;
562
+ tokenId: `0x${string}`;
563
+ isCanonical: boolean;
564
+ evmContract: {
565
+ address: `0x${string}`;
566
+ evm_extra_wei_decimals: number;
567
+ } | null;
568
+ fullName: string | null;
569
+ deployerTradingFeeShare: string;
570
+ }, "Details for a trading token in spot markets.">]>;
571
+ export type SpotToken = v.InferOutput<typeof SpotToken>;
572
+ /** Trading universe parameters for spot assets. */
573
+ export declare const SpotUniverse: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
574
+ /** Token indices included in this universe. */
575
+ readonly tokens: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number[], "Token indices included in this universe.">]>;
576
+ /** Name of the universe. */
577
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
578
+ /** Unique identifier of the universe. */
579
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier of the universe.">]>;
580
+ /** Indicates if the token is the primary representation in the system. */
581
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
582
+ }, undefined>, v.DescriptionAction<{
583
+ tokens: number[];
584
+ name: string;
585
+ index: number;
586
+ isCanonical: boolean;
587
+ }, "Trading universe parameters for spot assets.">]>;
588
+ export type SpotUniverse = v.InferOutput<typeof SpotUniverse>;
589
+ /** Metadata for spot assets. */
590
+ export declare const SpotMeta: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
591
+ /** Trading universes available for spot trading. */
592
+ readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
593
+ /** Token indices included in this universe. */
594
+ readonly tokens: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number[], "Token indices included in this universe.">]>;
595
+ /** Name of the universe. */
596
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
597
+ /** Unique identifier of the universe. */
598
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier of the universe.">]>;
599
+ /** Indicates if the token is the primary representation in the system. */
600
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
601
+ }, undefined>, v.DescriptionAction<{
602
+ tokens: number[];
603
+ name: string;
604
+ index: number;
605
+ isCanonical: boolean;
606
+ }, "Trading universe parameters for spot assets.">]>, undefined>, v.DescriptionAction<{
607
+ tokens: number[];
608
+ name: string;
609
+ index: number;
610
+ isCanonical: boolean;
611
+ }[], "Trading universes available for spot trading.">]>;
612
+ /** Tokens available for spot trading. */
613
+ readonly tokens: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
614
+ /** Name of the token. */
615
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the token.">]>;
616
+ /** Minimum decimal places for order sizes. */
617
+ 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.">]>;
618
+ /** Number of decimals for the token's smallest unit. */
619
+ 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.">]>;
620
+ /** Unique identifier for the token. */
621
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
622
+ /** Token ID. */
623
+ readonly tokenId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Token ID.">]>;
624
+ /** Indicates if the token is the primary representation in the system. */
625
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
626
+ /** EVM contract details. */
627
+ readonly evmContract: v.SchemaWithPipe<readonly [v.NullableSchema<v.StrictObjectSchema<{
628
+ /** Contract address. */
629
+ readonly address: v.SchemaWithPipe<readonly [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.DescriptionAction<`0x${string}`, "Contract address.">]>;
630
+ /** Extra decimals in the token's smallest unit. */
631
+ readonly evm_extra_wei_decimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>]>, v.DescriptionAction<number, "Extra decimals in the token's smallest unit.">]>;
632
+ }, undefined>, undefined>, v.DescriptionAction<{
633
+ address: `0x${string}`;
634
+ evm_extra_wei_decimals: number;
635
+ } | null, "EVM contract details.">]>;
636
+ /** Full display name of the token. */
637
+ readonly fullName: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Full display name of the token.">]>;
638
+ /** Deployer trading fee share for the token. */
639
+ 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.">]>;
640
+ }, undefined>, v.DescriptionAction<{
641
+ name: string;
642
+ szDecimals: number;
643
+ weiDecimals: number;
644
+ index: number;
645
+ tokenId: `0x${string}`;
646
+ isCanonical: boolean;
647
+ evmContract: {
648
+ address: `0x${string}`;
649
+ evm_extra_wei_decimals: number;
650
+ } | null;
651
+ fullName: string | null;
652
+ deployerTradingFeeShare: string;
653
+ }, "Details for a trading token in spot markets.">]>, undefined>, v.DescriptionAction<{
654
+ name: string;
655
+ szDecimals: number;
656
+ weiDecimals: number;
657
+ index: number;
658
+ tokenId: `0x${string}`;
659
+ isCanonical: boolean;
660
+ evmContract: {
661
+ address: `0x${string}`;
662
+ evm_extra_wei_decimals: number;
663
+ } | null;
664
+ fullName: string | null;
665
+ deployerTradingFeeShare: string;
666
+ }[], "Tokens available for spot trading.">]>;
667
+ }, undefined>, v.DescriptionAction<{
668
+ universe: {
669
+ tokens: number[];
670
+ name: string;
671
+ index: number;
672
+ isCanonical: boolean;
673
+ }[];
674
+ tokens: {
675
+ name: string;
676
+ szDecimals: number;
677
+ weiDecimals: number;
678
+ index: number;
679
+ tokenId: `0x${string}`;
680
+ isCanonical: boolean;
681
+ evmContract: {
682
+ address: `0x${string}`;
683
+ evm_extra_wei_decimals: number;
684
+ } | null;
685
+ fullName: string | null;
686
+ deployerTradingFeeShare: string;
687
+ }[];
688
+ }, "Metadata for spot assets.">]>;
689
+ export type SpotMeta = v.InferOutput<typeof SpotMeta>;
690
+ /** Metadata and context for spot assets. */
691
+ export declare const SpotMetaAndAssetCtxs: v.SchemaWithPipe<readonly [v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
692
+ /** Trading universes available for spot trading. */
693
+ readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
694
+ /** Token indices included in this universe. */
695
+ readonly tokens: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number[], "Token indices included in this universe.">]>;
696
+ /** Name of the universe. */
697
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
698
+ /** Unique identifier of the universe. */
699
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier of the universe.">]>;
700
+ /** Indicates if the token is the primary representation in the system. */
701
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
702
+ }, undefined>, v.DescriptionAction<{
703
+ tokens: number[];
704
+ name: string;
705
+ index: number;
706
+ isCanonical: boolean;
707
+ }, "Trading universe parameters for spot assets.">]>, undefined>, v.DescriptionAction<{
708
+ tokens: number[];
709
+ name: string;
710
+ index: number;
711
+ isCanonical: boolean;
712
+ }[], "Trading universes available for spot trading.">]>;
713
+ /** Tokens available for spot trading. */
714
+ readonly tokens: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
715
+ /** Name of the token. */
716
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the token.">]>;
717
+ /** Minimum decimal places for order sizes. */
718
+ 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.">]>;
719
+ /** Number of decimals for the token's smallest unit. */
720
+ 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.">]>;
721
+ /** Unique identifier for the token. */
722
+ readonly index: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
723
+ /** Token ID. */
724
+ readonly tokenId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Token ID.">]>;
725
+ /** Indicates if the token is the primary representation in the system. */
726
+ readonly isCanonical: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the token is the primary representation in the system.">]>;
727
+ /** EVM contract details. */
728
+ readonly evmContract: v.SchemaWithPipe<readonly [v.NullableSchema<v.StrictObjectSchema<{
729
+ /** Contract address. */
730
+ readonly address: v.SchemaWithPipe<readonly [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.DescriptionAction<`0x${string}`, "Contract address.">]>;
731
+ /** Extra decimals in the token's smallest unit. */
732
+ readonly evm_extra_wei_decimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>]>, v.DescriptionAction<number, "Extra decimals in the token's smallest unit.">]>;
733
+ }, undefined>, undefined>, v.DescriptionAction<{
734
+ address: `0x${string}`;
735
+ evm_extra_wei_decimals: number;
736
+ } | null, "EVM contract details.">]>;
737
+ /** Full display name of the token. */
738
+ readonly fullName: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Full display name of the token.">]>;
739
+ /** Deployer trading fee share for the token. */
740
+ 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.">]>;
741
+ }, undefined>, v.DescriptionAction<{
742
+ name: string;
743
+ szDecimals: number;
744
+ weiDecimals: number;
745
+ index: number;
746
+ tokenId: `0x${string}`;
747
+ isCanonical: boolean;
748
+ evmContract: {
749
+ address: `0x${string}`;
750
+ evm_extra_wei_decimals: number;
751
+ } | null;
752
+ fullName: string | null;
753
+ deployerTradingFeeShare: string;
754
+ }, "Details for a trading token in spot markets.">]>, undefined>, v.DescriptionAction<{
755
+ name: string;
756
+ szDecimals: number;
757
+ weiDecimals: number;
758
+ index: number;
759
+ tokenId: `0x${string}`;
760
+ isCanonical: boolean;
761
+ evmContract: {
762
+ address: `0x${string}`;
763
+ evm_extra_wei_decimals: number;
764
+ } | null;
765
+ fullName: string | null;
766
+ deployerTradingFeeShare: string;
767
+ }[], "Tokens available for spot trading.">]>;
768
+ }, undefined>, v.DescriptionAction<{
769
+ universe: {
770
+ tokens: number[];
771
+ name: string;
772
+ index: number;
773
+ isCanonical: boolean;
774
+ }[];
775
+ tokens: {
776
+ name: string;
777
+ szDecimals: number;
778
+ weiDecimals: number;
779
+ index: number;
780
+ tokenId: `0x${string}`;
781
+ isCanonical: boolean;
782
+ evmContract: {
783
+ address: `0x${string}`;
784
+ evm_extra_wei_decimals: number;
785
+ } | null;
786
+ fullName: string | null;
787
+ deployerTradingFeeShare: string;
788
+ }[];
789
+ }, "Metadata for spot assets.">]>, v.DescriptionAction<{
790
+ universe: {
791
+ tokens: number[];
792
+ name: string;
793
+ index: number;
794
+ isCanonical: boolean;
795
+ }[];
796
+ tokens: {
797
+ name: string;
798
+ szDecimals: number;
799
+ weiDecimals: number;
800
+ index: number;
801
+ tokenId: `0x${string}`;
802
+ isCanonical: boolean;
803
+ evmContract: {
804
+ address: `0x${string}`;
805
+ evm_extra_wei_decimals: number;
806
+ } | null;
807
+ fullName: string | null;
808
+ deployerTradingFeeShare: string;
809
+ }[];
810
+ }, "Metadata for assets.">]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
811
+ /** Circulating supply. */
812
+ readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
813
+ /** Asset symbol. */
814
+ readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
815
+ /** Total supply. */
816
+ readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
817
+ /** Daily volume in base currency. */
818
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
819
+ /** Previous day's closing price. */
820
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
821
+ /** Daily notional volume. */
822
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
823
+ /** Mark price. */
824
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
825
+ /** Mid price. */
826
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
827
+ }, undefined>, v.DescriptionAction<{
828
+ circulatingSupply: string;
829
+ coin: string;
830
+ totalSupply: string;
831
+ dayBaseVlm: string;
832
+ prevDayPx: string;
833
+ dayNtlVlm: string;
834
+ markPx: string;
835
+ midPx: string | null;
836
+ }, "Context for a spot asset.">]>, undefined>, v.DescriptionAction<{
837
+ circulatingSupply: string;
838
+ coin: string;
839
+ totalSupply: string;
840
+ dayBaseVlm: string;
841
+ prevDayPx: string;
842
+ dayNtlVlm: string;
843
+ markPx: string;
844
+ midPx: string | null;
845
+ }[], "Context for each spot asset.">]>], undefined>, v.DescriptionAction<[{
846
+ universe: {
847
+ tokens: number[];
848
+ name: string;
849
+ index: number;
850
+ isCanonical: boolean;
851
+ }[];
852
+ tokens: {
853
+ name: string;
854
+ szDecimals: number;
855
+ weiDecimals: number;
856
+ index: number;
857
+ tokenId: `0x${string}`;
858
+ isCanonical: boolean;
859
+ evmContract: {
860
+ address: `0x${string}`;
861
+ evm_extra_wei_decimals: number;
862
+ } | null;
863
+ fullName: string | null;
864
+ deployerTradingFeeShare: string;
865
+ }[];
866
+ }, {
867
+ circulatingSupply: string;
868
+ coin: string;
869
+ totalSupply: string;
870
+ dayBaseVlm: string;
871
+ prevDayPx: string;
872
+ dayNtlVlm: string;
873
+ markPx: string;
874
+ midPx: string | null;
875
+ }[]], "Metadata and context for spot assets.">]>;
876
+ export type SpotMetaAndAssetCtxs = v.InferOutput<typeof SpotMetaAndAssetCtxs>;
877
+ /** Details of a token. */
878
+ export declare const TokenDetails: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
879
+ /** Name of the token. */
880
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the token.">]>;
881
+ /** Maximum supply of the token. */
882
+ readonly maxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maximum supply of the token.">]>;
883
+ /** Total supply of the token. */
884
+ readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply of the token.">]>;
885
+ /** Circulating supply of the token. */
886
+ readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply of the token.">]>;
887
+ /** Decimal places for the minimum tradable unit. */
888
+ readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Decimal places for the minimum tradable unit.">]>;
889
+ /** Decimal places for the token's smallest unit. */
890
+ readonly weiDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Decimal places for the token's smallest unit.">]>;
891
+ /** Mid price of the token. */
892
+ readonly midPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mid price of the token.">]>;
893
+ /** Mark price of the token. */
894
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price of the token.">]>;
895
+ /** Previous day's price of the token. */
896
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's price of the token.">]>;
897
+ /** Genesis data for the token. */
898
+ readonly genesis: v.SchemaWithPipe<readonly [v.NullableSchema<v.StrictObjectSchema<{
899
+ /** User balances. */
900
+ readonly userBalances: 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.StringSchema<undefined>], undefined>, undefined>, v.DescriptionAction<[`0x${string}`, string][], "User balances.">]>;
901
+ /** Existing token balances. */
902
+ readonly existingTokenBalances: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictTupleSchema<[v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.StringSchema<undefined>], undefined>, undefined>, v.DescriptionAction<[number, string][], "Existing token balances.">]>;
903
+ /** Blacklisted users. */
904
+ 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.">]>;
905
+ }, undefined>, undefined>, v.DescriptionAction<{
906
+ userBalances: [`0x${string}`, string][];
907
+ existingTokenBalances: [number, string][];
908
+ blacklistUsers: `0x${string}`[];
909
+ } | null, "Genesis data for the token.">]>;
910
+ /** Deployer address. */
911
+ readonly deployer: v.SchemaWithPipe<readonly [v.NullableSchema<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}` | null, "Deployer address.">]>;
912
+ /** Gas used during token deployment. */
913
+ readonly deployGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Gas used during token deployment.">]>;
914
+ /** Deployment time. */
915
+ readonly deployTime: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Deployment time.">]>;
916
+ /** Seeded USDC amount for the token. */
917
+ readonly seededUsdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Seeded USDC amount for the token.">]>;
918
+ /** Non-circulating user balances of the token. */
919
+ readonly nonCirculatingUserBalances: 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.StringSchema<undefined>], undefined>, undefined>, v.DescriptionAction<[`0x${string}`, string][], "Non-circulating user balances of the token.">]>;
920
+ /** Future emissions amount. */
921
+ readonly futureEmissions: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Future emissions amount.">]>;
922
+ }, undefined>, v.DescriptionAction<{
923
+ name: string;
924
+ maxSupply: string;
925
+ totalSupply: string;
926
+ circulatingSupply: string;
927
+ szDecimals: number;
928
+ weiDecimals: number;
929
+ midPx: string;
930
+ markPx: string;
931
+ prevDayPx: string;
932
+ genesis: {
933
+ userBalances: [`0x${string}`, string][];
934
+ existingTokenBalances: [number, string][];
935
+ blacklistUsers: `0x${string}`[];
936
+ } | null;
937
+ deployer: `0x${string}` | null;
938
+ deployGas: string | null;
939
+ deployTime: string | null;
940
+ seededUsdc: string;
941
+ nonCirculatingUserBalances: [`0x${string}`, string][];
942
+ futureEmissions: string;
943
+ }, "Details of a token.">]>;
944
+ export type TokenDetails = v.InferOutput<typeof TokenDetails>;
945
+ //# sourceMappingURL=assets.d.ts.map