@nktkas/hyperliquid 0.25.2 → 0.25.4
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 +36 -27
- package/esm/bin/cli.js +87 -87
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts +74 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.js +58 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
- package/esm/src/api/exchange/multiSig.d.ts +3 -3
- package/esm/src/api/exchange/usdClassTransfer.d.ts +2 -2
- package/esm/src/api/exchange/usdClassTransfer.js +2 -2
- package/esm/src/api/exchange/usdSend.d.ts +2 -2
- package/esm/src/api/exchange/usdSend.js +2 -2
- package/esm/src/api/exchange/userDexAbstraction.d.ts +104 -0
- package/esm/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/userDexAbstraction.js +79 -0
- package/esm/src/api/exchange/userDexAbstraction.js.map +1 -0
- package/esm/src/api/exchange/withdraw3.d.ts +2 -2
- package/esm/src/api/exchange/withdraw3.js +2 -2
- package/esm/src/api/exchange/~client.d.ts +100 -40
- package/esm/src/api/exchange/~client.d.ts.map +1 -1
- package/esm/src/api/exchange/~client.js +50 -0
- package/esm/src/api/exchange/~client.js.map +1 -1
- package/esm/src/api/exchange/~mod.d.ts +2 -0
- package/esm/src/api/exchange/~mod.d.ts.map +1 -1
- package/esm/src/api/exchange/~mod.js +2 -0
- package/esm/src/api/exchange/~mod.js.map +1 -1
- package/esm/src/api/info/activeAssetData.d.ts +2 -2
- package/esm/src/api/info/activeAssetData.js +2 -2
- package/esm/src/api/info/clearinghouseState.d.ts +2 -2
- package/esm/src/api/info/clearinghouseState.js +2 -2
- package/esm/src/api/info/subAccounts.d.ts +1 -1
- package/esm/src/api/info/twapHistory.d.ts +4 -0
- package/esm/src/api/info/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/twapHistory.js +2 -0
- package/esm/src/api/info/twapHistory.js.map +1 -1
- package/esm/src/api/info/userDexAbstraction.d.ts +49 -0
- package/esm/src/api/info/userDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/info/userDexAbstraction.js +52 -0
- package/esm/src/api/info/userDexAbstraction.js.map +1 -0
- package/esm/src/api/info/webData2.d.ts +1 -1
- package/esm/src/api/info/~client.d.ts +23 -0
- package/esm/src/api/info/~client.d.ts.map +1 -1
- package/esm/src/api/info/~client.js +23 -0
- package/esm/src/api/info/~client.js.map +1 -1
- package/esm/src/api/info/~mod.d.ts +1 -0
- package/esm/src/api/info/~mod.d.ts.map +1 -1
- package/esm/src/api/info/~mod.js +1 -0
- package/esm/src/api/info/~mod.js.map +1 -1
- package/esm/src/api/subscription/activeAssetData.d.ts +1 -1
- package/esm/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/esm/src/api/subscription/userTwapHistory.d.ts +5 -0
- package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/userTwapHistory.js +2 -0
- package/esm/src/api/subscription/userTwapHistory.js.map +1 -1
- package/esm/src/api/subscription/webData2.d.ts +1 -1
- package/package.json +1 -1
- package/script/bin/cli.js +87 -87
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts +74 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.js +95 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
- package/script/src/api/exchange/multiSig.d.ts +3 -3
- package/script/src/api/exchange/usdClassTransfer.d.ts +2 -2
- package/script/src/api/exchange/usdClassTransfer.js +2 -2
- package/script/src/api/exchange/usdSend.d.ts +2 -2
- package/script/src/api/exchange/usdSend.js +2 -2
- package/script/src/api/exchange/userDexAbstraction.d.ts +104 -0
- package/script/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/userDexAbstraction.js +116 -0
- package/script/src/api/exchange/userDexAbstraction.js.map +1 -0
- package/script/src/api/exchange/withdraw3.d.ts +2 -2
- package/script/src/api/exchange/withdraw3.js +2 -2
- package/script/src/api/exchange/~client.d.ts +100 -40
- package/script/src/api/exchange/~client.d.ts.map +1 -1
- package/script/src/api/exchange/~client.js +50 -0
- package/script/src/api/exchange/~client.js.map +1 -1
- package/script/src/api/exchange/~mod.d.ts +2 -0
- package/script/src/api/exchange/~mod.d.ts.map +1 -1
- package/script/src/api/exchange/~mod.js +2 -0
- package/script/src/api/exchange/~mod.js.map +1 -1
- package/script/src/api/info/activeAssetData.d.ts +2 -2
- package/script/src/api/info/activeAssetData.js +2 -2
- package/script/src/api/info/clearinghouseState.d.ts +2 -2
- package/script/src/api/info/clearinghouseState.js +2 -2
- package/script/src/api/info/subAccounts.d.ts +1 -1
- package/script/src/api/info/twapHistory.d.ts +4 -0
- package/script/src/api/info/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/twapHistory.js +2 -0
- package/script/src/api/info/twapHistory.js.map +1 -1
- package/script/src/api/info/userDexAbstraction.d.ts +49 -0
- package/script/src/api/info/userDexAbstraction.d.ts.map +1 -0
- package/script/src/api/info/userDexAbstraction.js +89 -0
- package/script/src/api/info/userDexAbstraction.js.map +1 -0
- package/script/src/api/info/webData2.d.ts +1 -1
- package/script/src/api/info/~client.d.ts +23 -0
- package/script/src/api/info/~client.d.ts.map +1 -1
- package/script/src/api/info/~client.js +23 -0
- package/script/src/api/info/~client.js.map +1 -1
- package/script/src/api/info/~mod.d.ts +1 -0
- package/script/src/api/info/~mod.d.ts.map +1 -1
- package/script/src/api/info/~mod.js +1 -0
- package/script/src/api/info/~mod.js.map +1 -1
- package/script/src/api/subscription/activeAssetData.d.ts +1 -1
- package/script/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/script/src/api/subscription/userTwapHistory.d.ts +5 -0
- package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/userTwapHistory.js +2 -0
- package/script/src/api/subscription/userTwapHistory.js.map +1 -1
- package/script/src/api/subscription/webData2.d.ts +1 -1
- package/src/bin/cli.ts +87 -87
- package/src/src/api/exchange/agentEnableDexAbstraction.ts +96 -0
- package/src/src/api/exchange/usdClassTransfer.ts +2 -2
- package/src/src/api/exchange/usdSend.ts +2 -2
- package/src/src/api/exchange/userDexAbstraction.ts +142 -0
- package/src/src/api/exchange/withdraw3.ts +2 -2
- package/src/src/api/exchange/~client.ts +96 -40
- package/src/src/api/exchange/~mod.ts +2 -0
- package/src/src/api/info/activeAssetData.ts +2 -2
- package/src/src/api/info/clearinghouseState.ts +2 -2
- package/src/src/api/info/twapHistory.ts +5 -0
- package/src/src/api/info/userDexAbstraction.ts +79 -0
- package/src/src/api/info/~client.ts +25 -0
- package/src/src/api/info/~mod.ts +1 -0
- package/src/src/api/subscription/userTwapHistory.ts +5 -0
|
@@ -26,6 +26,8 @@ export const UserTwapHistoryEvent = /* @__PURE__ */ (() => {
|
|
|
26
26
|
state: TwapStateSchema,
|
|
27
27
|
/** Current status of the TWAP order. */
|
|
28
28
|
status: TwapStatusSchema,
|
|
29
|
+
/** ID of the TWAP. */
|
|
30
|
+
twapId: v.pipe(v.optional(UnsignedInteger), v.description("ID of the TWAP.")),
|
|
29
31
|
}), v.description("TWAP history record."))), v.description("Array of user's TWAP history.")),
|
|
30
32
|
/** Whether this is an initial snapshot. */
|
|
31
33
|
isSnapshot: v.pipe(v.optional(v.literal(true)), v.description("Whether this is an initial snapshot.")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userTwapHistory.js","sourceRoot":"","sources":["../../../../src/src/api/subscription/userTwapHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAsB,MAAM,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE1E,oDAAoD;AAEpD,oEAAoE;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC1D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAC5B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;QACD,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,+DAA+D,CAAC,CAC/E,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,kCAAkC;AAClC,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACxD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;QACD,oCAAoC;QACpC,OAAO,EAAE,CAAC,CAAC,IAAI,CACb,CAAC,CAAC,KAAK;QACL,2BAA2B;QAC3B,CAAC,CAAC,IAAI,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,oEAAoE;YACpE,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,+DAA+D,CAAC,CAC/E;YACD,+BAA+B;YAC/B,KAAK,EAAE,eAAe;YACtB,wCAAwC;YACxC,MAAM,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"userTwapHistory.js","sourceRoot":"","sources":["../../../../src/src/api/subscription/userTwapHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAsB,MAAM,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE1E,oDAAoD;AAEpD,oEAAoE;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC1D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAC5B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;QACD,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,+DAA+D,CAAC,CAC/E,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,kCAAkC;AAClC,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACxD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;QACD,oCAAoC;QACpC,OAAO,EAAE,CAAC,CAAC,IAAI,CACb,CAAC,CAAC,KAAK;QACL,2BAA2B;QAC3B,CAAC,CAAC,IAAI,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,oEAAoE;YACpE,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,+DAA+D,CAAC,CAC/E;YACD,+BAA+B;YAC/B,KAAK,EAAE,eAAe;YACtB,wCAAwC;YACxC,MAAM,EAAE,gBAAgB;YACxB,sBAAsB;YACtB,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAC3B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CACjC;SACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,sBAAsB,CAAC,CACtC,CACF,EACD,CAAC,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAC/C;QACD,2CAA2C;QAC3C,UAAU,EAAE,CAAC,CAAC,IAAI,CAChB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAC3B,CAAC,CAAC,WAAW,CAAC,sCAAsC,CAAC,CACtD;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAC7C,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAQL;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAiC,EACjC,MAAgD,EAChD,QAA8C;IAE9C,MAAM,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACvF,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAuB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACnF,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -49,7 +49,7 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
49
49
|
readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
|
|
50
50
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
|
|
51
51
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
|
52
|
-
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1
|
|
52
|
+
readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
|
|
53
53
|
}, undefined>, v.ObjectSchema<{
|
|
54
54
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
|
|
55
55
|
readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
|
package/package.json
CHANGED
package/script/bin/cli.js
CHANGED
|
@@ -121,156 +121,156 @@ INFO ENDPOINT METHODS
|
|
|
121
121
|
Market Data:
|
|
122
122
|
alignedQuoteTokenInfo --token <number>
|
|
123
123
|
allMids [--dex <string>]
|
|
124
|
-
|
|
125
|
-
candleSnapshot --coin <string> --interval <1m|3m|5m|15m|30m|1h|2h|4h|8h|12h|1d|3d|1w|1M>
|
|
124
|
+
candleSnapshot --coin <string> --interval <1m|3m|5m|15m|30m|1h|2h|4h|8h|12h|1d|3d|1w|1M>
|
|
126
125
|
--startTime <number> [--endTime <number>]
|
|
127
126
|
fundingHistory --coin <string> --startTime <number> [--endTime <number>]
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
l2Book --coin <string> [--nSigFigs <2|3|4|5>] [--mantissa <2|5>]
|
|
128
|
+
liquidatable (no params)
|
|
129
|
+
marginTable --id <number>
|
|
130
|
+
maxMarketOrderNtls (no params)
|
|
132
131
|
meta [--dex <string>]
|
|
133
132
|
metaAndAssetCtxs [--dex <string>]
|
|
133
|
+
perpDexLimits --dex <string>
|
|
134
|
+
perpDexs (no params)
|
|
135
|
+
perpsAtOpenInterestCap [--dex <string>]
|
|
136
|
+
predictedFundings (no params)
|
|
137
|
+
recentTrades --coin <string>
|
|
134
138
|
spotMeta (no params)
|
|
135
139
|
spotMetaAndAssetCtxs (no params)
|
|
136
|
-
exchangeStatus (no params)
|
|
137
|
-
perpDexs (no params)
|
|
138
|
-
perpDexLimits --dex <string>
|
|
139
|
-
spotPairDeployAuctionStatus (no params)
|
|
140
|
-
perpDeployAuctionStatus (no params)
|
|
141
|
-
perpsAtOpenInterestCap [--dex <string>]
|
|
142
|
-
maxMarketOrderNtls (no params)
|
|
143
|
-
liquidatable (no params)
|
|
144
|
-
marginTable --id <number>
|
|
145
140
|
|
|
146
|
-
User Account
|
|
147
|
-
clearinghouseState --user <address> [--dex <string>]
|
|
148
|
-
spotClearinghouseState --user <address> [--dex <string>]
|
|
149
|
-
portfolio --user <address>
|
|
150
|
-
openOrders --user <address> [--dex <string>]
|
|
151
|
-
frontendOpenOrders --user <address> [--dex <string>]
|
|
152
|
-
historicalOrders --user <address>
|
|
153
|
-
orderStatus --user <address> --oid <number|hex>
|
|
154
|
-
userDetails --user <address>
|
|
155
|
-
userFees --user <address>
|
|
156
|
-
userRateLimit --user <address>
|
|
157
|
-
userRole --user <address>
|
|
141
|
+
User Account:
|
|
158
142
|
activeAssetData --user <address> --coin <string>
|
|
143
|
+
clearinghouseState --user <address> [--dex <string>]
|
|
144
|
+
extraAgents --user <address>
|
|
159
145
|
isVip --user <address>
|
|
160
146
|
legalCheck --user <address>
|
|
161
|
-
referral --user <address>
|
|
162
|
-
spotDeployState --user <address>
|
|
163
|
-
preTransferCheck --user <address> --source <address>
|
|
164
147
|
maxBuilderFee --user <address> --builder <address>
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
148
|
+
portfolio --user <address>
|
|
149
|
+
preTransferCheck --user <address> --source <address>
|
|
150
|
+
referral --user <address>
|
|
151
|
+
spotClearinghouseState --user <address> [--dex <string>]
|
|
152
|
+
subAccounts --user <address>
|
|
153
|
+
userDexAbstraction --user <address>
|
|
154
|
+
userFees --user <address>
|
|
171
155
|
userFunding --user <address> --startTime <number> [--endTime <number>]
|
|
172
156
|
userNonFundingLedgerUpdates --user <address> --startTime <number> [--endTime <number>]
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
userTwapSliceFillsByTime --user <address> --startTime <number> [--endTime <number>]
|
|
176
|
-
[--aggregateByTime <bool>]
|
|
177
|
-
|
|
178
|
-
Sub-Account & Multi-Sig:
|
|
179
|
-
subAccounts --user <address>
|
|
180
|
-
extraAgents --user <address>
|
|
157
|
+
userRateLimit --user <address>
|
|
158
|
+
userRole --user <address>
|
|
181
159
|
userToMultiSigSigners --user <address>
|
|
160
|
+
webData2 --user <address>
|
|
182
161
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
162
|
+
Orders & TWAP & Position:
|
|
163
|
+
frontendOpenOrders --user <address> [--dex <string>]
|
|
164
|
+
historicalOrders --user <address>
|
|
165
|
+
openOrders --user <address> [--dex <string>]
|
|
166
|
+
orderStatus --user <address> --oid <number|hex>
|
|
167
|
+
twapHistory --user <address>
|
|
168
|
+
userFills --user <address> [--aggregateByTime <bool>]
|
|
169
|
+
userFillsByTime --user <address> --startTime <number>
|
|
170
|
+
[--endTime <number>] [--aggregateByTime <bool>]
|
|
171
|
+
userTwapSliceFills --user <address>
|
|
172
|
+
userTwapSliceFillsByTime --user <address> --startTime <number>
|
|
173
|
+
[--endTime <number>] [--aggregateByTime <bool>]
|
|
188
174
|
|
|
189
175
|
Delegation & Validators:
|
|
190
176
|
delegations --user <address>
|
|
191
177
|
delegatorHistory --user <address>
|
|
192
178
|
delegatorRewards --user <address>
|
|
193
179
|
delegatorSummary --user <address>
|
|
180
|
+
gossipRootIps (no params)
|
|
194
181
|
validatorL1Votes (no params)
|
|
195
182
|
validatorSummaries (no params)
|
|
196
|
-
|
|
183
|
+
|
|
184
|
+
Vault:
|
|
185
|
+
leadingVaults --user <address>
|
|
186
|
+
userVaultEquities --user <address>
|
|
187
|
+
vaultDetails --vaultAddress <address> [--user <address>]
|
|
188
|
+
vaultSummaries (no params)
|
|
189
|
+
|
|
190
|
+
Deploy Market:
|
|
191
|
+
perpDeployAuctionStatus (no params)
|
|
192
|
+
spotDeployState --user <address>
|
|
193
|
+
spotPairDeployAuctionStatus (no params)
|
|
194
|
+
|
|
195
|
+
Other:
|
|
196
|
+
exchangeStatus (no params)
|
|
197
197
|
|
|
198
198
|
Transaction & Block Details:
|
|
199
|
-
txDetails --hash <hex>
|
|
200
199
|
blockDetails --height <number>
|
|
201
200
|
tokenDetails --tokenId <hex>
|
|
201
|
+
txDetails --hash <hex>
|
|
202
|
+
userDetails --user <address>
|
|
202
203
|
|
|
203
204
|
=============================================================================
|
|
204
205
|
EXCHANGE ENDPOINT METHODS
|
|
205
206
|
=============================================================================
|
|
206
207
|
|
|
207
|
-
|
|
208
|
-
order --orders <json> [--grouping <na|normalTpsl|positionTpsl>]
|
|
209
|
-
[--builder <json>]
|
|
210
|
-
modify --oid <number|hex> --order <json>
|
|
208
|
+
Order & TWAP & Position:
|
|
211
209
|
batchModify --modifies <json>
|
|
212
210
|
cancel --cancels <json>
|
|
213
211
|
cancelByCloid --cancels <json>
|
|
212
|
+
modify --oid <number|hex> --order <json>
|
|
213
|
+
order --orders <json> [--grouping <na|normalTpsl|positionTpsl>] [--builder <json>]
|
|
214
214
|
scheduleCancel [--time <number>]
|
|
215
|
-
|
|
216
|
-
TWAP Operations:
|
|
217
|
-
twapOrder --a <number> --b <bool> --s <number> --r <bool> --m <number> --t <bool>
|
|
218
215
|
twapCancel --a <number> --t <number>
|
|
219
|
-
|
|
220
|
-
Position Management:
|
|
221
|
-
updateLeverage --asset <number> --isCross <bool> --leverage <number>
|
|
216
|
+
twapOrder --a <number> --b <bool> --s <number> --r <bool> --m <number> --t <bool>
|
|
222
217
|
updateIsolatedMargin --asset <number> --isBuy <bool> --ntli <number>
|
|
218
|
+
updateLeverage --asset <number> --isCross <bool> --leverage <number>
|
|
219
|
+
|
|
220
|
+
Account:
|
|
221
|
+
agentEnableDexAbstraction (no params)
|
|
222
|
+
approveAgent --agentAddress <address> [--agentName <string>]
|
|
223
|
+
approveBuilderFee --maxFeeRate <number> --builder <address>
|
|
224
|
+
evmUserModify --usingBigBlocks <bool>
|
|
225
|
+
noop (no params)
|
|
226
|
+
reserveRequestWeight --weight <number>
|
|
227
|
+
setDisplayName --displayName <string>
|
|
228
|
+
spotUser --optOut <bool>
|
|
229
|
+
userDexAbstraction --user <address> --enabled <bool>
|
|
223
230
|
|
|
224
231
|
Fund Transfers:
|
|
225
|
-
withdraw3 --destination <address> --amount <number>
|
|
226
|
-
usdSend --destination <address> --amount <number>
|
|
227
|
-
spotSend --destination <address> --token <name:address> --amount <number>
|
|
228
232
|
sendAsset --destination <address> --token <name:address> --amount <number>
|
|
229
233
|
--sourceDex <string> --destinationDex <string> [--fromSubAccount <address>]
|
|
234
|
+
spotSend --destination <address> --token <name:address> --amount <number>
|
|
230
235
|
usdClassTransfer --amount <number> --toPerp <bool>
|
|
236
|
+
usdSend --destination <address> --amount <number>
|
|
237
|
+
withdraw3 --destination <address> --amount <number>
|
|
231
238
|
|
|
232
|
-
Sub-Account
|
|
239
|
+
Sub-Account:
|
|
233
240
|
createSubAccount --name <string>
|
|
234
241
|
subAccountModify --subAccountUser <address> --name <string>
|
|
235
|
-
|
|
236
|
-
subAccountSpotTransfer --subAccountUser <address> --isDeposit <bool>
|
|
242
|
+
subAccountSpotTransfer --subAccountUser <address> --isDeposit <bool>
|
|
237
243
|
--token <name:address> --amount <number>
|
|
244
|
+
subAccountTransfer --subAccountUser <address> --isDeposit <bool> --usd <number>
|
|
238
245
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
vaultModify --vaultAddress <address> [--allowDeposits <bool>]
|
|
242
|
-
[--alwaysCloseOnWithdraw <bool>]
|
|
243
|
-
vaultTransfer --vaultAddress <address> --isDeposit <bool> --usd <number>
|
|
244
|
-
vaultDistribute --vaultAddress <address> --usd <number>
|
|
245
|
-
|
|
246
|
-
Agent & Referrer:
|
|
247
|
-
approveAgent --agentAddress <address> [--agentName <string>]
|
|
248
|
-
approveBuilderFee --maxFeeRate <number> --builder <address>
|
|
246
|
+
Referrer:
|
|
247
|
+
claimRewards (no params)
|
|
249
248
|
registerReferrer --code <string>
|
|
250
249
|
setReferrer --code <string>
|
|
251
|
-
setDisplayName --displayName <string>
|
|
252
250
|
|
|
253
251
|
Staking & Delegation:
|
|
254
|
-
tokenDelegate --validator <address> --wei <number> --isUndelegate <bool>
|
|
255
252
|
cDeposit --wei <number>
|
|
256
253
|
cWithdraw --wei <number>
|
|
257
|
-
|
|
254
|
+
tokenDelegate --validator <address> --wei <number> --isUndelegate <bool>
|
|
258
255
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
Vault:
|
|
257
|
+
createVault --name <string> --description <string> --initialUsd <number>
|
|
258
|
+
vaultDistribute --vaultAddress <address> --usd <number>
|
|
259
|
+
vaultModify --vaultAddress <address> [--allowDeposits <bool>]
|
|
260
|
+
[--alwaysCloseOnWithdraw <bool>]
|
|
261
|
+
vaultTransfer --vaultAddress <address> --isDeposit <bool> --usd <number>
|
|
263
262
|
|
|
264
263
|
Deploy Market:
|
|
265
264
|
perpDeploy --registerAsset <json> | --setOracle <json>
|
|
266
265
|
spotDeploy --genesis <json> | --registerHyperliquidity <json> | --registerSpot <json> |
|
|
267
266
|
--registerToken2 <json> | --setDeployerTradingFeeShare <json> | --userGenesis <json>
|
|
268
267
|
|
|
269
|
-
|
|
270
|
-
convertToMultiSigUser --authorizedUsers <json> --threshold <number>
|
|
268
|
+
Validator Actions:
|
|
271
269
|
cSignerAction --jailSelf null | --unjailSelf null
|
|
272
270
|
cValidatorAction --changeProfile <json> | --register <json> | --unregister null
|
|
273
|
-
|
|
271
|
+
|
|
272
|
+
Other:
|
|
273
|
+
convertToMultiSigUser --authorizedUsers <json> --threshold <number>
|
|
274
274
|
|
|
275
275
|
=============================================================================
|
|
276
276
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ExchangeRequestConfig, type ExtractRequestOptions, type MultiSignRequestConfig } from "./_base.js";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
/**
|
|
4
|
+
* Enable HIP-3 DEX abstraction.
|
|
5
|
+
* @see null
|
|
6
|
+
*/
|
|
7
|
+
export declare const AgentEnableDexAbstractionRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
8
|
+
/** Action to perform. */
|
|
9
|
+
readonly action: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
10
|
+
/** Type of action. */
|
|
11
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"agentEnableDexAbstraction", undefined>, v.DescriptionAction<"agentEnableDexAbstraction", "Type of action.">]>;
|
|
12
|
+
}, undefined>, v.DescriptionAction<{
|
|
13
|
+
type: "agentEnableDexAbstraction";
|
|
14
|
+
}, "Action to perform.">]>;
|
|
15
|
+
/** Unique request identifier (current timestamp in ms). */
|
|
16
|
+
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
17
|
+
/** Cryptographic signature. */
|
|
18
|
+
readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
19
|
+
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.TransformAction<`0x${string}`, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "First 32-byte component of ECDSA signature.">]>;
|
|
20
|
+
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.TransformAction<`0x${string}`, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Second 32-byte component of ECDSA signature.">]>;
|
|
21
|
+
readonly v: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>]>, v.UnionSchema<[v.LiteralSchema<27, undefined>, v.LiteralSchema<28, undefined>], undefined>]>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
22
|
+
}, undefined>, v.DescriptionAction<{
|
|
23
|
+
r: `0x${string}`;
|
|
24
|
+
s: `0x${string}`;
|
|
25
|
+
v: 27 | 28;
|
|
26
|
+
}, "ECDSA signature components for Ethereum typed data.">]>, v.DescriptionAction<{
|
|
27
|
+
r: `0x${string}`;
|
|
28
|
+
s: `0x${string}`;
|
|
29
|
+
v: 27 | 28;
|
|
30
|
+
}, "Cryptographic signature.">]>;
|
|
31
|
+
/** Expiration time of the action. */
|
|
32
|
+
readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "Expiration time of the action.">]>;
|
|
33
|
+
}, undefined>, v.DescriptionAction<{
|
|
34
|
+
action: {
|
|
35
|
+
type: "agentEnableDexAbstraction";
|
|
36
|
+
};
|
|
37
|
+
nonce: number;
|
|
38
|
+
signature: {
|
|
39
|
+
r: `0x${string}`;
|
|
40
|
+
s: `0x${string}`;
|
|
41
|
+
v: 27 | 28;
|
|
42
|
+
};
|
|
43
|
+
expiresAfter?: number | undefined;
|
|
44
|
+
}, "Enable HIP-3 DEX abstraction request.">]>;
|
|
45
|
+
export type AgentEnableDexAbstractionRequest = v.InferOutput<typeof AgentEnableDexAbstractionRequest>;
|
|
46
|
+
import { SuccessResponse } from "./_base.js";
|
|
47
|
+
export { SuccessResponse };
|
|
48
|
+
/** Request options for the {@linkcode agentEnableDexAbstraction} function. */
|
|
49
|
+
export type AgentEnableDexAbstractionOptions = ExtractRequestOptions<v.InferInput<typeof AgentEnableDexAbstractionRequest>>;
|
|
50
|
+
/**
|
|
51
|
+
* Enable HIP-3 DEX abstraction.
|
|
52
|
+
* @param config - General configuration for Exchange API requests.
|
|
53
|
+
* @param params - Parameters specific to the API request.
|
|
54
|
+
* @param opts - Request execution options.
|
|
55
|
+
* @returns Successful response without specific data.
|
|
56
|
+
*
|
|
57
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
58
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
59
|
+
*
|
|
60
|
+
* @see null
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
64
|
+
* import { agentEnableDexAbstraction } from "@nktkas/hyperliquid/api/exchange";
|
|
65
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
66
|
+
*
|
|
67
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
68
|
+
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
69
|
+
*
|
|
70
|
+
* await agentEnableDexAbstraction({ transport, wallet });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function agentEnableDexAbstraction(config: ExchangeRequestConfig | MultiSignRequestConfig, opts?: AgentEnableDexAbstractionOptions): Promise<SuccessResponse>;
|
|
74
|
+
//# sourceMappingURL=agentEnableDexAbstraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentEnableDexAbstraction.d.ts","sourceRoot":"","sources":["../../../../src/src/api/exchange/agentEnableDexAbstraction.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE5B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B;;;GAGG;AACH,eAAO,MAAM,gCAAgC;IAGvC,yBAAyB;;QAGrB,sBAAsB;;;;;IAQ1B,2DAA2D;;IAK3D,+BAA+B;;;;;;;;;;;;;;IAK/B,qCAAqC;;;;;;;;;;;;;6CAQvC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAEtG,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,CAAC;AAI3B,8EAA8E;AAC9E,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,CAClE,CAAC,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CACtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,EACtD,IAAI,CAAC,EAAE,gCAAgC,GACtC,OAAO,CAAC,eAAe,CAAC,CAQ1B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.SuccessResponse = exports.AgentEnableDexAbstractionRequest = void 0;
|
|
37
|
+
exports.agentEnableDexAbstraction = agentEnableDexAbstraction;
|
|
38
|
+
const _base_js_1 = require("../_base.js");
|
|
39
|
+
const _base_js_2 = require("./_base.js");
|
|
40
|
+
const v = __importStar(require("valibot"));
|
|
41
|
+
// -------------------- Schemas --------------------
|
|
42
|
+
/**
|
|
43
|
+
* Enable HIP-3 DEX abstraction.
|
|
44
|
+
* @see null
|
|
45
|
+
*/
|
|
46
|
+
exports.AgentEnableDexAbstractionRequest = (() => {
|
|
47
|
+
return v.pipe(v.object({
|
|
48
|
+
/** Action to perform. */
|
|
49
|
+
action: v.pipe(v.object({
|
|
50
|
+
/** Type of action. */
|
|
51
|
+
type: v.pipe(v.literal("agentEnableDexAbstraction"), v.description("Type of action.")),
|
|
52
|
+
}), v.description("Action to perform.")),
|
|
53
|
+
/** Unique request identifier (current timestamp in ms). */
|
|
54
|
+
nonce: v.pipe(_base_js_1.UnsignedInteger, v.description("Unique request identifier (current timestamp in ms).")),
|
|
55
|
+
/** Cryptographic signature. */
|
|
56
|
+
signature: v.pipe(_base_js_2.Signature, v.description("Cryptographic signature.")),
|
|
57
|
+
/** Expiration time of the action. */
|
|
58
|
+
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedInteger), v.description("Expiration time of the action.")),
|
|
59
|
+
}), v.description("Enable HIP-3 DEX abstraction request."));
|
|
60
|
+
})();
|
|
61
|
+
const _base_js_3 = require("./_base.js");
|
|
62
|
+
Object.defineProperty(exports, "SuccessResponse", { enumerable: true, get: function () { return _base_js_3.SuccessResponse; } });
|
|
63
|
+
/**
|
|
64
|
+
* Enable HIP-3 DEX abstraction.
|
|
65
|
+
* @param config - General configuration for Exchange API requests.
|
|
66
|
+
* @param params - Parameters specific to the API request.
|
|
67
|
+
* @param opts - Request execution options.
|
|
68
|
+
* @returns Successful response without specific data.
|
|
69
|
+
*
|
|
70
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
71
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
72
|
+
*
|
|
73
|
+
* @see null
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
77
|
+
* import { agentEnableDexAbstraction } from "@nktkas/hyperliquid/api/exchange";
|
|
78
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
79
|
+
*
|
|
80
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
81
|
+
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
82
|
+
*
|
|
83
|
+
* await agentEnableDexAbstraction({ transport, wallet });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
async function agentEnableDexAbstraction(config, opts) {
|
|
87
|
+
const action = (0, _base_js_1.parser)(exports.AgentEnableDexAbstractionRequest.entries.action)({
|
|
88
|
+
type: "agentEnableDexAbstraction",
|
|
89
|
+
});
|
|
90
|
+
const expiresAfter = typeof config.defaultExpiresAfter === "number"
|
|
91
|
+
? config.defaultExpiresAfter
|
|
92
|
+
: await config.defaultExpiresAfter?.();
|
|
93
|
+
return await (0, _base_js_2.executeL1Action)(config, { action, expiresAfter }, opts?.signal);
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=agentEnableDexAbstraction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentEnableDexAbstraction.js","sourceRoot":"","sources":["../../../../src/src/api/exchange/agentEnableDexAbstraction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFA,8DAWC;AA/FD,0CAAsD;AACtD,yCAMoB;AACpB,2CAA6B;AAE7B,oDAAoD;AAEpD;;;GAGG;AACU,QAAA,gCAAgC,GAAmB,CAAC,GAAG,EAAE;IACpE,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,yBAAyB;QACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,CAAC,CAAC,MAAM,CAAC;YACP,sBAAsB;YACtB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,EACtC,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CACjC;SACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CACpC;QACD,2DAA2D;QAC3D,KAAK,EAAE,CAAC,CAAC,IAAI,CACX,0BAAe,EACf,CAAC,CAAC,WAAW,CAAC,sDAAsD,CAAC,CACtE;QACD,+BAA+B;QAC/B,SAAS,EAAE,CAAC,CAAC,IAAI,CACf,oBAAS,EACT,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAC1C;QACD,qCAAqC;QACrC,YAAY,EAAE,CAAC,CAAC,IAAI,CAClB,CAAC,CAAC,QAAQ,CAAC,0BAAe,CAAC,EAC3B,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAChD;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,uCAAuC,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,yCAA6C;AACpC,gGADA,0BAAe,OACA;AASxB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,KAAK,UAAU,yBAAyB,CAC7C,MAAsD,EACtD,IAAuC;IAEvC,MAAM,MAAM,GAAG,IAAA,iBAAM,EAAC,wCAAgC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,IAAI,EAAE,2BAA2B;KAClC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,mBAAmB,KAAK,QAAQ;QACjE,CAAC,CAAC,MAAM,CAAC,mBAAmB;QAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,mBAAmB,EAAE,EAAE,CAAC;IACzC,OAAO,MAAM,IAAA,0BAAe,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1046,7 +1046,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1046
1046
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"usdClassTransfer", undefined>, v.DescriptionAction<"usdClassTransfer", "Type of action.">]>;
|
|
1047
1047
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
1048
1048
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1049
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to transfer (1 = 1
|
|
1049
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to transfer (1 = $1).">]>;
|
|
1050
1050
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
|
|
1051
1051
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
1052
1052
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1061,7 +1061,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1061
1061
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
1062
1062
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1063
1063
|
readonly destination: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Destination address.">]>;
|
|
1064
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to send (1 = 1
|
|
1064
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to send (1 = $1).">]>;
|
|
1065
1065
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
1066
1066
|
}, undefined>, v.DescriptionAction<{
|
|
1067
1067
|
type: "usdSend";
|
|
@@ -1103,7 +1103,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1103
1103
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
1104
1104
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1105
1105
|
readonly destination: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Destination address.">]>;
|
|
1106
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to withdraw (1 = 1
|
|
1106
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to withdraw (1 = $1).">]>;
|
|
1107
1107
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
1108
1108
|
}, undefined>, v.DescriptionAction<{
|
|
1109
1109
|
type: "withdraw3";
|
|
@@ -14,8 +14,8 @@ export declare const UsdClassTransferRequest: v.SchemaWithPipe<readonly [v.Objec
|
|
|
14
14
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
15
15
|
/** HyperLiquid network. */
|
|
16
16
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
17
|
-
/** Amount to transfer (1 = 1
|
|
18
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to transfer (1 = 1
|
|
17
|
+
/** Amount to transfer (1 = $1). */
|
|
18
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to transfer (1 = $1).">]>;
|
|
19
19
|
/** `true` for Spot to Perp, `false` for Perp to Spot. */
|
|
20
20
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
|
|
21
21
|
/** Unique request identifier (current timestamp in ms). */
|
|
@@ -53,8 +53,8 @@ exports.UsdClassTransferRequest = (() => {
|
|
|
53
53
|
signatureChainId: v.pipe(_base_js_1.Hex, v.description("Chain ID used for signing.")),
|
|
54
54
|
/** HyperLiquid network. */
|
|
55
55
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
56
|
-
/** Amount to transfer (1 = 1
|
|
57
|
-
amount: v.pipe(_base_js_1.UnsignedDecimal, v.description("Amount to transfer (1 = 1
|
|
56
|
+
/** Amount to transfer (1 = $1). */
|
|
57
|
+
amount: v.pipe(_base_js_1.UnsignedDecimal, v.description("Amount to transfer (1 = $1).")),
|
|
58
58
|
/** `true` for Spot to Perp, `false` for Perp to Spot. */
|
|
59
59
|
toPerp: v.pipe(v.boolean(), v.description("`true` for Spot to Perp, `false` for Perp to Spot.")),
|
|
60
60
|
/** Unique request identifier (current timestamp in ms). */
|
|
@@ -16,8 +16,8 @@ export declare const UsdSendRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
16
16
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
17
17
|
/** Destination address. */
|
|
18
18
|
readonly destination: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Destination address.">]>;
|
|
19
|
-
/** Amount to send (1 = 1
|
|
20
|
-
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to send (1 = 1
|
|
19
|
+
/** Amount to send (1 = $1). */
|
|
20
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount to send (1 = $1).">]>;
|
|
21
21
|
/** Unique request identifier (current timestamp in ms). */
|
|
22
22
|
readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
23
23
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -55,8 +55,8 @@ exports.UsdSendRequest = (() => {
|
|
|
55
55
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
56
56
|
/** Destination address. */
|
|
57
57
|
destination: v.pipe(_base_js_1.Address, v.description("Destination address.")),
|
|
58
|
-
/** Amount to send (1 = 1
|
|
59
|
-
amount: v.pipe(_base_js_1.UnsignedDecimal, v.description("Amount to send (1 = 1
|
|
58
|
+
/** Amount to send (1 = $1). */
|
|
59
|
+
amount: v.pipe(_base_js_1.UnsignedDecimal, v.description("Amount to send (1 = $1).")),
|
|
60
60
|
/** Unique request identifier (current timestamp in ms). */
|
|
61
61
|
time: v.pipe(_base_js_1.UnsignedInteger, v.description("Unique request identifier (current timestamp in ms).")),
|
|
62
62
|
}), v.description("Action to perform.")),
|