@lit-protocol/vincent-ability-hyperliquid 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CONTRIBUTING.md +5 -0
  3. package/README.md +922 -0
  4. package/dist/CHANGELOG.md +21 -0
  5. package/dist/CONTRIBUTING.md +5 -0
  6. package/dist/README.md +922 -0
  7. package/dist/package.json +35 -0
  8. package/dist/src/generated/lit-action.js +9 -0
  9. package/dist/src/generated/vincent-ability-metadata.json +3 -0
  10. package/dist/src/generated/vincent-bundled-ability.d.ts +483 -0
  11. package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -0
  12. package/dist/src/generated/vincent-bundled-ability.js +15 -0
  13. package/dist/src/generated/vincent-bundled-ability.js.map +1 -0
  14. package/dist/src/generated/vincent-bundled-ability.ts +13 -0
  15. package/dist/src/index.d.ts +13 -0
  16. package/dist/src/index.d.ts.map +1 -0
  17. package/dist/src/index.js +14 -0
  18. package/dist/src/index.js.map +1 -0
  19. package/dist/src/lib/ability-checks/cancel.d.ts +41 -0
  20. package/dist/src/lib/ability-checks/cancel.d.ts.map +1 -0
  21. package/dist/src/lib/ability-checks/cancel.js +58 -0
  22. package/dist/src/lib/ability-checks/cancel.js.map +1 -0
  23. package/dist/src/lib/ability-checks/deposit-usdc.d.ts +18 -0
  24. package/dist/src/lib/ability-checks/deposit-usdc.d.ts.map +1 -0
  25. package/dist/src/lib/ability-checks/deposit-usdc.js +40 -0
  26. package/dist/src/lib/ability-checks/deposit-usdc.js.map +1 -0
  27. package/dist/src/lib/ability-checks/hyperliquid-account-exists.d.ts +6 -0
  28. package/dist/src/lib/ability-checks/hyperliquid-account-exists.d.ts.map +1 -0
  29. package/dist/src/lib/ability-checks/hyperliquid-account-exists.js +22 -0
  30. package/dist/src/lib/ability-checks/hyperliquid-account-exists.js.map +1 -0
  31. package/dist/src/lib/ability-checks/index.d.ts +11 -0
  32. package/dist/src/lib/ability-checks/index.d.ts.map +1 -0
  33. package/dist/src/lib/ability-checks/index.js +25 -0
  34. package/dist/src/lib/ability-checks/index.js.map +1 -0
  35. package/dist/src/lib/ability-checks/is-builder-code-approved.d.ts +14 -0
  36. package/dist/src/lib/ability-checks/is-builder-code-approved.d.ts.map +1 -0
  37. package/dist/src/lib/ability-checks/is-builder-code-approved.js +29 -0
  38. package/dist/src/lib/ability-checks/is-builder-code-approved.js.map +1 -0
  39. package/dist/src/lib/ability-checks/perp.d.ts +23 -0
  40. package/dist/src/lib/ability-checks/perp.d.ts.map +1 -0
  41. package/dist/src/lib/ability-checks/perp.js +47 -0
  42. package/dist/src/lib/ability-checks/perp.js.map +1 -0
  43. package/dist/src/lib/ability-checks/send-perp-usdc.d.ts +26 -0
  44. package/dist/src/lib/ability-checks/send-perp-usdc.d.ts.map +1 -0
  45. package/dist/src/lib/ability-checks/send-perp-usdc.js +38 -0
  46. package/dist/src/lib/ability-checks/send-perp-usdc.js.map +1 -0
  47. package/dist/src/lib/ability-checks/send-spot-asset.d.ts +27 -0
  48. package/dist/src/lib/ability-checks/send-spot-asset.d.ts.map +1 -0
  49. package/dist/src/lib/ability-checks/send-spot-asset.js +59 -0
  50. package/dist/src/lib/ability-checks/send-spot-asset.js.map +1 -0
  51. package/dist/src/lib/ability-checks/spot.d.ts +24 -0
  52. package/dist/src/lib/ability-checks/spot.d.ts.map +1 -0
  53. package/dist/src/lib/ability-checks/spot.js +98 -0
  54. package/dist/src/lib/ability-checks/spot.js.map +1 -0
  55. package/dist/src/lib/ability-checks/transfer-usdc.d.ts +26 -0
  56. package/dist/src/lib/ability-checks/transfer-usdc.d.ts.map +1 -0
  57. package/dist/src/lib/ability-checks/transfer-usdc.js +64 -0
  58. package/dist/src/lib/ability-checks/transfer-usdc.js.map +1 -0
  59. package/dist/src/lib/ability-checks/withdraw-usdc.d.ts +25 -0
  60. package/dist/src/lib/ability-checks/withdraw-usdc.d.ts.map +1 -0
  61. package/dist/src/lib/ability-checks/withdraw-usdc.js +39 -0
  62. package/dist/src/lib/ability-checks/withdraw-usdc.js.map +1 -0
  63. package/dist/src/lib/ability-helpers/approve-builder-code.d.ts +22 -0
  64. package/dist/src/lib/ability-helpers/approve-builder-code.d.ts.map +1 -0
  65. package/dist/src/lib/ability-helpers/approve-builder-code.js +53 -0
  66. package/dist/src/lib/ability-helpers/approve-builder-code.js.map +1 -0
  67. package/dist/src/lib/ability-helpers/cancel-order/cancel-all-orders.d.ts +21 -0
  68. package/dist/src/lib/ability-helpers/cancel-order/cancel-all-orders.d.ts.map +1 -0
  69. package/dist/src/lib/ability-helpers/cancel-order/cancel-all-orders.js +69 -0
  70. package/dist/src/lib/ability-helpers/cancel-order/cancel-all-orders.js.map +1 -0
  71. package/dist/src/lib/ability-helpers/cancel-order/cancel-order.d.ts +25 -0
  72. package/dist/src/lib/ability-helpers/cancel-order/cancel-order.d.ts.map +1 -0
  73. package/dist/src/lib/ability-helpers/cancel-order/cancel-order.js +63 -0
  74. package/dist/src/lib/ability-helpers/cancel-order/cancel-order.js.map +1 -0
  75. package/dist/src/lib/ability-helpers/execute-perp-order.d.ts +65 -0
  76. package/dist/src/lib/ability-helpers/execute-perp-order.d.ts.map +1 -0
  77. package/dist/src/lib/ability-helpers/execute-perp-order.js +110 -0
  78. package/dist/src/lib/ability-helpers/execute-perp-order.js.map +1 -0
  79. package/dist/src/lib/ability-helpers/execute-spot-order.d.ts +50 -0
  80. package/dist/src/lib/ability-helpers/execute-spot-order.d.ts.map +1 -0
  81. package/dist/src/lib/ability-helpers/execute-spot-order.js +84 -0
  82. package/dist/src/lib/ability-helpers/execute-spot-order.js.map +1 -0
  83. package/dist/src/lib/ability-helpers/get-hyperliquid-chain-id.d.ts +3 -0
  84. package/dist/src/lib/ability-helpers/get-hyperliquid-chain-id.d.ts.map +1 -0
  85. package/dist/src/lib/ability-helpers/get-hyperliquid-chain-id.js +15 -0
  86. package/dist/src/lib/ability-helpers/get-hyperliquid-chain-id.js.map +1 -0
  87. package/dist/src/lib/ability-helpers/get-hyperliquid-nonce.d.ts +2 -0
  88. package/dist/src/lib/ability-helpers/get-hyperliquid-nonce.d.ts.map +1 -0
  89. package/dist/src/lib/ability-helpers/get-hyperliquid-nonce.js +10 -0
  90. package/dist/src/lib/ability-helpers/get-hyperliquid-nonce.js.map +1 -0
  91. package/dist/src/lib/ability-helpers/index.d.ts +12 -0
  92. package/dist/src/lib/ability-helpers/index.d.ts.map +1 -0
  93. package/dist/src/lib/ability-helpers/index.js +26 -0
  94. package/dist/src/lib/ability-helpers/index.js.map +1 -0
  95. package/dist/src/lib/ability-helpers/lit-action-pkp-ethers-wallet.d.ts +74 -0
  96. package/dist/src/lib/ability-helpers/lit-action-pkp-ethers-wallet.d.ts.map +1 -0
  97. package/dist/src/lib/ability-helpers/lit-action-pkp-ethers-wallet.js +192 -0
  98. package/dist/src/lib/ability-helpers/lit-action-pkp-ethers-wallet.js.map +1 -0
  99. package/dist/src/lib/ability-helpers/send-deposit-tx.d.ts +15 -0
  100. package/dist/src/lib/ability-helpers/send-deposit-tx.d.ts.map +1 -0
  101. package/dist/src/lib/ability-helpers/send-deposit-tx.js +82 -0
  102. package/dist/src/lib/ability-helpers/send-deposit-tx.js.map +1 -0
  103. package/dist/src/lib/ability-helpers/send-perp-usdc.d.ts +16 -0
  104. package/dist/src/lib/ability-helpers/send-perp-usdc.d.ts.map +1 -0
  105. package/dist/src/lib/ability-helpers/send-perp-usdc.js +49 -0
  106. package/dist/src/lib/ability-helpers/send-perp-usdc.js.map +1 -0
  107. package/dist/src/lib/ability-helpers/send-spot-asset.d.ts +17 -0
  108. package/dist/src/lib/ability-helpers/send-spot-asset.d.ts.map +1 -0
  109. package/dist/src/lib/ability-helpers/send-spot-asset.js +61 -0
  110. package/dist/src/lib/ability-helpers/send-spot-asset.js.map +1 -0
  111. package/dist/src/lib/ability-helpers/sign-tx.d.ts +3 -0
  112. package/dist/src/lib/ability-helpers/sign-tx.d.ts.map +1 -0
  113. package/dist/src/lib/ability-helpers/sign-tx.js +28 -0
  114. package/dist/src/lib/ability-helpers/sign-tx.js.map +1 -0
  115. package/dist/src/lib/ability-helpers/transfer-usdc-to.d.ts +16 -0
  116. package/dist/src/lib/ability-helpers/transfer-usdc-to.d.ts.map +1 -0
  117. package/dist/src/lib/ability-helpers/transfer-usdc-to.js +50 -0
  118. package/dist/src/lib/ability-helpers/transfer-usdc-to.js.map +1 -0
  119. package/dist/src/lib/ability-helpers/withdraw-usdc.d.ts +16 -0
  120. package/dist/src/lib/ability-helpers/withdraw-usdc.d.ts.map +1 -0
  121. package/dist/src/lib/ability-helpers/withdraw-usdc.js +49 -0
  122. package/dist/src/lib/ability-helpers/withdraw-usdc.js.map +1 -0
  123. package/dist/src/lib/constants.d.ts +3 -0
  124. package/dist/src/lib/constants.d.ts.map +1 -0
  125. package/dist/src/lib/constants.js +6 -0
  126. package/dist/src/lib/constants.js.map +1 -0
  127. package/dist/src/lib/lit-action.d.ts +2 -0
  128. package/dist/src/lib/lit-action.d.ts.map +1 -0
  129. package/dist/src/lib/lit-action.js +16 -0
  130. package/dist/src/lib/lit-action.js.map +1 -0
  131. package/dist/src/lib/schemas.d.ts +687 -0
  132. package/dist/src/lib/schemas.d.ts.map +1 -0
  133. package/dist/src/lib/schemas.js +233 -0
  134. package/dist/src/lib/schemas.js.map +1 -0
  135. package/dist/src/lib/types.d.ts +39 -0
  136. package/dist/src/lib/types.d.ts.map +1 -0
  137. package/dist/src/lib/types.js +45 -0
  138. package/dist/src/lib/types.js.map +1 -0
  139. package/dist/src/lib/vincent-ability.d.ts +480 -0
  140. package/dist/src/lib/vincent-ability.d.ts.map +1 -0
  141. package/dist/src/lib/vincent-ability.js +595 -0
  142. package/dist/src/lib/vincent-ability.js.map +1 -0
  143. package/package.json +34 -0
