@lit-protocol/vincent-ability-uniswap-swap 0.0.7-mma

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 (96) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/CONTRIBUTING.md +100 -0
  3. package/README.md +127 -0
  4. package/dist/CHANGELOG.md +15 -0
  5. package/dist/CONTRIBUTING.md +100 -0
  6. package/dist/README.md +127 -0
  7. package/dist/package.json +37 -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 +976 -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/generated/vincent-tool-metadata.json +3 -0
  16. package/dist/src/index.d.ts +2 -0
  17. package/dist/src/index.d.ts.map +1 -0
  18. package/dist/src/index.js +6 -0
  19. package/dist/src/index.js.map +1 -0
  20. package/dist/src/lib/ability-checks/check-erc20-allowance.d.ts +9 -0
  21. package/dist/src/lib/ability-checks/check-erc20-allowance.d.ts.map +1 -0
  22. package/dist/src/lib/ability-checks/check-erc20-allowance.js +17 -0
  23. package/dist/src/lib/ability-checks/check-erc20-allowance.js.map +1 -0
  24. package/dist/src/lib/ability-checks/check-native-token-balance.d.ts +6 -0
  25. package/dist/src/lib/ability-checks/check-native-token-balance.d.ts.map +1 -0
  26. package/dist/src/lib/ability-checks/check-native-token-balance.js +12 -0
  27. package/dist/src/lib/ability-checks/check-native-token-balance.js.map +1 -0
  28. package/dist/src/lib/ability-checks/check-token-in-balance.d.ts +8 -0
  29. package/dist/src/lib/ability-checks/check-token-in-balance.d.ts.map +1 -0
  30. package/dist/src/lib/ability-checks/check-token-in-balance.js +17 -0
  31. package/dist/src/lib/ability-checks/check-token-in-balance.js.map +1 -0
  32. package/dist/src/lib/ability-checks/check-uniswap-pool-exists.d.ts +10 -0
  33. package/dist/src/lib/ability-checks/check-uniswap-pool-exists.d.ts.map +1 -0
  34. package/dist/src/lib/ability-checks/check-uniswap-pool-exists.js +24 -0
  35. package/dist/src/lib/ability-checks/check-uniswap-pool-exists.js.map +1 -0
  36. package/dist/src/lib/ability-checks/getErc20Contract.d.ts +4 -0
  37. package/dist/src/lib/ability-checks/getErc20Contract.d.ts.map +1 -0
  38. package/dist/src/lib/ability-checks/getErc20Contract.js +20 -0
  39. package/dist/src/lib/ability-checks/getErc20Contract.js.map +1 -0
  40. package/dist/src/lib/ability-checks/index.d.ts +5 -0
  41. package/dist/src/lib/ability-checks/index.d.ts.map +1 -0
  42. package/dist/src/lib/ability-checks/index.js +8 -0
  43. package/dist/src/lib/ability-checks/index.js.map +1 -0
  44. package/dist/src/lib/ability-helpers/calculate-usd-value.d.ts +7 -0
  45. package/dist/src/lib/ability-helpers/calculate-usd-value.d.ts.map +1 -0
  46. package/dist/src/lib/ability-helpers/calculate-usd-value.js +22 -0
  47. package/dist/src/lib/ability-helpers/calculate-usd-value.js.map +1 -0
  48. package/dist/src/lib/ability-helpers/estimate-gas-for-swap.d.ts +7 -0
  49. package/dist/src/lib/ability-helpers/estimate-gas-for-swap.d.ts.map +1 -0
  50. package/dist/src/lib/ability-helpers/estimate-gas-for-swap.js +24 -0
  51. package/dist/src/lib/ability-helpers/estimate-gas-for-swap.js.map +1 -0
  52. package/dist/src/lib/ability-helpers/get-eth-usd-price.d.ts +6 -0
  53. package/dist/src/lib/ability-helpers/get-eth-usd-price.d.ts.map +1 -0
  54. package/dist/src/lib/ability-helpers/get-eth-usd-price.js +22 -0
  55. package/dist/src/lib/ability-helpers/get-eth-usd-price.js.map +1 -0
  56. package/dist/src/lib/ability-helpers/get-gas-params.d.ts +8 -0
  57. package/dist/src/lib/ability-helpers/get-gas-params.d.ts.map +1 -0
  58. package/dist/src/lib/ability-helpers/get-gas-params.js +31 -0
  59. package/dist/src/lib/ability-helpers/get-gas-params.js.map +1 -0
  60. package/dist/src/lib/ability-helpers/get-pkp-info.d.ts +6 -0
  61. package/dist/src/lib/ability-helpers/get-pkp-info.d.ts.map +1 -0
  62. package/dist/src/lib/ability-helpers/get-pkp-info.js +22 -0
  63. package/dist/src/lib/ability-helpers/get-pkp-info.js.map +1 -0
  64. package/dist/src/lib/ability-helpers/get-token-amount-in-usd.d.ts +10 -0
  65. package/dist/src/lib/ability-helpers/get-token-amount-in-usd.d.ts.map +1 -0
  66. package/dist/src/lib/ability-helpers/get-token-amount-in-usd.js +68 -0
  67. package/dist/src/lib/ability-helpers/get-token-amount-in-usd.js.map +1 -0
  68. package/dist/src/lib/ability-helpers/get-uniswap-quote.d.ts +15 -0
  69. package/dist/src/lib/ability-helpers/get-uniswap-quote.d.ts.map +1 -0
  70. package/dist/src/lib/ability-helpers/get-uniswap-quote.js +114 -0
  71. package/dist/src/lib/ability-helpers/get-uniswap-quote.js.map +1 -0
  72. package/dist/src/lib/ability-helpers/index.d.ts +10 -0
  73. package/dist/src/lib/ability-helpers/index.d.ts.map +1 -0
  74. package/dist/src/lib/ability-helpers/index.js +13 -0
  75. package/dist/src/lib/ability-helpers/index.js.map +1 -0
  76. package/dist/src/lib/ability-helpers/send-uniswap-tx.d.ts +12 -0
  77. package/dist/src/lib/ability-helpers/send-uniswap-tx.d.ts.map +1 -0
  78. package/dist/src/lib/ability-helpers/send-uniswap-tx.js +119 -0
  79. package/dist/src/lib/ability-helpers/send-uniswap-tx.js.map +1 -0
  80. package/dist/src/lib/ability-helpers/sign-tx.d.ts +3 -0
  81. package/dist/src/lib/ability-helpers/sign-tx.d.ts.map +1 -0
  82. package/dist/src/lib/ability-helpers/sign-tx.js +28 -0
  83. package/dist/src/lib/ability-helpers/sign-tx.js.map +1 -0
  84. package/dist/src/lib/lit-action.d.ts +2 -0
  85. package/dist/src/lib/lit-action.d.ts.map +1 -0
  86. package/dist/src/lib/lit-action.js +15 -0
  87. package/dist/src/lib/lit-action.js.map +1 -0
  88. package/dist/src/lib/schemas.d.ts +92 -0
  89. package/dist/src/lib/schemas.d.ts.map +1 -0
  90. package/dist/src/lib/schemas.js +66 -0
  91. package/dist/src/lib/schemas.js.map +1 -0
  92. package/dist/src/lib/vincent-ability.d.ts +974 -0
  93. package/dist/src/lib/vincent-ability.d.ts.map +1 -0
  94. package/dist/src/lib/vincent-ability.js +187 -0
  95. package/dist/src/lib/vincent-ability.js.map +1 -0
  96. package/package.json +36 -0
