@nktkas/hyperliquid 0.25.0-beta.2 → 0.25.0-beta.3

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 (220) hide show
  1. package/README.md +18 -2
  2. package/esm/bin/cli.d.ts +3 -0
  3. package/esm/bin/cli.d.ts.map +1 -0
  4. package/esm/bin/cli.js +452 -0
  5. package/esm/bin/cli.js.map +1 -0
  6. package/esm/src/{errors.d.ts → _errors.d.ts} +1 -1
  7. package/esm/src/_errors.d.ts.map +1 -0
  8. package/esm/src/{errors.js → _errors.js} +1 -1
  9. package/esm/src/_errors.js.map +1 -0
  10. package/esm/src/clients/exchange.d.ts +4 -4
  11. package/esm/src/clients/exchange.d.ts.map +1 -1
  12. package/esm/src/clients/exchange.js +4 -4
  13. package/esm/src/clients/exchange.js.map +1 -1
  14. package/esm/src/clients/info.d.ts +23 -1
  15. package/esm/src/clients/info.d.ts.map +1 -1
  16. package/esm/src/clients/info.js +27 -1
  17. package/esm/src/clients/info.js.map +1 -1
  18. package/esm/src/clients/multiSign.d.ts +1 -1
  19. package/esm/src/clients/multiSign.d.ts.map +1 -1
  20. package/esm/src/clients/multiSign.js +1 -1
  21. package/esm/src/clients/multiSign.js.map +1 -1
  22. package/esm/src/mod.d.ts +21 -0
  23. package/esm/src/mod.d.ts.map +1 -0
  24. package/esm/src/mod.js +14 -0
  25. package/esm/src/mod.js.map +1 -0
  26. package/esm/src/schemas/_base.d.ts +8 -4
  27. package/esm/src/schemas/_base.d.ts.map +1 -1
  28. package/esm/src/schemas/_base.js +27 -2
  29. package/esm/src/schemas/_base.js.map +1 -1
  30. package/esm/src/schemas/exchange/requests.d.ts +1598 -1598
  31. package/esm/src/schemas/exchange/requests.d.ts.map +1 -1
  32. package/esm/src/schemas/exchange/requests.js +150 -155
  33. package/esm/src/schemas/exchange/requests.js.map +1 -1
  34. package/esm/src/schemas/exchange/responses.d.ts +4 -4
  35. package/esm/src/schemas/explorer/requests.d.ts +2 -2
  36. package/esm/src/schemas/explorer/requests.js +2 -2
  37. package/esm/src/schemas/explorer/requests.js.map +1 -1
  38. package/esm/src/schemas/info/accounts.d.ts +941 -195
  39. package/esm/src/schemas/info/accounts.d.ts.map +1 -1
  40. package/esm/src/schemas/info/accounts.js +44 -0
  41. package/esm/src/schemas/info/accounts.js.map +1 -1
  42. package/esm/src/schemas/info/assets.d.ts +64 -64
  43. package/esm/src/schemas/info/markets.d.ts +16 -16
  44. package/esm/src/schemas/info/orders.d.ts +137 -137
  45. package/esm/src/schemas/info/requests.d.ts +47 -32
  46. package/esm/src/schemas/info/requests.d.ts.map +1 -1
  47. package/esm/src/schemas/info/requests.js +28 -17
  48. package/esm/src/schemas/info/requests.js.map +1 -1
  49. package/esm/src/schemas/info/validators.d.ts +19 -19
  50. package/esm/src/schemas/info/validators.d.ts.map +1 -1
  51. package/esm/src/schemas/info/validators.js +2 -2
  52. package/esm/src/schemas/info/validators.js.map +1 -1
  53. package/esm/src/schemas/info/vaults.d.ts +35 -35
  54. package/esm/src/schemas/mod.d.ts +3 -3
  55. package/esm/src/schemas/mod.d.ts.map +1 -1
  56. package/esm/src/schemas/mod.js +3 -3
  57. package/esm/src/schemas/mod.js.map +1 -1
  58. package/esm/src/schemas/subscriptions/requests.d.ts +2 -2
  59. package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -1
  60. package/esm/src/schemas/subscriptions/requests.js +3 -3
  61. package/esm/src/schemas/subscriptions/requests.js.map +1 -1
  62. package/esm/src/schemas/subscriptions/responses.d.ts +488 -488
  63. package/esm/src/signing/mod.d.ts +1 -1
  64. package/esm/src/signing/mod.d.ts.map +1 -1
  65. package/esm/src/signing/mod.js +2 -2
  66. package/esm/src/signing/mod.js.map +1 -1
  67. package/esm/src/signing/signTypedData/ethers.d.ts.map +1 -0
  68. package/esm/src/signing/signTypedData/ethers.js.map +1 -0
  69. package/esm/src/signing/signTypedData/mod.d.ts.map +1 -0
  70. package/esm/src/signing/signTypedData/mod.js.map +1 -0
  71. package/esm/src/signing/signTypedData/private_key.d.ts.map +1 -0
  72. package/esm/src/signing/{_signTypedData → signTypedData}/private_key.js +9 -8
  73. package/esm/src/signing/signTypedData/private_key.js.map +1 -0
  74. package/esm/src/signing/signTypedData/viem.d.ts.map +1 -0
  75. package/esm/src/signing/signTypedData/viem.js.map +1 -0
  76. package/esm/src/transports/base.d.ts +2 -2
  77. package/esm/src/transports/base.d.ts.map +1 -1
  78. package/esm/src/transports/base.js +2 -2
  79. package/esm/src/transports/base.js.map +1 -1
  80. package/package.json +15 -7
  81. package/script/bin/cli.d.ts +3 -0
  82. package/script/bin/cli.d.ts.map +1 -0
  83. package/script/bin/cli.js +490 -0
  84. package/script/bin/cli.js.map +1 -0
  85. package/script/src/{errors.d.ts → _errors.d.ts} +1 -1
  86. package/script/src/_errors.d.ts.map +1 -0
  87. package/script/src/{errors.js → _errors.js} +1 -1
  88. package/script/src/_errors.js.map +1 -0
  89. package/script/src/clients/exchange.d.ts +4 -4
  90. package/script/src/clients/exchange.d.ts.map +1 -1
  91. package/script/src/clients/exchange.js +5 -5
  92. package/script/src/clients/exchange.js.map +1 -1
  93. package/script/src/clients/info.d.ts +23 -1
  94. package/script/src/clients/info.d.ts.map +1 -1
  95. package/script/src/clients/info.js +26 -0
  96. package/script/src/clients/info.js.map +1 -1
  97. package/script/src/clients/multiSign.d.ts +1 -1
  98. package/script/src/clients/multiSign.d.ts.map +1 -1
  99. package/script/src/clients/multiSign.js +1 -1
  100. package/script/src/clients/multiSign.js.map +1 -1
  101. package/script/src/mod.d.ts +21 -0
  102. package/script/src/mod.d.ts.map +1 -0
  103. package/script/{mod.js → src/mod.js} +12 -8
  104. package/script/src/mod.js.map +1 -0
  105. package/script/src/schemas/_base.d.ts +8 -4
  106. package/script/src/schemas/_base.d.ts.map +1 -1
  107. package/script/src/schemas/_base.js +28 -3
  108. package/script/src/schemas/_base.js.map +1 -1
  109. package/script/src/schemas/exchange/requests.d.ts +1598 -1598
  110. package/script/src/schemas/exchange/requests.d.ts.map +1 -1
  111. package/script/src/schemas/exchange/requests.js +149 -154
  112. package/script/src/schemas/exchange/requests.js.map +1 -1
  113. package/script/src/schemas/exchange/responses.d.ts +4 -4
  114. package/script/src/schemas/explorer/requests.d.ts +2 -2
  115. package/script/src/schemas/explorer/requests.js +1 -1
  116. package/script/src/schemas/explorer/requests.js.map +1 -1
  117. package/script/src/schemas/info/accounts.d.ts +941 -195
  118. package/script/src/schemas/info/accounts.d.ts.map +1 -1
  119. package/script/src/schemas/info/accounts.js +45 -1
  120. package/script/src/schemas/info/accounts.js.map +1 -1
  121. package/script/src/schemas/info/assets.d.ts +64 -64
  122. package/script/src/schemas/info/markets.d.ts +16 -16
  123. package/script/src/schemas/info/orders.d.ts +137 -137
  124. package/script/src/schemas/info/requests.d.ts +47 -32
  125. package/script/src/schemas/info/requests.d.ts.map +1 -1
  126. package/script/src/schemas/info/requests.js +28 -17
  127. package/script/src/schemas/info/requests.js.map +1 -1
  128. package/script/src/schemas/info/validators.d.ts +19 -19
  129. package/script/src/schemas/info/validators.d.ts.map +1 -1
  130. package/script/src/schemas/info/validators.js +2 -2
  131. package/script/src/schemas/info/validators.js.map +1 -1
  132. package/script/src/schemas/info/vaults.d.ts +35 -35
  133. package/script/src/schemas/mod.d.ts +3 -3
  134. package/script/src/schemas/mod.d.ts.map +1 -1
  135. package/script/src/schemas/mod.js +4 -4
  136. package/script/src/schemas/mod.js.map +1 -1
  137. package/script/src/schemas/subscriptions/requests.d.ts +2 -2
  138. package/script/src/schemas/subscriptions/requests.d.ts.map +1 -1
  139. package/script/src/schemas/subscriptions/requests.js +2 -2
  140. package/script/src/schemas/subscriptions/requests.js.map +1 -1
  141. package/script/src/schemas/subscriptions/responses.d.ts +488 -488
  142. package/script/src/signing/mod.d.ts +1 -1
  143. package/script/src/signing/mod.d.ts.map +1 -1
  144. package/script/src/signing/mod.js +3 -3
  145. package/script/src/signing/mod.js.map +1 -1
  146. package/script/src/signing/signTypedData/ethers.d.ts.map +1 -0
  147. package/script/src/signing/signTypedData/ethers.js.map +1 -0
  148. package/script/src/signing/signTypedData/mod.d.ts.map +1 -0
  149. package/script/src/signing/signTypedData/mod.js.map +1 -0
  150. package/script/src/signing/signTypedData/private_key.d.ts.map +1 -0
  151. package/script/src/signing/{_signTypedData → signTypedData}/private_key.js +16 -15
  152. package/script/src/signing/signTypedData/private_key.js.map +1 -0
  153. package/script/src/signing/signTypedData/viem.d.ts.map +1 -0
  154. package/script/src/signing/signTypedData/viem.js.map +1 -0
  155. package/script/src/transports/base.d.ts +2 -2
  156. package/script/src/transports/base.d.ts.map +1 -1
  157. package/script/src/transports/base.js +3 -3
  158. package/script/src/transports/base.js.map +1 -1
  159. package/src/bin/cli.ts +481 -0
  160. package/src/src/clients/exchange.ts +7 -7
  161. package/src/src/clients/info.ts +34 -0
  162. package/src/src/clients/multiSign.ts +2 -2
  163. package/src/src/mod.ts +29 -0
  164. package/src/src/schemas/_base.ts +45 -6
  165. package/src/src/schemas/exchange/requests.ts +150 -155
  166. package/src/src/schemas/explorer/requests.ts +2 -2
  167. package/src/src/schemas/info/accounts.ts +108 -0
  168. package/src/src/schemas/info/requests.ts +49 -17
  169. package/src/src/schemas/info/validators.ts +17 -19
  170. package/src/src/schemas/mod.ts +3 -3
  171. package/src/src/schemas/subscriptions/requests.ts +13 -3
  172. package/src/src/signing/mod.ts +2 -2
  173. package/src/src/signing/{_signTypedData → signTypedData}/private_key.ts +13 -8
  174. package/src/src/transports/base.ts +2 -2
  175. package/esm/mod.d.ts +0 -20
  176. package/esm/mod.d.ts.map +0 -1
  177. package/esm/mod.js +0 -12
  178. package/esm/mod.js.map +0 -1
  179. package/esm/src/errors.d.ts.map +0 -1
  180. package/esm/src/errors.js.map +0 -1
  181. package/esm/src/signing/_signTypedData/ethers.d.ts.map +0 -1
  182. package/esm/src/signing/_signTypedData/ethers.js.map +0 -1
  183. package/esm/src/signing/_signTypedData/mod.d.ts.map +0 -1
  184. package/esm/src/signing/_signTypedData/mod.js.map +0 -1
  185. package/esm/src/signing/_signTypedData/private_key.d.ts.map +0 -1
  186. package/esm/src/signing/_signTypedData/private_key.js.map +0 -1
  187. package/esm/src/signing/_signTypedData/viem.d.ts.map +0 -1
  188. package/esm/src/signing/_signTypedData/viem.js.map +0 -1
  189. package/script/mod.d.ts +0 -20
  190. package/script/mod.d.ts.map +0 -1
  191. package/script/mod.js.map +0 -1
  192. package/script/src/errors.d.ts.map +0 -1
  193. package/script/src/errors.js.map +0 -1
  194. package/script/src/signing/_signTypedData/ethers.d.ts.map +0 -1
  195. package/script/src/signing/_signTypedData/ethers.js.map +0 -1
  196. package/script/src/signing/_signTypedData/mod.d.ts.map +0 -1
  197. package/script/src/signing/_signTypedData/mod.js.map +0 -1
  198. package/script/src/signing/_signTypedData/private_key.d.ts.map +0 -1
  199. package/script/src/signing/_signTypedData/private_key.js.map +0 -1
  200. package/script/src/signing/_signTypedData/viem.d.ts.map +0 -1
  201. package/script/src/signing/_signTypedData/viem.js.map +0 -1
  202. package/src/mod.ts +0 -28
  203. /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
  204. /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
  205. /package/esm/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
  206. /package/esm/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
  207. /package/esm/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
  208. /package/esm/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
  209. /package/esm/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
  210. /package/script/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
  211. /package/script/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
  212. /package/script/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
  213. /package/script/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
  214. /package/script/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
  215. /package/script/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
  216. /package/script/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
  217. /package/src/src/{errors.ts → _errors.ts} +0 -0
  218. /package/src/src/signing/{_signTypedData → signTypedData}/ethers.ts +0 -0
  219. /package/src/src/signing/{_signTypedData → signTypedData}/mod.ts +0 -0
  220. /package/src/src/signing/{_signTypedData → signTypedData}/viem.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  import * as v from "valibot";
