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