@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.
- package/README.md +18 -2
- package/esm/bin/cli.d.ts +3 -0
- package/esm/bin/cli.d.ts.map +1 -0
- package/esm/bin/cli.js +452 -0
- package/esm/bin/cli.js.map +1 -0
- package/esm/src/{errors.d.ts → _errors.d.ts} +1 -1
- package/esm/src/_errors.d.ts.map +1 -0
- package/esm/src/{errors.js → _errors.js} +1 -1
- package/esm/src/_errors.js.map +1 -0
- package/esm/src/clients/exchange.d.ts +4 -4
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +4 -4
- package/esm/src/clients/exchange.js.map +1 -1
- package/esm/src/clients/info.d.ts +23 -1
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +27 -1
- package/esm/src/clients/info.js.map +1 -1
- package/esm/src/clients/multiSign.d.ts +1 -1
- package/esm/src/clients/multiSign.d.ts.map +1 -1
- package/esm/src/clients/multiSign.js +1 -1
- package/esm/src/clients/multiSign.js.map +1 -1
- package/esm/src/mod.d.ts +21 -0
- package/esm/src/mod.d.ts.map +1 -0
- package/esm/src/mod.js +14 -0
- package/esm/src/mod.js.map +1 -0
- package/esm/src/schemas/_base.d.ts +8 -4
- package/esm/src/schemas/_base.d.ts.map +1 -1
- package/esm/src/schemas/_base.js +27 -2
- package/esm/src/schemas/_base.js.map +1 -1
- package/esm/src/schemas/exchange/requests.d.ts +1598 -1598
- package/esm/src/schemas/exchange/requests.d.ts.map +1 -1
- package/esm/src/schemas/exchange/requests.js +150 -155
- package/esm/src/schemas/exchange/requests.js.map +1 -1
- package/esm/src/schemas/exchange/responses.d.ts +4 -4
- package/esm/src/schemas/explorer/requests.d.ts +2 -2
- package/esm/src/schemas/explorer/requests.js +2 -2
- package/esm/src/schemas/explorer/requests.js.map +1 -1
- package/esm/src/schemas/info/accounts.d.ts +941 -195
- package/esm/src/schemas/info/accounts.d.ts.map +1 -1
- package/esm/src/schemas/info/accounts.js +44 -0
- package/esm/src/schemas/info/accounts.js.map +1 -1
- package/esm/src/schemas/info/assets.d.ts +64 -64
- package/esm/src/schemas/info/markets.d.ts +16 -16
- package/esm/src/schemas/info/orders.d.ts +137 -137
- package/esm/src/schemas/info/requests.d.ts +47 -32
- package/esm/src/schemas/info/requests.d.ts.map +1 -1
- package/esm/src/schemas/info/requests.js +28 -17
- package/esm/src/schemas/info/requests.js.map +1 -1
- package/esm/src/schemas/info/validators.d.ts +19 -19
- package/esm/src/schemas/info/validators.d.ts.map +1 -1
- package/esm/src/schemas/info/validators.js +2 -2
- package/esm/src/schemas/info/validators.js.map +1 -1
- package/esm/src/schemas/info/vaults.d.ts +35 -35
- package/esm/src/schemas/mod.d.ts +3 -3
- package/esm/src/schemas/mod.d.ts.map +1 -1
- package/esm/src/schemas/mod.js +3 -3
- package/esm/src/schemas/mod.js.map +1 -1
- package/esm/src/schemas/subscriptions/requests.d.ts +2 -2
- package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/esm/src/schemas/subscriptions/requests.js +3 -3
- package/esm/src/schemas/subscriptions/requests.js.map +1 -1
- package/esm/src/schemas/subscriptions/responses.d.ts +488 -488
- package/esm/src/signing/mod.d.ts +1 -1
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +2 -2
- package/esm/src/signing/mod.js.map +1 -1
- package/esm/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/ethers.js.map +1 -0
- package/esm/src/signing/signTypedData/mod.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/mod.js.map +1 -0
- package/esm/src/signing/signTypedData/private_key.d.ts.map +1 -0
- package/esm/src/signing/{_signTypedData → signTypedData}/private_key.js +9 -8
- package/esm/src/signing/signTypedData/private_key.js.map +1 -0
- package/esm/src/signing/signTypedData/viem.d.ts.map +1 -0
- package/esm/src/signing/signTypedData/viem.js.map +1 -0
- package/esm/src/transports/base.d.ts +2 -2
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +2 -2
- package/esm/src/transports/base.js.map +1 -1
- package/package.json +15 -7
- package/script/bin/cli.d.ts +3 -0
- package/script/bin/cli.d.ts.map +1 -0
- package/script/bin/cli.js +490 -0
- package/script/bin/cli.js.map +1 -0
- package/script/src/{errors.d.ts → _errors.d.ts} +1 -1
- package/script/src/_errors.d.ts.map +1 -0
- package/script/src/{errors.js → _errors.js} +1 -1
- package/script/src/_errors.js.map +1 -0
- package/script/src/clients/exchange.d.ts +4 -4
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +5 -5
- package/script/src/clients/exchange.js.map +1 -1
- package/script/src/clients/info.d.ts +23 -1
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +26 -0
- package/script/src/clients/info.js.map +1 -1
- package/script/src/clients/multiSign.d.ts +1 -1
- package/script/src/clients/multiSign.d.ts.map +1 -1
- package/script/src/clients/multiSign.js +1 -1
- package/script/src/clients/multiSign.js.map +1 -1
- package/script/src/mod.d.ts +21 -0
- package/script/src/mod.d.ts.map +1 -0
- package/script/{mod.js → src/mod.js} +12 -8
- package/script/src/mod.js.map +1 -0
- package/script/src/schemas/_base.d.ts +8 -4
- package/script/src/schemas/_base.d.ts.map +1 -1
- package/script/src/schemas/_base.js +28 -3
- package/script/src/schemas/_base.js.map +1 -1
- package/script/src/schemas/exchange/requests.d.ts +1598 -1598
- package/script/src/schemas/exchange/requests.d.ts.map +1 -1
- package/script/src/schemas/exchange/requests.js +149 -154
- package/script/src/schemas/exchange/requests.js.map +1 -1
- package/script/src/schemas/exchange/responses.d.ts +4 -4
- package/script/src/schemas/explorer/requests.d.ts +2 -2
- package/script/src/schemas/explorer/requests.js +1 -1
- package/script/src/schemas/explorer/requests.js.map +1 -1
- package/script/src/schemas/info/accounts.d.ts +941 -195
- package/script/src/schemas/info/accounts.d.ts.map +1 -1
- package/script/src/schemas/info/accounts.js +45 -1
- package/script/src/schemas/info/accounts.js.map +1 -1
- package/script/src/schemas/info/assets.d.ts +64 -64
- package/script/src/schemas/info/markets.d.ts +16 -16
- package/script/src/schemas/info/orders.d.ts +137 -137
- package/script/src/schemas/info/requests.d.ts +47 -32
- package/script/src/schemas/info/requests.d.ts.map +1 -1
- package/script/src/schemas/info/requests.js +28 -17
- package/script/src/schemas/info/requests.js.map +1 -1
- package/script/src/schemas/info/validators.d.ts +19 -19
- package/script/src/schemas/info/validators.d.ts.map +1 -1
- package/script/src/schemas/info/validators.js +2 -2
- package/script/src/schemas/info/validators.js.map +1 -1
- package/script/src/schemas/info/vaults.d.ts +35 -35
- package/script/src/schemas/mod.d.ts +3 -3
- package/script/src/schemas/mod.d.ts.map +1 -1
- package/script/src/schemas/mod.js +4 -4
- package/script/src/schemas/mod.js.map +1 -1
- package/script/src/schemas/subscriptions/requests.d.ts +2 -2
- package/script/src/schemas/subscriptions/requests.d.ts.map +1 -1
- package/script/src/schemas/subscriptions/requests.js +2 -2
- package/script/src/schemas/subscriptions/requests.js.map +1 -1
- package/script/src/schemas/subscriptions/responses.d.ts +488 -488
- package/script/src/signing/mod.d.ts +1 -1
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +3 -3
- package/script/src/signing/mod.js.map +1 -1
- package/script/src/signing/signTypedData/ethers.d.ts.map +1 -0
- package/script/src/signing/signTypedData/ethers.js.map +1 -0
- package/script/src/signing/signTypedData/mod.d.ts.map +1 -0
- package/script/src/signing/signTypedData/mod.js.map +1 -0
- package/script/src/signing/signTypedData/private_key.d.ts.map +1 -0
- package/script/src/signing/{_signTypedData → signTypedData}/private_key.js +16 -15
- package/script/src/signing/signTypedData/private_key.js.map +1 -0
- package/script/src/signing/signTypedData/viem.d.ts.map +1 -0
- package/script/src/signing/signTypedData/viem.js.map +1 -0
- package/script/src/transports/base.d.ts +2 -2
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +3 -3
- package/script/src/transports/base.js.map +1 -1
- package/src/bin/cli.ts +481 -0
- package/src/src/clients/exchange.ts +7 -7
- package/src/src/clients/info.ts +34 -0
- package/src/src/clients/multiSign.ts +2 -2
- package/src/src/mod.ts +29 -0
- package/src/src/schemas/_base.ts +45 -6
- package/src/src/schemas/exchange/requests.ts +150 -155
- package/src/src/schemas/explorer/requests.ts +2 -2
- package/src/src/schemas/info/accounts.ts +108 -0
- package/src/src/schemas/info/requests.ts +49 -17
- package/src/src/schemas/info/validators.ts +17 -19
- package/src/src/schemas/mod.ts +3 -3
- package/src/src/schemas/subscriptions/requests.ts +13 -3
- package/src/src/signing/mod.ts +2 -2
- package/src/src/signing/{_signTypedData → signTypedData}/private_key.ts +13 -8
- package/src/src/transports/base.ts +2 -2
- package/esm/mod.d.ts +0 -20
- package/esm/mod.d.ts.map +0 -1
- package/esm/mod.js +0 -12
- package/esm/mod.js.map +0 -1
- package/esm/src/errors.d.ts.map +0 -1
- package/esm/src/errors.js.map +0 -1
- package/esm/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/ethers.js.map +0 -1
- package/esm/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/mod.js.map +0 -1
- package/esm/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/private_key.js.map +0 -1
- package/esm/src/signing/_signTypedData/viem.d.ts.map +0 -1
- package/esm/src/signing/_signTypedData/viem.js.map +0 -1
- package/script/mod.d.ts +0 -20
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js.map +0 -1
- package/script/src/errors.d.ts.map +0 -1
- package/script/src/errors.js.map +0 -1
- package/script/src/signing/_signTypedData/ethers.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/ethers.js.map +0 -1
- package/script/src/signing/_signTypedData/mod.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/mod.js.map +0 -1
- package/script/src/signing/_signTypedData/private_key.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/private_key.js.map +0 -1
- package/script/src/signing/_signTypedData/viem.d.ts.map +0 -1
- package/script/src/signing/_signTypedData/viem.js.map +0 -1
- package/src/mod.ts +0 -28
- /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
- /package/esm/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
- /package/script/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
- /package/src/src/{errors.ts → _errors.ts} +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/ethers.ts +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/mod.ts +0 -0
- /package/src/src/signing/{_signTypedData → signTypedData}/viem.ts +0 -0
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.MultiSigRequest = exports.Withdraw3Request = exports.VaultTransferRequest = exports.VaultModifyRequest = exports.VaultDistributeRequest = exports.UsdSendRequest = exports.UsdClassTransferRequest = exports.UpdateLeverageRequest = exports.UpdateIsolatedMarginRequest = exports.TwapOrderRequest = exports.TwapCancelRequest = exports.TokenDelegateRequest = exports.SubAccountTransferRequest = exports.SubAccountSpotTransferRequest = exports.SubAccountModifyRequest = exports.SpotUserRequest = exports.SpotSendRequest = exports.SpotDeployRequest = exports.SetReferrerRequest = exports.SetDisplayNameRequest = exports.SendAssetRequest = exports.ScheduleCancelRequest = exports.ReserveRequestWeightRequest = exports.RegisterReferrerRequest = exports.PerpDeployRequest = exports.OrderRequest = exports.NoopRequest = exports.ModifyRequest = exports.EvmUserModifyRequest = exports.CWithdrawRequest = exports.CValidatorActionRequest = exports.CSignerActionRequest = exports.CreateVaultRequest = exports.CreateSubAccountRequest = exports.ConvertToMultiSigUserRequest = exports.ConvertToMultiSigUserRequestSigners = exports.ClaimRewardsRequest = exports.CDepositRequest = exports.CancelByCloidRequest = exports.CancelRequest = exports.BatchModifyRequest = exports.ApproveBuilderFeeRequest = exports.ApproveAgentRequest = exports.OrderParams = exports.Signature = void 0;
|
|
37
37
|
const v = __importStar(require("valibot"));
|
|
38
38
|
const _base_js_1 = require("../_base.js");
|
|
39
|
+
const orders_js_1 = require("../info/orders.js");
|
|
39
40
|
/** Deeply removes undefined keys from an object. */
|
|
40
41
|
function removeUndefinedKeys(obj) {
|
|
41
42
|
if (typeof obj !== "object" || obj === null) {
|
|
@@ -66,13 +67,13 @@ exports.Signature = v.pipe(v.object({
|
|
|
66
67
|
/** Order parameters. */
|
|
67
68
|
exports.OrderParams = v.pipe(v.object({
|
|
68
69
|
/** Asset ID. */
|
|
69
|
-
a: v.pipe(_base_js_1.
|
|
70
|
+
a: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
70
71
|
/** Position side (`true` for long, `false` for short). */
|
|
71
72
|
b: v.pipe(v.boolean(), v.description("Position side (`true` for long, `false` for short).")),
|
|
72
73
|
/** Price. */
|
|
73
|
-
p: v.pipe(_base_js_1.
|
|
74
|
+
p: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Price.")),
|
|
74
75
|
/** Size (in base currency units). */
|
|
75
|
-
s: v.pipe(_base_js_1.
|
|
76
|
+
s: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Size (in base currency units).")),
|
|
76
77
|
/** Is reduce-only? */
|
|
77
78
|
r: v.pipe(v.boolean(), v.description("Is reduce-only?")),
|
|
78
79
|
/** Order type. */
|
|
@@ -81,13 +82,7 @@ exports.OrderParams = v.pipe(v.object({
|
|
|
81
82
|
/** Limit order parameters. */
|
|
82
83
|
limit: v.pipe(v.object({
|
|
83
84
|
/** Time-in-force. */
|
|
84
|
-
tif: v.pipe(v.
|
|
85
|
-
v.literal("Gtc"),
|
|
86
|
-
v.literal("Ioc"),
|
|
87
|
-
v.literal("Alo"),
|
|
88
|
-
v.literal("FrontendMarket"),
|
|
89
|
-
v.literal("LiquidationMarket"),
|
|
90
|
-
]), v.description("Time-in-force.")),
|
|
85
|
+
tif: v.pipe(orders_js_1.TIF, v.description("Time-in-force.")),
|
|
91
86
|
}), v.description("Limit order parameters.")),
|
|
92
87
|
}),
|
|
93
88
|
v.object({
|
|
@@ -96,7 +91,7 @@ exports.OrderParams = v.pipe(v.object({
|
|
|
96
91
|
/** Is market order? */
|
|
97
92
|
isMarket: v.pipe(v.boolean(), v.description("Is market order?")),
|
|
98
93
|
/** Trigger price. */
|
|
99
|
-
triggerPx: v.pipe(_base_js_1.
|
|
94
|
+
triggerPx: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Trigger price.")),
|
|
100
95
|
/** Indicates whether it is take profit or stop loss. */
|
|
101
96
|
tpsl: v.pipe(v.union([v.literal("tp"), v.literal("sl")]), v.description("Indicates whether it is take profit or stop loss.")),
|
|
102
97
|
}), v.description("Trigger order parameters.")),
|
|
@@ -124,10 +119,10 @@ exports.ApproveAgentRequest = v.pipe(v.object({
|
|
|
124
119
|
/** Agent name or null for unnamed agent. */
|
|
125
120
|
agentName: v.pipe(v.nullable(v.string()), v.description("Agent name or null for unnamed agent.")),
|
|
126
121
|
/** Unique request identifier (current timestamp in ms). */
|
|
127
|
-
nonce: v.pipe(_base_js_1.
|
|
122
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
128
123
|
}), v.description("Action to perform.")),
|
|
129
124
|
/** Unique request identifier (current timestamp in ms). */
|
|
130
|
-
nonce: v.pipe(_base_js_1.
|
|
125
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
131
126
|
/** Cryptographic signature. */
|
|
132
127
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
133
128
|
}), v.transform(removeUndefinedKeys), v.description("Approve an agent to sign on behalf of the master account."));
|
|
@@ -150,10 +145,10 @@ exports.ApproveBuilderFeeRequest = v.pipe(v.object({
|
|
|
150
145
|
/** Builder address. */
|
|
151
146
|
builder: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Builder address.")),
|
|
152
147
|
/** Unique request identifier (current timestamp in ms). */
|
|
153
|
-
nonce: v.pipe(_base_js_1.
|
|
148
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
154
149
|
}), v.description("Action to perform.")),
|
|
155
150
|
/** Unique request identifier (current timestamp in ms). */
|
|
156
|
-
nonce: v.pipe(_base_js_1.
|
|
151
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
157
152
|
/** Cryptographic signature. */
|
|
158
153
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
159
154
|
}), v.transform(removeUndefinedKeys), v.description("Approve a maximum fee rate for a builder."));
|
|
@@ -171,7 +166,7 @@ exports.BatchModifyRequest = v.pipe(v.object({
|
|
|
171
166
|
modifies: v.pipe(v.array(v.object({
|
|
172
167
|
/** Order ID or Client Order ID. */
|
|
173
168
|
oid: v.pipe(v.union([
|
|
174
|
-
_base_js_1.
|
|
169
|
+
_base_js_1.UnsignedIntegerMayInputString,
|
|
175
170
|
v.pipe(_base_js_1.Hex, v.length(34)),
|
|
176
171
|
]), v.description("Order ID or Client Order ID.")),
|
|
177
172
|
/** New order parameters. */
|
|
@@ -179,13 +174,13 @@ exports.BatchModifyRequest = v.pipe(v.object({
|
|
|
179
174
|
})), v.description("Order modifications.")),
|
|
180
175
|
}), v.description("Action to perform.")),
|
|
181
176
|
/** Unique request identifier (current timestamp in ms). */
|
|
182
|
-
nonce: v.pipe(_base_js_1.
|
|
177
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
183
178
|
/** Cryptographic signature. */
|
|
184
179
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
185
180
|
/** Vault address (for vault trading). */
|
|
186
181
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
187
182
|
/** Expiration time of the action. */
|
|
188
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
183
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
189
184
|
}), v.transform(removeUndefinedKeys), v.description("Modify multiple orders."));
|
|
190
185
|
/**
|
|
191
186
|
* Cancel order(s).
|
|
@@ -200,19 +195,19 @@ exports.CancelRequest = v.pipe(v.object({
|
|
|
200
195
|
/** Orders to cancel. */
|
|
201
196
|
cancels: v.pipe(v.array(v.object({
|
|
202
197
|
/** Asset ID. */
|
|
203
|
-
a: v.pipe(_base_js_1.
|
|
198
|
+
a: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
204
199
|
/** Order ID. */
|
|
205
|
-
o: v.pipe(_base_js_1.
|
|
200
|
+
o: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Order ID.")),
|
|
206
201
|
})), v.description("Orders to cancel.")),
|
|
207
202
|
}), v.description("Action to perform.")),
|
|
208
203
|
/** Unique request identifier (current timestamp in ms). */
|
|
209
|
-
nonce: v.pipe(_base_js_1.
|
|
204
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
210
205
|
/** Cryptographic signature. */
|
|
211
206
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
212
207
|
/** Vault address (for vault trading). */
|
|
213
208
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
214
209
|
/** Expiration time of the action. */
|
|
215
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
210
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
216
211
|
}), v.transform(removeUndefinedKeys), v.description("Cancel order(s)."));
|
|
217
212
|
/**
|
|
218
213
|
* Cancel order(s) by cloid.
|
|
@@ -227,19 +222,19 @@ exports.CancelByCloidRequest = v.pipe(v.object({
|
|
|
227
222
|
/** Orders to cancel. */
|
|
228
223
|
cancels: v.pipe(v.array(v.object({
|
|
229
224
|
/** Asset ID. */
|
|
230
|
-
asset: v.pipe(_base_js_1.
|
|
225
|
+
asset: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
231
226
|
/** Client Order ID. */
|
|
232
227
|
cloid: v.pipe(v.pipe(_base_js_1.Hex, v.length(34)), v.description("Client Order ID.")),
|
|
233
228
|
})), v.description("Orders to cancel.")),
|
|
234
229
|
}), v.description("Action to perform.")),
|
|
235
230
|
/** Unique request identifier (current timestamp in ms). */
|
|
236
|
-
nonce: v.pipe(_base_js_1.
|
|
231
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
237
232
|
/** Cryptographic signature. */
|
|
238
233
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
239
234
|
/** Vault address (for vault trading). */
|
|
240
235
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
241
236
|
/** Expiration time of the action. */
|
|
242
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
237
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
243
238
|
}), v.transform(removeUndefinedKeys), v.description("Cancel order(s) by cloid."));
|
|
244
239
|
/**
|
|
245
240
|
* Transfer native token from the user spot account into staking for delegating to validators.
|
|
@@ -256,12 +251,12 @@ exports.CDepositRequest = v.pipe(v.object({
|
|
|
256
251
|
/** HyperLiquid network. */
|
|
257
252
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
258
253
|
/** Amount of wei to deposit into staking balance (float * 1e8). */
|
|
259
|
-
wei: v.pipe(_base_js_1.
|
|
254
|
+
wei: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount of wei to deposit into staking balance (float * 1e8).")),
|
|
260
255
|
/** Unique request identifier (current timestamp in ms). */
|
|
261
|
-
nonce: v.pipe(_base_js_1.
|
|
256
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
262
257
|
}), v.description("Action to perform.")),
|
|
263
258
|
/** Unique request identifier (current timestamp in ms). */
|
|
264
|
-
nonce: v.pipe(_base_js_1.
|
|
259
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
265
260
|
/** Cryptographic signature. */
|
|
266
261
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
267
262
|
}), v.transform(removeUndefinedKeys), v.description("Transfer native token from the user spot account into staking for delegating to validators."));
|
|
@@ -277,11 +272,11 @@ exports.ClaimRewardsRequest = v.pipe(v.object({
|
|
|
277
272
|
type: v.pipe(v.literal("claimRewards"), v.description("Type of action.")),
|
|
278
273
|
}), v.description("Action to perform.")),
|
|
279
274
|
/** Unique request identifier (current timestamp in ms). */
|
|
280
|
-
nonce: v.pipe(_base_js_1.
|
|
275
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
281
276
|
/** Cryptographic signature. */
|
|
282
277
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
283
278
|
/** Expiration time of the action. */
|
|
284
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
279
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
285
280
|
}), v.transform(removeUndefinedKeys), v.description("Claim rewards from referral program."));
|
|
286
281
|
/** Signers configuration for {@linkcode ConvertToMultiSigUserRequest}. */
|
|
287
282
|
exports.ConvertToMultiSigUserRequestSigners = v.pipe(v.union([
|
|
@@ -289,7 +284,7 @@ exports.ConvertToMultiSigUserRequestSigners = v.pipe(v.union([
|
|
|
289
284
|
/** List of authorized user addresses. */
|
|
290
285
|
authorizedUsers: v.pipe(v.array(v.pipe(_base_js_1.Hex, v.length(42))), v.description("List of authorized user addresses.")),
|
|
291
286
|
/** Minimum number of signatures required. */
|
|
292
|
-
threshold: v.pipe(_base_js_1.
|
|
287
|
+
threshold: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Minimum number of signatures required.")),
|
|
293
288
|
}),
|
|
294
289
|
/** Convert a multi-signature account to a single-signature account. */
|
|
295
290
|
v.pipe(v.null(), v.description("Convert a multi-signature account to a single-signature account.")),
|
|
@@ -319,10 +314,10 @@ exports.ConvertToMultiSigUserRequest = v.pipe(v.object({
|
|
|
319
314
|
]), v.description("Signers configuration." +
|
|
320
315
|
"\n\nMust be `ConvertToMultiSigUserRequestSigners` converted to a string via `JSON.stringify(...)`.")),
|
|
321
316
|
/** Unique request identifier (current timestamp in ms). */
|
|
322
|
-
nonce: v.pipe(_base_js_1.
|
|
317
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
323
318
|
}), v.description("Action to perform.")),
|
|
324
319
|
/** Unique request identifier (current timestamp in ms). */
|
|
325
|
-
nonce: v.pipe(_base_js_1.
|
|
320
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
326
321
|
/** Cryptographic signature. */
|
|
327
322
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
328
323
|
}), v.transform(removeUndefinedKeys), v.description("Convert a single-signature account to a multi-signature account."));
|
|
@@ -340,11 +335,11 @@ exports.CreateSubAccountRequest = v.pipe(v.object({
|
|
|
340
335
|
name: v.pipe(v.string(), v.minLength(1), v.description("Sub-account name.")),
|
|
341
336
|
}), v.description("Action to perform.")),
|
|
342
337
|
/** Unique request identifier (current timestamp in ms). */
|
|
343
|
-
nonce: v.pipe(_base_js_1.
|
|
338
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
344
339
|
/** Cryptographic signature. */
|
|
345
340
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
346
341
|
/** Expiration time of the action. */
|
|
347
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
342
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
348
343
|
}), v.transform(removeUndefinedKeys), v.description("Create a sub-account."));
|
|
349
344
|
/**
|
|
350
345
|
* Create a vault.
|
|
@@ -361,17 +356,17 @@ exports.CreateVaultRequest = v.pipe(v.object({
|
|
|
361
356
|
/** Vault description. */
|
|
362
357
|
description: v.pipe(v.string(), v.minLength(10), v.description("Vault description.")),
|
|
363
358
|
/** Initial balance (float * 1e6). */
|
|
364
|
-
initialUsd: v.pipe(_base_js_1.
|
|
359
|
+
initialUsd: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.minValue(100000000), // 100 USDC
|
|
365
360
|
v.description("Initial balance (float * 1e6).")),
|
|
366
361
|
/** Unique request identifier (current timestamp in ms). */
|
|
367
|
-
nonce: v.pipe(_base_js_1.
|
|
362
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
368
363
|
}), v.description("Action to perform.")),
|
|
369
364
|
/** Unique request identifier (current timestamp in ms). */
|
|
370
|
-
nonce: v.pipe(_base_js_1.
|
|
365
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
371
366
|
/** Cryptographic signature. */
|
|
372
367
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
373
368
|
/** Expiration time of the action. */
|
|
374
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
369
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
375
370
|
}), v.transform(removeUndefinedKeys), v.description("Create a vault."));
|
|
376
371
|
/**
|
|
377
372
|
* Perform an action on a signer:
|
|
@@ -397,11 +392,11 @@ exports.CSignerActionRequest = v.pipe(v.object({
|
|
|
397
392
|
}),
|
|
398
393
|
]), v.description("Action to perform.")),
|
|
399
394
|
/** Unique request identifier (current timestamp in ms). */
|
|
400
|
-
nonce: v.pipe(_base_js_1.
|
|
395
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
401
396
|
/** Cryptographic signature. */
|
|
402
397
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
403
398
|
/** Expiration time of the action. */
|
|
404
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
399
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
405
400
|
}), v.transform(removeUndefinedKeys), v.description("Perform an action on a signer." +
|
|
406
401
|
"\n- Jail to prevent them from signing transactions." +
|
|
407
402
|
"\n- Unjail to allow them to sign transactions again."));
|
|
@@ -438,7 +433,7 @@ exports.CValidatorActionRequest = v.pipe(v.object({
|
|
|
438
433
|
/** Enable or disable delegations. */
|
|
439
434
|
disable_delegations: v.pipe(v.nullable(v.boolean()), v.description("Enable or disable delegations.")),
|
|
440
435
|
/** Commission rate in basis points (1 = 0.0001%). */
|
|
441
|
-
commission_bps: v.pipe(v.nullable(_base_js_1.
|
|
436
|
+
commission_bps: v.pipe(v.nullable(_base_js_1.UnsignedIntegerMayInputString), v.description("Commission rate in basis points (1 = 0.0001%).")),
|
|
442
437
|
/** Signer address. */
|
|
443
438
|
signer: v.pipe(v.nullable(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Signer address.")),
|
|
444
439
|
}), v.description("Profile changes to apply.")),
|
|
@@ -462,14 +457,14 @@ exports.CValidatorActionRequest = v.pipe(v.object({
|
|
|
462
457
|
/** Whether delegations are disabled. */
|
|
463
458
|
delegations_disabled: v.pipe(v.boolean(), v.description("Whether delegations are disabled.")),
|
|
464
459
|
/** Commission rate in basis points (1 = 0.0001%). */
|
|
465
|
-
commission_bps: v.pipe(_base_js_1.
|
|
460
|
+
commission_bps: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Commission rate in basis points (1 = 0.0001%).")),
|
|
466
461
|
/** Signer address. */
|
|
467
462
|
signer: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Signer address.")),
|
|
468
463
|
}), v.description("Validator profile information.")),
|
|
469
464
|
/** Initial jail status. */
|
|
470
465
|
unjailed: v.pipe(v.boolean(), v.description("Initial jail status.")),
|
|
471
466
|
/** Initial stake amount in wei. */
|
|
472
|
-
initial_wei: v.pipe(_base_js_1.
|
|
467
|
+
initial_wei: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Initial stake amount in wei.")),
|
|
473
468
|
}), v.description("Registration parameters.")),
|
|
474
469
|
}),
|
|
475
470
|
v.object({
|
|
@@ -480,11 +475,11 @@ exports.CValidatorActionRequest = v.pipe(v.object({
|
|
|
480
475
|
}),
|
|
481
476
|
]), v.description("Action to perform.")),
|
|
482
477
|
/** Unique request identifier (current timestamp in ms). */
|
|
483
|
-
nonce: v.pipe(_base_js_1.
|
|
478
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
484
479
|
/** Cryptographic signature. */
|
|
485
480
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
486
481
|
/** Expiration time of the action. */
|
|
487
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
482
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
488
483
|
}), v.transform(removeUndefinedKeys), v.description("Perform an action on a validator:" +
|
|
489
484
|
"\n- Change profile information." +
|
|
490
485
|
"\n- Register a new validator." +
|
|
@@ -504,12 +499,12 @@ exports.CWithdrawRequest = v.pipe(v.object({
|
|
|
504
499
|
/** HyperLiquid network. */
|
|
505
500
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
506
501
|
/** Amount of wei to withdraw from staking balance (float * 1e8). */
|
|
507
|
-
wei: v.pipe(_base_js_1.
|
|
502
|
+
wei: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount of wei to withdraw from staking balance (float * 1e8).")),
|
|
508
503
|
/** Unique request identifier (current timestamp in ms). */
|
|
509
|
-
nonce: v.pipe(_base_js_1.
|
|
504
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
510
505
|
}), v.description("Action to perform.")),
|
|
511
506
|
/** Unique request identifier (current timestamp in ms). */
|
|
512
|
-
nonce: v.pipe(_base_js_1.
|
|
507
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
513
508
|
/** Cryptographic signature. */
|
|
514
509
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
515
510
|
}), v.transform(removeUndefinedKeys), v.description("Transfer native token from staking into the user spot account."));
|
|
@@ -527,11 +522,11 @@ exports.EvmUserModifyRequest = v.pipe(v.object({
|
|
|
527
522
|
usingBigBlocks: v.pipe(v.boolean(), v.description("`true` for large blocks, `false` for small blocks.")),
|
|
528
523
|
}), v.description("Action to perform.")),
|
|
529
524
|
/** Unique request identifier (current timestamp in ms). */
|
|
530
|
-
nonce: v.pipe(_base_js_1.
|
|
525
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
531
526
|
/** Cryptographic signature. */
|
|
532
527
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
533
528
|
/** Expiration time of the action. */
|
|
534
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
529
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
535
530
|
}), v.transform(removeUndefinedKeys), v.description("Configure block type for EVM transactions."));
|
|
536
531
|
/**
|
|
537
532
|
* Modify an order.
|
|
@@ -545,20 +540,20 @@ exports.ModifyRequest = v.pipe(v.object({
|
|
|
545
540
|
type: v.pipe(v.literal("modify"), v.description("Type of action.")),
|
|
546
541
|
/** Order ID or Client Order ID. */
|
|
547
542
|
oid: v.pipe(v.union([
|
|
548
|
-
_base_js_1.
|
|
543
|
+
_base_js_1.UnsignedIntegerMayInputString,
|
|
549
544
|
v.pipe(_base_js_1.Hex, v.length(34)),
|
|
550
545
|
]), v.description("Order ID or Client Order ID.")),
|
|
551
546
|
/** New order parameters. */
|
|
552
547
|
order: v.pipe(exports.OrderParams, v.description("New order parameters.")),
|
|
553
548
|
}), v.description("Action to perform.")),
|
|
554
549
|
/** Unique request identifier (current timestamp in ms). */
|
|
555
|
-
nonce: v.pipe(_base_js_1.
|
|
550
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
556
551
|
/** Cryptographic signature. */
|
|
557
552
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
558
553
|
/** Vault address (for vault trading). */
|
|
559
554
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
560
555
|
/** Expiration time of the action. */
|
|
561
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
556
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
562
557
|
}), v.transform(removeUndefinedKeys), v.description("Modify an order."));
|
|
563
558
|
/**
|
|
564
559
|
* This action does not do anything (no operation), but causes the nonce to be marked as used.
|
|
@@ -572,11 +567,11 @@ exports.NoopRequest = v.pipe(v.object({
|
|
|
572
567
|
type: v.pipe(v.literal("noop"), v.description("Type of action.")),
|
|
573
568
|
}), v.description("Action to perform.")),
|
|
574
569
|
/** Unique request identifier (current timestamp in ms). */
|
|
575
|
-
nonce: v.pipe(_base_js_1.
|
|
570
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
576
571
|
/** Cryptographic signature. */
|
|
577
572
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
578
573
|
/** Expiration time of the action. */
|
|
579
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
574
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
580
575
|
}), v.transform(removeUndefinedKeys), v.description("This action does not do anything (no operation), but causes the nonce to be marked as used."));
|
|
581
576
|
/**
|
|
582
577
|
* Place an order(s).
|
|
@@ -609,17 +604,17 @@ exports.OrderRequest = v.pipe(v.object({
|
|
|
609
604
|
/** Builder address. */
|
|
610
605
|
b: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Builder address.")),
|
|
611
606
|
/** Builder fee in 0.1bps (1 = 0.0001%). */
|
|
612
|
-
f: v.pipe(_base_js_1.
|
|
607
|
+
f: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Builder fee in 0.1bps (1 = 0.0001%).")),
|
|
613
608
|
})), v.description("Builder fee.")),
|
|
614
609
|
}), v.description("Action to perform.")),
|
|
615
610
|
/** Unique request identifier (current timestamp in ms). */
|
|
616
|
-
nonce: v.pipe(_base_js_1.
|
|
611
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
617
612
|
/** Cryptographic signature. */
|
|
618
613
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
619
614
|
/** Vault address (for vault trading). */
|
|
620
615
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
621
616
|
/** Expiration time of the action. */
|
|
622
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
617
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
623
618
|
}), v.transform(removeUndefinedKeys), v.description("Place an order(s)."));
|
|
624
619
|
/**
|
|
625
620
|
* Deploying HIP-3 assets:
|
|
@@ -637,17 +632,17 @@ exports.PerpDeployRequest = v.pipe(v.object({
|
|
|
637
632
|
/** Parameters for registering a new perpetual asset. */
|
|
638
633
|
registerAsset: v.pipe(v.object({
|
|
639
634
|
/** Max gas in native token wei. If not provided, then uses current deploy auction price. */
|
|
640
|
-
maxGas: v.pipe(v.nullable(_base_js_1.
|
|
635
|
+
maxGas: v.pipe(v.nullable(_base_js_1.UnsignedIntegerMayInputString), v.description("Max gas in native token wei. If not provided, then uses current deploy auction price.")),
|
|
641
636
|
/** Contains new asset listing parameters. */
|
|
642
637
|
assetRequest: v.pipe(v.object({
|
|
643
638
|
/** Coin symbol for the new asset. */
|
|
644
639
|
coin: v.pipe(v.string(), v.description("Coin symbol for the new asset.")),
|
|
645
640
|
/** Number of decimal places for size. */
|
|
646
|
-
szDecimals: v.pipe(_base_js_1.
|
|
641
|
+
szDecimals: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Number of decimal places for size.")),
|
|
647
642
|
/** Initial oracle price for the asset. */
|
|
648
|
-
oraclePx: v.pipe(_base_js_1.
|
|
643
|
+
oraclePx: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Initial oracle price for the asset.")),
|
|
649
644
|
/** Margin table identifier for risk management. */
|
|
650
|
-
marginTableId: v.pipe(_base_js_1.
|
|
645
|
+
marginTableId: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Margin table identifier for risk management.")),
|
|
651
646
|
/** Whether the asset can only be traded with isolated margin. */
|
|
652
647
|
onlyIsolated: v.pipe(v.boolean(), v.description("Whether the asset can only be traded with isolated margin.")),
|
|
653
648
|
}), v.description("Contains new asset listing parameters.")),
|
|
@@ -658,7 +653,7 @@ exports.PerpDeployRequest = v.pipe(v.object({
|
|
|
658
653
|
/** Full name of the dex. */
|
|
659
654
|
fullName: v.pipe(v.string(), v.description("Full name of the dex.")),
|
|
660
655
|
/** Collateral token index. */
|
|
661
|
-
collateralToken: v.pipe(_base_js_1.
|
|
656
|
+
collateralToken: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Collateral token index.")),
|
|
662
657
|
/** User to update oracles. If not provided, then deployer is assumed to be oracle updater. */
|
|
663
658
|
oracleUpdater: v.pipe(v.nullable(v.pipe(_base_js_1.Hex, v.length(42))), v.description("User to update oracles. If not provided, then deployer is assumed to be oracle updater.")),
|
|
664
659
|
})), v.description("Contains new dex parameters.")),
|
|
@@ -672,18 +667,18 @@ exports.PerpDeployRequest = v.pipe(v.object({
|
|
|
672
667
|
/** Name of the dex. */
|
|
673
668
|
dex: v.pipe(v.string(), v.minLength(1), v.description("Name of the dex.")),
|
|
674
669
|
/** A list (sorted by key) of asset and oracle prices. */
|
|
675
|
-
oraclePxs: v.pipe(v.array(v.tuple([v.string(), _base_js_1.
|
|
670
|
+
oraclePxs: v.pipe(v.array(v.tuple([v.string(), _base_js_1.UnsignedDecimalMayInputNumber])), v.description("A list (sorted by key) of asset and oracle prices.")),
|
|
676
671
|
/** An outer list of inner lists (inner list sorted by key) of asset and mark prices. */
|
|
677
|
-
markPxs: v.pipe(v.array(v.array(v.tuple([v.string(), _base_js_1.
|
|
672
|
+
markPxs: v.pipe(v.array(v.array(v.tuple([v.string(), _base_js_1.UnsignedDecimalMayInputNumber]))), v.description("An outer list of inner lists (inner list sorted by key) of asset and mark prices.")),
|
|
678
673
|
}), v.description("Parameters for setting oracle and mark prices for assets.")),
|
|
679
674
|
}), v.description("Set oracle variant")),
|
|
680
675
|
]), v.description("Action to perform.")),
|
|
681
676
|
/** Unique request identifier (current timestamp in ms). */
|
|
682
|
-
nonce: v.pipe(_base_js_1.
|
|
677
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
683
678
|
/** Cryptographic signature. */
|
|
684
679
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
685
680
|
/** Expiration time of the action. */
|
|
686
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
681
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
687
682
|
}), v.transform(removeUndefinedKeys), v.description("Deploying HIP-3 assets:" +
|
|
688
683
|
"\n- Register Asset" +
|
|
689
684
|
"\n- Set Oracle"));
|
|
@@ -701,11 +696,11 @@ exports.RegisterReferrerRequest = v.pipe(v.object({
|
|
|
701
696
|
code: v.pipe(v.string(), v.minLength(1), v.description("Referral code to create.")),
|
|
702
697
|
}), v.description("Action to perform.")),
|
|
703
698
|
/** Unique request identifier (current timestamp in ms). */
|
|
704
|
-
nonce: v.pipe(_base_js_1.
|
|
699
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
705
700
|
/** Cryptographic signature. */
|
|
706
701
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
707
702
|
/** Expiration time of the action. */
|
|
708
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
703
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
709
704
|
}), v.transform(removeUndefinedKeys), v.description("Create a referral code."));
|
|
710
705
|
/**
|
|
711
706
|
* Reserve additional rate-limited actions for a fee.
|
|
@@ -718,14 +713,14 @@ exports.ReserveRequestWeightRequest = v.pipe(v.object({
|
|
|
718
713
|
/** Type of action. */
|
|
719
714
|
type: v.pipe(v.literal("reserveRequestWeight"), v.description("Type of action.")),
|
|
720
715
|
/** Amount of request weight to reserve. */
|
|
721
|
-
weight: v.pipe(_base_js_1.
|
|
716
|
+
weight: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount of request weight to reserve.")),
|
|
722
717
|
}), v.description("Action to perform.")),
|
|
723
718
|
/** Unique request identifier (current timestamp in ms). */
|
|
724
|
-
nonce: v.pipe(_base_js_1.
|
|
719
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
725
720
|
/** Cryptographic signature. */
|
|
726
721
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
727
722
|
/** Expiration time of the action. */
|
|
728
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
723
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
729
724
|
}), v.transform(removeUndefinedKeys), v.description("Reserve additional rate-limited actions for a fee."));
|
|
730
725
|
/**
|
|
731
726
|
* Schedule a cancel-all operation at a future time.
|
|
@@ -743,18 +738,18 @@ exports.ScheduleCancelRequest = v.pipe(v.object({
|
|
|
743
738
|
*
|
|
744
739
|
* If not specified, will cause all scheduled cancel operations to be deleted.
|
|
745
740
|
*/
|
|
746
|
-
time: v.pipe(v.optional(_base_js_1.
|
|
741
|
+
time: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Scheduled time (in ms since epoch)." +
|
|
747
742
|
"\nMust be at least 5 seconds in the future." +
|
|
748
743
|
"\n\nIf not specified, will cause all scheduled cancel operations to be deleted.")),
|
|
749
744
|
}), v.description("Action to perform.")),
|
|
750
745
|
/** Unique request identifier (current timestamp in ms). */
|
|
751
|
-
nonce: v.pipe(_base_js_1.
|
|
746
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
752
747
|
/** Cryptographic signature. */
|
|
753
748
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
754
749
|
/** Vault address (for vault trading). */
|
|
755
750
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
756
751
|
/** Expiration time of the action. */
|
|
757
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
752
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
758
753
|
}), v.transform(removeUndefinedKeys), v.description("Schedule a cancel-all operation at a future time."));
|
|
759
754
|
/**
|
|
760
755
|
* Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.
|
|
@@ -779,17 +774,17 @@ exports.SendAssetRequest = v.pipe(v.object({
|
|
|
779
774
|
/** Token identifier. */
|
|
780
775
|
token: v.pipe(_base_js_1.TokenId, v.description("Token identifier.")),
|
|
781
776
|
/** Amount to send (not in wei). */
|
|
782
|
-
amount: v.pipe(_base_js_1.
|
|
777
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to send (not in wei).")),
|
|
783
778
|
/** Source sub-account address ("" for main account). */
|
|
784
779
|
fromSubAccount: v.pipe(v.union([
|
|
785
780
|
v.literal(""),
|
|
786
781
|
v.pipe(_base_js_1.Hex, v.length(42)),
|
|
787
782
|
]), v.description('Source sub-account address ("" for main account).')),
|
|
788
783
|
/** Unique request identifier (current timestamp in ms). */
|
|
789
|
-
nonce: v.pipe(_base_js_1.
|
|
784
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
790
785
|
}), v.description("Action to perform.")),
|
|
791
786
|
/** Unique request identifier (current timestamp in ms). */
|
|
792
|
-
nonce: v.pipe(_base_js_1.
|
|
787
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
793
788
|
/** Cryptographic signature. */
|
|
794
789
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
795
790
|
}), v.transform(removeUndefinedKeys), v.description("Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts."));
|
|
@@ -812,11 +807,11 @@ exports.SetDisplayNameRequest = v.pipe(v.object({
|
|
|
812
807
|
"\n\nSet to an empty string to remove the display name.")),
|
|
813
808
|
}), v.description("Action to perform.")),
|
|
814
809
|
/** Unique request identifier (current timestamp in ms). */
|
|
815
|
-
nonce: v.pipe(_base_js_1.
|
|
810
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
816
811
|
/** Cryptographic signature. */
|
|
817
812
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
818
813
|
/** Expiration time of the action. */
|
|
819
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
814
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
820
815
|
}), v.transform(removeUndefinedKeys), v.description("Set the display name in the leaderboard."));
|
|
821
816
|
/**
|
|
822
817
|
* Set a referral code.
|
|
@@ -832,11 +827,11 @@ exports.SetReferrerRequest = v.pipe(v.object({
|
|
|
832
827
|
code: v.pipe(v.string(), v.minLength(1), v.description("Referral code.")),
|
|
833
828
|
}), v.description("Action to perform.")),
|
|
834
829
|
/** Unique request identifier (current timestamp in ms). */
|
|
835
|
-
nonce: v.pipe(_base_js_1.
|
|
830
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
836
831
|
/** Cryptographic signature. */
|
|
837
832
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
838
833
|
/** Expiration time of the action. */
|
|
839
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
834
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
840
835
|
}), v.transform(removeUndefinedKeys), v.description("Set a referral code."));
|
|
841
836
|
/**
|
|
842
837
|
* Deploying HIP-1 and HIP-2 assets:
|
|
@@ -858,9 +853,9 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
858
853
|
/** Genesis parameters. */
|
|
859
854
|
genesis: v.pipe(v.object({
|
|
860
855
|
/** Token identifier. */
|
|
861
|
-
token: v.pipe(_base_js_1.
|
|
856
|
+
token: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Token identifier.")),
|
|
862
857
|
/** Maximum token supply. */
|
|
863
|
-
maxSupply: v.pipe(_base_js_1.
|
|
858
|
+
maxSupply: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Maximum token supply.")),
|
|
864
859
|
/** Set hyperliquidity balance to 0. */
|
|
865
860
|
noHyperliquidity: v.pipe(v.optional(v.literal(true)), v.description("Set hyperliquidity balance to 0.")),
|
|
866
861
|
}), v.description("Genesis parameters.")),
|
|
@@ -871,15 +866,15 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
871
866
|
/** Register hyperliquidity parameters. */
|
|
872
867
|
registerHyperliquidity: v.pipe(v.object({
|
|
873
868
|
/** Spot index (distinct from base token index). */
|
|
874
|
-
spot: v.pipe(_base_js_1.
|
|
869
|
+
spot: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Spot index (distinct from base token index).")),
|
|
875
870
|
/** Starting price for liquidity seeding. */
|
|
876
|
-
startPx: v.pipe(_base_js_1.
|
|
871
|
+
startPx: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Starting price for liquidity seeding.")),
|
|
877
872
|
/** Order size as a float (not in wei). */
|
|
878
|
-
orderSz: v.pipe(_base_js_1.
|
|
873
|
+
orderSz: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Order size as a float (not in wei).")),
|
|
879
874
|
/** Total number of orders to place. */
|
|
880
|
-
nOrders: v.pipe(_base_js_1.
|
|
875
|
+
nOrders: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Total number of orders to place.")),
|
|
881
876
|
/** Number of levels to seed with USDC. */
|
|
882
|
-
nSeededLevels: v.pipe(v.optional(_base_js_1.
|
|
877
|
+
nSeededLevels: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Number of levels to seed with USDC.")),
|
|
883
878
|
}), v.description("Register hyperliquidity parameters.")),
|
|
884
879
|
}), v.description("Register hyperliquidity variant")),
|
|
885
880
|
v.pipe(v.object({
|
|
@@ -889,8 +884,8 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
889
884
|
registerSpot: v.pipe(v.object({
|
|
890
885
|
/** Tuple containing base and quote token indices. */
|
|
891
886
|
tokens: v.pipe(v.tuple([
|
|
892
|
-
_base_js_1.
|
|
893
|
-
_base_js_1.
|
|
887
|
+
_base_js_1.UnsignedIntegerMayInputString,
|
|
888
|
+
_base_js_1.UnsignedIntegerMayInputString,
|
|
894
889
|
]), v.description("Tuple containing base and quote token indices.")),
|
|
895
890
|
}), v.description("Register spot parameters.")),
|
|
896
891
|
}), v.description("Register spot variant")),
|
|
@@ -904,12 +899,12 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
904
899
|
/** Token name. */
|
|
905
900
|
name: v.pipe(v.string(), v.description("Token name.")),
|
|
906
901
|
/** Number of decimals for token size. */
|
|
907
|
-
szDecimals: v.pipe(_base_js_1.
|
|
902
|
+
szDecimals: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Number of decimals for token size.")),
|
|
908
903
|
/** Number of decimals for token amounts in wei. */
|
|
909
|
-
weiDecimals: v.pipe(_base_js_1.
|
|
904
|
+
weiDecimals: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Number of decimals for token amounts in wei.")),
|
|
910
905
|
}), v.description("Token specifications.")),
|
|
911
906
|
/** Maximum gas allowed for registration. */
|
|
912
|
-
maxGas: v.pipe(_base_js_1.
|
|
907
|
+
maxGas: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Maximum gas allowed for registration.")),
|
|
913
908
|
/** Optional full token name. */
|
|
914
909
|
fullName: v.pipe(v.optional(v.string()), v.description("Optional full token name.")),
|
|
915
910
|
}), v.description("Register token parameters.")),
|
|
@@ -920,7 +915,7 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
920
915
|
/** Set deployer trading fee share parameters. */
|
|
921
916
|
setDeployerTradingFeeShare: v.pipe(v.object({
|
|
922
917
|
/** Token identifier. */
|
|
923
|
-
token: v.pipe(_base_js_1.
|
|
918
|
+
token: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Token identifier.")),
|
|
924
919
|
/** The deployer trading fee share. Range is 0% to 100%. */
|
|
925
920
|
share: v.pipe(Percent, v.description("The deployer trading fee share. Range is 0% to 100%.")),
|
|
926
921
|
}), v.description("Set deployer trading fee share parameters.")),
|
|
@@ -931,13 +926,13 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
931
926
|
/** User genesis parameters. */
|
|
932
927
|
userGenesis: v.pipe(v.object({
|
|
933
928
|
/** Token identifier. */
|
|
934
|
-
token: v.pipe(_base_js_1.
|
|
929
|
+
token: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Token identifier.")),
|
|
935
930
|
/** Array of tuples: [user address, genesis amount in wei]. */
|
|
936
|
-
userAndWei: v.pipe(v.array(v.tuple([v.pipe(_base_js_1.Hex, v.length(42)), _base_js_1.
|
|
931
|
+
userAndWei: v.pipe(v.array(v.tuple([v.pipe(_base_js_1.Hex, v.length(42)), _base_js_1.UnsignedDecimalMayInputNumber])), v.description("Array of tuples: [user address, genesis amount in wei].")),
|
|
937
932
|
/** Array of tuples: [existing token identifier, genesis amount in wei]. */
|
|
938
933
|
existingTokenAndWei: v.pipe(v.array(v.tuple([
|
|
939
|
-
_base_js_1.
|
|
940
|
-
_base_js_1.
|
|
934
|
+
_base_js_1.UnsignedIntegerMayInputString,
|
|
935
|
+
_base_js_1.UnsignedDecimalMayInputNumber,
|
|
941
936
|
])), v.description("Array of tuples: [existing token identifier, genesis amount in wei].")),
|
|
942
937
|
/** Array of tuples: [user address, blacklist status] (`true` for blacklist, `false` to remove existing blacklisted user). */
|
|
943
938
|
blacklistUsers: v.pipe(v.optional(v.array(v.tuple([v.pipe(_base_js_1.Hex, v.length(42)), v.boolean()]))), v.description("Array of tuples: [user address, blacklist status] (`true` for blacklist, `false` to remove existing blacklisted user).")),
|
|
@@ -945,11 +940,11 @@ exports.SpotDeployRequest = v.pipe(v.object({
|
|
|
945
940
|
}), v.description("User genesis variant")),
|
|
946
941
|
]), v.description("Action to perform.")),
|
|
947
942
|
/** Unique request identifier (current timestamp in ms). */
|
|
948
|
-
nonce: v.pipe(_base_js_1.
|
|
943
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
949
944
|
/** Cryptographic signature. */
|
|
950
945
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
951
946
|
/** Expiration time of the action. */
|
|
952
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
947
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
953
948
|
}), v.transform(removeUndefinedKeys), v.description("Deploying HIP-1 and HIP-2 assets:" +
|
|
954
949
|
"\n- Genesis" +
|
|
955
950
|
"\n- Register Hyperliquidity" +
|
|
@@ -976,12 +971,12 @@ exports.SpotSendRequest = v.pipe(v.object({
|
|
|
976
971
|
/** Token identifier. */
|
|
977
972
|
token: v.pipe(_base_js_1.TokenId, v.description("Token identifier.")),
|
|
978
973
|
/** Amount to send (not in wei). */
|
|
979
|
-
amount: v.pipe(_base_js_1.
|
|
974
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to send (not in wei).")),
|
|
980
975
|
/** Unique request identifier (current timestamp in ms). */
|
|
981
|
-
time: v.pipe(_base_js_1.
|
|
976
|
+
time: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
982
977
|
}), v.description("Action to perform.")),
|
|
983
978
|
/** Unique request identifier (current timestamp in ms). */
|
|
984
|
-
nonce: v.pipe(_base_js_1.
|
|
979
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
985
980
|
/** Cryptographic signature. */
|
|
986
981
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
987
982
|
}), v.transform(removeUndefinedKeys), v.description("Send spot assets to another address."));
|
|
@@ -1002,11 +997,11 @@ exports.SpotUserRequest = v.pipe(v.object({
|
|
|
1002
997
|
}), v.description("Spot dusting options.")),
|
|
1003
998
|
}), v.description("Action to perform.")),
|
|
1004
999
|
/** Unique request identifier (current timestamp in ms). */
|
|
1005
|
-
nonce: v.pipe(_base_js_1.
|
|
1000
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1006
1001
|
/** Cryptographic signature. */
|
|
1007
1002
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1008
1003
|
/** Expiration time of the action. */
|
|
1009
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1004
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1010
1005
|
}), v.transform(removeUndefinedKeys), v.description("Opt Out of Spot Dusting."));
|
|
1011
1006
|
/**
|
|
1012
1007
|
* Modify a sub-account.
|
|
@@ -1024,11 +1019,11 @@ exports.SubAccountModifyRequest = v.pipe(v.object({
|
|
|
1024
1019
|
name: v.pipe(v.string(), v.minLength(1), v.description("New sub-account name.")),
|
|
1025
1020
|
}), v.description("Action to perform.")),
|
|
1026
1021
|
/** Unique request identifier (current timestamp in ms). */
|
|
1027
|
-
nonce: v.pipe(_base_js_1.
|
|
1022
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1028
1023
|
/** Cryptographic signature. */
|
|
1029
1024
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1030
1025
|
/** Expiration time of the action. */
|
|
1031
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1026
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1032
1027
|
}), v.transform(removeUndefinedKeys), v.description("Modify a sub-account."));
|
|
1033
1028
|
/**
|
|
1034
1029
|
* Transfer between sub-accounts (spot).
|
|
@@ -1047,14 +1042,14 @@ exports.SubAccountSpotTransferRequest = v.pipe(v.object({
|
|
|
1047
1042
|
/** Token identifier. */
|
|
1048
1043
|
token: v.pipe(_base_js_1.TokenId, v.description("Token identifier.")),
|
|
1049
1044
|
/** Amount to send (not in wei). */
|
|
1050
|
-
amount: v.pipe(_base_js_1.
|
|
1045
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to send (not in wei).")),
|
|
1051
1046
|
}), v.description("Action to perform.")),
|
|
1052
1047
|
/** Unique request identifier (current timestamp in ms). */
|
|
1053
|
-
nonce: v.pipe(_base_js_1.
|
|
1048
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1054
1049
|
/** Cryptographic signature. */
|
|
1055
1050
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1056
1051
|
/** Expiration time of the action. */
|
|
1057
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1052
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1058
1053
|
}), v.transform(removeUndefinedKeys), v.description("Transfer between sub-accounts (spot)."));
|
|
1059
1054
|
/**
|
|
1060
1055
|
* Transfer between sub-accounts (perpetual).
|
|
@@ -1071,14 +1066,14 @@ exports.SubAccountTransferRequest = v.pipe(v.object({
|
|
|
1071
1066
|
/** `true` for deposit, `false` for withdrawal. */
|
|
1072
1067
|
isDeposit: v.pipe(v.boolean(), v.description("`true` for deposit, `false` for withdrawal.")),
|
|
1073
1068
|
/** Amount to transfer (float * 1e6). */
|
|
1074
|
-
usd: v.pipe(_base_js_1.
|
|
1069
|
+
usd: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount to transfer (float * 1e6).")),
|
|
1075
1070
|
}), v.description("Action to perform.")),
|
|
1076
1071
|
/** Unique request identifier (current timestamp in ms). */
|
|
1077
|
-
nonce: v.pipe(_base_js_1.
|
|
1072
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1078
1073
|
/** Cryptographic signature. */
|
|
1079
1074
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1080
1075
|
/** Expiration time of the action. */
|
|
1081
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1076
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1082
1077
|
}), v.transform(removeUndefinedKeys), v.description("Transfer between sub-accounts (perpetual)."));
|
|
1083
1078
|
/**
|
|
1084
1079
|
* Delegate or undelegate native tokens to or from a validator.
|
|
@@ -1097,14 +1092,14 @@ exports.TokenDelegateRequest = v.pipe(v.object({
|
|
|
1097
1092
|
/** Validator address. */
|
|
1098
1093
|
validator: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Validator address.")),
|
|
1099
1094
|
/** Amount for delegate/undelegate (float * 1e8). */
|
|
1100
|
-
wei: v.pipe(_base_js_1.
|
|
1095
|
+
wei: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount for delegate/undelegate (float * 1e8).")),
|
|
1101
1096
|
/** `true` for undelegate, `false` for delegate. */
|
|
1102
1097
|
isUndelegate: v.pipe(v.boolean(), v.description("`true` for undelegate, `false` for delegate.")),
|
|
1103
1098
|
/** Unique request identifier (current timestamp in ms). */
|
|
1104
|
-
nonce: v.pipe(_base_js_1.
|
|
1099
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1105
1100
|
}), v.description("Action to perform.")),
|
|
1106
1101
|
/** Unique request identifier (current timestamp in ms). */
|
|
1107
|
-
nonce: v.pipe(_base_js_1.
|
|
1102
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1108
1103
|
/** Cryptographic signature. */
|
|
1109
1104
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1110
1105
|
}), v.transform(removeUndefinedKeys), v.description("Delegate or undelegate native tokens to or from a validator."));
|
|
@@ -1119,18 +1114,18 @@ exports.TwapCancelRequest = v.pipe(v.object({
|
|
|
1119
1114
|
/** Type of action. */
|
|
1120
1115
|
type: v.pipe(v.literal("twapCancel"), v.description("Type of action.")),
|
|
1121
1116
|
/** Asset ID. */
|
|
1122
|
-
a: v.pipe(_base_js_1.
|
|
1117
|
+
a: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
1123
1118
|
/** Twap ID. */
|
|
1124
|
-
t: v.pipe(_base_js_1.
|
|
1119
|
+
t: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Twap ID.")),
|
|
1125
1120
|
}), v.description("Action to perform.")),
|
|
1126
1121
|
/** Unique request identifier (current timestamp in ms). */
|
|
1127
|
-
nonce: v.pipe(_base_js_1.
|
|
1122
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1128
1123
|
/** Cryptographic signature. */
|
|
1129
1124
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1130
1125
|
/** Vault address (for vault trading). */
|
|
1131
1126
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
1132
1127
|
/** Expiration time of the action. */
|
|
1133
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1128
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1134
1129
|
}), v.transform(removeUndefinedKeys), v.description("Cancel a TWAP order."));
|
|
1135
1130
|
/**
|
|
1136
1131
|
* Place a TWAP order.
|
|
@@ -1145,27 +1140,27 @@ exports.TwapOrderRequest = v.pipe(v.object({
|
|
|
1145
1140
|
/** Twap parameters. */
|
|
1146
1141
|
twap: v.pipe(v.object({
|
|
1147
1142
|
/** Asset ID. */
|
|
1148
|
-
a: v.pipe(_base_js_1.
|
|
1143
|
+
a: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
1149
1144
|
/** Position side (`true` for long, `false` for short). */
|
|
1150
1145
|
b: v.pipe(v.boolean(), v.description("Position side (`true` for long, `false` for short).")),
|
|
1151
1146
|
/** Size (in base currency units). */
|
|
1152
|
-
s: v.pipe(_base_js_1.
|
|
1147
|
+
s: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Size (in base currency units).")),
|
|
1153
1148
|
/** Is reduce-only? */
|
|
1154
1149
|
r: v.pipe(v.boolean(), v.description("Is reduce-only?")),
|
|
1155
1150
|
/** TWAP duration in minutes. */
|
|
1156
|
-
m: v.pipe(_base_js_1.
|
|
1151
|
+
m: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("TWAP duration in minutes.")),
|
|
1157
1152
|
/** Enable random order timing. */
|
|
1158
1153
|
t: v.pipe(v.boolean(), v.description("Enable random order timing.")),
|
|
1159
1154
|
}), v.description("Twap parameters.")),
|
|
1160
1155
|
}), v.description("Action to perform.")),
|
|
1161
1156
|
/** Unique request identifier (current timestamp in ms). */
|
|
1162
|
-
nonce: v.pipe(_base_js_1.
|
|
1157
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1163
1158
|
/** Cryptographic signature. */
|
|
1164
1159
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1165
1160
|
/** Vault address (for vault trading). */
|
|
1166
1161
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
1167
1162
|
/** Expiration time of the action. */
|
|
1168
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1163
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1169
1164
|
}), v.transform(removeUndefinedKeys), v.description("Place a TWAP order."));
|
|
1170
1165
|
/**
|
|
1171
1166
|
* Add or remove margin from isolated position.
|
|
@@ -1178,20 +1173,20 @@ exports.UpdateIsolatedMarginRequest = v.pipe(v.object({
|
|
|
1178
1173
|
/** Type of action. */
|
|
1179
1174
|
type: v.pipe(v.literal("updateIsolatedMargin"), v.description("Type of action.")),
|
|
1180
1175
|
/** Asset ID. */
|
|
1181
|
-
asset: v.pipe(_base_js_1.
|
|
1176
|
+
asset: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
1182
1177
|
/** Position side (`true` for long, `false` for short). */
|
|
1183
1178
|
isBuy: v.pipe(v.boolean(), v.description("Position side (`true` for long, `false` for short).")),
|
|
1184
1179
|
/** Amount to adjust (float * 1e6). */
|
|
1185
|
-
ntli: v.pipe(_base_js_1.
|
|
1180
|
+
ntli: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount to adjust (float * 1e6).")),
|
|
1186
1181
|
}), v.description("Action to perform.")),
|
|
1187
1182
|
/** Unique request identifier (current timestamp in ms). */
|
|
1188
|
-
nonce: v.pipe(_base_js_1.
|
|
1183
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1189
1184
|
/** Cryptographic signature. */
|
|
1190
1185
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1191
1186
|
/** Vault address (for vault trading). */
|
|
1192
1187
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
1193
1188
|
/** Expiration time of the action. */
|
|
1194
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1189
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1195
1190
|
}), v.transform(removeUndefinedKeys), v.description("Add or remove margin from isolated position."));
|
|
1196
1191
|
/**
|
|
1197
1192
|
* Update cross or isolated leverage on a coin.
|
|
@@ -1204,20 +1199,20 @@ exports.UpdateLeverageRequest = v.pipe(v.object({
|
|
|
1204
1199
|
/** Type of action. */
|
|
1205
1200
|
type: v.pipe(v.literal("updateLeverage"), v.description("Type of action.")),
|
|
1206
1201
|
/** Asset ID. */
|
|
1207
|
-
asset: v.pipe(_base_js_1.
|
|
1202
|
+
asset: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Asset ID.")),
|
|
1208
1203
|
/** `true` for cross leverage, `false` for isolated leverage. */
|
|
1209
1204
|
isCross: v.pipe(v.boolean(), v.description("`true` for cross leverage, `false` for isolated leverage.")),
|
|
1210
1205
|
/** New leverage value. */
|
|
1211
|
-
leverage: v.pipe(v.pipe(_base_js_1.
|
|
1206
|
+
leverage: v.pipe(v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.minValue(1)), v.description("New leverage value.")),
|
|
1212
1207
|
}), v.description("Action to perform.")),
|
|
1213
1208
|
/** Unique request identifier (current timestamp in ms). */
|
|
1214
|
-
nonce: v.pipe(_base_js_1.
|
|
1209
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1215
1210
|
/** Cryptographic signature. */
|
|
1216
1211
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1217
1212
|
/** Vault address (for vault trading). */
|
|
1218
1213
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
1219
1214
|
/** Expiration time of the action. */
|
|
1220
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1215
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1221
1216
|
}), v.transform(removeUndefinedKeys), v.description("Update cross or isolated leverage on a coin."));
|
|
1222
1217
|
/**
|
|
1223
1218
|
* Transfer funds between Spot account and Perp account.
|
|
@@ -1234,14 +1229,14 @@ exports.UsdClassTransferRequest = v.pipe(v.object({
|
|
|
1234
1229
|
/** HyperLiquid network. */
|
|
1235
1230
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
1236
1231
|
/** Amount to transfer (1 = 1$). */
|
|
1237
|
-
amount: v.pipe(_base_js_1.
|
|
1232
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to transfer (1 = 1$).")),
|
|
1238
1233
|
/** `true` for Spot to Perp, `false` for Perp to Spot. */
|
|
1239
1234
|
toPerp: v.pipe(v.boolean(), v.description("`true` for Spot to Perp, `false` for Perp to Spot.")),
|
|
1240
1235
|
/** Unique request identifier (current timestamp in ms). */
|
|
1241
|
-
nonce: v.pipe(_base_js_1.
|
|
1236
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1242
1237
|
}), v.description("Action to perform.")),
|
|
1243
1238
|
/** Unique request identifier (current timestamp in ms). */
|
|
1244
|
-
nonce: v.pipe(_base_js_1.
|
|
1239
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1245
1240
|
/** Cryptographic signature. */
|
|
1246
1241
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1247
1242
|
}), v.transform(removeUndefinedKeys), v.description("Transfer funds between Spot account and Perp account."));
|
|
@@ -1262,12 +1257,12 @@ exports.UsdSendRequest = v.pipe(v.object({
|
|
|
1262
1257
|
/** Destination address. */
|
|
1263
1258
|
destination: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Destination address.")),
|
|
1264
1259
|
/** Amount to send (1 = 1$). */
|
|
1265
|
-
amount: v.pipe(_base_js_1.
|
|
1260
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to send (1 = 1$).")),
|
|
1266
1261
|
/** Unique request identifier (current timestamp in ms). */
|
|
1267
|
-
time: v.pipe(_base_js_1.
|
|
1262
|
+
time: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1268
1263
|
}), v.description("Action to perform.")),
|
|
1269
1264
|
/** Unique request identifier (current timestamp in ms). */
|
|
1270
|
-
nonce: v.pipe(_base_js_1.
|
|
1265
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1271
1266
|
/** Cryptographic signature. */
|
|
1272
1267
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1273
1268
|
}), v.transform(removeUndefinedKeys), v.description("Send usd to another address."));
|
|
@@ -1288,15 +1283,15 @@ exports.VaultDistributeRequest = v.pipe(v.object({
|
|
|
1288
1283
|
*
|
|
1289
1284
|
* Set to 0 to close the vault.
|
|
1290
1285
|
*/
|
|
1291
|
-
usd: v.pipe(_base_js_1.
|
|
1286
|
+
usd: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount to distribute (float * 1e6)." +
|
|
1292
1287
|
"\n\nSet to 0 to close the vault.")),
|
|
1293
1288
|
}), v.description("Action to perform.")),
|
|
1294
1289
|
/** Unique request identifier (current timestamp in ms). */
|
|
1295
|
-
nonce: v.pipe(_base_js_1.
|
|
1290
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1296
1291
|
/** Cryptographic signature. */
|
|
1297
1292
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1298
1293
|
/** Expiration time of the action. */
|
|
1299
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1294
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1300
1295
|
}), v.transform(removeUndefinedKeys), v.description("Distribute funds from a vault between followers."));
|
|
1301
1296
|
/**
|
|
1302
1297
|
* Modify a vault configuration.
|
|
@@ -1316,11 +1311,11 @@ exports.VaultModifyRequest = v.pipe(v.object({
|
|
|
1316
1311
|
alwaysCloseOnWithdraw: v.pipe(v.nullable(v.boolean()), v.description("Always close positions on withdrawal.")),
|
|
1317
1312
|
}), v.description("Action to perform.")),
|
|
1318
1313
|
/** Unique request identifier (current timestamp in ms). */
|
|
1319
|
-
nonce: v.pipe(_base_js_1.
|
|
1314
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1320
1315
|
/** Cryptographic signature. */
|
|
1321
1316
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1322
1317
|
/** Expiration time of the action. */
|
|
1323
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1318
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1324
1319
|
}), v.transform(removeUndefinedKeys), v.description("Modify a vault configuration."));
|
|
1325
1320
|
/**
|
|
1326
1321
|
* Deposit or withdraw from a vault.
|
|
@@ -1337,14 +1332,14 @@ exports.VaultTransferRequest = v.pipe(v.object({
|
|
|
1337
1332
|
/** `true` for deposit, `false` for withdrawal. */
|
|
1338
1333
|
isDeposit: v.pipe(v.boolean(), v.description("`true` for deposit, `false` for withdrawal.")),
|
|
1339
1334
|
/** Amount for deposit/withdrawal (float * 1e6). */
|
|
1340
|
-
usd: v.pipe(_base_js_1.
|
|
1335
|
+
usd: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Amount for deposit/withdrawal (float * 1e6).")),
|
|
1341
1336
|
}), v.description("Action to perform.")),
|
|
1342
1337
|
/** Unique request identifier (current timestamp in ms). */
|
|
1343
|
-
nonce: v.pipe(_base_js_1.
|
|
1338
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1344
1339
|
/** Cryptographic signature. */
|
|
1345
1340
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1346
1341
|
/** Expiration time of the action. */
|
|
1347
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1342
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1348
1343
|
}), v.transform(removeUndefinedKeys), v.description("Deposit or withdraw from a vault."));
|
|
1349
1344
|
/**
|
|
1350
1345
|
* Initiate a withdrawal request.
|
|
@@ -1363,12 +1358,12 @@ exports.Withdraw3Request = v.pipe(v.object({
|
|
|
1363
1358
|
/** Destination address. */
|
|
1364
1359
|
destination: v.pipe(v.pipe(_base_js_1.Hex, v.length(42)), v.description("Destination address.")),
|
|
1365
1360
|
/** Amount to withdraw (1 = 1$). */
|
|
1366
|
-
amount: v.pipe(_base_js_1.
|
|
1361
|
+
amount: v.pipe(_base_js_1.UnsignedDecimalMayInputNumber, v.description("Amount to withdraw (1 = 1$).")),
|
|
1367
1362
|
/** Unique request identifier (current timestamp in ms). */
|
|
1368
|
-
time: v.pipe(_base_js_1.
|
|
1363
|
+
time: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1369
1364
|
}), v.description("Action to perform.")),
|
|
1370
1365
|
/** Unique request identifier (current timestamp in ms). */
|
|
1371
|
-
nonce: v.pipe(_base_js_1.
|
|
1366
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1372
1367
|
/** Cryptographic signature. */
|
|
1373
1368
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1374
1369
|
}), v.transform(removeUndefinedKeys), v.description("Initiate a withdrawal request."));
|
|
@@ -1439,12 +1434,12 @@ exports.MultiSigRequest = v.pipe(v.object({
|
|
|
1439
1434
|
}), v.description("Multi-signature payload information.")),
|
|
1440
1435
|
}), v.description("Action to perform.")),
|
|
1441
1436
|
/** Unique request identifier (current timestamp in ms). */
|
|
1442
|
-
nonce: v.pipe(_base_js_1.
|
|
1437
|
+
nonce: v.pipe(_base_js_1.UnsignedIntegerMayInputString, v.description("Unique request identifier (current timestamp in ms).")),
|
|
1443
1438
|
/** Cryptographic signature. */
|
|
1444
1439
|
signature: v.pipe(exports.Signature, v.description("Cryptographic signature.")),
|
|
1445
1440
|
/** Vault address (for vault trading). */
|
|
1446
1441
|
vaultAddress: v.pipe(v.optional(v.pipe(_base_js_1.Hex, v.length(42))), v.description("Vault address (for vault trading).")),
|
|
1447
1442
|
/** Expiration time of the action. */
|
|
1448
|
-
expiresAfter: v.pipe(v.optional(_base_js_1.
|
|
1443
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedIntegerMayInputString), v.description("Expiration time of the action.")),
|
|
1449
1444
|
}), v.transform(removeUndefinedKeys), v.description("A multi-signature request."));
|
|
1450
1445
|
//# sourceMappingURL=requests.js.map
|