2
- import { Hex, TokenId, UnsignedDecimal, UnsignedInteger } from "../_base.js";
2
+ import { Hex, TokenId, UnsignedDecimalMayInputNumber, UnsignedIntegerMayInputString } from "../_base.js";
3
+ import { TIF } from "../info/orders.js";
3
4
 
4
5
  /** Deeply removes undefined keys from an object. */
5
6
  function removeUndefinedKeys<T>(obj: T): T {
@@ -60,7 +61,7 @@ export const OrderParams = v.pipe(
60
61
  v.object({
61
62
  /** Asset ID. */
62
63
  a: v.pipe(
63
- UnsignedInteger,
64
+ UnsignedIntegerMayInputString,
64
65
  v.description("Asset ID."),
65
66
  ),
66
67
  /** Position side (`true` for long, `false` for short). */
@@ -70,12 +71,12 @@ export const OrderParams = v.pipe(
70
71
  ),
71
72
  /** Price. */
72
73
  p: v.pipe(
73
- UnsignedDecimal,
74
+ UnsignedDecimalMayInputNumber,
74
75
  v.description("Price."),
75
76
  ),
76
77
  /** Size (in base currency units). */
77
78
  s: v.pipe(
78
- UnsignedDecimal,
79
+ UnsignedDecimalMayInputNumber,
79
80
  v.description("Size (in base currency units)."),
80
81
  ),
81
82
  /** Is reduce-only? */
@@ -92,13 +93,7 @@ export const OrderParams = v.pipe(
92
93
  v.object({
93
94
  /** Time-in-force. */
94
95
  tif: v.pipe(
95
- v.union([
96
- v.literal("Gtc"),
97
- v.literal("Ioc"),
98
- v.literal("Alo"),
99
- v.literal("FrontendMarket"),
100
- v.literal("LiquidationMarket"),
101
- ]),
96
+ TIF,
102
97
  v.description("Time-in-force."),
103
98
  ),
104
99
  }),
@@ -116,7 +111,7 @@ export const OrderParams = v.pipe(
116
111
  ),
117
112
  /** Trigger price. */
118
113
  triggerPx: v.pipe(
119
- UnsignedDecimal,
114
+ UnsignedDecimalMayInputNumber,
120
115
  v.description("Trigger price."),
121
116
  ),
122
117
  /** Indicates whether it is take profit or stop loss. */
@@ -179,7 +174,7 @@ export const ApproveAgentRequest = v.pipe(
179
174
  ),
180
175
  /** Unique request identifier (current timestamp in ms). */
181
176
  nonce: v.pipe(
182
- UnsignedInteger,
177
+ UnsignedIntegerMayInputString,
183
178
  v.description("Unique request identifier (current timestamp in ms)."),
184
179
  ),
185
180
  }),
@@ -187,7 +182,7 @@ export const ApproveAgentRequest = v.pipe(
187
182
  ),
188
183
  /** Unique request identifier (current timestamp in ms). */
189
184
  nonce: v.pipe(
190
- UnsignedInteger,
185
+ UnsignedIntegerMayInputString,
191
186
  v.description("Unique request identifier (current timestamp in ms)."),
192
187
  ),
193
188
  /** Cryptographic signature. */
@@ -238,7 +233,7 @@ export const ApproveBuilderFeeRequest = v.pipe(
238
233
  ),
239
234
  /** Unique request identifier (current timestamp in ms). */
240
235
  nonce: v.pipe(
241
- UnsignedInteger,
236
+ UnsignedIntegerMayInputString,
242
237
  v.description("Unique request identifier (current timestamp in ms)."),
243
238
  ),
244
239
  }),
@@ -246,7 +241,7 @@ export const ApproveBuilderFeeRequest = v.pipe(
246
241
  ),
247
242
  /** Unique request identifier (current timestamp in ms). */
248
243
  nonce: v.pipe(
249
- UnsignedInteger,
244
+ UnsignedIntegerMayInputString,
250
245
  v.description("Unique request identifier (current timestamp in ms)."),
251
246
  ),
252
247
  /** Cryptographic signature. */
@@ -281,7 +276,7 @@ export const BatchModifyRequest = v.pipe(
281
276
  /** Order ID or Client Order ID. */
282
277
  oid: v.pipe(
283
278
  v.union([
284
- UnsignedInteger,
279
+ UnsignedIntegerMayInputString,
285
280
  v.pipe(Hex, v.length(34)),
286
281
  ]),
287
282
  v.description("Order ID or Client Order ID."),
@@ -299,7 +294,7 @@ export const BatchModifyRequest = v.pipe(
299
294
  ),
300
295
  /** Unique request identifier (current timestamp in ms). */
301
296
  nonce: v.pipe(
302
- UnsignedInteger,
297
+ UnsignedIntegerMayInputString,
303
298
  v.description("Unique request identifier (current timestamp in ms)."),
304
299
  ),
305
300
  /** Cryptographic signature. */
@@ -314,7 +309,7 @@ export const BatchModifyRequest = v.pipe(
314
309
  ),
315
310
  /** Expiration time of the action. */
316
311
  expiresAfter: v.pipe(
317
- v.optional(UnsignedInteger),
312
+ v.optional(UnsignedIntegerMayInputString),
318
313
  v.description("Expiration time of the action."),
319
314
  ),
320
315
  }),
@@ -343,12 +338,12 @@ export const CancelRequest = v.pipe(
343
338
  v.array(v.object({
344
339
  /** Asset ID. */
345
340
  a: v.pipe(
346
- UnsignedInteger,
341
+ UnsignedIntegerMayInputString,
347
342
  v.description("Asset ID."),
348
343
  ),
349
344
  /** Order ID. */
350
345
  o: v.pipe(
351
- UnsignedInteger,
346
+ UnsignedIntegerMayInputString,
352
347
  v.description("Order ID."),
353
348
  ),
354
349
  })),
@@ -359,7 +354,7 @@ export const CancelRequest = v.pipe(
359
354
  ),
360
355
  /** Unique request identifier (current timestamp in ms). */
361
356
  nonce: v.pipe(
362
- UnsignedInteger,
357
+ UnsignedIntegerMayInputString,
363
358
  v.description("Unique request identifier (current timestamp in ms)."),
364
359
  ),
365
360
  /** Cryptographic signature. */
@@ -374,7 +369,7 @@ export const CancelRequest = v.pipe(
374
369
  ),
375
370
  /** Expiration time of the action. */
376
371
  expiresAfter: v.pipe(
377
- v.optional(UnsignedInteger),
372
+ v.optional(UnsignedIntegerMayInputString),
378
373
  v.description("Expiration time of the action."),
379
374
  ),
380
375
  }),