@@ -0,0 +1,480 @@
1
+ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk").VincentAbility<import("zod").ZodEffects<import("zod").ZodObject<{
2
+ action: import("zod").ZodEnum<["deposit", "withdraw", "sendSpotAsset", "sendPerpUsdc", "transferToSpot", "transferToPerp", "spotBuy", "spotSell", "perpLong", "perpShort", "cancelOrder", "cancelAllOrdersForSymbol", "approveBuilderCode"]>;
3
+ useTestnet: import("zod").ZodOptional<import("zod").ZodBoolean>;
4
+ deposit: import("zod").ZodOptional<import("zod").ZodObject<{
5
+ amount: import("zod").ZodString;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ amount: string;
8
+ }, {
9
+ amount: string;
10
+ }>>;
11
+ withdraw: import("zod").ZodOptional<import("zod").ZodObject<{
12
+ amount: import("zod").ZodString;
13
+ destination: import("zod").ZodOptional<import("zod").ZodString>;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ amount: string;
16
+ destination?: string | undefined;
17
+ }, {
18
+ amount: string;
19
+ destination?: string | undefined;
20
+ }>>;
21
+ sendSpotAsset: import("zod").ZodOptional<import("zod").ZodObject<{
22
+ destination: import("zod").ZodString;
23
+ token: import("zod").ZodString;
24
+ amount: import("zod").ZodString;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ amount: string;
27
+ destination: string;
28
+ token: string;
29
+ }, {
30
+ amount: string;
31
+ destination: string;
32
+ token: string;
33
+ }>>;
34
+ sendPerpUsdc: import("zod").ZodOptional<import("zod").ZodObject<{
35
+ destination: import("zod").ZodString;
36
+ amount: import("zod").ZodString;
37
+ }, "strip", import("zod").ZodTypeAny, {
38
+ amount: string;
39
+ destination: string;
40
+ }, {
41
+ amount: string;
42
+ destination: string;
43
+ }>>;
44
+ transfer: import("zod").ZodOptional<import("zod").ZodObject<{
45
+ amount: import("zod").ZodString;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ amount: string;
48
+ }, {
49
+ amount: string;
50
+ }>>;
51
+ spot: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
52
+ symbol: import("zod").ZodString;
53
+ price: import("zod").ZodString;
54
+ size: import("zod").ZodString;
55
+ orderType: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
56
+ type: import("zod").ZodLiteral<"limit">;
57
+ tif: import("zod").ZodEnum<["Gtc", "Ioc", "Alo"]>;
58
+ }, "strip", import("zod").ZodTypeAny, {
59
+ type: "limit";
60
+ tif: "Gtc" | "Ioc" | "Alo";
61
+ }, {
62
+ type: "limit";
63
+ tif: "Gtc" | "Ioc" | "Alo";
64
+ }>, import("zod").ZodObject<{
65
+ type: import("zod").ZodLiteral<"market">;
66
+ }, "strip", import("zod").ZodTypeAny, {
67
+ type: "market";
68
+ }, {
69
+ type: "market";
70
+ }>]>>;
71
+ }, "strip", import("zod").ZodTypeAny, {
72
+ symbol: string;
73
+ price: string;
74
+ size: string;
75
+ orderType?: {
76
+ type: "limit";
77
+ tif: "Gtc" | "Ioc" | "Alo";
78
+ } | {
79
+ type: "market";
80
+ } | undefined;
81
+ }, {
82
+ symbol: string;
83
+ price: string;
84
+ size: string;
85
+ orderType?: {
86
+ type: "limit";
87
+ tif: "Gtc" | "Ioc" | "Alo";
88
+ } | {
89
+ type: "market";
90
+ } | undefined;
91
+ }>, {
92
+ symbol: string;
93
+ price: string;
94
+ size: string;
95
+ orderType?: {
96
+ type: "limit";
97
+ tif: "Gtc" | "Ioc" | "Alo";
98
+ } | {
99
+ type: "market";
100
+ } | undefined;
101
+ }, {
102
+ symbol: string;
103
+ price: string;
104
+ size: string;
105
+ orderType?: {
106
+ type: "limit";
107
+ tif: "Gtc" | "Ioc" | "Alo";
108
+ } | {
109
+ type: "market";
110
+ } | undefined;
111
+ }>>;
112
+ perp: import("zod").ZodOptional<import("zod").ZodObject<{
113
+ symbol: import("zod").ZodString;
114
+ price: import("zod").ZodString;
115
+ size: import("zod").ZodString;
116
+ leverage: import("zod").ZodNumber;
117
+ isCross: import("zod").ZodOptional<import("zod").ZodBoolean>;
118
+ reduceOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
119
+ orderType: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
120
+ type: import("zod").ZodLiteral<"limit">;
121
+ tif: import("zod").ZodEnum<["Gtc", "Ioc", "Alo"]>;
122
+ }, "strip", import("zod").ZodTypeAny, {
123
+ type: "limit";
124
+ tif: "Gtc" | "Ioc" | "Alo";
125
+ }, {
126
+ type: "limit";
127
+ tif: "Gtc" | "Ioc" | "Alo";
128
+ }>, import("zod").ZodObject<{
129
+ type: import("zod").ZodLiteral<"market">;
130
+ }, "strip", import("zod").ZodTypeAny, {
131
+ type: "market";
132
+ }, {
133
+ type: "market";
134
+ }>]>>;
135
+ }, "strip", import("zod").ZodTypeAny, {
136
+ symbol: string;
137
+ price: string;
138
+ size: string;
139
+ leverage: number;
140
+ orderType?: {
141
+ type: "limit";
142
+ tif: "Gtc" | "Ioc" | "Alo";
143
+ } | {
144
+ type: "market";
145
+ } | undefined;
146
+ isCross?: boolean | undefined;
147
+ reduceOnly?: boolean | undefined;
148
+ }, {
149
+ symbol: string;
150
+ price: string;
151
+ size: string;
152
+ leverage: number;
153
+ orderType?: {
154
+ type: "limit";
155
+ tif: "Gtc" | "Ioc" | "Alo";
156
+ } | {
157
+ type: "market";
158
+ } | undefined;
159
+ isCross?: boolean | undefined;
160
+ reduceOnly?: boolean | undefined;
161
+ }>>;
162
+ cancelOrder: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
163
+ symbol: import("zod").ZodString;
164
+ orderId: import("zod").ZodNumber;
165
+ }, "strip", import("zod").ZodTypeAny, {
166
+ symbol: string;
167
+ orderId: number;
168
+ }, {
169
+ symbol: string;
170
+ orderId: number;
171
+ }>, {
172
+ symbol: string;
173
+ orderId: number;
174
+ }, {
175
+ symbol: string;
176
+ orderId: number;
177
+ }>>;
178
+ cancelAllOrdersForSymbol: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
179
+ symbol: import("zod").ZodString;
180
+ }, "strip", import("zod").ZodTypeAny, {
181
+ symbol: string;
182
+ }, {
183
+ symbol: string;
184
+ }>, {
185
+ symbol: string;
186
+ }, {
187
+ symbol: string;
188
+ }>>;
189
+ arbitrumRpcUrl: import("zod").ZodOptional<import("zod").ZodString>;
190
+ }, "strip", import("zod").ZodTypeAny, {
191
+ action: "deposit" | "withdraw" | "sendSpotAsset" | "sendPerpUsdc" | "transferToSpot" | "transferToPerp" | "spotBuy" | "spotSell" | "perpLong" | "perpShort" | "cancelOrder" | "cancelAllOrdersForSymbol" | "approveBuilderCode";
192
+ deposit?: {
193
+ amount: string;
194
+ } | undefined;
195
+ withdraw?: {
196
+ amount: string;
197
+ destination?: string | undefined;
198
+ } | undefined;
199
+ sendSpotAsset?: {
200
+ amount: string;
201
+ destination: string;
202
+ token: string;
203
+ } | undefined;
204
+ sendPerpUsdc?: {
205
+ amount: string;
206
+ destination: string;
207
+ } | undefined;
208
+ cancelOrder?: {
209
+ symbol: string;
210
+ orderId: number;
211
+ } | undefined;
212
+ cancelAllOrdersForSymbol?: {
213
+ symbol: string;
214
+ } | undefined;
215
+ useTestnet?: boolean | undefined;
216
+ transfer?: {
217
+ amount: string;
218
+ } | undefined;
219
+ spot?: {
220
+ symbol: string;
221
+ price: string;
222
+ size: string;
223
+ orderType?: {
224
+ type: "limit";
225
+ tif: "Gtc" | "Ioc" | "Alo";
226
+ } | {
227
+ type: "market";
228
+ } | undefined;
229
+ } | undefined;
230
+ perp?: {
231
+ symbol: string;
232
+ price: string;
233
+ size: string;
234
+ leverage: number;
235
+ orderType?: {
236
+ type: "limit";
237
+ tif: "Gtc" | "Ioc" | "Alo";
238
+ } | {
239
+ type: "market";
240
+ } | undefined;
241
+ isCross?: boolean | undefined;
242
+ reduceOnly?: boolean | undefined;
243
+ } | undefined;
244
+ arbitrumRpcUrl?: string | undefined;
245
+ }, {
246
+ action: "deposit" | "withdraw" | "sendSpotAsset" | "sendPerpUsdc" | "transferToSpot" | "transferToPerp" | "spotBuy" | "spotSell" | "perpLong" | "perpShort" | "cancelOrder" | "cancelAllOrdersForSymbol" | "approveBuilderCode";
247
+ deposit?: {
248
+ amount: string;
249
+ } | undefined;
250
+ withdraw?: {
251
+ amount: string;
252
+ destination?: string | undefined;
253
+ } | undefined;
254
+ sendSpotAsset?: {
255
+ amount: string;
256
+ destination: string;
257
+ token: string;
258
+ } | undefined;
259
+ sendPerpUsdc?: {
260
+ amount: string;
261
+ destination: string;
262
+ } | undefined;
263
+ cancelOrder?: {
264
+ symbol: string;
265
+ orderId: number;
266
+ } | undefined;
267
+ cancelAllOrdersForSymbol?: {
268
+ symbol: string;
269
+ } | undefined;
270
+ useTestnet?: boolean | undefined;
271
+ transfer?: {
272
+ amount: string;
273
+ } | undefined;
274
+ spot?: {
275
+ symbol: string;
276
+ price: string;
277
+ size: string;
278
+ orderType?: {
279
+ type: "limit";
280
+ tif: "Gtc" | "Ioc" | "Alo";
281
+ } | {
282
+ type: "market";
283
+ } | undefined;
284
+ } | undefined;
285
+ perp?: {
286
+ symbol: string;
287
+ price: string;
288
+ size: string;
289
+ leverage: number;
290
+ orderType?: {
291
+ type: "limit";
292
+ tif: "Gtc" | "Ioc" | "Alo";
293
+ } | {
294
+ type: "market";
295
+ } | undefined;
296
+ isCross?: boolean | undefined;
297
+ reduceOnly?: boolean | undefined;
298
+ } | undefined;
299
+ arbitrumRpcUrl?: string | undefined;
300
+ }>, {
301
+ action: "deposit" | "withdraw" | "sendSpotAsset" | "sendPerpUsdc" | "transferToSpot" | "transferToPerp" | "spotBuy" | "spotSell" | "perpLong" | "perpShort" | "cancelOrder" | "cancelAllOrdersForSymbol" | "approveBuilderCode";
302
+ deposit?: {
303
+ amount: string;
304
+ } | undefined;
305
+ withdraw?: {
306
+ amount: string;
307
+ destination?: string | undefined;
308
+ } | undefined;
309
+ sendSpotAsset?: {
310
+ amount: string;
311
+ destination: string;
312
+ token: string;
313
+ } | undefined;
314
+ sendPerpUsdc?: {
315
+ amount: string;
316
+ destination: string;
317
+ } | undefined;
318
+ cancelOrder?: {
319
+ symbol: string;
320
+ orderId: number;
321
+ } | undefined;
322
+ cancelAllOrdersForSymbol?: {
323
+ symbol: string;
324
+ } | undefined;
325
+ useTestnet?: boolean | undefined;
326
+ transfer?: {
327
+ amount: string;
328
+ } | undefined;
329
+ spot?: {
330
+ symbol: string;
331
+ price: string;
332
+ size: string;
333
+ orderType?: {
334
+ type: "limit";
335
+ tif: "Gtc" | "Ioc" | "Alo";
336
+ } | {
337
+ type: "market";
338
+ } | undefined;
339
+ } | undefined;
340
+ perp?: {
341
+ symbol: string;
342
+ price: string;
343
+ size: string;
344
+ leverage: number;
345
+ orderType?: {
346
+ type: "limit";
347
+ tif: "Gtc" | "Ioc" | "Alo";
348
+ } | {
349
+ type: "market";
350
+ } | undefined;
351
+ isCross?: boolean | undefined;
352
+ reduceOnly?: boolean | undefined;
353
+ } | undefined;
354
+ arbitrumRpcUrl?: string | undefined;
355
+ }, {
356
+ action: "deposit" | "withdraw" | "sendSpotAsset" | "sendPerpUsdc" | "transferToSpot" | "transferToPerp" | "spotBuy" | "spotSell" | "perpLong" | "perpShort" | "cancelOrder" | "cancelAllOrdersForSymbol" | "approveBuilderCode";
357
+ deposit?: {
358
+ amount: string;
359
+ } | undefined;
360
+ withdraw?: {
361
+ amount: string;
362
+ destination?: string | undefined;
363
+ } | undefined;
364
+ sendSpotAsset?: {
365
+ amount: string;
366
+ destination: string;
367
+ token: string;
368
+ } | undefined;
369
+ sendPerpUsdc?: {
370
+ amount: string;
371
+ destination: string;
372
+ } | undefined;
373
+ cancelOrder?: {
374
+ symbol: string;
375
+ orderId: number;
376
+ } | undefined;
377
+ cancelAllOrdersForSymbol?: {
378
+ symbol: string;
379
+ } | undefined;
380
+ useTestnet?: boolean | undefined;
381
+ transfer?: {
382
+ amount: string;
383
+ } | undefined;
384
+ spot?: {
385
+ symbol: string;
386
+ price: string;
387
+ size: string;
388
+ orderType?: {
389
+ type: "limit";
390
+ tif: "Gtc" | "Ioc" | "Alo";
391
+ } | {
392
+ type: "market";
393
+ } | undefined;
394
+ } | undefined;
395
+ perp?: {
396
+ symbol: string;
397
+ price: string;
398
+ size: string;
399
+ leverage: number;
400
+ orderType?: {
401
+ type: "limit";
402
+ tif: "Gtc" | "Ioc" | "Alo";
403
+ } | {
404
+ type: "market";
405
+ } | undefined;
406
+ isCross?: boolean | undefined;
407
+ reduceOnly?: boolean | undefined;
408
+ } | undefined;
409
+ arbitrumRpcUrl?: string | undefined;
410
+ }>, string, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/abilityCore/helpers").AbilityPolicyMap<readonly [], never>, {}, import("zod").ZodObject<{
411
+ action: import("zod").ZodString;
412
+ txHash: import("zod").ZodOptional<import("zod").ZodString>;
413
+ withdrawResult: import("zod").ZodOptional<import("zod").ZodAny>;
414
+ sendResult: import("zod").ZodOptional<import("zod").ZodAny>;
415
+ transferResult: import("zod").ZodOptional<import("zod").ZodAny>;
416
+ orderResult: import("zod").ZodOptional<import("zod").ZodAny>;
417
+ cancelResult: import("zod").ZodOptional<import("zod").ZodAny>;
418
+ approveResult: import("zod").ZodOptional<import("zod").ZodAny>;
419
+ }, "strip", import("zod").ZodTypeAny, {
420
+ action: string;
421
+ txHash?: string | undefined;
422
+ withdrawResult?: any;
423
+ sendResult?: any;
424
+ transferResult?: any;
425
+ orderResult?: any;
426
+ cancelResult?: any;
427
+ approveResult?: any;
428
+ }, {
429
+ action: string;
430
+ txHash?: string | undefined;
431
+ withdrawResult?: any;
432
+ sendResult?: any;
433
+ transferResult?: any;
434
+ orderResult?: any;
435
+ cancelResult?: any;
436
+ approveResult?: any;
437
+ }>, import("zod").ZodObject<{
438
+ action: import("zod").ZodString;
439
+ reason: import("zod").ZodString;
440
+ }, "strip", import("zod").ZodTypeAny, {
441
+ action: string;
442
+ reason: string;
443
+ }, {
444
+ action: string;
445
+ reason: string;
446
+ }>, import("zod").ZodObject<{
447
+ action: import("zod").ZodString;
448
+ availableBalance: import("zod").ZodOptional<import("zod").ZodString>;
449
+ isBuilderApproved: import("zod").ZodOptional<import("zod").ZodBoolean>;
450
+ }, "strip", import("zod").ZodTypeAny, {
451
+ action: string;
452
+ availableBalance?: string | undefined;
453
+ isBuilderApproved?: boolean | undefined;
454
+ }, {
455
+ action: string;
456
+ availableBalance?: string | undefined;
457
+ isBuilderApproved?: boolean | undefined;
458
+ }>, import("zod").ZodObject<{
459
+ action: import("zod").ZodString;
460
+ reason: import("zod").ZodString;
461
+ availableBalance: import("zod").ZodOptional<import("zod").ZodString>;
462
+ requiredBalance: import("zod").ZodOptional<import("zod").ZodString>;
463
+ balanceAsset: import("zod").ZodOptional<import("zod").ZodString>;
464
+ isBuilderApproved: import("zod").ZodOptional<import("zod").ZodBoolean>;
465
+ }, "strip", import("zod").ZodTypeAny, {
466
+ action: string;
467
+ reason: string;
468
+ availableBalance?: string | undefined;
469
+ isBuilderApproved?: boolean | undefined;
470
+ requiredBalance?: string | undefined;
471
+ balanceAsset?: string | undefined;
472
+ }, {
473
+ action: string;
474
+ reason: string;
475
+ availableBalance?: string | undefined;
476
+ isBuilderApproved?: boolean | undefined;
477
+ requiredBalance?: string | undefined;
478
+ balanceAsset?: string | undefined;
479
+ }>>;
480
+ //# sourceMappingURL=vincent-ability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vincent-ability.d.ts","sourceRoot":"","sources":["../../../src/lib/vincent-ability.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2qBzB,CAAC"}