@lit-protocol/vincent-ability-debridge 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 (33) hide show
  1. package/CONTRIBUTING.md +90 -0
  2. package/README.md +124 -0
  3. package/dist/CONTRIBUTING.md +90 -0
  4. package/dist/README.md +124 -0
  5. package/dist/package.json +35 -0
  6. package/dist/src/generated/lit-action.js +9 -0
  7. package/dist/src/generated/vincent-ability-metadata.json +3 -0
  8. package/dist/src/generated/vincent-bundled-ability.d.ts +191 -0
  9. package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -0
  10. package/dist/src/generated/vincent-bundled-ability.js +15 -0
  11. package/dist/src/generated/vincent-bundled-ability.js.map +1 -0
  12. package/dist/src/generated/vincent-bundled-ability.ts +13 -0
  13. package/dist/src/index.d.ts +2 -0
  14. package/dist/src/index.d.ts.map +1 -0
  15. package/dist/src/index.js +6 -0
  16. package/dist/src/index.js.map +1 -0
  17. package/dist/src/lib/helpers/index.d.ts +67 -0
  18. package/dist/src/lib/helpers/index.d.ts.map +1 -0
  19. package/dist/src/lib/helpers/index.js +241 -0
  20. package/dist/src/lib/helpers/index.js.map +1 -0
  21. package/dist/src/lib/lit-action.d.ts +2 -0
  22. package/dist/src/lib/lit-action.d.ts.map +1 -0
  23. package/dist/src/lib/lit-action.js +16 -0
  24. package/dist/src/lib/lit-action.js.map +1 -0
  25. package/dist/src/lib/schemas.d.ts +198 -0
  26. package/dist/src/lib/schemas.d.ts.map +1 -0
  27. package/dist/src/lib/schemas.js +93 -0
  28. package/dist/src/lib/schemas.js.map +1 -0
  29. package/dist/src/lib/vincent-ability.d.ts +188 -0
  30. package/dist/src/lib/vincent-ability.d.ts.map +1 -0
  31. package/dist/src/lib/vincent-ability.js +258 -0
  32. package/dist/src/lib/vincent-ability.js.map +1 -0
  33. package/package.json +34 -0