@@ -403,7 +398,7 @@ export const CancelByCloidRequest = v.pipe(
403
398
  v.array(v.object({
404
399
  /** Asset ID. */
405
400
  asset: v.pipe(
406
- UnsignedInteger,
401
+ UnsignedIntegerMayInputString,
407
402
  v.description("Asset ID."),
408
403
  ),
409
404
  /** Client Order ID. */
@@ -419,7 +414,7 @@ export const CancelByCloidRequest = v.pipe(
419
414
  ),
420
415
  /** Unique request identifier (current timestamp in ms). */
421
416
  nonce: v.pipe(
422
- UnsignedInteger,
417
+ UnsignedIntegerMayInputString,
423
418
  v.description("Unique request identifier (current timestamp in ms)."),
424
419
  ),
425
420
  /** Cryptographic signature. */
@@ -434,7 +429,7 @@ export const CancelByCloidRequest = v.pipe(
434
429
  ),
435
430
  /** Expiration time of the action. */
436
431
  expiresAfter: v.pipe(
437
- v.optional(UnsignedInteger),
432
+ v.optional(UnsignedIntegerMayInputString),
438
433
  v.description("Expiration time of the action."),
439
434
  ),
440
435
  }),
@@ -470,12 +465,12 @@ export const CDepositRequest = v.pipe(
470
465
  ),
471
466
  /** Amount of wei to deposit into staking balance (float * 1e8). */
472
467
  wei: v.pipe(
473
- UnsignedInteger,
468
+ UnsignedIntegerMayInputString,
474
469
  v.description("Amount of wei to deposit into staking balance (float * 1e8)."),
475
470
  ),
476
471
  /** Unique request identifier (current timestamp in ms). */
477
472
  nonce: v.pipe(
478
- UnsignedInteger,
473
+ UnsignedIntegerMayInputString,
479
474
  v.description("Unique request identifier (current timestamp in ms)."),
480
475
  ),
481
476
  }),
@@ -483,7 +478,7 @@ export const CDepositRequest = v.pipe(
483
478
  ),
484
479
  /** Unique request identifier (current timestamp in ms). */
485
480
  nonce: v.pipe(
486
- UnsignedInteger,
481
+ UnsignedIntegerMayInputString,
487
482
  v.description("Unique request identifier (current timestamp in ms)."),
488
483
  ),
489
484
  /** Cryptographic signature. */
@@ -517,7 +512,7 @@ export const ClaimRewardsRequest = v.pipe(
517
512
  ),
518
513
  /** Unique request identifier (current timestamp in ms). */
519
514
  nonce: v.pipe(
520
- UnsignedInteger,
515
+ UnsignedIntegerMayInputString,
521
516
  v.description("Unique request identifier (current timestamp in ms)."),
522
517
  ),
523
518
  /** Cryptographic signature. */
@@ -527,7 +522,7 @@ export const ClaimRewardsRequest = v.pipe(
527
522
  ),
528
523
  /** Expiration time of the action. */
529
524
  expiresAfter: v.pipe(
530
- v.optional(UnsignedInteger),
525
+ v.optional(UnsignedIntegerMayInputString),
531
526
  v.description("Expiration time of the action."),
532
527
  ),
533
528
  }),
@@ -547,7 +542,7 @@ export const ConvertToMultiSigUserRequestSigners = v.pipe(
547
542
  ),
548
543
  /** Minimum number of signatures required. */
549
544
  threshold: v.pipe(
550
- UnsignedInteger,
545
+ UnsignedIntegerMayInputString,
551
546
  v.description("Minimum number of signatures required."),
552
547
  ),
553
548
  }),
@@ -611,7 +606,7 @@ export const ConvertToMultiSigUserRequest = v.pipe(
611
606
  ),
612
607
  /** Unique request identifier (current timestamp in ms). */
613
608
  nonce: v.pipe(
614
- UnsignedInteger,
609
+ UnsignedIntegerMayInputString,
615
610
  v.description("Unique request identifier (current timestamp in ms)."),
616
611
  ),
617
612
  }),
@@ -619,7 +614,7 @@ export const ConvertToMultiSigUserRequest = v.pipe(
619
614
  ),
620
615
  /** Unique request identifier (current timestamp in ms). */
621
616
  nonce: v.pipe(
622
- UnsignedInteger,
617
+ UnsignedIntegerMayInputString,
623
618
  v.description("Unique request identifier (current timestamp in ms)."),
624
619
  ),
625
620
  /** Cryptographic signature. */
@@ -659,7 +654,7 @@ export const CreateSubAccountRequest = v.pipe(
659
654
  ),
660
655
  /** Unique request identifier (current timestamp in ms). */
661
656
  nonce: v.pipe(
662
- UnsignedInteger,
657
+ UnsignedIntegerMayInputString,
663
658
  v.description("Unique request identifier (current timestamp in ms)."),
664
659
  ),
665
660
  /** Cryptographic signature. */
@@ -669,7 +664,7 @@ export const CreateSubAccountRequest = v.pipe(
669
664
  ),
670
665
  /** Expiration time of the action. */
671
666
  expiresAfter: v.pipe(
672
- v.optional(UnsignedInteger),
667
+ v.optional(UnsignedIntegerMayInputString),
673
668
  v.description("Expiration time of the action."),
674
669
  ),
675
670
  }),
@@ -707,13 +702,13 @@ export const CreateVaultRequest = v.pipe(
707
702
  ),
708
703
  /** Initial balance (float * 1e6). */
709
704
  initialUsd: v.pipe(
710
- UnsignedInteger,
705
+ UnsignedIntegerMayInputString,
711
706
  v.minValue(100000000), // 100 USDC
712
707
  v.description("Initial balance (float * 1e6)."),
713
708
  ),
714
709
  /** Unique request identifier (current timestamp in ms). */
715
710
  nonce: v.pipe(
716
- UnsignedInteger,
711
+ UnsignedIntegerMayInputString,
717
712
  v.description("Unique request identifier (current timestamp in ms)."),
718
713
  ),
719
714
  }),
@@ -721,7 +716,7 @@ export const CreateVaultRequest = v.pipe(
721
716
  ),
722
717
  /** Unique request identifier (current timestamp in ms). */
723
718
  nonce: v.pipe(
724
- UnsignedInteger,
719
+ UnsignedIntegerMayInputString,
725
720
  v.description("Unique request identifier (current timestamp in ms)."),
726
721
  ),
727
722
  /** Cryptographic signature. */
@@ -731,7 +726,7 @@ export const CreateVaultRequest = v.pipe(
731
726
  ),
732
727
  /** Expiration time of the action. */
733
728
  expiresAfter: v.pipe(
734
- v.optional(UnsignedInteger),
729
+ v.optional(UnsignedIntegerMayInputString),
735
730
  v.description("Expiration time of the action."),
736
731
  ),
737
732
  }),
@@ -781,7 +776,7 @@ export const CSignerActionRequest = v.pipe(
781
776
  ),
782
777
  /** Unique request identifier (current timestamp in ms). */
783
778
  nonce: v.pipe(
784
- UnsignedInteger,
779
+ UnsignedIntegerMayInputString,
785
780
  v.description("Unique request identifier (current timestamp in ms)."),
786
781
  ),
787
782
  /** Cryptographic signature. */
@@ -791,7 +786,7 @@ export const CSignerActionRequest = v.pipe(
791
786
  ),
792
787
  /** Expiration time of the action. */
793
788
  expiresAfter: v.pipe(
794
- v.optional(UnsignedInteger),
789
+ v.optional(UnsignedIntegerMayInputString),
795
790
  v.description("Expiration time of the action."),
796
791
  ),
797
792
  }),
