@nktkas/hyperliquid 0.30.2 → 0.30.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 +83 -19
- package/esm/bin/cli.js +10 -0
- package/esm/bin/cli.js.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.0}/unstable_semaphore.d.ts +1 -0
- package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.0}/unstable_semaphore.js +4 -3
- package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
- package/esm/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.d.ts +20 -9
- package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.js +21 -3
- package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.d.ts +2 -2
- package/esm/src/api/exchange/_methods/borrowLend.d.ts +173 -0
- package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/borrowLend.js +75 -0
- package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/esm/src/api/exchange/_methods/modify.d.ts +2 -2
- package/esm/src/api/exchange/_methods/order.d.ts +2 -2
- package/esm/src/api/exchange/_methods/sendAsset.d.ts +10 -10
- package/esm/src/api/exchange/_methods/spotSend.d.ts +5 -5
- package/esm/src/api/exchange/_methods/usdSend.d.ts +5 -5
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js +92 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/esm/src/api/exchange/_methods/withdraw3.d.ts +5 -5
- package/esm/src/api/exchange/client.d.ts +8 -0
- package/esm/src/api/exchange/client.d.ts.map +1 -1
- package/esm/src/api/exchange/client.js +10 -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/_methods/activeAssetData.js +2 -2
- package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +56 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js +76 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js +85 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/esm/src/api/info/_methods/clearinghouseState.js +3 -3
- package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.d.ts +5 -1
- package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.js +3 -1
- package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.d.ts +36 -0
- package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.js +16 -0
- package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +38 -0
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js +72 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +57 -0
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/info/client.d.ts +16 -0
- package/esm/src/api/info/client.d.ts.map +1 -1
- package/esm/src/api/info/client.js +20 -0
- package/esm/src/api/info/client.js.map +1 -1
- package/esm/src/api/info/mod.d.ts +4 -0
- package/esm/src/api/info/mod.d.ts.map +1 -1
- package/esm/src/api/info/mod.js +4 -0
- package/esm/src/api/info/mod.js.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +75 -0
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/bin/cli.js +10 -0
- package/script/bin/cli.js.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.0}/unstable_semaphore.d.ts +1 -0
- package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.0}/unstable_semaphore.js +4 -3
- package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
- package/script/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.d.ts +20 -9
- package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.js +21 -3
- package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.d.ts +2 -2
- package/script/src/api/exchange/_methods/borrowLend.d.ts +173 -0
- package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/borrowLend.js +112 -0
- package/script/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/script/src/api/exchange/_methods/modify.d.ts +2 -2
- package/script/src/api/exchange/_methods/order.d.ts +2 -2
- package/script/src/api/exchange/_methods/sendAsset.d.ts +10 -10
- package/script/src/api/exchange/_methods/spotSend.d.ts +5 -5
- package/script/src/api/exchange/_methods/usdSend.d.ts +5 -5
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js +129 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/script/src/api/exchange/_methods/withdraw3.d.ts +5 -5
- package/script/src/api/exchange/client.d.ts +8 -0
- package/script/src/api/exchange/client.d.ts.map +1 -1
- package/script/src/api/exchange/client.js +10 -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/_methods/activeAssetData.js +1 -1
- package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js +93 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js +113 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.js +122 -0
- package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/script/src/api/info/_methods/clearinghouseState.js +3 -3
- package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/perpDexs.d.ts +5 -1
- package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexs.js +3 -1
- package/script/src/api/info/_methods/perpDexs.js.map +1 -1
- package/script/src/api/info/_methods/spotMeta.d.ts +36 -0
- package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMeta.js +16 -0
- package/script/src/api/info/_methods/spotMeta.js.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +38 -0
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js +109 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +57 -0
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/info/client.d.ts +16 -0
- package/script/src/api/info/client.d.ts.map +1 -1
- package/script/src/api/info/client.js +20 -0
- package/script/src/api/info/client.js.map +1 -1
- package/script/src/api/info/mod.d.ts +4 -0
- package/script/src/api/info/mod.d.ts.map +1 -1
- package/script/src/api/info/mod.js +4 -0
- package/script/src/api/info/mod.js.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +75 -0
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/src/bin/cli.ts +10 -0
- package/src/deps/jsr.io/@std/async/{1.0.16 → 1.1.0}/unstable_semaphore.ts +4 -3
- package/src/src/api/exchange/_methods/_base/_semaphore.ts +1 -1
- package/src/src/api/exchange/_methods/approveAgent.ts +25 -5
- package/src/src/api/exchange/_methods/borrowLend.ts +133 -0
- package/src/src/api/exchange/_methods/userPortfolioMargin.ts +156 -0
- package/src/src/api/exchange/client.ts +34 -0
- package/src/src/api/exchange/mod.ts +2 -0
- package/src/src/api/info/_methods/activeAssetData.ts +2 -2
- package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +82 -0
- package/src/src/api/info/_methods/borrowLendReserveState.ts +131 -0
- package/src/src/api/info/_methods/borrowLendUserState.ts +144 -0
- package/src/src/api/info/_methods/clearinghouseState.ts +3 -3
- package/src/src/api/info/_methods/perpDexs.ts +6 -1
- package/src/src/api/info/_methods/spotMeta.ts +41 -0
- package/src/src/api/info/_methods/userBorrowLendInterest.ts +122 -0
- package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +69 -0
- package/src/src/api/info/client.ts +60 -0
- package/src/src/api/info/mod.ts +4 -0
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
|
@@ -112,6 +112,21 @@ export declare const UserNonFundingLedgerUpdatesEvent: v.SchemaWithPipe<readonly
|
|
|
112
112
|
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
113
113
|
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount in the specified token.">]>;
|
|
114
114
|
readonly isDeposit: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for deposit, `false` for withdrawal.">]>;
|
|
115
|
+
}, undefined>, v.ObjectSchema<{
|
|
116
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"borrowLend", undefined>, v.DescriptionAction<"borrowLend", "Update type.">]>;
|
|
117
|
+
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
118
|
+
readonly operation: v.SchemaWithPipe<readonly [v.PicklistSchema<["supply", "withdraw", "repay", "borrow"], undefined>, v.DescriptionAction<"supply" | "withdraw" | "repay" | "borrow", "Operation type.">]>;
|
|
119
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount in the specified token.">]>;
|
|
120
|
+
readonly interestAmount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Interest amount in the specified token.">]>;
|
|
121
|
+
}, undefined>, v.ObjectSchema<{
|
|
122
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotGenesis", undefined>, v.DescriptionAction<"spotGenesis", "Update type.">]>;
|
|
123
|
+
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
124
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount in the specified token.">]>;
|
|
125
|
+
}, undefined>, v.ObjectSchema<{
|
|
126
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"activateDexAbstraction", undefined>, v.DescriptionAction<"activateDexAbstraction", "Update type.">]>;
|
|
127
|
+
readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the dex.">]>;
|
|
128
|
+
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
|
|
129
|
+
readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount in the specified token.">]>;
|
|
115
130
|
}, undefined>], undefined>, v.DescriptionAction<{
|
|
116
131
|
type: "accountClassTransfer";
|
|
117
132
|
usdc: string;
|
|
@@ -203,6 +218,21 @@ export declare const UserNonFundingLedgerUpdatesEvent: v.SchemaWithPipe<readonly
|
|
|
203
218
|
token: string;
|
|
204
219
|
amount: string;
|
|
205
220
|
isDeposit: boolean;
|
|
221
|
+
} | {
|
|
222
|
+
type: "borrowLend";
|
|
223
|
+
token: string;
|
|
224
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
225
|
+
amount: string;
|
|
226
|
+
interestAmount: string;
|
|
227
|
+
} | {
|
|
228
|
+
type: "spotGenesis";
|
|
229
|
+
token: string;
|
|
230
|
+
amount: string;
|
|
231
|
+
} | {
|
|
232
|
+
type: "activateDexAbstraction";
|
|
233
|
+
dex: string;
|
|
234
|
+
token: string;
|
|
235
|
+
amount: string;
|
|
206
236
|
}, "Update details.">]>;
|
|
207
237
|
}, undefined>, undefined>, v.DescriptionAction<{
|
|
208
238
|
time: number;
|
|
@@ -298,6 +328,21 @@ export declare const UserNonFundingLedgerUpdatesEvent: v.SchemaWithPipe<readonly
|
|
|
298
328
|
token: string;
|
|
299
329
|
amount: string;
|
|
300
330
|
isDeposit: boolean;
|
|
331
|
+
} | {
|
|
332
|
+
type: "borrowLend";
|
|
333
|
+
token: string;
|
|
334
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
335
|
+
amount: string;
|
|
336
|
+
interestAmount: string;
|
|
337
|
+
} | {
|
|
338
|
+
type: "spotGenesis";
|
|
339
|
+
token: string;
|
|
340
|
+
amount: string;
|
|
341
|
+
} | {
|
|
342
|
+
type: "activateDexAbstraction";
|
|
343
|
+
dex: string;
|
|
344
|
+
token: string;
|
|
345
|
+
amount: string;
|
|
301
346
|
};
|
|
302
347
|
}[], "Array of user's non-funding ledger update.">]>, v.DescriptionAction<{
|
|
303
348
|
time: number;
|
|
@@ -393,6 +438,21 @@ export declare const UserNonFundingLedgerUpdatesEvent: v.SchemaWithPipe<readonly
|
|
|
393
438
|
token: string;
|
|
394
439
|
amount: string;
|
|
395
440
|
isDeposit: boolean;
|
|
441
|
+
} | {
|
|
442
|
+
type: "borrowLend";
|
|
443
|
+
token: string;
|
|
444
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
445
|
+
amount: string;
|
|
446
|
+
interestAmount: string;
|
|
447
|
+
} | {
|
|
448
|
+
type: "spotGenesis";
|
|
449
|
+
token: string;
|
|
450
|
+
amount: string;
|
|
451
|
+
} | {
|
|
452
|
+
type: "activateDexAbstraction";
|
|
453
|
+
dex: string;
|
|
454
|
+
token: string;
|
|
455
|
+
amount: string;
|
|
396
456
|
};
|
|
397
457
|
}[], "Array of user's non-funding ledger update.">]>;
|
|
398
458
|
/** Whether this is an initial snapshot. */
|
|
@@ -493,6 +553,21 @@ export declare const UserNonFundingLedgerUpdatesEvent: v.SchemaWithPipe<readonly
|
|
|
493
553
|
token: string;
|
|
494
554
|
amount: string;
|
|
495
555
|
isDeposit: boolean;
|
|
556
|
+
} | {
|
|
557
|
+
type: "borrowLend";
|
|
558
|
+
token: string;
|
|
559
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
560
|
+
amount: string;
|
|
561
|
+
interestAmount: string;
|
|
562
|
+
} | {
|
|
563
|
+
type: "spotGenesis";
|
|
564
|
+
token: string;
|
|
565
|
+
amount: string;
|
|
566
|
+
} | {
|
|
567
|
+
type: "activateDexAbstraction";
|
|
568
|
+
dex: string;
|
|
569
|
+
token: string;
|
|
570
|
+
amount: string;
|
|
496
571
|
};
|
|
497
572
|
}[];
|
|
498
573
|
isSnapshot?: true | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userNonFundingLedgerUpdates.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/userNonFundingLedgerUpdates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;IAGzC,4BAA4B;;IAK5B,oBAAoB;;;;;4EAQtB,CAAC;AACL,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE1G,gDAAgD;AAChD,eAAO,MAAM,gCAAgC;IAGvC,oBAAoB;;IAKpB,iDAAiD
|
|
1
|
+
{"version":3,"file":"userNonFundingLedgerUpdates.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/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E/D,mFAAmF;AACnF,MAAM,MAAM,qCAAqC,GAAG,IAAI,CACtD,CAAC,CAAC,UAAU,CAAC,OAAO,kCAAkC,CAAC,EACvD,MAAM,CACP,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,qCAAqC,EAC7C,QAAQ,EAAE,CAAC,IAAI,EAAE,gCAAgC,KAAK,IAAI,GACzD,OAAO,CAAC,aAAa,CAAC,CAOxB"}
|
package/package.json
CHANGED
package/script/bin/cli.js
CHANGED
|
@@ -191,6 +191,12 @@ Deploy Market:
|
|
|
191
191
|
spotDeployState --user <address>
|
|
192
192
|
spotPairDeployAuctionStatus (no params)
|
|
193
193
|
|
|
194
|
+
Earn:
|
|
195
|
+
allBorrowLendReserveStates (no params)
|
|
196
|
+
borrowLendReserveState --token <number>
|
|
197
|
+
borrowLendUserState --user <address>
|
|
198
|
+
userBorrowLendInterest --user <address> --startTime <number> [--endTime <number>]
|
|
199
|
+
|
|
194
200
|
Other:
|
|
195
201
|
exchangeStatus (no params)
|
|
196
202
|
|
|
@@ -226,6 +232,7 @@ Account:
|
|
|
226
232
|
setDisplayName --displayName <string>
|
|
227
233
|
spotUser --optOut <bool>
|
|
228
234
|
userDexAbstraction --user <address> --enabled <bool>
|
|
235
|
+
userPortfolioMargin --user <address> --enabled <bool>
|
|
229
236
|
|
|
230
237
|
Fund Transfers:
|
|
231
238
|
sendAsset --destination <address> --token <name:address> --amount <number>
|
|
@@ -269,6 +276,9 @@ Validator Actions:
|
|
|
269
276
|
cValidatorAction --<action> <json>
|
|
270
277
|
validatorL1Stream --riskFreeRate <number>
|
|
271
278
|
|
|
279
|
+
Earn:
|
|
280
|
+
borrowLend --operation <supply|withdraw> --token <number> --amount <number|null>
|
|
281
|
+
|
|
272
282
|
Other:
|
|
273
283
|
convertToMultiSigUser --authorizedUsers <json> --threshold <number>
|
|
274
284
|
|
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C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare class Semaphore {
|
|
|
20
20
|
* Creates a new semaphore with the specified number of permits.
|
|
21
21
|
*
|
|
22
22
|
* @param max Maximum concurrent permits. Defaults to 1 (mutex).
|
|
23
|
+
* @throws {TypeError} If `max` is not a positive integer.
|
|
23
24
|
*/
|
|
24
25
|
constructor(max?: number);
|
|
25
26
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unstable_semaphore.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,SAAS;;IASpB;;;;;OAKG;gBACS,GAAG,GAAE,MAAU;IAS3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC;IAgB9B;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,IAAI,UAAU,GAAG,SAAS;IAQpC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,IAAI,IAAI;CAShB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright 2018-
|
|
2
|
+
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Semaphore = void 0;
|
|
@@ -31,10 +31,11 @@ class Semaphore {
|
|
|
31
31
|
* Creates a new semaphore with the specified number of permits.
|
|
32
32
|
*
|
|
33
33
|
* @param max Maximum concurrent permits. Defaults to 1 (mutex).
|
|
34
|
+
* @throws {TypeError} If `max` is not a positive integer.
|
|
34
35
|
*/
|
|
35
36
|
constructor(max = 1) {
|
|
36
|
-
if (max < 1) {
|
|
37
|
-
throw new TypeError(`Cannot create semaphore as 'max' must be
|
|
37
|
+
if (!Number.isInteger(max) || max < 1) {
|
|
38
|
+
throw new TypeError(`Cannot create semaphore as 'max' must be a positive integer: received ${max}`);
|
|
38
39
|
}
|
|
39
40
|
this.#count = this.#max = max;
|
|
40
41
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unstable_semaphore.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,qCAAqC;;;AAQrC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,SAAS;IACpB,IAAI,CAAS;IACb,2CAA2C;IAC3C,MAAM,CAAS;IACf,iCAAiC;IACjC,KAAK,CAAmB;IACxB,iCAAiC;IACjC,KAAK,CAAmB;IAExB;;;;;OAKG;IACH,YAAY,MAAc,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,SAAS,CACjB,yEAAyE,GAAG,EAAE,CAC/E,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAChC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO;QACL,MAAM,UAAU,GAAe,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QAC1E,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACzB,MAAM,IAAI,GAAS,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;YACnE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;YACtC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YACjC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU;QACR,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACpD,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QAC1C,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;YACnC,IAAI,CAAC,MAAM,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;CACF;AAzHD,8BAyHC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withLock = withLock;
|
|
4
|
-
const unstable_semaphore_js_1 = require("../../../../../deps/jsr.io/@std/async/1.0
|
|
4
|
+
const unstable_semaphore_js_1 = require("../../../../../deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js");
|
|
5
5
|
/**
|
|
6
6
|
* A reference-counted registry for lazily creating and reusing per-key values.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_semaphore.js","sourceRoot":"","sources":["../../../../../../src/src/api/exchange/_methods/_base/_semaphore.ts"],"names":[],"mappings":";;AAgEA,4BASC;AAzED,
|
|
1
|
+
{"version":3,"file":"_semaphore.js","sourceRoot":"","sources":["../../../../../../src/src/api/exchange/_methods/_base/_semaphore.ts"],"names":[],"mappings":";;AAgEA,4BASC;AAzED,6GAA8F;AAE9F;;;;;GAKG;AACH,MAAM,kBAAkB;IACtB,IAAI,GAAG,IAAI,GAAG,EAAiC,CAAC;IAChD,QAAQ,CAAU;IAElB;;;;OAIG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,GAAM;QACR,IAAI,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,KAAK,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,OAAO,KAAK,CAAC,KAAK,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,GAAM;QACV,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF;AAED,MAAM,UAAU,GAAG,IAAI,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,iCAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAElE;;;;;;GAMG;AACI,KAAK,UAAU,QAAQ,CAAO,GAAM,EAAE,EAAoB;IAC/D,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;IAC1B,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,EAAE,CAAC;IACpB,CAAC;YAAS,CAAC;QACT,SAAS,CAAC,OAAO,EAAE,CAAC;QACpB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;AACH,CAAC"}
|
|
@@ -14,8 +14,8 @@ export declare const ApproveAgentRequest: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
14
14
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
|
|
15
15
|
/** Agent address. */
|
|
16
16
|
readonly agentAddress: 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}`, "Agent address.">]>;
|
|
17
|
-
/** Agent name or null for unnamed agent. */
|
|
18
|
-
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
17
|
+
/** Agent name (min 1 and max 16 characters) or null for unnamed agent. */
|
|
18
|
+
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, null>, v.DescriptionAction<string | null, "Agent name (min 1 and max 16 characters) or null for unnamed agent.">]>;
|
|
19
19
|
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
20
20
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
|
|
21
21
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -103,8 +103,8 @@ declare const ApproveAgentParameters: Omit<v.ObjectSchema<{
|
|
|
103
103
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
|
|
104
104
|
/** Agent address. */
|
|
105
105
|
readonly agentAddress: 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}`, "Agent address.">]>;
|
|
106
|
-
/** Agent name or null for unnamed agent. */
|
|
107
|
-
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
106
|
+
/** Agent name (min 1 and max 16 characters) or null for unnamed agent. */
|
|
107
|
+
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, null>, v.DescriptionAction<string | null, "Agent name (min 1 and max 16 characters) or null for unnamed agent.">]>;
|
|
108
108
|
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
109
109
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
|
|
110
110
|
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
@@ -117,8 +117,8 @@ declare const ApproveAgentParameters: Omit<v.ObjectSchema<{
|
|
|
117
117
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
|
|
118
118
|
/** Agent address. */
|
|
119
119
|
readonly agentAddress: 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}`, "Agent address.">]>;
|
|
120
|
-
/** Agent name or null for unnamed agent. */
|
|
121
|
-
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.
|
|
120
|
+
/** Agent name (min 1 and max 16 characters) or null for unnamed agent. */
|
|
121
|
+
readonly agentName: v.SchemaWithPipe<readonly [v.NullishSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, null>, v.DescriptionAction<string | null, "Agent name (min 1 and max 16 characters) or null for unnamed agent.">]>;
|
|
122
122
|
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
123
123
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
|
|
124
124
|
}, "type" | "nonce" | "signatureChainId" | "hyperliquidChain">;
|
|
@@ -132,7 +132,7 @@ declare const ApproveAgentParameters: Omit<v.ObjectSchema<{
|
|
|
132
132
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
133
133
|
agentName: string | null;
|
|
134
134
|
agentAddress: `0x${string}`;
|
|
135
|
-
}, v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.
|
|
135
|
+
}, v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.CheckIssue<string>>;
|
|
136
136
|
readonly "~types"?: {
|
|
137
137
|
readonly input: {
|
|
138
138
|
agentName?: string | null | undefined;
|
|
@@ -142,7 +142,7 @@ declare const ApproveAgentParameters: Omit<v.ObjectSchema<{
|
|
|
142
142
|
agentName: string | null;
|
|
143
143
|
agentAddress: `0x${string}`;
|
|
144
144
|
};
|
|
145
|
-
readonly issue: v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.
|
|
145
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.CheckIssue<string>;
|
|
146
146
|
} | undefined;
|
|
147
147
|
};
|
|
148
148
|
/** Action parameters for the {@linkcode approveAgent} function. */
|
|
@@ -180,9 +180,20 @@ export declare const ApproveAgentTypes: {
|
|
|
180
180
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
181
181
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
182
182
|
*
|
|
183
|
+
* // Basic usage
|
|
183
184
|
* await approveAgent(
|
|
184
185
|
* { transport, wallet },
|
|
185
|
-
* { agentAddress: "0x...", agentName: "
|
|
186
|
+
* { agentAddress: "0x...", agentName: "myAgent" },
|
|
187
|
+
* );
|
|
188
|
+
*
|
|
189
|
+
* // With expiration timestamp
|
|
190
|
+
* const expirationTimestamp = Date.now() + 24 * 60 * 60 * 1000;
|
|
191
|
+
* await approveAgent(
|
|
192
|
+
* { transport, wallet },
|
|
193
|
+
* {
|
|
194
|
+
* agentAddress: "0x...",
|
|
195
|
+
* agentName: `myAgent valid_until ${expirationTimestamp}`,
|
|
196
|
+
* },
|
|
186
197
|
* );
|
|
187
198
|
* ```
|
|
188
199
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveAgent.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/approveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAG1B,yBAAyB;;QAGrB,sBAAsB;;QAKtB,kDAAkD;;QAKlD,gCAAgC;;QAKhC,qBAAqB;;QAKrB,
|
|
1
|
+
{"version":3,"file":"approveAgent.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/approveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAG1B,yBAAyB;;QAGrB,sBAAsB;;QAKtB,kDAAkD;;QAKlD,gCAAgC;;QAKhC,qBAAqB;;QAKrB,0EAA0E;;QAqB1E,8DAA8D;;;;;;;;;;IAQlE,8DAA8D;;IA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,EAC9B,IAAI,CAAC,EAAE,mBAAmB,GACzB,OAAO,CAAC,2BAA2B,CAAC,CAQtC"}
|
|
@@ -57,8 +57,15 @@ exports.ApproveAgentRequest = (() => {
|
|
|
57
57
|
hyperliquidChain: v.pipe(commonSchemas_js_1.HyperliquidChainSchema, v.description("HyperLiquid network type.")),
|
|
58
58
|
/** Agent address. */
|
|
59
59
|
agentAddress: v.pipe(_schemas_js_1.Address, v.description("Agent address.")),
|
|
60
|
-
/** Agent name or null for unnamed agent. */
|
|
61
|
-
agentName: v.pipe(v.nullish(v.pipe(v.string(), v.
|
|
60
|
+
/** Agent name (min 1 and max 16 characters) or null for unnamed agent. */
|
|
61
|
+
agentName: v.pipe(v.nullish(v.pipe(v.string(), v.check((input) => {
|
|
62
|
+
// Ignore trailing ` valid_until <timestamp>` when checking length
|
|
63
|
+
const baseName = input.replace(/ valid_until \d+$/, "");
|
|
64
|
+
return baseName.length >= 1 && baseName.length <= 16;
|
|
65
|
+
}, (issue) => {
|
|
66
|
+
const baseName = issue.input.replace(/ valid_until \d+$/, "");
|
|
67
|
+
return `Invalid length: Expected >= 1 and <= 16 but received ${baseName.length}`;
|
|
68
|
+
})), null), v.description("Agent name (min 1 and max 16 characters) or null for unnamed agent.")),
|
|
62
69
|
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
63
70
|
nonce: v.pipe(_schemas_js_1.UnsignedInteger, v.description("Nonce (timestamp in ms) used to prevent replay attacks.")),
|
|
64
71
|
}), v.description("Action to perform.")),
|
|
@@ -114,9 +121,20 @@ exports.ApproveAgentTypes = {
|
|
|
114
121
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
115
122
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
116
123
|
*
|
|
124
|
+
* // Basic usage
|
|
117
125
|
* await approveAgent(
|
|
118
126
|
* { transport, wallet },
|
|
119
|
-
* { agentAddress: "0x...", agentName: "
|
|
127
|
+
* { agentAddress: "0x...", agentName: "myAgent" },
|
|
128
|
+
* );
|
|
129
|
+
*
|
|
130
|
+
* // With expiration timestamp
|
|
131
|
+
* const expirationTimestamp = Date.now() + 24 * 60 * 60 * 1000;
|
|
132
|
+
* await approveAgent(
|
|
133
|
+
* { transport, wallet },
|
|
134
|
+
* {
|
|
135
|
+
* agentAddress: "0x...",
|
|
136
|
+
* agentName: `myAgent valid_until ${expirationTimestamp}`,
|
|
137
|
+
* },
|
|
120
138
|
* );
|
|
121
139
|
* ```
|
|
122
140
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveAgent.js","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/approveAgent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"approveAgent.js","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/approveAgent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0KA,oCAYC;AAtLD,2CAA6B;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,mDAAkE;AAClE,+DAAmH;AAEnH;;;GAGG;AACU,QAAA,mBAAmB,GAAmB,CAAC,GAAG,EAAE;IACvD,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,cAAc,CAAC,EACzB,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CACjC;YACD,kDAAkD;YAClD,gBAAgB,EAAE,CAAC,CAAC,IAAI,CACtB,iBAAG,EACH,CAAC,CAAC,WAAW,CAAC,6CAA6C,CAAC,CAC7D;YACD,gCAAgC;YAChC,gBAAgB,EAAE,CAAC,CAAC,IAAI,CACtB,yCAAsB,E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EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,EACnC,yBAAiB,EACjB,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -600,7 +600,7 @@ declare const BatchModifyParameters: Omit<v.ObjectSchema<{
|
|
|
600
600
|
c?: `0x${string}` | undefined;
|
|
601
601
|
};
|
|
602
602
|
}[];
|
|
603
|
-
}, v.StringIssue | v.ArrayIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34> | v.PicklistIssue | v.
|
|
603
|
+
}, v.StringIssue | v.ArrayIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34> | v.PicklistIssue | v.CheckIssue<string> | v.BooleanIssue | v.UnionIssue<v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.PicklistIssue | v.CheckIssue<string> | v.BooleanIssue> | v.UnionIssue<v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34>>>;
|
|
604
604
|
readonly "~types"?: {
|
|
605
605
|
readonly input: {
|
|
606
606
|
modifies: {
|
|
@@ -650,7 +650,7 @@ declare const BatchModifyParameters: Omit<v.ObjectSchema<{
|
|
|
650
650
|
};
|
|
651
651
|
}[];
|
|
652
652
|
};
|
|
653
|
-
readonly issue: v.StringIssue | v.ArrayIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34> | v.PicklistIssue | v.
|
|
653
|
+
readonly issue: v.StringIssue | v.ArrayIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34> | v.PicklistIssue | v.CheckIssue<string> | v.BooleanIssue | v.UnionIssue<v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.PicklistIssue | v.CheckIssue<string> | v.BooleanIssue> | v.UnionIssue<v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 34>>;
|
|
654
654
|
} | undefined;
|
|
655
655
|
};
|
|
656
656
|
/** Action parameters for the {@linkcode batchModify} function. */
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** Borrow or lend assets. */
|
|
3
|
+
export declare const BorrowLendRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4
|
+
/** Action to perform. */
|
|
5
|
+
readonly action: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
6
|
+
/** Type of action. */
|
|
7
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"borrowLend", undefined>, v.DescriptionAction<"borrowLend", "Type of action.">]>;
|
|
8
|
+
/** Operation type. */
|
|
9
|
+
readonly operation: v.SchemaWithPipe<readonly [v.PicklistSchema<["supply", "withdraw", "repay", "borrow"], undefined>, v.DescriptionAction<"supply" | "withdraw" | "repay" | "borrow", "Operation type.">]>;
|
|
10
|
+
/** Token ID. */
|
|
11
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Token ID.">]>;
|
|
12
|
+
/** Amount to supply/withdraw (null = full). */
|
|
13
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Amount to supply/withdraw (null = full).">]>;
|
|
14
|
+
}, undefined>, v.DescriptionAction<{
|
|
15
|
+
type: "borrowLend";
|
|
16
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
17
|
+
token: number;
|
|
18
|
+
amount: string | null;
|
|
19
|
+
}, "Action to perform.">]>;
|
|
20
|
+
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
21
|
+
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
|
|
22
|
+
/** ECDSA signature components. */
|
|
23
|
+
readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
24
|
+
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
|
|
25
|
+
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Second 32-byte component.">]>;
|
|
26
|
+
readonly v: v.SchemaWithPipe<readonly [v.PicklistSchema<[27, 28], undefined>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
27
|
+
}, undefined>, v.DescriptionAction<{
|
|
28
|
+
r: `0x${string}`;
|
|
29
|
+
s: `0x${string}`;
|
|
30
|
+
v: 27 | 28;
|
|
31
|
+
}, "ECDSA signature components.">]>, v.DescriptionAction<{
|
|
32
|
+
r: `0x${string}`;
|
|
33
|
+
s: `0x${string}`;
|
|
34
|
+
v: 27 | 28;
|
|
35
|
+
}, "ECDSA signature components.">]>;
|
|
36
|
+
/** Vault address (for vault trading). */
|
|
37
|
+
readonly vaultAddress: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Vault address (for vault trading).">]>;
|
|
38
|
+
/** Expiration time of the action. */
|
|
39
|
+
readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "Expiration time of the action.">]>;
|
|
40
|
+
}, undefined>, v.DescriptionAction<{
|
|
41
|
+
action: {
|
|
42
|
+
type: "borrowLend";
|
|
43
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
44
|
+
token: number;
|
|
45
|
+
amount: string | null;
|
|
46
|
+
};
|
|
47
|
+
nonce: number;
|
|
48
|
+
signature: {
|
|
49
|
+
r: `0x${string}`;
|
|
50
|
+
s: `0x${string}`;
|
|
51
|
+
v: 27 | 28;
|
|
52
|
+
};
|
|
53
|
+
vaultAddress?: `0x${string}` | undefined;
|
|
54
|
+
expiresAfter?: number | undefined;
|
|
55
|
+
}, "Borrow or lend assets.">]>;
|
|
56
|
+
export type BorrowLendRequest = v.InferOutput<typeof BorrowLendRequest>;
|
|
57
|
+
/** Successful response without specific data or error response. */
|
|
58
|
+
export declare const BorrowLendResponse: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
59
|
+
readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
|
|
60
|
+
readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
61
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
|
|
62
|
+
}, undefined>, v.DescriptionAction<{
|
|
63
|
+
type: "default";
|
|
64
|
+
}, "Response details.">]>;
|
|
65
|
+
}, undefined>, v.DescriptionAction<{
|
|
66
|
+
status: "ok";
|
|
67
|
+
response: {
|
|
68
|
+
type: "default";
|
|
69
|
+
};
|
|
70
|
+
}, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
71
|
+
readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
|
|
72
|
+
readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
|
|
73
|
+
}, undefined>, v.DescriptionAction<{
|
|
74
|
+
status: "err";
|
|
75
|
+
response: string;
|
|
76
|
+
}, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
|
|
77
|
+
status: "err";
|
|
78
|
+
response: string;
|
|
79
|
+
} | {
|
|
80
|
+
status: "ok";
|
|
81
|
+
response: {
|
|
82
|
+
type: "default";
|
|
83
|
+
};
|
|
84
|
+
}, "Successful response without specific data or error response.">]>;
|
|
85
|
+
export type BorrowLendResponse = v.InferOutput<typeof BorrowLendResponse>;
|
|
86
|
+
import { type ExchangeConfig, type ExtractRequestOptions } from "./_base/execute.js";
|
|
87
|
+
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
88
|
+
/** Schema for user-provided action parameters (excludes system fields). */
|
|
89
|
+
declare const BorrowLendParameters: Omit<v.ObjectSchema<{
|
|
90
|
+
/** Type of action. */
|
|
91
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"borrowLend", undefined>, v.DescriptionAction<"borrowLend", "Type of action.">]>;
|
|
92
|
+
/** Operation type. */
|
|
93
|
+
readonly operation: v.SchemaWithPipe<readonly [v.PicklistSchema<["supply", "withdraw", "repay", "borrow"], undefined>, v.DescriptionAction<"supply" | "withdraw" | "repay" | "borrow", "Operation type.">]>;
|
|
94
|
+
/** Token ID. */
|
|
95
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Token ID.">]>;
|
|
96
|
+
/** Amount to supply/withdraw (null = full). */
|
|
97
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Amount to supply/withdraw (null = full).">]>;
|
|
98
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
99
|
+
readonly entries: Omit<{
|
|
100
|
+
/** Type of action. */
|
|
101
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"borrowLend", undefined>, v.DescriptionAction<"borrowLend", "Type of action.">]>;
|
|
102
|
+
/** Operation type. */
|
|
103
|
+
readonly operation: v.SchemaWithPipe<readonly [v.PicklistSchema<["supply", "withdraw", "repay", "borrow"], undefined>, v.DescriptionAction<"supply" | "withdraw" | "repay" | "borrow", "Operation type.">]>;
|
|
104
|
+
/** Token ID. */
|
|
105
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Token ID.">]>;
|
|
106
|
+
/** Amount to supply/withdraw (null = full). */
|
|
107
|
+
readonly amount: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Amount to supply/withdraw (null = full).">]>;
|
|
108
|
+
}, "type">;
|
|
109
|
+
readonly "~standard": v.StandardProps<{
|
|
110
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
111
|
+
token: string | number;
|
|
112
|
+
amount: string | number | null;
|
|
113
|
+
}, {
|
|
114
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
115
|
+
token: number;
|
|
116
|
+
amount: string | null;
|
|
117
|
+
}>;
|
|
118
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
119
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
120
|
+
token: number;
|
|
121
|
+
amount: string | null;
|
|
122
|
+
}, v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.PicklistIssue>;
|
|
123
|
+
readonly "~types"?: {
|
|
124
|
+
readonly input: {
|
|
125
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
126
|
+
token: string | number;
|
|
127
|
+
amount: string | number | null;
|
|
128
|
+
};
|
|
129
|
+
readonly output: {
|
|
130
|
+
operation: "supply" | "withdraw" | "repay" | "borrow";
|
|
131
|
+
token: number;
|
|
132
|
+
amount: string | null;
|
|
133
|
+
};
|
|
134
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.PicklistIssue;
|
|
135
|
+
} | undefined;
|
|
136
|
+
};
|
|
137
|
+
/** Action parameters for the {@linkcode borrowLend} function. */
|
|
138
|
+
export type BorrowLendParameters = v.InferInput<typeof BorrowLendParameters>;
|
|
139
|
+
/** Request options for the {@linkcode borrowLend} function. */
|
|
140
|
+
export type BorrowLendOptions = ExtractRequestOptions<v.InferInput<typeof BorrowLendRequest>>;
|
|
141
|
+
/** Successful variant of {@linkcode BorrowLendResponse} without errors. */
|
|
142
|
+
export type BorrowLendSuccessResponse = ExcludeErrorResponse<BorrowLendResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Borrow or lend assets.
|
|
145
|
+
*
|
|
146
|
+
* @param config - General configuration for Exchange API requests.
|
|
147
|
+
* @param params - Parameters specific to the API request.
|
|
148
|
+
* @param opts - Request execution options.
|
|
149
|
+
*
|
|
150
|
+
* @returns Successful response without specific data.
|
|
151
|
+
*
|
|
152
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
153
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
154
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
159
|
+
* import { borrowLend } from "@nktkas/hyperliquid/api/exchange";
|
|
160
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
161
|
+
*
|
|
162
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
163
|
+
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
164
|
+
*
|
|
165
|
+
* const data = await borrowLend(
|
|
166
|
+
* { transport, wallet },
|
|
167
|
+
* { operation: "supply", token: 0, amount: "20" },
|
|
168
|
+
* );
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
export declare function borrowLend(config: ExchangeConfig, params: BorrowLendParameters, opts?: BorrowLendOptions): Promise<BorrowLendSuccessResponse>;
|
|
172
|
+
export {};
|
|
173
|
+
//# sourceMappingURL=borrowLend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowLend.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/borrowLend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B,6BAA6B;AAC7B,eAAO,MAAM,iBAAiB;IAGxB,yBAAyB;;QAGrB,sBAAsB;;QAKtB,sBAAsB;;QAKtB,gBAAgB;;QAKhB,+CAA+C;;;;;;;;IAQnD,8DAA8D;;IAK9D,kCAAkC;;;;;;;;;;;;;;IAKlC,yCAAyC;;IAKzC,qCAAqC;;;;;;;;;;;;;;;;;8BAQvC,CAAC;AACL,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