@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,360 @@
1
+ import * as v from "valibot";
2
+ /** Transaction details. */
3
+ export declare const TxDetails: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
4
+ /** Action performed in transaction. */
5
+ readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
6
+ /** Action type. */
7
+ readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
8
+ }, undefined>, v.DescriptionAction<{
9
+ type: string;
10
+ } & {
11
+ [key: string]: unknown;
12
+ }, "Action performed in transaction.">]>;
13
+ /** Block number where transaction was included. */
14
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
15
+ /** Error message if transaction failed. */
16
+ readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
17
+ /** Transaction hash. */
18
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
19
+ /** Transaction creation timestamp. */
20
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
21
+ /** Creator's address. */
22
+ readonly user: 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}`, "Creator's address.">]>;
23
+ }, undefined>, v.DescriptionAction<{
24
+ action: {
25
+ type: string;
26
+ } & {
27
+ [key: string]: unknown;
28
+ };
29
+ block: number;
30
+ error: string | null;
31
+ hash: `0x${string}`;
32
+ time: number;
33
+ user: `0x${string}`;
34
+ }, "Transaction details.">]>;
35
+ export type TxDetails = v.InferOutput<typeof TxDetails>;
36
+ /** Response containing transaction information. */
37
+ export declare const TxDetailsResponseSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
38
+ /** Type of response. */
39
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"txDetails", undefined>, v.DescriptionAction<"txDetails", "Type of response.">]>;
40
+ /** The details of a transaction. */
41
+ readonly tx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
42
+ /** Action performed in transaction. */
43
+ readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
44
+ /** Action type. */
45
+ readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
46
+ }, undefined>, v.DescriptionAction<{
47
+ type: string;
48
+ } & {
49
+ [key: string]: unknown;
50
+ }, "Action performed in transaction.">]>;
51
+ /** Block number where transaction was included. */
52
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
53
+ /** Error message if transaction failed. */
54
+ readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
55
+ /** Transaction hash. */
56
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
57
+ /** Transaction creation timestamp. */
58
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
59
+ /** Creator's address. */
60
+ readonly user: 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}`, "Creator's address.">]>;
61
+ }, undefined>, v.DescriptionAction<{
62
+ action: {
63
+ type: string;
64
+ } & {
65
+ [key: string]: unknown;
66
+ };
67
+ block: number;
68
+ error: string | null;
69
+ hash: `0x${string}`;
70
+ time: number;
71
+ user: `0x${string}`;
72
+ }, "Transaction details.">]>, v.DescriptionAction<{
73
+ action: {
74
+ type: string;
75
+ } & {
76
+ [key: string]: unknown;
77
+ };
78
+ block: number;
79
+ error: string | null;
80
+ hash: `0x${string}`;
81
+ time: number;
82
+ user: `0x${string}`;
83
+ }, "The details of a transaction.">]>;
84
+ }, undefined>, v.DescriptionAction<{
85
+ type: "txDetails";
86
+ tx: {
87
+ action: {
88
+ type: string;
89
+ } & {
90
+ [key: string]: unknown;
91
+ };
92
+ block: number;
93
+ error: string | null;
94
+ hash: `0x${string}`;
95
+ time: number;
96
+ user: `0x${string}`;
97
+ };
98
+ }, "Response containing transaction information.">]>;
99
+ export type TxDetailsResponse = v.InferOutput<typeof TxDetailsResponseSchema>;
100
+ /** Block details. */
101
+ export declare const BlockDetails: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
102
+ /** Block creation timestamp. */
103
+ readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
104
+ /** Block hash. */
105
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Block hash.">]>;
106
+ /** Block height in chain. */
107
+ readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
108
+ /** Total transactions in block. */
109
+ readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
110
+ /** Block proposer address. */
111
+ readonly proposer: 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}`, "Block proposer address.">]>;
112
+ /** List of transactions. */
113
+ readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
114
+ /** Action performed in transaction. */
115
+ readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
116
+ /** Action type. */
117
+ readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
118
+ }, undefined>, v.DescriptionAction<{
119
+ type: string;
120
+ } & {
121
+ [key: string]: unknown;
122
+ }, "Action performed in transaction.">]>;
123
+ /** Block number where transaction was included. */
124
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
125
+ /** Error message if transaction failed. */
126
+ readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
127
+ /** Transaction hash. */
128
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
129
+ /** Transaction creation timestamp. */
130
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
131
+ /** Creator's address. */
132
+ readonly user: 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}`, "Creator's address.">]>;
133
+ }, undefined>, v.DescriptionAction<{
134
+ action: {
135
+ type: string;
136
+ } & {
137
+ [key: string]: unknown;
138
+ };
139
+ block: number;
140
+ error: string | null;
141
+ hash: `0x${string}`;
142
+ time: number;
143
+ user: `0x${string}`;
144
+ }, "Transaction details.">]>, undefined>, v.DescriptionAction<{
145
+ action: {
146
+ type: string;
147
+ } & {
148
+ [key: string]: unknown;
149
+ };
150
+ block: number;
151
+ error: string | null;
152
+ hash: `0x${string}`;
153
+ time: number;
154
+ user: `0x${string}`;
155
+ }[], "List of transactions.">]>;
156
+ }, undefined>, v.DescriptionAction<{
157
+ blockTime: number;
158
+ hash: `0x${string}`;
159
+ height: number;
160
+ numTxs: number;
161
+ proposer: `0x${string}`;
162
+ txs: {
163
+ action: {
164
+ type: string;
165
+ } & {
166
+ [key: string]: unknown;
167
+ };
168
+ block: number;
169
+ error: string | null;
170
+ hash: `0x${string}`;
171
+ time: number;
172
+ user: `0x${string}`;
173
+ }[];
174
+ }, "Block details.">]>;
175
+ export type BlockDetails = v.InferOutput<typeof BlockDetails>;
176
+ /** Response containing block information. */
177
+ export declare const BlockDetailsResponse: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
178
+ /** Type of response. */
179
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"blockDetails", undefined>, v.DescriptionAction<"blockDetails", "Type of response.">]>;
180
+ /** The details of a block. */
181
+ readonly blockDetails: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
182
+ /** Block creation timestamp. */
183
+ readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
184
+ /** Block hash. */
185
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Block hash.">]>;
186
+ /** Block height in chain. */
187
+ readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
188
+ /** Total transactions in block. */
189
+ readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
190
+ /** Block proposer address. */
191
+ readonly proposer: 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}`, "Block proposer address.">]>;
192
+ /** List of transactions. */
193
+ readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
194
+ /** Action performed in transaction. */
195
+ readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
196
+ /** Action type. */
197
+ readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
198
+ }, undefined>, v.DescriptionAction<{
199
+ type: string;
200
+ } & {
201
+ [key: string]: unknown;
202
+ }, "Action performed in transaction.">]>;
203
+ /** Block number where transaction was included. */
204
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
205
+ /** Error message if transaction failed. */
206
+ readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
207
+ /** Transaction hash. */
208
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
209
+ /** Transaction creation timestamp. */
210
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
211
+ /** Creator's address. */
212
+ readonly user: 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}`, "Creator's address.">]>;
213
+ }, undefined>, v.DescriptionAction<{
214
+ action: {
215
+ type: string;
216
+ } & {
217
+ [key: string]: unknown;
218
+ };
219
+ block: number;
220
+ error: string | null;
221
+ hash: `0x${string}`;
222
+ time: number;
223
+ user: `0x${string}`;
224
+ }, "Transaction details.">]>, undefined>, v.DescriptionAction<{
225
+ action: {
226
+ type: string;
227
+ } & {
228
+ [key: string]: unknown;
229
+ };
230
+ block: number;
231
+ error: string | null;
232
+ hash: `0x${string}`;
233
+ time: number;
234
+ user: `0x${string}`;
235
+ }[], "List of transactions.">]>;
236
+ }, undefined>, v.DescriptionAction<{
237
+ blockTime: number;
238
+ hash: `0x${string}`;
239
+ height: number;
240
+ numTxs: number;
241
+ proposer: `0x${string}`;
242
+ txs: {
243
+ action: {
244
+ type: string;
245
+ } & {
246
+ [key: string]: unknown;
247
+ };
248
+ block: number;
249
+ error: string | null;
250
+ hash: `0x${string}`;
251
+ time: number;
252
+ user: `0x${string}`;
253
+ }[];
254
+ }, "Block details.">]>, v.DescriptionAction<{
255
+ blockTime: number;
256
+ hash: `0x${string}`;
257
+ height: number;
258
+ numTxs: number;
259
+ proposer: `0x${string}`;
260
+ txs: {
261
+ action: {
262
+ type: string;
263
+ } & {
264
+ [key: string]: unknown;
265
+ };
266
+ block: number;
267
+ error: string | null;
268
+ hash: `0x${string}`;
269
+ time: number;
270
+ user: `0x${string}`;
271
+ }[];
272
+ }, "The details of a block.">]>;
273
+ }, undefined>, v.DescriptionAction<{
274
+ type: "blockDetails";
275
+ blockDetails: {
276
+ blockTime: number;
277
+ hash: `0x${string}`;
278
+ height: number;
279
+ numTxs: number;
280
+ proposer: `0x${string}`;
281
+ txs: {
282
+ action: {
283
+ type: string;
284
+ } & {
285
+ [key: string]: unknown;
286
+ };
287
+ block: number;
288
+ error: string | null;
289
+ hash: `0x${string}`;
290
+ time: number;
291
+ user: `0x${string}`;
292
+ }[];
293
+ };
294
+ }, "Response containing block information.">]>;
295
+ export type BlockDetailsResponse = v.InferOutput<typeof BlockDetailsResponse>;
296
+ /** Response containing user details. */
297
+ export declare const UserDetailsResponse: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
298
+ /** Type of response. */
299
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"userDetails", undefined>, v.DescriptionAction<"userDetails", "Type of response.">]>;
300
+ /** The transactions of a user. */
301
+ readonly txs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
302
+ /** Action performed in transaction. */
303
+ readonly action: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
304
+ /** Action type. */
305
+ readonly type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Action type.">]>;
306
+ }, undefined>, v.DescriptionAction<{
307
+ type: string;
308
+ } & {
309
+ [key: string]: unknown;
310
+ }, "Action performed in transaction.">]>;
311
+ /** Block number where transaction was included. */
312
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
313
+ /** Error message if transaction failed. */
314
+ readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
315
+ /** Transaction hash. */
316
+ readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
317
+ /** Transaction creation timestamp. */
318
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
319
+ /** Creator's address. */
320
+ readonly user: 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}`, "Creator's address.">]>;
321
+ }, undefined>, v.DescriptionAction<{
322
+ action: {
323
+ type: string;
324
+ } & {
325
+ [key: string]: unknown;
326
+ };
327
+ block: number;
328
+ error: string | null;
329
+ hash: `0x${string}`;
330
+ time: number;
331
+ user: `0x${string}`;
332
+ }, "Transaction details.">]>, undefined>, v.DescriptionAction<{
333
+ action: {
334
+ type: string;
335
+ } & {
336
+ [key: string]: unknown;
337
+ };
338
+ block: number;
339
+ error: string | null;
340
+ hash: `0x${string}`;
341
+ time: number;
342
+ user: `0x${string}`;
343
+ }[], "The transactions of a user.">]>;
344
+ }, undefined>, v.DescriptionAction<{
345
+ type: "userDetails";
346
+ txs: {
347
+ action: {
348
+ type: string;
349
+ } & {
350
+ [key: string]: unknown;
351
+ };
352
+ block: number;
353
+ error: string | null;
354
+ hash: `0x${string}`;
355
+ time: number;
356
+ user: `0x${string}`;
357
+ }[];
358
+ }, "Response containing user details.">]>;
359
+ export type UserDetailsResponse = v.InferOutput<typeof UserDetailsResponse>;
360
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/src/schemas/explorer/responses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,2BAA2B;AAC3B,eAAO,MAAM,SAAS;IAEd,uCAAuC;;QAG/B,mBAAmB;;;;;;;IAQ3B,mDAAmD;;IAKnD,2CAA2C;;IAK3C,wBAAwB;;IAKxB,sCAAsC;;IAKtC,yBAAyB;;;;;;;;;;;;;4BAOhC,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,mDAAmD;AACnD,eAAO,MAAM,uBAAuB;IAE5B,wBAAwB;;IAKxB,oCAAoC;;QAjDpC,uCAAuC;;YAG/B,mBAAmB;;;;;;;QAQ3B,mDAAmD;;QAKnD,2CAA2C;;QAK3C,wBAAwB;;QAKxB,sCAAsC;;QAKtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAyBhC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,qBAAqB;AACrB,eAAO,MAAM,YAAY;IAEjB,gCAAgC;;IAKhC,kBAAkB;;IAKlB,6BAA6B;;IAK7B,mCAAmC;;IAKnC,8BAA8B;;IAK9B,4BAA4B;;QAvF5B,uCAAuC;;YAG/B,mBAAmB;;;;;;;QAQ3B,mDAAmD;;QAKnD,2CAA2C;;QAK3C,wBAAwB;;QAKxB,sCAAsC;;QAKtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+DhC,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB;IAEzB,wBAAwB;;IAKxB,8BAA8B;;QA3C9B,gCAAgC;;QAKhC,kBAAkB;;QAKlB,6BAA6B;;QAK7B,mCAAmC;;QAKnC,8BAA8B;;QAK9B,4BAA4B;;YAvF5B,uCAAuC;;gBAG/B,mBAAmB;;;;;;;YAQ3B,mDAAmD;;YAKnD,2CAA2C;;YAK3C,wBAAwB;;YAKxB,sCAAsC;;YAKtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAiFhC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,wCAAwC;AACxC,eAAO,MAAM,mBAAmB;IAExB,wBAAwB;;IAKxB,kCAAkC;;QA3HlC,uCAAuC;;YAG/B,mBAAmB;;;;;;;QAQ3B,mDAAmD;;QAKnD,2CAA2C;;QAK3C,wBAAwB;;QAKxB,sCAAsC;;QAKtC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAmGhC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,92 @@
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.UserDetailsResponse = exports.BlockDetailsResponse = exports.BlockDetails = exports.TxDetailsResponseSchema = exports.TxDetails = void 0;
37
+ const v = __importStar(require("valibot"));
38
+ const _base_js_1 = require("../_base.js");
39
+ /** Transaction details. */
40
+ exports.TxDetails = v.pipe(v.strictObject({
41
+ /** Action performed in transaction. */
42
+ action: v.pipe(v.looseObject({
43
+ /** Action type. */
44
+ type: v.pipe(v.string(), v.description("Action type.")),
45
+ }), v.description("Action performed in transaction.")),
46
+ /** Block number where transaction was included. */
47
+ block: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Block number where transaction was included.")),
48
+ /** Error message if transaction failed. */
49
+ error: v.pipe(v.nullable(v.string()), v.description("Error message if transaction failed.")),
50
+ /** Transaction hash. */
51
+ hash: v.pipe(v.pipe(_base_js_1.Hex, v.length(66)), v.description("Transaction hash.")),
52
+ /** Transaction creation timestamp. */
53
+ time: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Transaction creation timestamp.")),
54
+ /** Creator's address. */
55
+ user: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Creator's address.")),
56
+ }), v.description("Transaction details."));
57
+ /** Response containing transaction information. */
58
+ exports.TxDetailsResponseSchema = v.pipe(v.strictObject({
59
+ /** Type of response. */
60
+ type: v.pipe(v.literal("txDetails"), v.description("Type of response.")),
61
+ /** The details of a transaction. */
62
+ tx: v.pipe(exports.TxDetails, v.description("The details of a transaction.")),
63
+ }), v.description("Response containing transaction information."));
64
+ /** Block details. */
65
+ exports.BlockDetails = v.pipe(v.strictObject({
66
+ /** Block creation timestamp. */
67
+ blockTime: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Block creation timestamp.")),
68
+ /** Block hash. */
69
+ hash: v.pipe(v.pipe(_base_js_1.Hex, v.length(66)), v.description("Block hash.")),
70
+ /** Block height in chain. */
71
+ height: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Block height in chain.")),
72
+ /** Total transactions in block. */
73
+ numTxs: v.pipe(v.pipe(v.number(), v.safeInteger(), v.minValue(0)), v.description("Total transactions in block.")),
74
+ /** Block proposer address. */
75
+ proposer: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Block proposer address.")),
76
+ /** List of transactions. */
77
+ txs: v.pipe(v.array(exports.TxDetails), v.description("List of transactions.")),
78
+ }), v.description("Block details."));
79
+ /** Response containing block information. */
80
+ exports.BlockDetailsResponse = v.pipe(v.strictObject({
81
+ /** Type of response. */
82
+ type: v.pipe(v.literal("blockDetails"), v.description("Type of response.")),
83
+ /** The details of a block. */
84
+ blockDetails: v.pipe(exports.BlockDetails, v.description("The details of a block.")),
85
+ }), v.description("Response containing block information."));
86
+ /** Response containing user details. */
87
+ exports.UserDetailsResponse = v.pipe(v.strictObject({
88
+ /** Type of response. */
89
+ type: v.pipe(v.literal("userDetails"), v.description("Type of response.")),
90
+ /** The transactions of a user. */
91
+ txs: v.pipe(v.array(exports.TxDetails), v.description("The transactions of a user.")),
92
+ }), v.description("Response containing user details."));