@@ -863,7 +858,7 @@ export const CValidatorActionRequest = v.pipe(
863
858
  ),
864
859
  /** Commission rate in basis points (1 = 0.0001%). */
865
860
  commission_bps: v.pipe(
866
- v.nullable(UnsignedInteger),
861
+ v.nullable(UnsignedIntegerMayInputString),
867
862
  v.description("Commission rate in basis points (1 = 0.0001%)."),
868
863
  ),
869
864
  /** Signer address. */
@@ -916,7 +911,7 @@ export const CValidatorActionRequest = v.pipe(
916
911
  ),
917
912
  /** Commission rate in basis points (1 = 0.0001%). */
918
913
  commission_bps: v.pipe(
919
- UnsignedInteger,
914
+ UnsignedIntegerMayInputString,
920
915
  v.description("Commission rate in basis points (1 = 0.0001%)."),
921
916
  ),
922
917
  /** Signer address. */
@@ -934,7 +929,7 @@ export const CValidatorActionRequest = v.pipe(
934
929
  ),
935
930
  /** Initial stake amount in wei. */
936
931
  initial_wei: v.pipe(
937
- UnsignedInteger,
932
+ UnsignedIntegerMayInputString,
938
933
  v.description("Initial stake amount in wei."),
939
934
  ),
940
935
  }),
@@ -958,7 +953,7 @@ export const CValidatorActionRequest = v.pipe(
958
953
  ),
959
954
  /** Unique request identifier (current timestamp in ms). */
960
955
  nonce: v.pipe(
961
- UnsignedInteger,
956
+ UnsignedIntegerMayInputString,
962
957
  v.description("Unique request identifier (current timestamp in ms)."),
963
958
  ),
964
959
  /** Cryptographic signature. */
@@ -968,7 +963,7 @@ export const CValidatorActionRequest = v.pipe(
968
963
  ),
969
964
  /** Expiration time of the action. */
970
965
  expiresAfter: v.pipe(
971
- v.optional(UnsignedInteger),
966
+ v.optional(UnsignedIntegerMayInputString),
972
967
  v.description("Expiration time of the action."),
973
968
  ),
974
969
  }),
@@ -1009,12 +1004,12 @@ export const CWithdrawRequest = v.pipe(
1009
1004
  ),
1010
1005
  /** Amount of wei to withdraw from staking balance (float * 1e8). */
1011
1006
  wei: v.pipe(
1012
- UnsignedInteger,
1007
+ UnsignedIntegerMayInputString,
1013
1008
  v.description("Amount of wei to withdraw from staking balance (float * 1e8)."),
1014
1009
  ),
1015
1010
  /** Unique request identifier (current timestamp in ms). */
1016
1011
  nonce: v.pipe(
1017
- UnsignedInteger,
1012
+ UnsignedIntegerMayInputString,
1018
1013
  v.description("Unique request identifier (current timestamp in ms)."),
1019
1014
  ),
1020
1015
  }),
@@ -1022,7 +1017,7 @@ export const CWithdrawRequest = v.pipe(
1022
1017
  ),
1023
1018
  /** Unique request identifier (current timestamp in ms). */
1024
1019
  nonce: v.pipe(
1025
- UnsignedInteger,
1020
+ UnsignedIntegerMayInputString,
1026
1021
  v.description("Unique request identifier (current timestamp in ms)."),
1027
1022
  ),
1028
1023
  /** Cryptographic signature. */
@@ -1061,7 +1056,7 @@ export const EvmUserModifyRequest = v.pipe(
1061
1056
  ),
1062
1057
  /** Unique request identifier (current timestamp in ms). */
1063
1058
  nonce: v.pipe(
1064
- UnsignedInteger,
1059
+ UnsignedIntegerMayInputString,
1065
1060
  v.description("Unique request identifier (current timestamp in ms)."),
1066
1061
  ),
1067
1062
  /** Cryptographic signature. */
@@ -1071,7 +1066,7 @@ export const EvmUserModifyRequest = v.pipe(
1071
1066
  ),
1072
1067
  /** Expiration time of the action. */
1073
1068
  expiresAfter: v.pipe(
1074
- v.optional(UnsignedInteger),
1069
+ v.optional(UnsignedIntegerMayInputString),
1075
1070
  v.description("Expiration time of the action."),
1076
1071
  ),
1077
1072
  }),
@@ -1098,7 +1093,7 @@ export const ModifyRequest = v.pipe(
1098
1093
  /** Order ID or Client Order ID. */
1099
1094
  oid: v.pipe(
1100
1095
  v.union([
1101
- UnsignedInteger,
1096
+ UnsignedIntegerMayInputString,
1102
1097
  v.pipe(Hex, v.length(34)),
1103
1098
  ]),
1104
1099
  v.description("Order ID or Client Order ID."),
@@ -1113,7 +1108,7 @@ export const ModifyRequest = v.pipe(
1113
1108
  ),
1114
1109
  /** Unique request identifier (current timestamp in ms). */
1115
1110
  nonce: v.pipe(
1116
- UnsignedInteger,
1111
+ UnsignedIntegerMayInputString,
1117
1112
  v.description("Unique request identifier (current timestamp in ms)."),
1118
1113
  ),
1119
1114
  /** Cryptographic signature. */
@@ -1128,7 +1123,7 @@ export const ModifyRequest = v.pipe(
1128
1123
  ),
1129
1124
  /** Expiration time of the action. */
1130
1125
  expiresAfter: v.pipe(
1131
- v.optional(UnsignedInteger),
1126
+ v.optional(UnsignedIntegerMayInputString),
1132
1127
  v.description("Expiration time of the action."),
1133
1128
  ),
1134
1129
  }),
@@ -1157,7 +1152,7 @@ export const NoopRequest = v.pipe(
1157
1152
  ),
1158
1153
  /** Unique request identifier (current timestamp in ms). */
1159
1154
  nonce: v.pipe(
1160
- UnsignedInteger,
1155
+ UnsignedIntegerMayInputString,
1161
1156
  v.description("Unique request identifier (current timestamp in ms)."),
1162
1157
  ),
1163
1158
  /** Cryptographic signature. */
@@ -1167,7 +1162,7 @@ export const NoopRequest = v.pipe(
1167
1162
  ),
1168
1163
  /** Expiration time of the action. */
1169
1164
  expiresAfter: v.pipe(
1170
- v.optional(UnsignedInteger),
1165
+ v.optional(UnsignedIntegerMayInputString),
1171
1166
  v.description("Expiration time of the action."),
1172
1167
  ),
1173
1168
  }),
@@ -1225,7 +1220,7 @@ export const OrderRequest = v.pipe(
1225
1220
  ),
1226
1221
  /** Builder fee in 0.1bps (1 = 0.0001%). */
1227
1222
  f: v.pipe(
1228
- UnsignedInteger,
1223
+ UnsignedIntegerMayInputString,
1229
1224
  v.description("Builder fee in 0.1bps (1 = 0.0001%)."),
1230
1225
  ),
1231
1226
  })),
@@ -1236,7 +1231,7 @@ export const OrderRequest = v.pipe(
1236
1231
  ),
1237
1232
  /** Unique request identifier (current timestamp in ms). */
1238
1233
  nonce: v.pipe(
1239
- UnsignedInteger,
1234
+ UnsignedIntegerMayInputString,
1240
1235
  v.description("Unique request identifier (current timestamp in ms)."),
1241
1236
  ),
1242
1237
  /** Cryptographic signature. */
@@ -1251,7 +1246,7 @@ export const OrderRequest = v.pipe(
1251
1246
  ),
1252
1247
  /** Expiration time of the action. */
1253
1248
  expiresAfter: v.pipe(
1254
- v.optional(UnsignedInteger),
1249
+ v.optional(UnsignedIntegerMayInputString),
1255
1250
  v.description("Expiration time of the action."),
1256
1251
  ),
1257
1252
  }),