@@ -0,0 +1,198 @@
1
+ import { z } from 'zod';
2
+ export declare const Operations: {
3
+ readonly BRIDGE: "BRIDGE";
4
+ readonly BRIDGE_AND_SWAP: "BRIDGE_AND_SWAP";
5
+ };
6
+ export type Operation = (typeof Operations)[keyof typeof Operations];
7
+ export declare const abilityParamsSchema: z.ZodObject<{
8
+ rpcUrl: z.ZodString;
9
+ sourceChain: z.ZodString;
10
+ destinationChain: z.ZodString;
11
+ sourceToken: z.ZodString;
12
+ destinationToken: z.ZodString;
13
+ amount: z.ZodEffects<z.ZodString, string, string>;
14
+ recipientAddress: z.ZodString;
15
+ operation: z.ZodEnum<["BRIDGE", "BRIDGE_AND_SWAP"]>;
16
+ slippageBps: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ rpcUrl: string;
19
+ sourceChain: string;
20
+ destinationChain: string;
21
+ sourceToken: string;
22
+ destinationToken: string;
23
+ amount: string;
24
+ recipientAddress: string;
25
+ operation: "BRIDGE" | "BRIDGE_AND_SWAP";
26
+ slippageBps: number;
27
+ }, {
28
+ rpcUrl: string;
29
+ sourceChain: string;
30
+ destinationChain: string;
31
+ sourceToken: string;
32
+ destinationToken: string;
33
+ amount: string;
34
+ recipientAddress: string;
35
+ operation: "BRIDGE" | "BRIDGE_AND_SWAP";
36
+ slippageBps?: number | undefined;
37
+ }>;
38
+ export declare const precheckSuccessSchema: z.ZodObject<{
39
+ data: z.ZodObject<{
40
+ sourceChain: z.ZodString;
41
+ destinationChain: z.ZodString;
42
+ sourceToken: z.ZodString;
43
+ destinationToken: z.ZodString;
44
+ sourceAmount: z.ZodString;
45
+ estimatedDestinationAmount: z.ZodString;
46
+ estimatedFees: z.ZodObject<{
47
+ protocolFee: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ protocolFee: string;
50
+ }, {
51
+ protocolFee: string;
52
+ }>;
53
+ estimatedExecutionTime: z.ZodString;
54
+ orderData: z.ZodOptional<z.ZodObject<{
55
+ orderId: z.ZodOptional<z.ZodString>;
56
+ txData: z.ZodOptional<z.ZodString>;
57
+ contractAddress: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ contractAddress: string;
60
+ orderId?: string | undefined;
61
+ txData?: string | undefined;
62
+ }, {
63
+ contractAddress: string;
64
+ orderId?: string | undefined;
65
+ txData?: string | undefined;
66
+ }>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ sourceChain: string;
69
+ destinationChain: string;
70
+ sourceToken: string;
71
+ destinationToken: string;
72
+ sourceAmount: string;
73
+ estimatedDestinationAmount: string;
74
+ estimatedFees: {
75
+ protocolFee: string;
76
+ };
77
+ estimatedExecutionTime: string;
78
+ orderData?: {
79
+ contractAddress: string;
80
+ orderId?: string | undefined;
81
+ txData?: string | undefined;
82
+ } | undefined;
83
+ }, {
84
+ sourceChain: string;
85
+ destinationChain: string;
86
+ sourceToken: string;
87
+ destinationToken: string;
88
+ sourceAmount: string;
89
+ estimatedDestinationAmount: string;
90
+ estimatedFees: {
91
+ protocolFee: string;
92
+ };
93
+ estimatedExecutionTime: string;
94
+ orderData?: {
95
+ contractAddress: string;
96
+ orderId?: string | undefined;
97
+ txData?: string | undefined;
98
+ } | undefined;
99
+ }>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ data: {
102
+ sourceChain: string;
103
+ destinationChain: string;
104
+ sourceToken: string;
105
+ destinationToken: string;
106
+ sourceAmount: string;
107
+ estimatedDestinationAmount: string;
108
+ estimatedFees: {
109
+ protocolFee: string;
110
+ };
111
+ estimatedExecutionTime: string;
112
+ orderData?: {
113
+ contractAddress: string;
114
+ orderId?: string | undefined;
115
+ txData?: string | undefined;
116
+ } | undefined;
117
+ };
118
+ }, {
119
+ data: {
120
+ sourceChain: string;
121
+ destinationChain: string;
122
+ sourceToken: string;
123
+ destinationToken: string;
124
+ sourceAmount: string;
125
+ estimatedDestinationAmount: string;
126
+ estimatedFees: {
127
+ protocolFee: string;
128
+ };
129
+ estimatedExecutionTime: string;
130
+ orderData?: {
131
+ contractAddress: string;
132
+ orderId?: string | undefined;
133
+ txData?: string | undefined;
134
+ } | undefined;
135
+ };
136
+ }>;
137
+ export declare const precheckFailSchema: z.ZodObject<{
138
+ error: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ error: string;
141
+ }, {
142
+ error: string;
143
+ }>;
144
+ export declare const executeSuccessSchema: z.ZodObject<{
145
+ data: z.ZodObject<{
146
+ txHash: z.ZodString;
147
+ sourceChain: z.ZodString;
148
+ destinationChain: z.ZodString;
149
+ sourceToken: z.ZodString;
150
+ destinationToken: z.ZodString;
151
+ sourceAmount: z.ZodString;
152
+ orderId: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ sourceChain: string;
155
+ destinationChain: string;
156
+ sourceToken: string;
157
+ destinationToken: string;
158
+ sourceAmount: string;
159
+ txHash: string;
160
+ orderId?: string | undefined;
161
+ }, {
162
+ sourceChain: string;
163
+ destinationChain: string;
164
+ sourceToken: string;
165
+ destinationToken: string;
166
+ sourceAmount: string;
167
+ txHash: string;
168
+ orderId?: string | undefined;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ data: {
172
+ sourceChain: string;
173
+ destinationChain: string;
174
+ sourceToken: string;
175
+ destinationToken: string;
176
+ sourceAmount: string;
177
+ txHash: string;
178
+ orderId?: string | undefined;
179
+ };
180
+ }, {
181
+ data: {
182
+ sourceChain: string;
183
+ destinationChain: string;
184
+ sourceToken: string;
185
+ destinationToken: string;
186
+ sourceAmount: string;
187
+ txHash: string;
188
+ orderId?: string | undefined;
189
+ };
190
+ }>;
191
+ export declare const executeFailSchema: z.ZodObject<{
192
+ error: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ error: string;
195
+ }, {
196
+ error: string;
197
+ }>;
198
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgChC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC"}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeFailSchema = exports.executeSuccessSchema = exports.precheckFailSchema = exports.precheckSuccessSchema = exports.abilityParamsSchema = exports.Operations = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.Operations = {
6
+ BRIDGE: 'BRIDGE',
7
+ BRIDGE_AND_SWAP: 'BRIDGE_AND_SWAP',
8
+ };
9
+ exports.abilityParamsSchema = zod_1.z.object({
10
+ rpcUrl: zod_1.z.string().url().describe('RPC URL for the source chain'),
11
+ sourceChain: zod_1.z.string().describe("Source chain ID (e.g., '1' for Ethereum, '8453' for Base)"),
12
+ destinationChain: zod_1.z
13
+ .string()
14
+ .describe("Destination chain ID (e.g., '1' for Ethereum, '8453' for Base)"),
15
+ sourceToken: zod_1.z
16
+ .string()
17
+ .regex(/^0x[a-fA-F0-9]{40}$/, 'Invalid token address')
18
+ .describe('Source token address (use 0x0000000000000000000000000000000000000000 for native token)'),
19
+ destinationToken: zod_1.z
20
+ .string()
21
+ .regex(/^0x[a-fA-F0-9]{40}$/, 'Invalid token address')
22
+ .describe('Destination token address (use 0x0000000000000000000000000000000000000000 for native token)'),
23
+ amount: zod_1.z
24
+ .string()
25
+ .regex(/^\d+(\.\d+)?$/, 'Invalid amount format')
26
+ .refine((val) => parseFloat(val) > 0, 'Amount must be greater than 0')
27
+ .describe("Amount to bridge in token units (e.g., '1000000000000000000' for 1 ETH)"),
28
+ recipientAddress: zod_1.z
29
+ .string()
30
+ .regex(/^0x[a-fA-F0-9]{40}$/, 'Invalid address format')
31
+ .describe('Recipient address on destination chain'),
32
+ operation: zod_1.z
33
+ .enum([exports.Operations.BRIDGE, exports.Operations.BRIDGE_AND_SWAP])
34
+ .describe("Operation type: 'BRIDGE' for simple bridge, 'BRIDGE_AND_SWAP' for bridge with swap"),
35
+ slippageBps: zod_1.z
36
+ .number()
37
+ .min(0, 'Slippage cannot be negative')
38
+ .max(10000, 'Slippage cannot exceed 100% (10000 bps)')
39
+ .optional()
40
+ .default(100)
41
+ .describe('Slippage tolerance in basis points (100 = 1%)'),
42
+ });
43
+ exports.precheckSuccessSchema = zod_1.z.object({
44
+ data: zod_1.z
45
+ .object({
46
+ sourceChain: zod_1.z.string().describe('Source chain ID'),
47
+ destinationChain: zod_1.z.string().describe('Destination chain ID'),
48
+ sourceToken: zod_1.z.string().describe('Source token address'),
49
+ destinationToken: zod_1.z.string().describe('Destination token address'),
50
+ sourceAmount: zod_1.z.string().describe('Amount being sent in smallest token unit'),
51
+ estimatedDestinationAmount: zod_1.z
52
+ .string()
53
+ .describe('Estimated amount to be received on destination chain'),
54
+ estimatedFees: zod_1.z
55
+ .object({
56
+ protocolFee: zod_1.z.string().describe('Protocol fee in smallest token unit'),
57
+ })
58
+ .describe('Estimated fees for the transaction'),
59
+ estimatedExecutionTime: zod_1.z
60
+ .string()
61
+ .describe('Estimated time for the bridge operation in seconds'),
62
+ orderData: zod_1.z
63
+ .object({
64
+ orderId: zod_1.z.string().optional().describe('Order ID for tracking the bridge transaction'),
65
+ txData: zod_1.z
66
+ .string()
67
+ .optional()
68
+ .describe('Transaction data for executing the bridge operation'),
69
+ contractAddress: zod_1.z.string().describe('Contract address for the bridge operation'),
70
+ })
71
+ .optional()
72
+ .describe('Order data required for executing the bridge transaction'),
73
+ })
74
+ .describe('Precheck response data'),
75
+ });
76
+ exports.precheckFailSchema = zod_1.z.object({
77
+ error: zod_1.z.string().describe('Error message describing why the precheck failed'),
78
+ });
79
+ exports.executeSuccessSchema = zod_1.z.object({
80
+ data: zod_1.z.object({
81
+ txHash: zod_1.z.string().describe('Transaction hash of the bridge transaction'),
82
+ sourceChain: zod_1.z.string().describe('Source chain ID'),
83
+ destinationChain: zod_1.z.string().describe('Destination chain ID'),
84
+ sourceToken: zod_1.z.string().describe('Source token address'),
85
+ destinationToken: zod_1.z.string().describe('Destination token address'),
86
+ sourceAmount: zod_1.z.string().describe('Amount sent in smallest token unit'),
87
+ orderId: zod_1.z.string().optional().describe('Order ID for tracking the bridge transaction'),
88
+ }),
89
+ });
90
+ exports.executeFailSchema = zod_1.z.object({
91
+ error: zod_1.z.string().describe('Error message describing why the execution failed'),
92
+ });
93
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;CAC1B,CAAC;AAIE,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACjE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IAC7F,gBAAgB,EAAE,OAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,WAAW,EAAE,OAAC;SACX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C;QACzE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACnD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QAC7D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QACxD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QAClE,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;QACvE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;KACxF,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;CAChF,CAAC,CAAC"}
@@ -0,0 +1,188 @@
1
+ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk").VincentAbility<import("zod").ZodObject<{
2
+ rpcUrl: import("zod").ZodString;
3
+ sourceChain: import("zod").ZodString;
4
+ destinationChain: import("zod").ZodString;
5
+ sourceToken: import("zod").ZodString;
6
+ destinationToken: import("zod").ZodString;
7
+ amount: import("zod").ZodEffects<import("zod").ZodString, string, string>;
8
+ recipientAddress: import("zod").ZodString;
9
+ operation: import("zod").ZodEnum<["BRIDGE", "BRIDGE_AND_SWAP"]>;
10
+ slippageBps: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ rpcUrl: string;
13
+ sourceChain: string;
14
+ destinationChain: string;
15
+ sourceToken: string;
16
+ destinationToken: string;
17
+ amount: string;
18
+ recipientAddress: string;
19
+ operation: "BRIDGE" | "BRIDGE_AND_SWAP";
20
+ slippageBps: number;
21
+ }, {
22
+ rpcUrl: string;
23
+ sourceChain: string;
24
+ destinationChain: string;
25
+ sourceToken: string;
26
+ destinationToken: string;
27
+ amount: string;
28
+ recipientAddress: string;
29
+ operation: "BRIDGE" | "BRIDGE_AND_SWAP";
30
+ slippageBps?: number | undefined;
31
+ }>, string, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/abilityCore/helpers").AbilityPolicyMap<readonly [], never>, {}, import("zod").ZodObject<{
32
+ data: import("zod").ZodObject<{
33
+ txHash: import("zod").ZodString;
34
+ sourceChain: import("zod").ZodString;
35
+ destinationChain: import("zod").ZodString;
36
+ sourceToken: import("zod").ZodString;
37
+ destinationToken: import("zod").ZodString;
38
+ sourceAmount: import("zod").ZodString;
39
+ orderId: import("zod").ZodOptional<import("zod").ZodString>;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ sourceChain: string;
42
+ destinationChain: string;
43
+ sourceToken: string;
44
+ destinationToken: string;
45
+ sourceAmount: string;
46
+ txHash: string;
47
+ orderId?: string | undefined;
48
+ }, {
49
+ sourceChain: string;
50
+ destinationChain: string;
51
+ sourceToken: string;
52
+ destinationToken: string;
53
+ sourceAmount: string;
54
+ txHash: string;
55
+ orderId?: string | undefined;
56
+ }>;
57
+ }, "strip", import("zod").ZodTypeAny, {
58
+ data: {
59
+ sourceChain: string;
60
+ destinationChain: string;
61
+ sourceToken: string;
62
+ destinationToken: string;
63
+ sourceAmount: string;
64
+ txHash: string;
65
+ orderId?: string | undefined;
66
+ };
67
+ }, {
68
+ data: {
69
+ sourceChain: string;
70
+ destinationChain: string;
71
+ sourceToken: string;
72
+ destinationToken: string;
73
+ sourceAmount: string;
74
+ txHash: string;
75
+ orderId?: string | undefined;
76
+ };
77
+ }>, import("zod").ZodObject<{
78
+ error: import("zod").ZodString;
79
+ }, "strip", import("zod").ZodTypeAny, {
80
+ error: string;
81
+ }, {
82
+ error: string;
83
+ }>, import("zod").ZodObject<{
84
+ data: import("zod").ZodObject<{
85
+ sourceChain: import("zod").ZodString;
86
+ destinationChain: import("zod").ZodString;
87
+ sourceToken: import("zod").ZodString;
88
+ destinationToken: import("zod").ZodString;
89
+ sourceAmount: import("zod").ZodString;
90
+ estimatedDestinationAmount: import("zod").ZodString;
91
+ estimatedFees: import("zod").ZodObject<{
92
+ protocolFee: import("zod").ZodString;
93
+ }, "strip", import("zod").ZodTypeAny, {
94
+ protocolFee: string;
95
+ }, {
96
+ protocolFee: string;
97
+ }>;
98
+ estimatedExecutionTime: import("zod").ZodString;
99
+ orderData: import("zod").ZodOptional<import("zod").ZodObject<{
100
+ orderId: import("zod").ZodOptional<import("zod").ZodString>;
101
+ txData: import("zod").ZodOptional<import("zod").ZodString>;
102
+ contractAddress: import("zod").ZodString;
103
+ }, "strip", import("zod").ZodTypeAny, {
104
+ contractAddress: string;
105
+ orderId?: string | undefined;
106
+ txData?: string | undefined;
107
+ }, {
108
+ contractAddress: string;
109
+ orderId?: string | undefined;
110
+ txData?: string | undefined;
111
+ }>>;
112
+ }, "strip", import("zod").ZodTypeAny, {
113
+ sourceChain: string;
114
+ destinationChain: string;
115
+ sourceToken: string;
116
+ destinationToken: string;
117
+ sourceAmount: string;
118
+ estimatedDestinationAmount: string;
119
+ estimatedFees: {
120
+ protocolFee: string;
121
+ };
122
+ estimatedExecutionTime: string;
123
+ orderData?: {
124
+ contractAddress: string;
125
+ orderId?: string | undefined;
126
+ txData?: string | undefined;
127
+ } | undefined;
128
+ }, {
129
+ sourceChain: string;
130
+ destinationChain: string;
131
+ sourceToken: string;
132
+ destinationToken: string;
133
+ sourceAmount: string;
134
+ estimatedDestinationAmount: string;
135
+ estimatedFees: {
136
+ protocolFee: string;
137
+ };
138
+ estimatedExecutionTime: string;
139
+ orderData?: {
140
+ contractAddress: string;
141
+ orderId?: string | undefined;
142
+ txData?: string | undefined;
143
+ } | undefined;
144
+ }>;
145
+ }, "strip", import("zod").ZodTypeAny, {
146
+ data: {
147
+ sourceChain: string;
148
+ destinationChain: string;
149
+ sourceToken: string;
150
+ destinationToken: string;
151
+ sourceAmount: string;
152
+ estimatedDestinationAmount: string;
153
+ estimatedFees: {
154
+ protocolFee: string;
155
+ };
156
+ estimatedExecutionTime: string;
157
+ orderData?: {
158
+ contractAddress: string;
159
+ orderId?: string | undefined;
160
+ txData?: string | undefined;
161
+ } | undefined;
162
+ };
163
+ }, {
164
+ data: {
165
+ sourceChain: string;
166
+ destinationChain: string;
167
+ sourceToken: string;
168
+ destinationToken: string;
169
+ sourceAmount: string;
170
+ estimatedDestinationAmount: string;
171
+ estimatedFees: {
172
+ protocolFee: string;
173
+ };
174
+ estimatedExecutionTime: string;
175
+ orderData?: {
176
+ contractAddress: string;
177
+ orderId?: string | undefined;
178
+ txData?: string | undefined;
179
+ } | undefined;
180
+ };
181
+ }>, import("zod").ZodObject<{
182
+ error: import("zod").ZodString;
183
+ }, "strip", import("zod").ZodTypeAny, {
184
+ error: string;
185
+ }, {
186
+ error: string;
187
+ }>>;
188
+ //# sourceMappingURL=vincent-ability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vincent-ability.d.ts","sourceRoot":"","sources":["../../../src/lib/vincent-ability.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0UzB,CAAC"}