@@ -0,0 +1,976 @@
1
+ /**
2
+ * DO NOT EDIT THIS FILE. IT IS GENERATED ON BUILD.
3
+ */
4
+ export declare const bundledVincentAbility: import("@lit-protocol/vincent-ability-sdk").BundledVincentAbility<import("@lit-protocol/vincent-ability-sdk").VincentAbility<import("zod").ZodObject<{
5
+ ethRpcUrl: import("zod").ZodString;
6
+ rpcUrlForUniswap: import("zod").ZodString;
7
+ chainIdForUniswap: import("zod").ZodNumber;
8
+ tokenInAddress: import("zod").ZodString;
9
+ tokenInDecimals: import("zod").ZodNumber;
10
+ tokenInAmount: import("zod").ZodEffects<import("zod").ZodNumber, number, number>;
11
+ tokenOutAddress: import("zod").ZodString;
12
+ tokenOutDecimals: import("zod").ZodNumber;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ tokenInAddress: string;
15
+ tokenInDecimals: number;
16
+ tokenInAmount: number;
17
+ tokenOutAddress: string;
18
+ tokenOutDecimals: number;
19
+ ethRpcUrl: string;
20
+ rpcUrlForUniswap: string;
21
+ chainIdForUniswap: number;
22
+ }, {
23
+ tokenInAddress: string;
24
+ tokenInDecimals: number;
25
+ tokenInAmount: number;
26
+ tokenOutAddress: string;
27
+ tokenOutDecimals: number;
28
+ ethRpcUrl: string;
29
+ rpcUrlForUniswap: string;
30
+ chainIdForUniswap: number;
31
+ }>, string, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
32
+ vincentPolicy: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").VincentPolicy<"@lit-protocol/vincent-policy-spending-limit", import("zod").ZodObject<{
33
+ ethRpcUrl: import("zod").ZodString;
34
+ rpcUrlForUniswap: import("zod").ZodString;
35
+ chainIdForUniswap: import("zod").ZodNumber;
36
+ tokenAddress: import("zod").ZodString;
37
+ tokenDecimals: import("zod").ZodNumber;
38
+ buyAmount: import("zod").ZodNumber;
39
+ }, "strip", import("zod").ZodTypeAny, {
40
+ ethRpcUrl: string;
41
+ rpcUrlForUniswap: string;
42
+ chainIdForUniswap: number;
43
+ tokenAddress: string;
44
+ tokenDecimals: number;
45
+ buyAmount: number;
46
+ }, {
47
+ ethRpcUrl: string;
48
+ rpcUrlForUniswap: string;
49
+ chainIdForUniswap: number;
50
+ tokenAddress: string;
51
+ tokenDecimals: number;
52
+ buyAmount: number;
53
+ }>, import("zod").ZodObject<{
54
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
55
+ }, "strip", import("zod").ZodTypeAny, {
56
+ maxDailySpendingLimitInUsdCents: bigint;
57
+ }, {
58
+ maxDailySpendingLimitInUsdCents: bigint;
59
+ }>, import("zod").ZodObject<{
60
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
61
+ buyAmountInUsd: import("zod").ZodNumber;
62
+ }, "strip", import("zod").ZodTypeAny, {
63
+ maxSpendingLimitInUsd: number;
64
+ buyAmountInUsd: number;
65
+ }, {
66
+ maxSpendingLimitInUsd: number;
67
+ buyAmountInUsd: number;
68
+ }>, import("zod").ZodObject<{
69
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
70
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
71
+ buyAmountInUsd: import("zod").ZodNumber;
72
+ }, "strip", import("zod").ZodTypeAny, {
73
+ maxSpendingLimitInUsd: number;
74
+ reason: "Attempted buy amount exceeds daily limit";
75
+ buyAmountInUsd: number;
76
+ }, {
77
+ maxSpendingLimitInUsd: number;
78
+ reason: "Attempted buy amount exceeds daily limit";
79
+ buyAmountInUsd: number;
80
+ }>, import("zod").ZodObject<{
81
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
82
+ buyAmountInUsd: import("zod").ZodNumber;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ maxSpendingLimitInUsd: number;
85
+ buyAmountInUsd: number;
86
+ }, {
87
+ maxSpendingLimitInUsd: number;
88
+ buyAmountInUsd: number;
89
+ }>, import("zod").ZodObject<{
90
+ reason: import("zod").ZodString;
91
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
92
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
93
+ }, "strip", import("zod").ZodTypeAny, {
94
+ reason: string;
95
+ maxSpendingLimitInUsd?: number | undefined;
96
+ buyAmountInUsd?: number | undefined;
97
+ }, {
98
+ reason: string;
99
+ maxSpendingLimitInUsd?: number | undefined;
100
+ buyAmountInUsd?: number | undefined;
101
+ }>, import("zod").ZodObject<{
102
+ amountSpentUsd: import("zod").ZodNumber;
103
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
104
+ }, "strip", import("zod").ZodTypeAny, {
105
+ amountSpentUsd: number;
106
+ maxSpendingLimitInUsd: number;
107
+ }, {
108
+ amountSpentUsd: number;
109
+ maxSpendingLimitInUsd: number;
110
+ }>, import("zod").ZodObject<{
111
+ spendTxHash: import("zod").ZodString;
112
+ }, "strip", import("zod").ZodTypeAny, {
113
+ spendTxHash: string;
114
+ }, {
115
+ spendTxHash: string;
116
+ }>, import("zod").ZodObject<{
117
+ error: import("zod").ZodString;
118
+ }, "strip", import("zod").ZodTypeAny, {
119
+ error: string;
120
+ }, {
121
+ error: string;
122
+ }>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
123
+ ethRpcUrl: import("zod").ZodString;
124
+ rpcUrlForUniswap: import("zod").ZodString;
125
+ chainIdForUniswap: import("zod").ZodNumber;
126
+ tokenAddress: import("zod").ZodString;
127
+ tokenDecimals: import("zod").ZodNumber;
128
+ buyAmount: import("zod").ZodNumber;
129
+ }, "strip", import("zod").ZodTypeAny, {
130
+ ethRpcUrl: string;
131
+ rpcUrlForUniswap: string;
132
+ chainIdForUniswap: number;
133
+ tokenAddress: string;
134
+ tokenDecimals: number;
135
+ buyAmount: number;
136
+ }, {
137
+ ethRpcUrl: string;
138
+ rpcUrlForUniswap: string;
139
+ chainIdForUniswap: number;
140
+ tokenAddress: string;
141
+ tokenDecimals: number;
142
+ buyAmount: number;
143
+ }>, import("zod").ZodObject<{
144
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
145
+ }, "strip", import("zod").ZodTypeAny, {
146
+ maxDailySpendingLimitInUsdCents: bigint;
147
+ }, {
148
+ maxDailySpendingLimitInUsdCents: bigint;
149
+ }>, import("zod").ZodObject<{
150
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
151
+ buyAmountInUsd: import("zod").ZodNumber;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ maxSpendingLimitInUsd: number;
154
+ buyAmountInUsd: number;
155
+ }, {
156
+ maxSpendingLimitInUsd: number;
157
+ buyAmountInUsd: number;
158
+ }>, import("zod").ZodObject<{
159
+ reason: import("zod").ZodString;
160
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
161
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
162
+ }, "strip", import("zod").ZodTypeAny, {
163
+ reason: string;
164
+ maxSpendingLimitInUsd?: number | undefined;
165
+ buyAmountInUsd?: number | undefined;
166
+ }, {
167
+ reason: string;
168
+ maxSpendingLimitInUsd?: number | undefined;
169
+ buyAmountInUsd?: number | undefined;
170
+ }>>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
171
+ ethRpcUrl: import("zod").ZodString;
172
+ rpcUrlForUniswap: import("zod").ZodString;
173
+ chainIdForUniswap: import("zod").ZodNumber;
174
+ tokenAddress: import("zod").ZodString;
175
+ tokenDecimals: import("zod").ZodNumber;
176
+ buyAmount: import("zod").ZodNumber;
177
+ }, "strip", import("zod").ZodTypeAny, {
178
+ ethRpcUrl: string;
179
+ rpcUrlForUniswap: string;
180
+ chainIdForUniswap: number;
181
+ tokenAddress: string;
182
+ tokenDecimals: number;
183
+ buyAmount: number;
184
+ }, {
185
+ ethRpcUrl: string;
186
+ rpcUrlForUniswap: string;
187
+ chainIdForUniswap: number;
188
+ tokenAddress: string;
189
+ tokenDecimals: number;
190
+ buyAmount: number;
191
+ }>, import("zod").ZodObject<{
192
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
193
+ }, "strip", import("zod").ZodTypeAny, {
194
+ maxDailySpendingLimitInUsdCents: bigint;
195
+ }, {
196
+ maxDailySpendingLimitInUsdCents: bigint;
197
+ }>, import("zod").ZodObject<{
198
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
199
+ buyAmountInUsd: import("zod").ZodNumber;
200
+ }, "strip", import("zod").ZodTypeAny, {
201
+ maxSpendingLimitInUsd: number;
202
+ buyAmountInUsd: number;
203
+ }, {
204
+ maxSpendingLimitInUsd: number;
205
+ buyAmountInUsd: number;
206
+ }>, import("zod").ZodObject<{
207
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
208
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
209
+ buyAmountInUsd: import("zod").ZodNumber;
210
+ }, "strip", import("zod").ZodTypeAny, {
211
+ maxSpendingLimitInUsd: number;
212
+ reason: "Attempted buy amount exceeds daily limit";
213
+ buyAmountInUsd: number;
214
+ }, {
215
+ maxSpendingLimitInUsd: number;
216
+ reason: "Attempted buy amount exceeds daily limit";
217
+ buyAmountInUsd: number;
218
+ }>>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").CommitLifecycleFunction<import("zod").ZodObject<{
219
+ amountSpentUsd: import("zod").ZodNumber;
220
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
221
+ }, "strip", import("zod").ZodTypeAny, {
222
+ amountSpentUsd: number;
223
+ maxSpendingLimitInUsd: number;
224
+ }, {
225
+ amountSpentUsd: number;
226
+ maxSpendingLimitInUsd: number;
227
+ }>, import("zod").ZodObject<{
228
+ spendTxHash: import("zod").ZodString;
229
+ }, "strip", import("zod").ZodTypeAny, {
230
+ spendTxHash: string;
231
+ }, {
232
+ spendTxHash: string;
233
+ }>, import("zod").ZodObject<{
234
+ error: import("zod").ZodString;
235
+ }, "strip", import("zod").ZodTypeAny, {
236
+ error: string;
237
+ }, {
238
+ error: string;
239
+ }>>>;
240
+ ipfsCid: string;
241
+ abilityParameterMappings: Partial<{
242
+ tokenInAddress: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
243
+ tokenInDecimals: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
244
+ tokenInAmount: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
245
+ tokenOutAddress: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
246
+ tokenOutDecimals: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
247
+ ethRpcUrl: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
248
+ rpcUrlForUniswap: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
249
+ chainIdForUniswap: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
250
+ }>;
251
+ vincentAbilityApiVersion: string;
252
+ __schemaTypes: {
253
+ policyAbilityParamsSchema: import("zod").ZodObject<{
254
+ ethRpcUrl: import("zod").ZodString;
255
+ rpcUrlForUniswap: import("zod").ZodString;
256
+ chainIdForUniswap: import("zod").ZodNumber;
257
+ tokenAddress: import("zod").ZodString;
258
+ tokenDecimals: import("zod").ZodNumber;
259
+ buyAmount: import("zod").ZodNumber;
260
+ }, "strip", import("zod").ZodTypeAny, {
261
+ ethRpcUrl: string;
262
+ rpcUrlForUniswap: string;
263
+ chainIdForUniswap: number;
264
+ tokenAddress: string;
265
+ tokenDecimals: number;
266
+ buyAmount: number;
267
+ }, {
268
+ ethRpcUrl: string;
269
+ rpcUrlForUniswap: string;
270
+ chainIdForUniswap: number;
271
+ tokenAddress: string;
272
+ tokenDecimals: number;
273
+ buyAmount: number;
274
+ }>;
275
+ userParamsSchema: import("zod").ZodObject<{
276
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
277
+ }, "strip", import("zod").ZodTypeAny, {
278
+ maxDailySpendingLimitInUsdCents: bigint;
279
+ }, {
280
+ maxDailySpendingLimitInUsdCents: bigint;
281
+ }>;
282
+ evalAllowResultSchema: import("zod").ZodObject<{
283
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
284
+ buyAmountInUsd: import("zod").ZodNumber;
285
+ }, "strip", import("zod").ZodTypeAny, {
286
+ maxSpendingLimitInUsd: number;
287
+ buyAmountInUsd: number;
288
+ }, {
289
+ maxSpendingLimitInUsd: number;
290
+ buyAmountInUsd: number;
291
+ }>;
292
+ evalDenyResultSchema: import("zod").ZodObject<{
293
+ reason: import("zod").ZodString;
294
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
295
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
296
+ }, "strip", import("zod").ZodTypeAny, {
297
+ reason: string;
298
+ maxSpendingLimitInUsd?: number | undefined;
299
+ buyAmountInUsd?: number | undefined;
300
+ }, {
301
+ reason: string;
302
+ maxSpendingLimitInUsd?: number | undefined;
303
+ buyAmountInUsd?: number | undefined;
304
+ }>;
305
+ precheckAllowResultSchema: import("zod").ZodObject<{
306
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
307
+ buyAmountInUsd: import("zod").ZodNumber;
308
+ }, "strip", import("zod").ZodTypeAny, {
309
+ maxSpendingLimitInUsd: number;
310
+ buyAmountInUsd: number;
311
+ }, {
312
+ maxSpendingLimitInUsd: number;
313
+ buyAmountInUsd: number;
314
+ }>;
315
+ precheckDenyResultSchema: import("zod").ZodObject<{
316
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
317
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
318
+ buyAmountInUsd: import("zod").ZodNumber;
319
+ }, "strip", import("zod").ZodTypeAny, {
320
+ maxSpendingLimitInUsd: number;
321
+ reason: "Attempted buy amount exceeds daily limit";
322
+ buyAmountInUsd: number;
323
+ }, {
324
+ maxSpendingLimitInUsd: number;
325
+ reason: "Attempted buy amount exceeds daily limit";
326
+ buyAmountInUsd: number;
327
+ }>;
328
+ commitParamsSchema: import("zod").ZodObject<{
329
+ amountSpentUsd: import("zod").ZodNumber;
330
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
331
+ }, "strip", import("zod").ZodTypeAny, {
332
+ amountSpentUsd: number;
333
+ maxSpendingLimitInUsd: number;
334
+ }, {
335
+ amountSpentUsd: number;
336
+ maxSpendingLimitInUsd: number;
337
+ }>;
338
+ commitAllowResultSchema: import("zod").ZodObject<{
339
+ spendTxHash: import("zod").ZodString;
340
+ }, "strip", import("zod").ZodTypeAny, {
341
+ spendTxHash: string;
342
+ }, {
343
+ spendTxHash: string;
344
+ }>;
345
+ commitDenyResultSchema: import("zod").ZodObject<{
346
+ error: import("zod").ZodString;
347
+ }, "strip", import("zod").ZodTypeAny, {
348
+ error: string;
349
+ }, {
350
+ error: string;
351
+ }>;
352
+ evaluate: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
353
+ ethRpcUrl: import("zod").ZodString;
354
+ rpcUrlForUniswap: import("zod").ZodString;
355
+ chainIdForUniswap: import("zod").ZodNumber;
356
+ tokenAddress: import("zod").ZodString;
357
+ tokenDecimals: import("zod").ZodNumber;
358
+ buyAmount: import("zod").ZodNumber;
359
+ }, "strip", import("zod").ZodTypeAny, {
360
+ ethRpcUrl: string;
361
+ rpcUrlForUniswap: string;
362
+ chainIdForUniswap: number;
363
+ tokenAddress: string;
364
+ tokenDecimals: number;
365
+ buyAmount: number;
366
+ }, {
367
+ ethRpcUrl: string;
368
+ rpcUrlForUniswap: string;
369
+ chainIdForUniswap: number;
370
+ tokenAddress: string;
371
+ tokenDecimals: number;
372
+ buyAmount: number;
373
+ }>, import("zod").ZodObject<{
374
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
375
+ }, "strip", import("zod").ZodTypeAny, {
376
+ maxDailySpendingLimitInUsdCents: bigint;
377
+ }, {
378
+ maxDailySpendingLimitInUsdCents: bigint;
379
+ }>, import("zod").ZodObject<{
380
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
381
+ buyAmountInUsd: import("zod").ZodNumber;
382
+ }, "strip", import("zod").ZodTypeAny, {
383
+ maxSpendingLimitInUsd: number;
384
+ buyAmountInUsd: number;
385
+ }, {
386
+ maxSpendingLimitInUsd: number;
387
+ buyAmountInUsd: number;
388
+ }>, import("zod").ZodObject<{
389
+ reason: import("zod").ZodString;
390
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
391
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
392
+ }, "strip", import("zod").ZodTypeAny, {
393
+ reason: string;
394
+ maxSpendingLimitInUsd?: number | undefined;
395
+ buyAmountInUsd?: number | undefined;
396
+ }, {
397
+ reason: string;
398
+ maxSpendingLimitInUsd?: number | undefined;
399
+ buyAmountInUsd?: number | undefined;
400
+ }>>;
401
+ precheck: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
402
+ ethRpcUrl: import("zod").ZodString;
403
+ rpcUrlForUniswap: import("zod").ZodString;
404
+ chainIdForUniswap: import("zod").ZodNumber;
405
+ tokenAddress: import("zod").ZodString;
406
+ tokenDecimals: import("zod").ZodNumber;
407
+ buyAmount: import("zod").ZodNumber;
408
+ }, "strip", import("zod").ZodTypeAny, {
409
+ ethRpcUrl: string;
410
+ rpcUrlForUniswap: string;
411
+ chainIdForUniswap: number;
412
+ tokenAddress: string;
413
+ tokenDecimals: number;
414
+ buyAmount: number;
415
+ }, {
416
+ ethRpcUrl: string;
417
+ rpcUrlForUniswap: string;
418
+ chainIdForUniswap: number;
419
+ tokenAddress: string;
420
+ tokenDecimals: number;
421
+ buyAmount: number;
422
+ }>, import("zod").ZodObject<{
423
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
424
+ }, "strip", import("zod").ZodTypeAny, {
425
+ maxDailySpendingLimitInUsdCents: bigint;
426
+ }, {
427
+ maxDailySpendingLimitInUsdCents: bigint;
428
+ }>, import("zod").ZodObject<{
429
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
430
+ buyAmountInUsd: import("zod").ZodNumber;
431
+ }, "strip", import("zod").ZodTypeAny, {
432
+ maxSpendingLimitInUsd: number;
433
+ buyAmountInUsd: number;
434
+ }, {
435
+ maxSpendingLimitInUsd: number;
436
+ buyAmountInUsd: number;
437
+ }>, import("zod").ZodObject<{
438
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
439
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
440
+ buyAmountInUsd: import("zod").ZodNumber;
441
+ }, "strip", import("zod").ZodTypeAny, {
442
+ maxSpendingLimitInUsd: number;
443
+ reason: "Attempted buy amount exceeds daily limit";
444
+ buyAmountInUsd: number;
445
+ }, {
446
+ maxSpendingLimitInUsd: number;
447
+ reason: "Attempted buy amount exceeds daily limit";
448
+ buyAmountInUsd: number;
449
+ }>> | undefined;
450
+ commit: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").CommitLifecycleFunction<import("zod").ZodObject<{
451
+ amountSpentUsd: import("zod").ZodNumber;
452
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
453
+ }, "strip", import("zod").ZodTypeAny, {
454
+ amountSpentUsd: number;
455
+ maxSpendingLimitInUsd: number;
456
+ }, {
457
+ amountSpentUsd: number;
458
+ maxSpendingLimitInUsd: number;
459
+ }>, import("zod").ZodObject<{
460
+ spendTxHash: import("zod").ZodString;
461
+ }, "strip", import("zod").ZodTypeAny, {
462
+ spendTxHash: string;
463
+ }, {
464
+ spendTxHash: string;
465
+ }>, import("zod").ZodObject<{
466
+ error: import("zod").ZodString;
467
+ }, "strip", import("zod").ZodTypeAny, {
468
+ error: string;
469
+ }, {
470
+ error: string;
471
+ }>> | undefined;
472
+ };
473
+ }], "@lit-protocol/vincent-policy-spending-limit">, {
474
+ "@lit-protocol/vincent-policy-spending-limit": {
475
+ vincentPolicy: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").VincentPolicy<"@lit-protocol/vincent-policy-spending-limit", import("zod").ZodObject<{
476
+ ethRpcUrl: import("zod").ZodString;
477
+ rpcUrlForUniswap: import("zod").ZodString;
478
+ chainIdForUniswap: import("zod").ZodNumber;
479
+ tokenAddress: import("zod").ZodString;
480
+ tokenDecimals: import("zod").ZodNumber;
481
+ buyAmount: import("zod").ZodNumber;
482
+ }, "strip", import("zod").ZodTypeAny, {
483
+ ethRpcUrl: string;
484
+ rpcUrlForUniswap: string;
485
+ chainIdForUniswap: number;
486
+ tokenAddress: string;
487
+ tokenDecimals: number;
488
+ buyAmount: number;
489
+ }, {
490
+ ethRpcUrl: string;
491
+ rpcUrlForUniswap: string;
492
+ chainIdForUniswap: number;
493
+ tokenAddress: string;
494
+ tokenDecimals: number;
495
+ buyAmount: number;
496
+ }>, import("zod").ZodObject<{
497
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
498
+ }, "strip", import("zod").ZodTypeAny, {
499
+ maxDailySpendingLimitInUsdCents: bigint;
500
+ }, {
501
+ maxDailySpendingLimitInUsdCents: bigint;
502
+ }>, import("zod").ZodObject<{
503
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
504
+ buyAmountInUsd: import("zod").ZodNumber;
505
+ }, "strip", import("zod").ZodTypeAny, {
506
+ maxSpendingLimitInUsd: number;
507
+ buyAmountInUsd: number;
508
+ }, {
509
+ maxSpendingLimitInUsd: number;
510
+ buyAmountInUsd: number;
511
+ }>, import("zod").ZodObject<{
512
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
513
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
514
+ buyAmountInUsd: import("zod").ZodNumber;
515
+ }, "strip", import("zod").ZodTypeAny, {
516
+ maxSpendingLimitInUsd: number;
517
+ reason: "Attempted buy amount exceeds daily limit";
518
+ buyAmountInUsd: number;
519
+ }, {
520
+ maxSpendingLimitInUsd: number;
521
+ reason: "Attempted buy amount exceeds daily limit";
522
+ buyAmountInUsd: number;
523
+ }>, import("zod").ZodObject<{
524
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
525
+ buyAmountInUsd: import("zod").ZodNumber;
526
+ }, "strip", import("zod").ZodTypeAny, {
527
+ maxSpendingLimitInUsd: number;
528
+ buyAmountInUsd: number;
529
+ }, {
530
+ maxSpendingLimitInUsd: number;
531
+ buyAmountInUsd: number;
532
+ }>, import("zod").ZodObject<{
533
+ reason: import("zod").ZodString;
534
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
535
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
536
+ }, "strip", import("zod").ZodTypeAny, {
537
+ reason: string;
538
+ maxSpendingLimitInUsd?: number | undefined;
539
+ buyAmountInUsd?: number | undefined;
540
+ }, {
541
+ reason: string;
542
+ maxSpendingLimitInUsd?: number | undefined;
543
+ buyAmountInUsd?: number | undefined;
544
+ }>, import("zod").ZodObject<{
545
+ amountSpentUsd: import("zod").ZodNumber;
546
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
547
+ }, "strip", import("zod").ZodTypeAny, {
548
+ amountSpentUsd: number;
549
+ maxSpendingLimitInUsd: number;
550
+ }, {
551
+ amountSpentUsd: number;
552
+ maxSpendingLimitInUsd: number;
553
+ }>, import("zod").ZodObject<{
554
+ spendTxHash: import("zod").ZodString;
555
+ }, "strip", import("zod").ZodTypeAny, {
556
+ spendTxHash: string;
557
+ }, {
558
+ spendTxHash: string;
559
+ }>, import("zod").ZodObject<{
560
+ error: import("zod").ZodString;
561
+ }, "strip", import("zod").ZodTypeAny, {
562
+ error: string;
563
+ }, {
564
+ error: string;
565
+ }>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
566
+ ethRpcUrl: import("zod").ZodString;
567
+ rpcUrlForUniswap: import("zod").ZodString;
568
+ chainIdForUniswap: import("zod").ZodNumber;
569
+ tokenAddress: import("zod").ZodString;
570
+ tokenDecimals: import("zod").ZodNumber;
571
+ buyAmount: import("zod").ZodNumber;
572
+ }, "strip", import("zod").ZodTypeAny, {
573
+ ethRpcUrl: string;
574
+ rpcUrlForUniswap: string;
575
+ chainIdForUniswap: number;
576
+ tokenAddress: string;
577
+ tokenDecimals: number;
578
+ buyAmount: number;
579
+ }, {
580
+ ethRpcUrl: string;
581
+ rpcUrlForUniswap: string;
582
+ chainIdForUniswap: number;
583
+ tokenAddress: string;
584
+ tokenDecimals: number;
585
+ buyAmount: number;
586
+ }>, import("zod").ZodObject<{
587
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
588
+ }, "strip", import("zod").ZodTypeAny, {
589
+ maxDailySpendingLimitInUsdCents: bigint;
590
+ }, {
591
+ maxDailySpendingLimitInUsdCents: bigint;
592
+ }>, import("zod").ZodObject<{
593
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
594
+ buyAmountInUsd: import("zod").ZodNumber;
595
+ }, "strip", import("zod").ZodTypeAny, {
596
+ maxSpendingLimitInUsd: number;
597
+ buyAmountInUsd: number;
598
+ }, {
599
+ maxSpendingLimitInUsd: number;
600
+ buyAmountInUsd: number;
601
+ }>, import("zod").ZodObject<{
602
+ reason: import("zod").ZodString;
603
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
604
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
605
+ }, "strip", import("zod").ZodTypeAny, {
606
+ reason: string;
607
+ maxSpendingLimitInUsd?: number | undefined;
608
+ buyAmountInUsd?: number | undefined;
609
+ }, {
610
+ reason: string;
611
+ maxSpendingLimitInUsd?: number | undefined;
612
+ buyAmountInUsd?: number | undefined;
613
+ }>>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
614
+ ethRpcUrl: import("zod").ZodString;
615
+ rpcUrlForUniswap: import("zod").ZodString;
616
+ chainIdForUniswap: import("zod").ZodNumber;
617
+ tokenAddress: import("zod").ZodString;
618
+ tokenDecimals: import("zod").ZodNumber;
619
+ buyAmount: import("zod").ZodNumber;
620
+ }, "strip", import("zod").ZodTypeAny, {
621
+ ethRpcUrl: string;
622
+ rpcUrlForUniswap: string;
623
+ chainIdForUniswap: number;
624
+ tokenAddress: string;
625
+ tokenDecimals: number;
626
+ buyAmount: number;
627
+ }, {
628
+ ethRpcUrl: string;
629
+ rpcUrlForUniswap: string;
630
+ chainIdForUniswap: number;
631
+ tokenAddress: string;
632
+ tokenDecimals: number;
633
+ buyAmount: number;
634
+ }>, import("zod").ZodObject<{
635
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
636
+ }, "strip", import("zod").ZodTypeAny, {
637
+ maxDailySpendingLimitInUsdCents: bigint;
638
+ }, {
639
+ maxDailySpendingLimitInUsdCents: bigint;
640
+ }>, import("zod").ZodObject<{
641
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
642
+ buyAmountInUsd: import("zod").ZodNumber;
643
+ }, "strip", import("zod").ZodTypeAny, {
644
+ maxSpendingLimitInUsd: number;
645
+ buyAmountInUsd: number;
646
+ }, {
647
+ maxSpendingLimitInUsd: number;
648
+ buyAmountInUsd: number;
649
+ }>, import("zod").ZodObject<{
650
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
651
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
652
+ buyAmountInUsd: import("zod").ZodNumber;
653
+ }, "strip", import("zod").ZodTypeAny, {
654
+ maxSpendingLimitInUsd: number;
655
+ reason: "Attempted buy amount exceeds daily limit";
656
+ buyAmountInUsd: number;
657
+ }, {
658
+ maxSpendingLimitInUsd: number;
659
+ reason: "Attempted buy amount exceeds daily limit";
660
+ buyAmountInUsd: number;
661
+ }>>, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").CommitLifecycleFunction<import("zod").ZodObject<{
662
+ amountSpentUsd: import("zod").ZodNumber;
663
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
664
+ }, "strip", import("zod").ZodTypeAny, {
665
+ amountSpentUsd: number;
666
+ maxSpendingLimitInUsd: number;
667
+ }, {
668
+ amountSpentUsd: number;
669
+ maxSpendingLimitInUsd: number;
670
+ }>, import("zod").ZodObject<{
671
+ spendTxHash: import("zod").ZodString;
672
+ }, "strip", import("zod").ZodTypeAny, {
673
+ spendTxHash: string;
674
+ }, {
675
+ spendTxHash: string;
676
+ }>, import("zod").ZodObject<{
677
+ error: import("zod").ZodString;
678
+ }, "strip", import("zod").ZodTypeAny, {
679
+ error: string;
680
+ }, {
681
+ error: string;
682
+ }>>>;
683
+ ipfsCid: string;
684
+ abilityParameterMappings: Partial<{
685
+ tokenInAddress: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
686
+ tokenInDecimals: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
687
+ tokenInAmount: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
688
+ tokenOutAddress: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
689
+ tokenOutDecimals: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
690
+ ethRpcUrl: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
691
+ rpcUrlForUniswap: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
692
+ chainIdForUniswap: "ethRpcUrl" | "rpcUrlForUniswap" | "chainIdForUniswap" | "tokenAddress" | "tokenDecimals" | "buyAmount";
693
+ }>;
694
+ vincentAbilityApiVersion: string;
695
+ __schemaTypes: {
696
+ policyAbilityParamsSchema: import("zod").ZodObject<{
697
+ ethRpcUrl: import("zod").ZodString;
698
+ rpcUrlForUniswap: import("zod").ZodString;
699
+ chainIdForUniswap: import("zod").ZodNumber;
700
+ tokenAddress: import("zod").ZodString;
701
+ tokenDecimals: import("zod").ZodNumber;
702
+ buyAmount: import("zod").ZodNumber;
703
+ }, "strip", import("zod").ZodTypeAny, {
704
+ ethRpcUrl: string;
705
+ rpcUrlForUniswap: string;
706
+ chainIdForUniswap: number;
707
+ tokenAddress: string;
708
+ tokenDecimals: number;
709
+ buyAmount: number;
710
+ }, {
711
+ ethRpcUrl: string;
712
+ rpcUrlForUniswap: string;
713
+ chainIdForUniswap: number;
714
+ tokenAddress: string;
715
+ tokenDecimals: number;
716
+ buyAmount: number;
717
+ }>;
718
+ userParamsSchema: import("zod").ZodObject<{
719
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
720
+ }, "strip", import("zod").ZodTypeAny, {
721
+ maxDailySpendingLimitInUsdCents: bigint;
722
+ }, {
723
+ maxDailySpendingLimitInUsdCents: bigint;
724
+ }>;
725
+ evalAllowResultSchema: import("zod").ZodObject<{
726
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
727
+ buyAmountInUsd: import("zod").ZodNumber;
728
+ }, "strip", import("zod").ZodTypeAny, {
729
+ maxSpendingLimitInUsd: number;
730
+ buyAmountInUsd: number;
731
+ }, {
732
+ maxSpendingLimitInUsd: number;
733
+ buyAmountInUsd: number;
734
+ }>;
735
+ evalDenyResultSchema: import("zod").ZodObject<{
736
+ reason: import("zod").ZodString;
737
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
738
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
739
+ }, "strip", import("zod").ZodTypeAny, {
740
+ reason: string;
741
+ maxSpendingLimitInUsd?: number | undefined;
742
+ buyAmountInUsd?: number | undefined;
743
+ }, {
744
+ reason: string;
745
+ maxSpendingLimitInUsd?: number | undefined;
746
+ buyAmountInUsd?: number | undefined;
747
+ }>;
748
+ precheckAllowResultSchema: import("zod").ZodObject<{
749
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
750
+ buyAmountInUsd: import("zod").ZodNumber;
751
+ }, "strip", import("zod").ZodTypeAny, {
752
+ maxSpendingLimitInUsd: number;
753
+ buyAmountInUsd: number;
754
+ }, {
755
+ maxSpendingLimitInUsd: number;
756
+ buyAmountInUsd: number;
757
+ }>;
758
+ precheckDenyResultSchema: import("zod").ZodObject<{
759
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
760
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
761
+ buyAmountInUsd: import("zod").ZodNumber;
762
+ }, "strip", import("zod").ZodTypeAny, {
763
+ maxSpendingLimitInUsd: number;
764
+ reason: "Attempted buy amount exceeds daily limit";
765
+ buyAmountInUsd: number;
766
+ }, {
767
+ maxSpendingLimitInUsd: number;
768
+ reason: "Attempted buy amount exceeds daily limit";
769
+ buyAmountInUsd: number;
770
+ }>;
771
+ commitParamsSchema: import("zod").ZodObject<{
772
+ amountSpentUsd: import("zod").ZodNumber;
773
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
774
+ }, "strip", import("zod").ZodTypeAny, {
775
+ amountSpentUsd: number;
776
+ maxSpendingLimitInUsd: number;
777
+ }, {
778
+ amountSpentUsd: number;
779
+ maxSpendingLimitInUsd: number;
780
+ }>;
781
+ commitAllowResultSchema: import("zod").ZodObject<{
782
+ spendTxHash: import("zod").ZodString;
783
+ }, "strip", import("zod").ZodTypeAny, {
784
+ spendTxHash: string;
785
+ }, {
786
+ spendTxHash: string;
787
+ }>;
788
+ commitDenyResultSchema: import("zod").ZodObject<{
789
+ error: import("zod").ZodString;
790
+ }, "strip", import("zod").ZodTypeAny, {
791
+ error: string;
792
+ }, {
793
+ error: string;
794
+ }>;
795
+ evaluate: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
796
+ ethRpcUrl: import("zod").ZodString;
797
+ rpcUrlForUniswap: import("zod").ZodString;
798
+ chainIdForUniswap: import("zod").ZodNumber;
799
+ tokenAddress: import("zod").ZodString;
800
+ tokenDecimals: import("zod").ZodNumber;
801
+ buyAmount: import("zod").ZodNumber;
802
+ }, "strip", import("zod").ZodTypeAny, {
803
+ ethRpcUrl: string;
804
+ rpcUrlForUniswap: string;
805
+ chainIdForUniswap: number;
806
+ tokenAddress: string;
807
+ tokenDecimals: number;
808
+ buyAmount: number;
809
+ }, {
810
+ ethRpcUrl: string;
811
+ rpcUrlForUniswap: string;
812
+ chainIdForUniswap: number;
813
+ tokenAddress: string;
814
+ tokenDecimals: number;
815
+ buyAmount: number;
816
+ }>, import("zod").ZodObject<{
817
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
818
+ }, "strip", import("zod").ZodTypeAny, {
819
+ maxDailySpendingLimitInUsdCents: bigint;
820
+ }, {
821
+ maxDailySpendingLimitInUsdCents: bigint;
822
+ }>, import("zod").ZodObject<{
823
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
824
+ buyAmountInUsd: import("zod").ZodNumber;
825
+ }, "strip", import("zod").ZodTypeAny, {
826
+ maxSpendingLimitInUsd: number;
827
+ buyAmountInUsd: number;
828
+ }, {
829
+ maxSpendingLimitInUsd: number;
830
+ buyAmountInUsd: number;
831
+ }>, import("zod").ZodObject<{
832
+ reason: import("zod").ZodString;
833
+ maxSpendingLimitInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
834
+ buyAmountInUsd: import("zod").ZodOptional<import("zod").ZodNumber>;
835
+ }, "strip", import("zod").ZodTypeAny, {
836
+ reason: string;
837
+ maxSpendingLimitInUsd?: number | undefined;
838
+ buyAmountInUsd?: number | undefined;
839
+ }, {
840
+ reason: string;
841
+ maxSpendingLimitInUsd?: number | undefined;
842
+ buyAmountInUsd?: number | undefined;
843
+ }>>;
844
+ precheck: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").PolicyLifecycleFunction<import("zod").ZodObject<{
845
+ ethRpcUrl: import("zod").ZodString;
846
+ rpcUrlForUniswap: import("zod").ZodString;
847
+ chainIdForUniswap: import("zod").ZodNumber;
848
+ tokenAddress: import("zod").ZodString;
849
+ tokenDecimals: import("zod").ZodNumber;
850
+ buyAmount: import("zod").ZodNumber;
851
+ }, "strip", import("zod").ZodTypeAny, {
852
+ ethRpcUrl: string;
853
+ rpcUrlForUniswap: string;
854
+ chainIdForUniswap: number;
855
+ tokenAddress: string;
856
+ tokenDecimals: number;
857
+ buyAmount: number;
858
+ }, {
859
+ ethRpcUrl: string;
860
+ rpcUrlForUniswap: string;
861
+ chainIdForUniswap: number;
862
+ tokenAddress: string;
863
+ tokenDecimals: number;
864
+ buyAmount: number;
865
+ }>, import("zod").ZodObject<{
866
+ maxDailySpendingLimitInUsdCents: import("zod").ZodBigInt;
867
+ }, "strip", import("zod").ZodTypeAny, {
868
+ maxDailySpendingLimitInUsdCents: bigint;
869
+ }, {
870
+ maxDailySpendingLimitInUsdCents: bigint;
871
+ }>, import("zod").ZodObject<{
872
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
873
+ buyAmountInUsd: import("zod").ZodNumber;
874
+ }, "strip", import("zod").ZodTypeAny, {
875
+ maxSpendingLimitInUsd: number;
876
+ buyAmountInUsd: number;
877
+ }, {
878
+ maxSpendingLimitInUsd: number;
879
+ buyAmountInUsd: number;
880
+ }>, import("zod").ZodObject<{
881
+ reason: import("zod").ZodLiteral<"Attempted buy amount exceeds daily limit">;
882
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
883
+ buyAmountInUsd: import("zod").ZodNumber;
884
+ }, "strip", import("zod").ZodTypeAny, {
885
+ maxSpendingLimitInUsd: number;
886
+ reason: "Attempted buy amount exceeds daily limit";
887
+ buyAmountInUsd: number;
888
+ }, {
889
+ maxSpendingLimitInUsd: number;
890
+ reason: "Attempted buy amount exceeds daily limit";
891
+ buyAmountInUsd: number;
892
+ }>> | undefined;
893
+ commit: import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/types").CommitLifecycleFunction<import("zod").ZodObject<{
894
+ amountSpentUsd: import("zod").ZodNumber;
895
+ maxSpendingLimitInUsd: import("zod").ZodNumber;
896
+ }, "strip", import("zod").ZodTypeAny, {
897
+ amountSpentUsd: number;
898
+ maxSpendingLimitInUsd: number;
899
+ }, {
900
+ amountSpentUsd: number;
901
+ maxSpendingLimitInUsd: number;
902
+ }>, import("zod").ZodObject<{
903
+ spendTxHash: import("zod").ZodString;
904
+ }, "strip", import("zod").ZodTypeAny, {
905
+ spendTxHash: string;
906
+ }, {
907
+ spendTxHash: string;
908
+ }>, import("zod").ZodObject<{
909
+ error: import("zod").ZodString;
910
+ }, "strip", import("zod").ZodTypeAny, {
911
+ error: string;
912
+ }, {
913
+ error: string;
914
+ }>> | undefined;
915
+ };
916
+ };
917
+ }, import("zod").ZodObject<{
918
+ swapTxHash: import("zod").ZodString;
919
+ spendTxHash: import("zod").ZodOptional<import("zod").ZodString>;
920
+ }, "strip", import("zod").ZodTypeAny, {
921
+ swapTxHash: string;
922
+ spendTxHash?: string | undefined;
923
+ }, {
924
+ swapTxHash: string;
925
+ spendTxHash?: string | undefined;
926
+ }>, import("zod").ZodObject<{
927
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
928
+ spendingLimitCommitFail: import("zod").ZodOptional<import("zod").ZodObject<{
929
+ runtimeError: import("zod").ZodOptional<import("zod").ZodString>;
930
+ schemaValidationError: import("zod").ZodOptional<import("zod").ZodType<import("@lit-protocol/vincent-ability-sdk").SchemaValidationError, import("zod").ZodTypeDef, import("@lit-protocol/vincent-ability-sdk").SchemaValidationError>>;
931
+ structuredCommitFailureReason: import("zod").ZodOptional<import("zod").ZodObject<{
932
+ error: import("zod").ZodString;
933
+ }, "strip", import("zod").ZodTypeAny, {
934
+ error: string;
935
+ }, {
936
+ error: string;
937
+ }>> | import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodUndefined>>;
938
+ }, "strip", import("zod").ZodTypeAny, {
939
+ runtimeError?: string | undefined;
940
+ schemaValidationError?: import("@lit-protocol/vincent-ability-sdk").SchemaValidationError | undefined;
941
+ structuredCommitFailureReason?: {
942
+ error: string;
943
+ } | undefined;
944
+ }, {
945
+ runtimeError?: string | undefined;
946
+ schemaValidationError?: import("@lit-protocol/vincent-ability-sdk").SchemaValidationError | undefined;
947
+ structuredCommitFailureReason?: {
948
+ error: string;
949
+ } | undefined;
950
+ }>>;
951
+ }, "strip", import("zod").ZodTypeAny, {
952
+ reason?: string | undefined;
953
+ spendingLimitCommitFail?: {
954
+ runtimeError?: string | undefined;
955
+ schemaValidationError?: import("@lit-protocol/vincent-ability-sdk").SchemaValidationError | undefined;
956
+ structuredCommitFailureReason?: {
957
+ error: string;
958
+ } | undefined;
959
+ } | undefined;
960
+ }, {
961
+ reason?: string | undefined;
962
+ spendingLimitCommitFail?: {
963
+ runtimeError?: string | undefined;
964
+ schemaValidationError?: import("@lit-protocol/vincent-ability-sdk").SchemaValidationError | undefined;
965
+ structuredCommitFailureReason?: {
966
+ error: string;
967
+ } | undefined;
968
+ } | undefined;
969
+ }>, import("zod").ZodUndefined, import("zod").ZodObject<{
970
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
971
+ }, "strip", import("zod").ZodTypeAny, {
972
+ reason?: string | undefined;
973
+ }, {
974
+ reason?: string | undefined;
975
+ }>>, string>;
976
+ //# sourceMappingURL=vincent-bundled-ability.d.ts.map