@@ -1284,7 +1279,7 @@ export const PerpDeployRequest = v.pipe(
1284
1279
  v.object({
1285
1280
  /** Max gas in native token wei. If not provided, then uses current deploy auction price. */
1286
1281
  maxGas: v.pipe(
1287
- v.nullable(UnsignedInteger),
1282
+ v.nullable(UnsignedIntegerMayInputString),
1288
1283
  v.description(
1289
1284
  "Max gas in native token wei. If not provided, then uses current deploy auction price.",
1290
1285
  ),
@@ -1299,17 +1294,17 @@ export const PerpDeployRequest = v.pipe(
1299
1294
  ),
1300
1295
  /** Number of decimal places for size. */
1301
1296
  szDecimals: v.pipe(
1302
- UnsignedInteger,
1297
+ UnsignedIntegerMayInputString,
1303
1298
  v.description("Number of decimal places for size."),
1304
1299
  ),
1305
1300
  /** Initial oracle price for the asset. */
1306
1301
  oraclePx: v.pipe(
1307
- UnsignedDecimal,
1302
+ UnsignedDecimalMayInputNumber,
1308
1303
  v.description("Initial oracle price for the asset."),
1309
1304
  ),
1310
1305
  /** Margin table identifier for risk management. */
1311
1306
  marginTableId: v.pipe(
1312
- UnsignedInteger,
1307
+ UnsignedIntegerMayInputString,
1313
1308
  v.description("Margin table identifier for risk management."),
1314
1309
  ),
1315
1310
  /** Whether the asset can only be traded with isolated margin. */
@@ -1335,7 +1330,7 @@ export const PerpDeployRequest = v.pipe(
1335
1330
  ),
1336
1331
  /** Collateral token index. */
1337
1332
  collateralToken: v.pipe(
1338
- UnsignedInteger,
1333
+ UnsignedIntegerMayInputString,
1339
1334
  v.description("Collateral token index."),
1340
1335
  ),
1341
1336
  /** User to update oracles. If not provided, then deployer is assumed to be oracle updater. */
@@ -1372,12 +1367,12 @@ export const PerpDeployRequest = v.pipe(
1372
1367
  ),
1373
1368
  /** A list (sorted by key) of asset and oracle prices. */
1374
1369
  oraclePxs: v.pipe(
1375
- v.array(v.tuple([v.string(), UnsignedDecimal])),
1370
+ v.array(v.tuple([v.string(), UnsignedDecimalMayInputNumber])),
1376
1371
  v.description("A list (sorted by key) of asset and oracle prices."),
1377
1372
  ),
1378
1373
  /** An outer list of inner lists (inner list sorted by key) of asset and mark prices. */
1379
1374
  markPxs: v.pipe(
1380
- v.array(v.array(v.tuple([v.string(), UnsignedDecimal]))),
1375
+ v.array(v.array(v.tuple([v.string(), UnsignedDecimalMayInputNumber]))),
1381
1376
  v.description(
1382
1377
  "An outer list of inner lists (inner list sorted by key) of asset and mark prices.",
1383
1378
  ),
@@ -1393,7 +1388,7 @@ export const PerpDeployRequest = v.pipe(
1393
1388
  ),
1394
1389
  /** Unique request identifier (current timestamp in ms). */
1395
1390
  nonce: v.pipe(
1396
- UnsignedInteger,
1391
+ UnsignedIntegerMayInputString,
1397
1392
  v.description("Unique request identifier (current timestamp in ms)."),
1398
1393
  ),
1399
1394
  /** Cryptographic signature. */
@@ -1403,7 +1398,7 @@ export const PerpDeployRequest = v.pipe(
1403
1398
  ),
1404
1399
  /** Expiration time of the action. */
1405
1400
  expiresAfter: v.pipe(
1406
- v.optional(UnsignedInteger),
1401
+ v.optional(UnsignedIntegerMayInputString),
1407
1402
  v.description("Expiration time of the action."),
1408
1403
  ),
1409
1404
  }),
@@ -1442,7 +1437,7 @@ export const RegisterReferrerRequest = v.pipe(
1442
1437
  ),
1443
1438
  /** Unique request identifier (current timestamp in ms). */
1444
1439
  nonce: v.pipe(
1445
- UnsignedInteger,
1440
+ UnsignedIntegerMayInputString,
1446
1441
  v.description("Unique request identifier (current timestamp in ms)."),
1447
1442
  ),
1448
1443
  /** Cryptographic signature. */
@@ -1452,7 +1447,7 @@ export const RegisterReferrerRequest = v.pipe(
1452
1447
  ),
1453
1448
  /** Expiration time of the action. */
1454
1449
  expiresAfter: v.pipe(
1455
- v.optional(UnsignedInteger),
1450
+ v.optional(UnsignedIntegerMayInputString),
1456
1451
  v.description("Expiration time of the action."),
1457
1452
  ),
1458
1453
  }),
@@ -1478,7 +1473,7 @@ export const ReserveRequestWeightRequest = v.pipe(
1478
1473
  ),
1479
1474
  /** Amount of request weight to reserve. */
1480
1475
  weight: v.pipe(
1481
- UnsignedInteger,
1476
+ UnsignedIntegerMayInputString,
1482
1477
  v.description("Amount of request weight to reserve."),
1483
1478
  ),
1484
1479
  }),
@@ -1486,7 +1481,7 @@ export const ReserveRequestWeightRequest = v.pipe(
1486
1481
  ),
1487
1482
  /** Unique request identifier (current timestamp in ms). */
1488
1483
  nonce: v.pipe(
1489
- UnsignedInteger,
1484
+ UnsignedIntegerMayInputString,
1490
1485
  v.description("Unique request identifier (current timestamp in ms)."),
1491
1486
  ),
1492
1487
  /** Cryptographic signature. */
@@ -1496,7 +1491,7 @@ export const ReserveRequestWeightRequest = v.pipe(
1496
1491
  ),
1497
1492
  /** Expiration time of the action. */
1498
1493
  expiresAfter: v.pipe(
1499
- v.optional(UnsignedInteger),
1494
+ v.optional(UnsignedIntegerMayInputString),
1500
1495
  v.description("Expiration time of the action."),
1501
1496
  ),
1502
1497
  }),
@@ -1527,7 +1522,7 @@ export const ScheduleCancelRequest = v.pipe(
1527
1522
  * If not specified, will cause all scheduled cancel operations to be deleted.
1528
1523
  */
1529
1524
  time: v.pipe(
1530
- v.optional(UnsignedInteger),
1525
+ v.optional(UnsignedIntegerMayInputString),
1531
1526
  v.description(
1532
1527
  "Scheduled time (in ms since epoch)." +
1533
1528
  "\nMust be at least 5 seconds in the future." +
@@ -1539,7 +1534,7 @@ export const ScheduleCancelRequest = v.pipe(
1539
1534
  ),
1540
1535
  /** Unique request identifier (current timestamp in ms). */
1541
1536
  nonce: v.pipe(
1542
- UnsignedInteger,
1537
+ UnsignedIntegerMayInputString,
1543
1538
  v.description("Unique request identifier (current timestamp in ms)."),
1544
1539
  ),
1545
1540
  /** Cryptographic signature. */
@@ -1554,7 +1549,7 @@ export const ScheduleCancelRequest = v.pipe(
1554
1549
  ),
1555
1550
  /** Expiration time of the action. */
1556
1551
  expiresAfter: v.pipe(
1557
- v.optional(UnsignedInteger),
1552
+ v.optional(UnsignedIntegerMayInputString),
1558
1553
  v.description("Expiration time of the action."),
1559
1554
  ),
1560
1555
  }),
@@ -1610,7 +1605,7 @@ export const SendAssetRequest = v.pipe(
1610
1605
  ),
1611
1606
  /** Amount to send (not in wei). */
1612
1607
  amount: v.pipe(
1613
- UnsignedDecimal,
1608
+ UnsignedDecimalMayInputNumber,
1614
1609
  v.description("Amount to send (not in wei)."),
1615
1610
  ),
1616
1611
  /** Source sub-account address ("" for main account). */
@@ -1623,7 +1618,7 @@ export const SendAssetRequest = v.pipe(
1623
1618
  ),
1624
1619
  /** Unique request identifier (current timestamp in ms). */
1625
1620
  nonce: v.pipe(
1626
- UnsignedInteger,
1621
+ UnsignedIntegerMayInputString,
1627
1622
  v.description("Unique request identifier (current timestamp in ms)."),
1628
1623
  ),
1629
1624
  }),
@@ -1631,7 +1626,7 @@ export const SendAssetRequest = v.pipe(
1631
1626
  ),
1632
1627
  /** Unique request identifier (current timestamp in ms). */
1633
1628
  nonce: v.pipe(
1634
- UnsignedInteger,
1629
+ UnsignedIntegerMayInputString,
1635
1630
  v.description("Unique request identifier (current timestamp in ms)."),
1636
1631
  ),
1637
1632
  /** Cryptographic signature. */
@@ -1677,7 +1672,7 @@ export const SetDisplayNameRequest = v.pipe(
1677
1672
  ),
1678
1673
  /** Unique request identifier (current timestamp in ms). */
1679
1674
  nonce: v.pipe(
1680
- UnsignedInteger,
1675
+ UnsignedIntegerMayInputString,
1681
1676
  v.description("Unique request identifier (current timestamp in ms)."),
1682
1677
  ),
1683
1678
  /** Cryptographic signature. */
@@ -1687,7 +1682,7 @@ export const SetDisplayNameRequest = v.pipe(
1687
1682
  ),
1688
1683
  /** Expiration time of the action. */
1689
1684
  expiresAfter: v.pipe(
1690
- v.optional(UnsignedInteger),
1685
+ v.optional(UnsignedIntegerMayInputString),
1691
1686
  v.description("Expiration time of the action."),
1692
1687
  ),
1693
1688
  }),
@@ -1722,7 +1717,7 @@ export const SetReferrerRequest = v.pipe(
1722
1717
  ),
1723
1718
  /** Unique request identifier (current timestamp in ms). */
1724
1719
  nonce: v.pipe(
1725
- UnsignedInteger,
1720
+ UnsignedIntegerMayInputString,
1726
1721
  v.description("Unique request identifier (current timestamp in ms)."),
1727
1722
  ),
1728
1723
  /** Cryptographic signature. */
@@ -1732,7 +1727,7 @@ export const SetReferrerRequest = v.pipe(
1732
1727
  ),
1733
1728
  /** Expiration time of the action. */
1734
1729
  expiresAfter: v.pipe(
1735
- v.optional(UnsignedInteger),
1730
+ v.optional(UnsignedIntegerMayInputString),
1736
1731
  v.description("Expiration time of the action."),
1737
1732
  ),
1738
1733
  }),
@@ -1769,12 +1764,12 @@ export const SpotDeployRequest = v.pipe(
1769
1764
  v.object({
1770
1765
  /** Token identifier. */
1771
1766
  token: v.pipe(
1772
- UnsignedInteger,
1767
+ UnsignedIntegerMayInputString,
1773
1768
  v.description("Token identifier."),
1774
1769
  ),
1775
1770
  /** Maximum token supply. */
1776
1771
  maxSupply: v.pipe(
1777
- UnsignedDecimal,
1772
+ UnsignedDecimalMayInputNumber,
1778
1773
  v.description("Maximum token supply."),
1779
1774
  ),
1780
1775
  /** Set hyperliquidity balance to 0. */
@@ -1800,27 +1795,27 @@ export const SpotDeployRequest = v.pipe(
1800
1795
  v.object({
1801
1796
  /** Spot index (distinct from base token index). */
1802
1797
  spot: v.pipe(
1803
- UnsignedInteger,
1798
+ UnsignedIntegerMayInputString,
1804
1799
  v.description("Spot index (distinct from base token index)."),
1805
1800
  ),
1806
1801
  /** Starting price for liquidity seeding. */
1807
1802
  startPx: v.pipe(
1808
- UnsignedDecimal,
1803
+ UnsignedDecimalMayInputNumber,
1809
1804
  v.description("Starting price for liquidity seeding."),
1810
1805
  ),
1811
1806
  /** Order size as a float (not in wei). */
1812
1807
  orderSz: v.pipe(
1813
- UnsignedDecimal,
1808
+ UnsignedDecimalMayInputNumber,
1814
1809
  v.description("Order size as a float (not in wei)."),
1815
1810
  ),
1816
1811
  /** Total number of orders to place. */
1817
1812
  nOrders: v.pipe(
1818
- UnsignedInteger,
1813
+ UnsignedIntegerMayInputString,
1819
1814
  v.description("Total number of orders to place."),
1820
1815
  ),
1821
1816
  /** Number of levels to seed with USDC. */
1822
1817
  nSeededLevels: v.pipe(
1823
- v.optional(UnsignedInteger),
1818
+ v.optional(UnsignedIntegerMayInputString),
1824
1819
  v.description("Number of levels to seed with USDC."),
1825
1820
  ),
1826
1821
  }),
@@ -1842,8 +1837,8 @@ export const SpotDeployRequest = v.pipe(
1842
1837
  /** Tuple containing base and quote token indices. */
1843
1838
  tokens: v.pipe(
1844
1839
  v.tuple([
1845
- UnsignedInteger,
1846
- UnsignedInteger,
1840
+ UnsignedIntegerMayInputString,
1841
+ UnsignedIntegerMayInputString,
1847
1842
  ]),
1848
1843
  v.description("Tuple containing base and quote token indices."),
1849
1844
  ),
@@ -1873,12 +1868,12 @@ export const SpotDeployRequest = v.pipe(
1873
1868
  ),
1874
1869
  /** Number of decimals for token size. */
1875
1870
  szDecimals: v.pipe(
1876
- UnsignedInteger,
1871
+ UnsignedIntegerMayInputString,
1877
1872
  v.description("Number of decimals for token size."),
1878
1873
  ),
1879
1874
  /** Number of decimals for token amounts in wei. */
1880
1875
  weiDecimals: v.pipe(
1881
- UnsignedInteger,
1876
+ UnsignedIntegerMayInputString,
1882
1877
  v.description("Number of decimals for token amounts in wei."),
1883
1878
  ),
1884
1879
  }),
@@ -1886,7 +1881,7 @@ export const SpotDeployRequest = v.pipe(
1886
1881
  ),
1887
1882
  /** Maximum gas allowed for registration. */
1888
1883
  maxGas: v.pipe(
1889
- UnsignedInteger,
1884
+ UnsignedIntegerMayInputString,
1890
1885
  v.description("Maximum gas allowed for registration."),
1891
1886
  ),
1892
1887
  /** Optional full token name. */
@@ -1912,7 +1907,7 @@ export const SpotDeployRequest = v.pipe(
1912
1907
  v.object({
1913
1908
  /** Token identifier. */
1914
1909
  token: v.pipe(
1915
- UnsignedInteger,
1910
+ UnsignedIntegerMayInputString,
1916
1911
  v.description("Token identifier."),
1917
1912
  ),
1918
1913
  /** The deployer trading fee share. Range is 0% to 100%. */
@@ -1938,20 +1933,20 @@ export const SpotDeployRequest = v.pipe(
1938
1933
  v.object({
1939
1934
  /** Token identifier. */
1940
1935
  token: v.pipe(
1941
- UnsignedInteger,
1936
+ UnsignedIntegerMayInputString,
1942
1937
  v.description("Token identifier."),
1943
1938
  ),
1944
1939
  /** Array of tuples: [user address, genesis amount in wei]. */
1945
1940
  userAndWei: v.pipe(
1946
- v.array(v.tuple([v.pipe(Hex, v.length(42)), UnsignedDecimal])),
1941
+ v.array(v.tuple([v.pipe(Hex, v.length(42)), UnsignedDecimalMayInputNumber])),
1947
1942
  v.description("Array of tuples: [user address, genesis amount in wei]."),
1948
1943
  ),
1949
1944
  /** Array of tuples: [existing token identifier, genesis amount in wei]. */
1950
1945
  existingTokenAndWei: v.pipe(
1951
1946
  v.array(
1952
1947
  v.tuple([
1953
- UnsignedInteger,
1954
- UnsignedDecimal,
1948
+ UnsignedIntegerMayInputString,
1949
+ UnsignedDecimalMayInputNumber,
1955
1950
  ]),
1956
1951
  ),
1957
1952
  v.description(
@@ -1976,7 +1971,7 @@ export const SpotDeployRequest = v.pipe(
1976
1971
  ),
1977
1972
  /** Unique request identifier (current timestamp in ms). */
1978
1973
  nonce: v.pipe(
1979
- UnsignedInteger,
1974
+ UnsignedIntegerMayInputString,
1980
1975
  v.description("Unique request identifier (current timestamp in ms)."),
1981
1976
  ),
1982
1977
  /** Cryptographic signature. */
@@ -1986,7 +1981,7 @@ export const SpotDeployRequest = v.pipe(
1986
1981
  ),
1987
1982
  /** Expiration time of the action. */
1988
1983
  expiresAfter: v.pipe(
1989
- v.optional(UnsignedInteger),
1984
+ v.optional(UnsignedIntegerMayInputString),
1990
1985
  v.description("Expiration time of the action."),
1991
1986
  ),
1992
1987
  }),
@@ -2040,12 +2035,12 @@ export const SpotSendRequest = v.pipe(
2040
2035
  ),
2041
2036
  /** Amount to send (not in wei). */
2042
2037
  amount: v.pipe(
2043
- UnsignedDecimal,
2038
+ UnsignedDecimalMayInputNumber,
2044
2039
  v.description("Amount to send (not in wei)."),
2045
2040
  ),
2046
2041
  /** Unique request identifier (current timestamp in ms). */
2047
2042
  time: v.pipe(
2048
- UnsignedInteger,
2043
+ UnsignedIntegerMayInputString,
2049
2044
  v.description("Unique request identifier (current timestamp in ms)."),
2050
2045
  ),
2051
2046
  }),
@@ -2053,7 +2048,7 @@ export const SpotSendRequest = v.pipe(
2053
2048
  ),
2054
2049
  /** Unique request identifier (current timestamp in ms). */
2055
2050
  nonce: v.pipe(
2056
- UnsignedInteger,
2051
+ UnsignedIntegerMayInputString,
2057
2052
  v.description("Unique request identifier (current timestamp in ms)."),
2058
2053
  ),
2059
2054
  /** Cryptographic signature. */
@@ -2098,7 +2093,7 @@ export const SpotUserRequest = v.pipe(
2098
2093
  ),
2099
2094
  /** Unique request identifier (current timestamp in ms). */
2100
2095
  nonce: v.pipe(
2101
- UnsignedInteger,
2096
+ UnsignedIntegerMayInputString,
2102
2097
  v.description("Unique request identifier (current timestamp in ms)."),
2103
2098
  ),
2104
2099
  /** Cryptographic signature. */
@@ -2108,7 +2103,7 @@ export const SpotUserRequest = v.pipe(
2108
2103
  ),
2109
2104
  /** Expiration time of the action. */
2110
2105
  expiresAfter: v.pipe(
2111
- v.optional(UnsignedInteger),
2106
+ v.optional(UnsignedIntegerMayInputString),
2112
2107
  v.description("Expiration time of the action."),
2113
2108
  ),
2114
2109
  }),
@@ -2148,7 +2143,7 @@ export const SubAccountModifyRequest = v.pipe(
2148
2143
  ),
2149
2144
  /** Unique request identifier (current timestamp in ms). */
2150
2145
  nonce: v.pipe(
2151
- UnsignedInteger,
2146
+ UnsignedIntegerMayInputString,
2152
2147
  v.description("Unique request identifier (current timestamp in ms)."),
2153
2148
  ),
2154
2149
  /** Cryptographic signature. */
@@ -2158,7 +2153,7 @@ export const SubAccountModifyRequest = v.pipe(
2158
2153
  ),
2159
2154
  /** Expiration time of the action. */
2160
2155
  expiresAfter: v.pipe(
2161
- v.optional(UnsignedInteger),
2156
+ v.optional(UnsignedIntegerMayInputString),
2162
2157
  v.description("Expiration time of the action."),
2163
2158
  ),
2164
2159
  }),
@@ -2199,7 +2194,7 @@ export const SubAccountSpotTransferRequest = v.pipe(
2199
2194
  ),
2200
2195
  /** Amount to send (not in wei). */
2201
2196
  amount: v.pipe(
2202
- UnsignedDecimal,
2197
+ UnsignedDecimalMayInputNumber,
2203
2198
  v.description("Amount to send (not in wei)."),
2204
2199
  ),
2205
2200
  }),
@@ -2207,7 +2202,7 @@ export const SubAccountSpotTransferRequest = v.pipe(
2207
2202
  ),
2208
2203
  /** Unique request identifier (current timestamp in ms). */
2209
2204
  nonce: v.pipe(
2210
- UnsignedInteger,
2205
+ UnsignedIntegerMayInputString,
2211
2206
  v.description("Unique request identifier (current timestamp in ms)."),
2212
2207
  ),
2213
2208
  /** Cryptographic signature. */
@@ -2217,7 +2212,7 @@ export const SubAccountSpotTransferRequest = v.pipe(
2217
2212
  ),
2218
2213
  /** Expiration time of the action. */
2219
2214
  expiresAfter: v.pipe(
2220
- v.optional(UnsignedInteger),
2215
+ v.optional(UnsignedIntegerMayInputString),
2221
2216
  v.description("Expiration time of the action."),
2222
2217
  ),
2223
2218
  }),
@@ -2253,7 +2248,7 @@ export const SubAccountTransferRequest = v.pipe(
2253
2248
  ),
2254
2249
  /** Amount to transfer (float * 1e6). */
2255
2250
  usd: v.pipe(
2256
- UnsignedInteger,
2251
+ UnsignedIntegerMayInputString,
2257
2252
  v.description("Amount to transfer (float * 1e6)."),
2258
2253
  ),
2259
2254
  }),
@@ -2261,7 +2256,7 @@ export const SubAccountTransferRequest = v.pipe(
2261
2256
  ),
2262
2257
  /** Unique request identifier (current timestamp in ms). */
2263
2258
  nonce: v.pipe(
2264
- UnsignedInteger,
2259
+ UnsignedIntegerMayInputString,
2265
2260
  v.description("Unique request identifier (current timestamp in ms)."),
2266
2261
  ),
2267
2262
  /** Cryptographic signature. */
@@ -2271,7 +2266,7 @@ export const SubAccountTransferRequest = v.pipe(
2271
2266
  ),
2272
2267
  /** Expiration time of the action. */
2273
2268
  expiresAfter: v.pipe(
2274
- v.optional(UnsignedInteger),
2269
+ v.optional(UnsignedIntegerMayInputString),
2275
2270
  v.description("Expiration time of the action."),
2276
2271
  ),
2277
2272
  }),
@@ -2312,7 +2307,7 @@ export const TokenDelegateRequest = v.pipe(
2312
2307
  ),
2313
2308
  /** Amount for delegate/undelegate (float * 1e8). */
2314
2309
  wei: v.pipe(
2315
- UnsignedInteger,
2310
+ UnsignedIntegerMayInputString,
2316
2311
  v.description("Amount for delegate/undelegate (float * 1e8)."),
2317
2312
  ),
2318
2313
  /** `true` for undelegate, `false` for delegate. */
@@ -2322,7 +2317,7 @@ export const TokenDelegateRequest = v.pipe(
2322
2317
  ),
2323
2318
  /** Unique request identifier (current timestamp in ms). */
2324
2319
  nonce: v.pipe(
2325
- UnsignedInteger,
2320
+ UnsignedIntegerMayInputString,
2326
2321
  v.description("Unique request identifier (current timestamp in ms)."),
2327
2322
  ),
2328
2323
  }),
@@ -2330,7 +2325,7 @@ export const TokenDelegateRequest = v.pipe(
2330
2325
  ),
2331
2326
  /** Unique request identifier (current timestamp in ms). */
2332
2327
  nonce: v.pipe(
2333
- UnsignedInteger,
2328
+ UnsignedIntegerMayInputString,
2334
2329
  v.description("Unique request identifier (current timestamp in ms)."),
2335
2330
  ),
2336
2331
  /** Cryptographic signature. */
@@ -2361,12 +2356,12 @@ export const TwapCancelRequest = v.pipe(
2361
2356
  ),
2362
2357
  /** Asset ID. */
2363
2358
  a: v.pipe(
2364
- UnsignedInteger,
2359
+ UnsignedIntegerMayInputString,
2365
2360
  v.description("Asset ID."),
2366
2361
  ),
2367
2362
  /** Twap ID. */
2368
2363
  t: v.pipe(
2369
- UnsignedInteger,
2364
+ UnsignedIntegerMayInputString,
2370
2365
  v.description("Twap ID."),
2371
2366
  ),
2372
2367
  }),
@@ -2374,7 +2369,7 @@ export const TwapCancelRequest = v.pipe(
2374
2369
  ),
2375
2370
  /** Unique request identifier (current timestamp in ms). */
2376
2371
  nonce: v.pipe(
2377
- UnsignedInteger,
2372
+ UnsignedIntegerMayInputString,
2378
2373
  v.description("Unique request identifier (current timestamp in ms)."),
2379
2374
  ),
2380
2375
  /** Cryptographic signature. */
@@ -2389,7 +2384,7 @@ export const TwapCancelRequest = v.pipe(
2389
2384
  ),
2390
2385
  /** Expiration time of the action. */
2391
2386
  expiresAfter: v.pipe(
2392
- v.optional(UnsignedInteger),
2387
+ v.optional(UnsignedIntegerMayInputString),
2393
2388
  v.description("Expiration time of the action."),
2394
2389
  ),
2395
2390
  }),
@@ -2418,7 +2413,7 @@ export const TwapOrderRequest = v.pipe(
2418
2413
  v.object({
2419
2414
  /** Asset ID. */
2420
2415
  a: v.pipe(
2421
- UnsignedInteger,
2416
+ UnsignedIntegerMayInputString,
2422
2417
  v.description("Asset ID."),
2423
2418
  ),
2424
2419
  /** Position side (`true` for long, `false` for short). */
@@ -2428,7 +2423,7 @@ export const TwapOrderRequest = v.pipe(
2428
2423
  ),
2429
2424
  /** Size (in base currency units). */
2430
2425
  s: v.pipe(
2431
- UnsignedDecimal,
2426
+ UnsignedDecimalMayInputNumber,
2432
2427
  v.description("Size (in base currency units)."),
2433
2428
  ),
2434
2429
  /** Is reduce-only? */
@@ -2438,7 +2433,7 @@ export const TwapOrderRequest = v.pipe(
2438
2433
  ),
2439
2434
  /** TWAP duration in minutes. */
2440
2435
  m: v.pipe(
2441
- UnsignedInteger,
2436
+ UnsignedIntegerMayInputString,
2442
2437
  v.description("TWAP duration in minutes."),
2443
2438
  ),
2444
2439
  /** Enable random order timing. */
@@ -2454,7 +2449,7 @@ export const TwapOrderRequest = v.pipe(
2454
2449
  ),
2455
2450
  /** Unique request identifier (current timestamp in ms). */
2456
2451
  nonce: v.pipe(
2457
- UnsignedInteger,
2452
+ UnsignedIntegerMayInputString,
2458
2453
  v.description("Unique request identifier (current timestamp in ms)."),
2459
2454
  ),
2460
2455
  /** Cryptographic signature. */
@@ -2469,7 +2464,7 @@ export const TwapOrderRequest = v.pipe(
2469
2464
  ),
2470
2465
  /** Expiration time of the action. */
2471
2466
  expiresAfter: v.pipe(
2472
- v.optional(UnsignedInteger),
2467
+ v.optional(UnsignedIntegerMayInputString),
2473
2468
  v.description("Expiration time of the action."),
2474
2469
  ),
2475
2470
  }),
@@ -2495,7 +2490,7 @@ export const UpdateIsolatedMarginRequest = v.pipe(
2495
2490
  ),
2496
2491
  /** Asset ID. */
2497
2492
  asset: v.pipe(
2498
- UnsignedInteger,
2493
+ UnsignedIntegerMayInputString,
2499
2494
  v.description("Asset ID."),
2500
2495
  ),
2501
2496
  /** Position side (`true` for long, `false` for short). */
@@ -2505,7 +2500,7 @@ export const UpdateIsolatedMarginRequest = v.pipe(
2505
2500
  ),
2506
2501
  /** Amount to adjust (float * 1e6). */
2507
2502
  ntli: v.pipe(
2508
- UnsignedInteger,
2503
+ UnsignedIntegerMayInputString,
2509
2504
  v.description("Amount to adjust (float * 1e6)."),
2510
2505
  ),
2511
2506
  }),
@@ -2513,7 +2508,7 @@ export const UpdateIsolatedMarginRequest = v.pipe(
2513
2508
  ),
2514
2509
  /** Unique request identifier (current timestamp in ms). */
2515
2510
  nonce: v.pipe(
2516
- UnsignedInteger,
2511
+ UnsignedIntegerMayInputString,
2517
2512
  v.description("Unique request identifier (current timestamp in ms)."),
2518
2513
  ),
2519
2514
  /** Cryptographic signature. */
@@ -2528,7 +2523,7 @@ export const UpdateIsolatedMarginRequest = v.pipe(
2528
2523
  ),
2529
2524
  /** Expiration time of the action. */
2530
2525
  expiresAfter: v.pipe(
2531
- v.optional(UnsignedInteger),
2526
+ v.optional(UnsignedIntegerMayInputString),
2532
2527
  v.description("Expiration time of the action."),
2533
2528
  ),
2534
2529
  }),
@@ -2554,7 +2549,7 @@ export const UpdateLeverageRequest = v.pipe(
2554
2549
  ),
2555
2550
  /** Asset ID. */
2556
2551
  asset: v.pipe(
2557
- UnsignedInteger,
2552
+ UnsignedIntegerMayInputString,
2558
2553
  v.description("Asset ID."),
2559
2554
  ),
2560
2555
  /** `true` for cross leverage, `false` for isolated leverage. */
@@ -2564,7 +2559,7 @@ export const UpdateLeverageRequest = v.pipe(
2564
2559
  ),
2565
2560
  /** New leverage value. */
2566
2561
  leverage: v.pipe(
2567
- v.pipe(UnsignedInteger, v.minValue(1)),
2562
+ v.pipe(UnsignedIntegerMayInputString, v.minValue(1)),
2568
2563
  v.description("New leverage value."),
2569
2564
  ),
2570
2565
  }),
@@ -2572,7 +2567,7 @@ export const UpdateLeverageRequest = v.pipe(
2572
2567
  ),
2573
2568
  /** Unique request identifier (current timestamp in ms). */
2574
2569
  nonce: v.pipe(
2575
- UnsignedInteger,
2570
+ UnsignedIntegerMayInputString,
2576
2571
  v.description("Unique request identifier (current timestamp in ms)."),
2577
2572
  ),
2578
2573
  /** Cryptographic signature. */
@@ -2587,7 +2582,7 @@ export const UpdateLeverageRequest = v.pipe(
2587
2582
  ),
2588
2583
  /** Expiration time of the action. */
2589
2584
  expiresAfter: v.pipe(
2590
- v.optional(UnsignedInteger),
2585
+ v.optional(UnsignedIntegerMayInputString),
2591
2586
  v.description("Expiration time of the action."),
2592
2587
  ),
2593
2588
  }),
@@ -2623,7 +2618,7 @@ export const UsdClassTransferRequest = v.pipe(
2623
2618
  ),
2624
2619
  /** Amount to transfer (1 = 1$). */
2625
2620
  amount: v.pipe(
2626
- UnsignedDecimal,
2621
+ UnsignedDecimalMayInputNumber,
2627
2622
  v.description("Amount to transfer (1 = 1$)."),
2628
2623
  ),
2629
2624
  /** `true` for Spot to Perp, `false` for Perp to Spot. */
@@ -2633,7 +2628,7 @@ export const UsdClassTransferRequest = v.pipe(
2633
2628
  ),
2634
2629
  /** Unique request identifier (current timestamp in ms). */
2635
2630
  nonce: v.pipe(
2636
- UnsignedInteger,
2631
+ UnsignedIntegerMayInputString,
2637
2632
  v.description("Unique request identifier (current timestamp in ms)."),
2638
2633
  ),
2639
2634
  }),
@@ -2641,7 +2636,7 @@ export const UsdClassTransferRequest = v.pipe(
2641
2636
  ),
2642
2637
  /** Unique request identifier (current timestamp in ms). */
2643
2638
  nonce: v.pipe(
2644
- UnsignedInteger,
2639
+ UnsignedIntegerMayInputString,
2645
2640
  v.description("Unique request identifier (current timestamp in ms)."),
2646
2641
  ),
2647
2642
  /** Cryptographic signature. */
@@ -2687,12 +2682,12 @@ export const UsdSendRequest = v.pipe(
2687
2682
  ),
2688
2683
  /** Amount to send (1 = 1$). */
2689
2684
  amount: v.pipe(
2690
- UnsignedDecimal,
2685
+ UnsignedDecimalMayInputNumber,
2691
2686
  v.description("Amount to send (1 = 1$)."),
2692
2687
  ),
2693
2688
  /** Unique request identifier (current timestamp in ms). */
2694
2689
  time: v.pipe(
2695
- UnsignedInteger,
2690
+ UnsignedIntegerMayInputString,
2696
2691
  v.description("Unique request identifier (current timestamp in ms)."),
2697
2692
  ),
2698
2693
  }),
@@ -2700,7 +2695,7 @@ export const UsdSendRequest = v.pipe(
2700
2695
  ),
2701
2696
  /** Unique request identifier (current timestamp in ms). */
2702
2697
  nonce: v.pipe(
2703
- UnsignedInteger,
2698
+ UnsignedIntegerMayInputString,
2704
2699
  v.description("Unique request identifier (current timestamp in ms)."),
2705
2700
  ),
2706
2701
  /** Cryptographic signature. */
@@ -2740,7 +2735,7 @@ export const VaultDistributeRequest = v.pipe(
2740
2735
  * Set to 0 to close the vault.
2741
2736
  */
2742
2737
  usd: v.pipe(
2743
- UnsignedInteger,
2738
+ UnsignedIntegerMayInputString,
2744
2739
  v.description(
2745
2740
  "Amount to distribute (float * 1e6)." +
2746
2741
  "\n\nSet to 0 to close the vault.",
@@ -2751,7 +2746,7 @@ export const VaultDistributeRequest = v.pipe(
2751
2746
  ),
2752
2747
  /** Unique request identifier (current timestamp in ms). */
2753
2748
  nonce: v.pipe(
2754
- UnsignedInteger,
2749
+ UnsignedIntegerMayInputString,
2755
2750
  v.description("Unique request identifier (current timestamp in ms)."),
2756
2751
  ),
2757
2752
  /** Cryptographic signature. */
@@ -2761,7 +2756,7 @@ export const VaultDistributeRequest = v.pipe(
2761
2756
  ),
2762
2757
  /** Expiration time of the action. */
2763
2758
  expiresAfter: v.pipe(
2764
- v.optional(UnsignedInteger),
2759
+ v.optional(UnsignedIntegerMayInputString),
2765
2760
  v.description("Expiration time of the action."),
2766
2761
  ),
2767
2762
  }),
@@ -2805,7 +2800,7 @@ export const VaultModifyRequest = v.pipe(
2805
2800
  ),
2806
2801
  /** Unique request identifier (current timestamp in ms). */
2807
2802
  nonce: v.pipe(
2808
- UnsignedInteger,
2803
+ UnsignedIntegerMayInputString,
2809
2804
  v.description("Unique request identifier (current timestamp in ms)."),
2810
2805
  ),
2811
2806
  /** Cryptographic signature. */
@@ -2815,7 +2810,7 @@ export const VaultModifyRequest = v.pipe(
2815
2810
  ),
2816
2811
  /** Expiration time of the action. */
2817
2812
  expiresAfter: v.pipe(
2818
- v.optional(UnsignedInteger),
2813
+ v.optional(UnsignedIntegerMayInputString),
2819
2814
  v.description("Expiration time of the action."),
2820
2815
  ),
2821
2816
  }),
@@ -2851,7 +2846,7 @@ export const VaultTransferRequest = v.pipe(
2851
2846
  ),
2852
2847
  /** Amount for deposit/withdrawal (float * 1e6). */
2853
2848
  usd: v.pipe(
2854
- UnsignedInteger,
2849
+ UnsignedIntegerMayInputString,
2855
2850
  v.description("Amount for deposit/withdrawal (float * 1e6)."),
2856
2851
  ),
2857
2852
  }),
@@ -2859,7 +2854,7 @@ export const VaultTransferRequest = v.pipe(
2859
2854
  ),
2860
2855
  /** Unique request identifier (current timestamp in ms). */
2861
2856
  nonce: v.pipe(
2862
- UnsignedInteger,
2857
+ UnsignedIntegerMayInputString,
2863
2858
  v.description("Unique request identifier (current timestamp in ms)."),
2864
2859
  ),
2865
2860
  /** Cryptographic signature. */
@@ -2869,7 +2864,7 @@ export const VaultTransferRequest = v.pipe(
2869
2864
  ),
2870
2865
  /** Expiration time of the action. */
2871
2866
  expiresAfter: v.pipe(
2872
- v.optional(UnsignedInteger),
2867
+ v.optional(UnsignedIntegerMayInputString),
2873
2868
  v.description("Expiration time of the action."),
2874
2869
  ),
2875
2870
  }),
@@ -2910,12 +2905,12 @@ export const Withdraw3Request = v.pipe(
2910
2905
  ),
2911
2906
  /** Amount to withdraw (1 = 1$). */
2912
2907
  amount: v.pipe(
2913
- UnsignedDecimal,
2908
+ UnsignedDecimalMayInputNumber,
2914
2909
  v.description("Amount to withdraw (1 = 1$)."),
2915
2910
  ),
2916
2911
  /** Unique request identifier (current timestamp in ms). */
2917
2912
  time: v.pipe(
2918
- UnsignedInteger,
2913
+ UnsignedIntegerMayInputString,
2919
2914
  v.description("Unique request identifier (current timestamp in ms)."),
2920
2915
  ),
2921
2916
  }),
@@ -2923,7 +2918,7 @@ export const Withdraw3Request = v.pipe(
2923
2918
  ),
2924
2919
  /** Unique request identifier (current timestamp in ms). */
2925
2920
  nonce: v.pipe(
2926
- UnsignedInteger,
2921
+ UnsignedIntegerMayInputString,
2927
2922
  v.description("Unique request identifier (current timestamp in ms)."),
2928
2923
  ),
2929
2924
  /** Cryptographic signature. */
@@ -3032,7 +3027,7 @@ export const MultiSigRequest = v.pipe(
3032
3027
  ),
3033
3028
  /** Unique request identifier (current timestamp in ms). */
3034
3029
  nonce: v.pipe(
3035
- UnsignedInteger,
3030
+ UnsignedIntegerMayInputString,
3036
3031
  v.description("Unique request identifier (current timestamp in ms)."),
3037
3032
  ),
3038
3033
  /** Cryptographic signature. */
@@ -3047,7 +3042,7 @@ export const MultiSigRequest = v.pipe(
3047
3042
  ),
3048
3043
  /** Expiration time of the action. */
3049
3044
  expiresAfter: v.pipe(
3050
- v.optional(UnsignedInteger),
3045
+ v.optional(UnsignedIntegerMayInputString),
3051
3046
  v.description("Expiration time of the action."),
3052
3047
  ),
3053
3048
  }),