@mimicprotocol/sdk 0.0.1 → 0.0.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/axia/ProposalSigner.d.ts +1 -1
- package/dist/axia/ProposalSigner.d.ts.map +1 -1
- package/dist/axia/validators.d.ts +556 -293
- package/dist/axia/validators.d.ts.map +1 -1
- package/dist/axia/validators.js +8 -4
- package/dist/axia/validators.js.map +1 -1
- package/dist/client/domains/IntentsClient.d.ts +34 -27
- package/dist/client/domains/IntentsClient.d.ts.map +1 -1
- package/dist/client/domains/IntentsClient.js +35 -24
- package/dist/client/domains/IntentsClient.js.map +1 -1
- package/dist/registry/TriggerSigner.d.ts +2 -2
- package/dist/registry/TriggerSigner.d.ts.map +1 -1
- package/dist/registry/TriggerSigner.js +4 -4
- package/dist/registry/TriggerSigner.js.map +1 -1
- package/dist/registry/validators.d.ts +4 -4
- package/dist/relayer/eip712Types.d.ts +5 -1
- package/dist/relayer/eip712Types.d.ts.map +1 -1
- package/dist/relayer/validators.d.ts +1985 -1530
- package/dist/relayer/validators.d.ts.map +1 -1
- package/dist/relayer/validators.js +1 -6
- package/dist/relayer/validators.js.map +1 -1
- package/dist/runner/validators.d.ts +4 -4
- package/dist/settler/svm/Settler.d.ts +2 -2
- package/dist/settler/svm/Settler.d.ts.map +1 -1
- package/dist/settler/svm/Settler.js +13 -13
- package/dist/settler/svm/Settler.js.map +1 -1
- package/dist/settler/svm/types.d.ts +4 -4
- package/dist/settler/svm/types.d.ts.map +1 -1
- package/dist/shared/codec/chains/evm.d.ts +9 -7
- package/dist/shared/codec/chains/evm.d.ts.map +1 -1
- package/dist/shared/codec/chains/evm.js +88 -41
- package/dist/shared/codec/chains/evm.js.map +1 -1
- package/dist/shared/codec/chains/svm.d.ts +12 -11
- package/dist/shared/codec/chains/svm.d.ts.map +1 -1
- package/dist/shared/codec/chains/svm.js +68 -48
- package/dist/shared/codec/chains/svm.js.map +1 -1
- package/dist/shared/codec/decoder.d.ts +13 -7
- package/dist/shared/codec/decoder.d.ts.map +1 -1
- package/dist/shared/codec/decoder.js +42 -26
- package/dist/shared/codec/decoder.js.map +1 -1
- package/dist/shared/codec/encoder.d.ts +53 -49
- package/dist/shared/codec/encoder.d.ts.map +1 -1
- package/dist/shared/codec/encoder.js +58 -24
- package/dist/shared/codec/encoder.js.map +1 -1
- package/dist/shared/codec/index.d.ts +1 -1
- package/dist/shared/codec/index.d.ts.map +1 -1
- package/dist/shared/codec/index.js +5 -5
- package/dist/shared/codec/index.js.map +1 -1
- package/dist/shared/eip712Types/index.d.ts +12 -5
- package/dist/shared/eip712Types/index.d.ts.map +1 -1
- package/dist/shared/eip712Types/index.js +24 -16
- package/dist/shared/eip712Types/index.js.map +1 -1
- package/dist/shared/types/intents.d.ts +23 -16
- package/dist/shared/types/intents.d.ts.map +1 -1
- package/dist/shared/validators/executions.d.ts +6 -6
- package/dist/shared/validators/intents.d.ts +1453 -275
- package/dist/shared/validators/intents.d.ts.map +1 -1
- package/dist/shared/validators/intents.js +68 -28
- package/dist/shared/validators/intents.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ export declare const OpType: {
|
|
|
3
3
|
readonly Swap: 0;
|
|
4
4
|
readonly Transfer: 1;
|
|
5
5
|
readonly EvmCall: 2;
|
|
6
|
-
readonly
|
|
6
|
+
readonly CrossChainSwap: 3;
|
|
7
|
+
readonly EvmDynamicCall: 4;
|
|
8
|
+
readonly SvmCall: 5;
|
|
7
9
|
};
|
|
8
10
|
export type OpType = (typeof OpType)[keyof typeof OpType];
|
|
9
11
|
export declare const MaxFeeValidator: z.ZodObject<{
|
|
@@ -26,7 +28,7 @@ export declare const MaxFeesValidator: z.ZodArray<z.ZodObject<{
|
|
|
26
28
|
token: string;
|
|
27
29
|
amount: string;
|
|
28
30
|
}>, "many">;
|
|
29
|
-
export declare const
|
|
31
|
+
export declare const OperationEventValidator: z.ZodObject<{
|
|
30
32
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
31
33
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
32
34
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -36,7 +38,7 @@ export declare const IntentEventValidator: z.ZodObject<{
|
|
|
36
38
|
data: string;
|
|
37
39
|
topic: string;
|
|
38
40
|
}>;
|
|
39
|
-
export declare const
|
|
41
|
+
export declare const OperationEventsValidator: z.ZodArray<z.ZodObject<{
|
|
40
42
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
41
43
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
42
44
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -46,18 +48,49 @@ export declare const IntentEventsValidator: z.ZodArray<z.ZodObject<{
|
|
|
46
48
|
data: string;
|
|
47
49
|
topic: string;
|
|
48
50
|
}>, "many">;
|
|
49
|
-
export declare const
|
|
50
|
-
|
|
51
|
+
export declare const OperationValidator: z.ZodObject<{
|
|
52
|
+
opType: z.ZodNativeEnum<{
|
|
51
53
|
readonly Swap: 0;
|
|
52
54
|
readonly Transfer: 1;
|
|
53
55
|
readonly EvmCall: 2;
|
|
54
|
-
readonly
|
|
56
|
+
readonly CrossChainSwap: 3;
|
|
57
|
+
readonly EvmDynamicCall: 4;
|
|
58
|
+
readonly SvmCall: 5;
|
|
55
59
|
}>;
|
|
56
60
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
61
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
62
|
+
events: z.ZodArray<z.ZodObject<{
|
|
63
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
64
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
data: string;
|
|
67
|
+
topic: string;
|
|
68
|
+
}, {
|
|
69
|
+
data: string;
|
|
70
|
+
topic: string;
|
|
71
|
+
}>, "many">;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
74
|
+
user: string;
|
|
75
|
+
data: string;
|
|
76
|
+
events: {
|
|
77
|
+
data: string;
|
|
78
|
+
topic: string;
|
|
79
|
+
}[];
|
|
80
|
+
}, {
|
|
81
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
82
|
+
user: string;
|
|
83
|
+
data: string;
|
|
84
|
+
events: {
|
|
85
|
+
data: string;
|
|
86
|
+
topic: string;
|
|
87
|
+
}[];
|
|
88
|
+
}>;
|
|
89
|
+
export declare const IntentValidator: z.ZodObject<{
|
|
90
|
+
feePayer: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
57
91
|
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
58
92
|
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
59
93
|
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
60
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
61
94
|
maxFees: z.ZodArray<z.ZodObject<{
|
|
62
95
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
63
96
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -68,65 +101,92 @@ export declare const IntentValidator: z.ZodObject<{
|
|
|
68
101
|
token: string;
|
|
69
102
|
amount: string;
|
|
70
103
|
}>, "many">;
|
|
71
|
-
|
|
72
|
-
|
|
104
|
+
triggerSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
105
|
+
minValidations: z.ZodNumber;
|
|
106
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
107
|
+
opType: z.ZodNativeEnum<{
|
|
108
|
+
readonly Swap: 0;
|
|
109
|
+
readonly Transfer: 1;
|
|
110
|
+
readonly EvmCall: 2;
|
|
111
|
+
readonly CrossChainSwap: 3;
|
|
112
|
+
readonly EvmDynamicCall: 4;
|
|
113
|
+
readonly SvmCall: 5;
|
|
114
|
+
}>;
|
|
115
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
73
116
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
117
|
+
events: z.ZodArray<z.ZodObject<{
|
|
118
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
119
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
data: string;
|
|
122
|
+
topic: string;
|
|
123
|
+
}, {
|
|
124
|
+
data: string;
|
|
125
|
+
topic: string;
|
|
126
|
+
}>, "many">;
|
|
74
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
129
|
+
user: string;
|
|
75
130
|
data: string;
|
|
76
|
-
|
|
131
|
+
events: {
|
|
132
|
+
data: string;
|
|
133
|
+
topic: string;
|
|
134
|
+
}[];
|
|
77
135
|
}, {
|
|
136
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
137
|
+
user: string;
|
|
78
138
|
data: string;
|
|
79
|
-
|
|
139
|
+
events: {
|
|
140
|
+
data: string;
|
|
141
|
+
topic: string;
|
|
142
|
+
}[];
|
|
80
143
|
}>, "many">;
|
|
81
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
82
|
-
minValidations: z.ZodNumber;
|
|
83
144
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
|
|
85
|
-
user: string;
|
|
145
|
+
feePayer: string;
|
|
86
146
|
settler: string;
|
|
87
147
|
nonce: string;
|
|
88
148
|
deadline: string;
|
|
89
|
-
data: string;
|
|
90
149
|
maxFees: {
|
|
91
150
|
token: string;
|
|
92
151
|
amount: string;
|
|
93
152
|
}[];
|
|
94
|
-
|
|
153
|
+
triggerSig: string;
|
|
154
|
+
minValidations: number;
|
|
155
|
+
operations: {
|
|
156
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
157
|
+
user: string;
|
|
95
158
|
data: string;
|
|
96
|
-
|
|
159
|
+
events: {
|
|
160
|
+
data: string;
|
|
161
|
+
topic: string;
|
|
162
|
+
}[];
|
|
97
163
|
}[];
|
|
98
|
-
configSig: string;
|
|
99
|
-
minValidations: number;
|
|
100
164
|
}, {
|
|
101
|
-
|
|
102
|
-
user: string;
|
|
165
|
+
feePayer: string;
|
|
103
166
|
settler: string;
|
|
104
167
|
nonce: string;
|
|
105
168
|
deadline: string;
|
|
106
|
-
data: string;
|
|
107
169
|
maxFees: {
|
|
108
170
|
token: string;
|
|
109
171
|
amount: string;
|
|
110
172
|
}[];
|
|
111
|
-
|
|
173
|
+
triggerSig: string;
|
|
174
|
+
minValidations: number;
|
|
175
|
+
operations: {
|
|
176
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
177
|
+
user: string;
|
|
112
178
|
data: string;
|
|
113
|
-
|
|
179
|
+
events: {
|
|
180
|
+
data: string;
|
|
181
|
+
topic: string;
|
|
182
|
+
}[];
|
|
114
183
|
}[];
|
|
115
|
-
configSig: string;
|
|
116
|
-
minValidations: number;
|
|
117
184
|
}>;
|
|
118
185
|
export declare const ValidatedIntentValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
119
|
-
|
|
120
|
-
readonly Swap: 0;
|
|
121
|
-
readonly Transfer: 1;
|
|
122
|
-
readonly EvmCall: 2;
|
|
123
|
-
readonly SvmCall: 3;
|
|
124
|
-
}>;
|
|
125
|
-
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
186
|
+
feePayer: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
126
187
|
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
127
188
|
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
128
189
|
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
129
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
130
190
|
maxFees: z.ZodArray<z.ZodObject<{
|
|
131
191
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
132
192
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -137,74 +197,108 @@ export declare const ValidatedIntentValidator: z.ZodObject<z.objectUtil.extendSh
|
|
|
137
197
|
token: string;
|
|
138
198
|
amount: string;
|
|
139
199
|
}>, "many">;
|
|
140
|
-
|
|
141
|
-
|
|
200
|
+
triggerSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
201
|
+
minValidations: z.ZodNumber;
|
|
202
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
203
|
+
opType: z.ZodNativeEnum<{
|
|
204
|
+
readonly Swap: 0;
|
|
205
|
+
readonly Transfer: 1;
|
|
206
|
+
readonly EvmCall: 2;
|
|
207
|
+
readonly CrossChainSwap: 3;
|
|
208
|
+
readonly EvmDynamicCall: 4;
|
|
209
|
+
readonly SvmCall: 5;
|
|
210
|
+
}>;
|
|
211
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
142
212
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
213
|
+
events: z.ZodArray<z.ZodObject<{
|
|
214
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
215
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
data: string;
|
|
218
|
+
topic: string;
|
|
219
|
+
}, {
|
|
220
|
+
data: string;
|
|
221
|
+
topic: string;
|
|
222
|
+
}>, "many">;
|
|
143
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
225
|
+
user: string;
|
|
144
226
|
data: string;
|
|
145
|
-
|
|
227
|
+
events: {
|
|
228
|
+
data: string;
|
|
229
|
+
topic: string;
|
|
230
|
+
}[];
|
|
146
231
|
}, {
|
|
232
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
233
|
+
user: string;
|
|
147
234
|
data: string;
|
|
148
|
-
|
|
235
|
+
events: {
|
|
236
|
+
data: string;
|
|
237
|
+
topic: string;
|
|
238
|
+
}[];
|
|
149
239
|
}>, "many">;
|
|
150
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
151
|
-
minValidations: z.ZodNumber;
|
|
152
240
|
}, {
|
|
153
241
|
validations: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">, "many">;
|
|
154
242
|
}>, "strip", z.ZodTypeAny, {
|
|
155
|
-
|
|
156
|
-
user: string;
|
|
243
|
+
feePayer: string;
|
|
157
244
|
settler: string;
|
|
158
245
|
nonce: string;
|
|
159
246
|
deadline: string;
|
|
160
|
-
data: string;
|
|
161
247
|
maxFees: {
|
|
162
248
|
token: string;
|
|
163
249
|
amount: string;
|
|
164
250
|
}[];
|
|
165
|
-
|
|
251
|
+
triggerSig: string;
|
|
252
|
+
minValidations: number;
|
|
253
|
+
operations: {
|
|
254
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
255
|
+
user: string;
|
|
166
256
|
data: string;
|
|
167
|
-
|
|
257
|
+
events: {
|
|
258
|
+
data: string;
|
|
259
|
+
topic: string;
|
|
260
|
+
}[];
|
|
168
261
|
}[];
|
|
169
|
-
configSig: string;
|
|
170
|
-
minValidations: number;
|
|
171
262
|
validations: string[][];
|
|
172
263
|
}, {
|
|
173
|
-
|
|
174
|
-
user: string;
|
|
264
|
+
feePayer: string;
|
|
175
265
|
settler: string;
|
|
176
266
|
nonce: string;
|
|
177
267
|
deadline: string;
|
|
178
|
-
data: string;
|
|
179
268
|
maxFees: {
|
|
180
269
|
token: string;
|
|
181
270
|
amount: string;
|
|
182
271
|
}[];
|
|
183
|
-
|
|
272
|
+
triggerSig: string;
|
|
273
|
+
minValidations: number;
|
|
274
|
+
operations: {
|
|
275
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
276
|
+
user: string;
|
|
184
277
|
data: string;
|
|
185
|
-
|
|
278
|
+
events: {
|
|
279
|
+
data: string;
|
|
280
|
+
topic: string;
|
|
281
|
+
}[];
|
|
186
282
|
}[];
|
|
187
|
-
configSig: string;
|
|
188
|
-
minValidations: number;
|
|
189
283
|
validations: string[][];
|
|
190
284
|
}>;
|
|
191
285
|
export declare const ProposalValidator: z.ZodObject<{
|
|
192
286
|
solver: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
193
287
|
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
194
|
-
|
|
288
|
+
datas: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
195
289
|
fees: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
196
290
|
}, "strip", z.ZodTypeAny, {
|
|
197
291
|
deadline: string;
|
|
198
|
-
data: string;
|
|
199
292
|
solver: string;
|
|
293
|
+
datas: string[];
|
|
200
294
|
fees: string[];
|
|
201
295
|
}, {
|
|
202
296
|
deadline: string;
|
|
203
|
-
data: string;
|
|
204
297
|
solver: string;
|
|
298
|
+
datas: string[];
|
|
205
299
|
fees: string[];
|
|
206
300
|
}>;
|
|
207
|
-
export declare const
|
|
301
|
+
export declare const SwapOperationTokenInValidator: z.ZodObject<{
|
|
208
302
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
209
303
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
210
304
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -214,7 +308,7 @@ export declare const SwapIntentTokenInValidator: z.ZodObject<{
|
|
|
214
308
|
token: string;
|
|
215
309
|
amount: string;
|
|
216
310
|
}>;
|
|
217
|
-
export declare const
|
|
311
|
+
export declare const SwapOperationTokenOutValidator: z.ZodObject<{
|
|
218
312
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
219
313
|
minAmount: z.ZodEffects<z.ZodString, string, string>;
|
|
220
314
|
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -227,7 +321,7 @@ export declare const SwapIntentTokenOutValidator: z.ZodObject<{
|
|
|
227
321
|
minAmount: string;
|
|
228
322
|
recipient: string;
|
|
229
323
|
}>;
|
|
230
|
-
export declare const
|
|
324
|
+
export declare const SwapOperationDataValidator: z.ZodObject<{
|
|
231
325
|
sourceChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
232
326
|
destinationChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
233
327
|
tokensIn: z.ZodArray<z.ZodObject<{
|
|
@@ -278,28 +372,17 @@ export declare const SwapIntentDataValidator: z.ZodObject<{
|
|
|
278
372
|
recipient: string;
|
|
279
373
|
}[];
|
|
280
374
|
}>;
|
|
281
|
-
export declare const
|
|
282
|
-
|
|
375
|
+
export declare const SwapOperationValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
376
|
+
opType: z.ZodNativeEnum<{
|
|
283
377
|
readonly Swap: 0;
|
|
284
378
|
readonly Transfer: 1;
|
|
285
379
|
readonly EvmCall: 2;
|
|
286
|
-
readonly
|
|
380
|
+
readonly CrossChainSwap: 3;
|
|
381
|
+
readonly EvmDynamicCall: 4;
|
|
382
|
+
readonly SvmCall: 5;
|
|
287
383
|
}>;
|
|
288
384
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
289
|
-
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
290
|
-
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
291
|
-
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
292
385
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
293
|
-
maxFees: z.ZodArray<z.ZodObject<{
|
|
294
|
-
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
295
|
-
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
296
|
-
}, "strip", z.ZodTypeAny, {
|
|
297
|
-
token: string;
|
|
298
|
-
amount: string;
|
|
299
|
-
}, {
|
|
300
|
-
token: string;
|
|
301
|
-
amount: string;
|
|
302
|
-
}>, "many">;
|
|
303
386
|
events: z.ZodArray<z.ZodObject<{
|
|
304
387
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
305
388
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -310,8 +393,6 @@ export declare const SwapIntentValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
310
393
|
data: string;
|
|
311
394
|
topic: string;
|
|
312
395
|
}>, "many">;
|
|
313
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
314
|
-
minValidations: z.ZodNumber;
|
|
315
396
|
}, {
|
|
316
397
|
sourceChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
317
398
|
destinationChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
@@ -339,22 +420,13 @@ export declare const SwapIntentValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
339
420
|
recipient: string;
|
|
340
421
|
}>, "many">;
|
|
341
422
|
}>, "strip", z.ZodTypeAny, {
|
|
342
|
-
|
|
423
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
343
424
|
user: string;
|
|
344
|
-
settler: string;
|
|
345
|
-
nonce: string;
|
|
346
|
-
deadline: string;
|
|
347
425
|
data: string;
|
|
348
|
-
maxFees: {
|
|
349
|
-
token: string;
|
|
350
|
-
amount: string;
|
|
351
|
-
}[];
|
|
352
426
|
events: {
|
|
353
427
|
data: string;
|
|
354
428
|
topic: string;
|
|
355
429
|
}[];
|
|
356
|
-
configSig: string;
|
|
357
|
-
minValidations: number;
|
|
358
430
|
sourceChain: number;
|
|
359
431
|
destinationChain: number;
|
|
360
432
|
tokensIn: {
|
|
@@ -367,22 +439,13 @@ export declare const SwapIntentValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
367
439
|
recipient: string;
|
|
368
440
|
}[];
|
|
369
441
|
}, {
|
|
370
|
-
|
|
442
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
371
443
|
user: string;
|
|
372
|
-
settler: string;
|
|
373
|
-
nonce: string;
|
|
374
|
-
deadline: string;
|
|
375
444
|
data: string;
|
|
376
|
-
maxFees: {
|
|
377
|
-
token: string;
|
|
378
|
-
amount: string;
|
|
379
|
-
}[];
|
|
380
445
|
events: {
|
|
381
446
|
data: string;
|
|
382
447
|
topic: string;
|
|
383
448
|
}[];
|
|
384
|
-
configSig: string;
|
|
385
|
-
minValidations: number;
|
|
386
449
|
sourceChain: number;
|
|
387
450
|
destinationChain: number;
|
|
388
451
|
tokensIn: {
|
|
@@ -411,7 +474,7 @@ export declare const SwapProposalDataValidator: z.ZodObject<{
|
|
|
411
474
|
export declare const SwapProposalValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
412
475
|
solver: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
413
476
|
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
414
|
-
|
|
477
|
+
datas: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
415
478
|
fees: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
416
479
|
}, {
|
|
417
480
|
executor: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -419,22 +482,22 @@ export declare const SwapProposalValidator: z.ZodObject<z.objectUtil.extendShape
|
|
|
419
482
|
amountsOut: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
420
483
|
}>, "strip", z.ZodTypeAny, {
|
|
421
484
|
deadline: string;
|
|
422
|
-
data: string;
|
|
423
485
|
solver: string;
|
|
486
|
+
datas: string[];
|
|
424
487
|
fees: string[];
|
|
425
488
|
executor: string;
|
|
426
489
|
executorData: string;
|
|
427
490
|
amountsOut: string[];
|
|
428
491
|
}, {
|
|
429
492
|
deadline: string;
|
|
430
|
-
data: string;
|
|
431
493
|
solver: string;
|
|
494
|
+
datas: string[];
|
|
432
495
|
fees: string[];
|
|
433
496
|
executor: string;
|
|
434
497
|
executorData: string;
|
|
435
498
|
amountsOut: string[];
|
|
436
499
|
}>;
|
|
437
|
-
export declare const
|
|
500
|
+
export declare const TransferOperationTransferValidator: z.ZodObject<{
|
|
438
501
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
439
502
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
440
503
|
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -447,7 +510,7 @@ export declare const TransferIntentTransferValidator: z.ZodObject<{
|
|
|
447
510
|
amount: string;
|
|
448
511
|
recipient: string;
|
|
449
512
|
}>;
|
|
450
|
-
export declare const
|
|
513
|
+
export declare const TransferOperationDataValidator: z.ZodObject<{
|
|
451
514
|
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
452
515
|
transfers: z.ZodArray<z.ZodObject<{
|
|
453
516
|
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -477,28 +540,17 @@ export declare const TransferIntentDataValidator: z.ZodObject<{
|
|
|
477
540
|
recipient: string;
|
|
478
541
|
}[];
|
|
479
542
|
}>;
|
|
480
|
-
export declare const
|
|
481
|
-
|
|
543
|
+
export declare const TransferOperationValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
544
|
+
opType: z.ZodNativeEnum<{
|
|
482
545
|
readonly Swap: 0;
|
|
483
546
|
readonly Transfer: 1;
|
|
484
547
|
readonly EvmCall: 2;
|
|
485
|
-
readonly
|
|
548
|
+
readonly CrossChainSwap: 3;
|
|
549
|
+
readonly EvmDynamicCall: 4;
|
|
550
|
+
readonly SvmCall: 5;
|
|
486
551
|
}>;
|
|
487
552
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
488
|
-
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
489
|
-
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
490
|
-
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
491
553
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
492
|
-
maxFees: z.ZodArray<z.ZodObject<{
|
|
493
|
-
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
494
|
-
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
495
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
token: string;
|
|
497
|
-
amount: string;
|
|
498
|
-
}, {
|
|
499
|
-
token: string;
|
|
500
|
-
amount: string;
|
|
501
|
-
}>, "many">;
|
|
502
554
|
events: z.ZodArray<z.ZodObject<{
|
|
503
555
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
504
556
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -509,8 +561,6 @@ export declare const TransferIntentValidator: z.ZodObject<z.objectUtil.extendSha
|
|
|
509
561
|
data: string;
|
|
510
562
|
topic: string;
|
|
511
563
|
}>, "many">;
|
|
512
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
513
|
-
minValidations: z.ZodNumber;
|
|
514
564
|
}, {
|
|
515
565
|
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
516
566
|
transfers: z.ZodArray<z.ZodObject<{
|
|
@@ -527,22 +577,13 @@ export declare const TransferIntentValidator: z.ZodObject<z.objectUtil.extendSha
|
|
|
527
577
|
recipient: string;
|
|
528
578
|
}>, "many">;
|
|
529
579
|
}>, "strip", z.ZodTypeAny, {
|
|
530
|
-
|
|
580
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
531
581
|
user: string;
|
|
532
|
-
settler: string;
|
|
533
|
-
nonce: string;
|
|
534
|
-
deadline: string;
|
|
535
582
|
data: string;
|
|
536
|
-
maxFees: {
|
|
537
|
-
token: string;
|
|
538
|
-
amount: string;
|
|
539
|
-
}[];
|
|
540
583
|
events: {
|
|
541
584
|
data: string;
|
|
542
585
|
topic: string;
|
|
543
586
|
}[];
|
|
544
|
-
configSig: string;
|
|
545
|
-
minValidations: number;
|
|
546
587
|
chainId: number;
|
|
547
588
|
transfers: {
|
|
548
589
|
token: string;
|
|
@@ -550,22 +591,13 @@ export declare const TransferIntentValidator: z.ZodObject<z.objectUtil.extendSha
|
|
|
550
591
|
recipient: string;
|
|
551
592
|
}[];
|
|
552
593
|
}, {
|
|
553
|
-
|
|
594
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
554
595
|
user: string;
|
|
555
|
-
settler: string;
|
|
556
|
-
nonce: string;
|
|
557
|
-
deadline: string;
|
|
558
596
|
data: string;
|
|
559
|
-
maxFees: {
|
|
560
|
-
token: string;
|
|
561
|
-
amount: string;
|
|
562
|
-
}[];
|
|
563
597
|
events: {
|
|
564
598
|
data: string;
|
|
565
599
|
topic: string;
|
|
566
600
|
}[];
|
|
567
|
-
configSig: string;
|
|
568
|
-
minValidations: number;
|
|
569
601
|
chainId: number;
|
|
570
602
|
transfers: {
|
|
571
603
|
token: string;
|
|
@@ -573,7 +605,7 @@ export declare const TransferIntentValidator: z.ZodObject<z.objectUtil.extendSha
|
|
|
573
605
|
recipient: string;
|
|
574
606
|
}[];
|
|
575
607
|
}>;
|
|
576
|
-
export declare const
|
|
608
|
+
export declare const EvmCallOperationCallValidator: z.ZodObject<{
|
|
577
609
|
target: z.ZodEffects<z.ZodString, string, string>;
|
|
578
610
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
579
611
|
value: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -586,7 +618,7 @@ export declare const EvmCallIntentCallValidator: z.ZodObject<{
|
|
|
586
618
|
data: string;
|
|
587
619
|
target: string;
|
|
588
620
|
}>;
|
|
589
|
-
export declare const
|
|
621
|
+
export declare const EvmCallOperationDataValidator: z.ZodObject<{
|
|
590
622
|
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
591
623
|
calls: z.ZodArray<z.ZodObject<{
|
|
592
624
|
target: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -616,28 +648,17 @@ export declare const EvmCallIntentDataValidator: z.ZodObject<{
|
|
|
616
648
|
target: string;
|
|
617
649
|
}[];
|
|
618
650
|
}>;
|
|
619
|
-
export declare const
|
|
620
|
-
|
|
651
|
+
export declare const EvmCallOperationValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
652
|
+
opType: z.ZodNativeEnum<{
|
|
621
653
|
readonly Swap: 0;
|
|
622
654
|
readonly Transfer: 1;
|
|
623
655
|
readonly EvmCall: 2;
|
|
624
|
-
readonly
|
|
656
|
+
readonly CrossChainSwap: 3;
|
|
657
|
+
readonly EvmDynamicCall: 4;
|
|
658
|
+
readonly SvmCall: 5;
|
|
625
659
|
}>;
|
|
626
660
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
627
|
-
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
628
|
-
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
629
|
-
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
630
661
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
631
|
-
maxFees: z.ZodArray<z.ZodObject<{
|
|
632
|
-
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
633
|
-
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
634
|
-
}, "strip", z.ZodTypeAny, {
|
|
635
|
-
token: string;
|
|
636
|
-
amount: string;
|
|
637
|
-
}, {
|
|
638
|
-
token: string;
|
|
639
|
-
amount: string;
|
|
640
|
-
}>, "many">;
|
|
641
662
|
events: z.ZodArray<z.ZodObject<{
|
|
642
663
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
643
664
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -648,8 +669,6 @@ export declare const EvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
648
669
|
data: string;
|
|
649
670
|
topic: string;
|
|
650
671
|
}>, "many">;
|
|
651
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
652
|
-
minValidations: z.ZodNumber;
|
|
653
672
|
}, {
|
|
654
673
|
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
655
674
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -666,22 +685,13 @@ export declare const EvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
666
685
|
target: string;
|
|
667
686
|
}>, "many">;
|
|
668
687
|
}>, "strip", z.ZodTypeAny, {
|
|
669
|
-
|
|
688
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
670
689
|
user: string;
|
|
671
|
-
settler: string;
|
|
672
|
-
nonce: string;
|
|
673
|
-
deadline: string;
|
|
674
690
|
data: string;
|
|
675
|
-
maxFees: {
|
|
676
|
-
token: string;
|
|
677
|
-
amount: string;
|
|
678
|
-
}[];
|
|
679
691
|
events: {
|
|
680
692
|
data: string;
|
|
681
693
|
topic: string;
|
|
682
694
|
}[];
|
|
683
|
-
configSig: string;
|
|
684
|
-
minValidations: number;
|
|
685
695
|
chainId: number;
|
|
686
696
|
calls: {
|
|
687
697
|
value: string;
|
|
@@ -689,22 +699,13 @@ export declare const EvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
689
699
|
target: string;
|
|
690
700
|
}[];
|
|
691
701
|
}, {
|
|
692
|
-
|
|
702
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
693
703
|
user: string;
|
|
694
|
-
settler: string;
|
|
695
|
-
nonce: string;
|
|
696
|
-
deadline: string;
|
|
697
704
|
data: string;
|
|
698
|
-
maxFees: {
|
|
699
|
-
token: string;
|
|
700
|
-
amount: string;
|
|
701
|
-
}[];
|
|
702
705
|
events: {
|
|
703
706
|
data: string;
|
|
704
707
|
topic: string;
|
|
705
708
|
}[];
|
|
706
|
-
configSig: string;
|
|
707
|
-
minValidations: number;
|
|
708
709
|
chainId: number;
|
|
709
710
|
calls: {
|
|
710
711
|
value: string;
|
|
@@ -712,76 +713,281 @@ export declare const EvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
712
713
|
target: string;
|
|
713
714
|
}[];
|
|
714
715
|
}>;
|
|
715
|
-
export declare const
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
export declare const EvmDynamicArgKind: {
|
|
717
|
+
readonly Literal: 0;
|
|
718
|
+
readonly Variable: 1;
|
|
719
|
+
};
|
|
720
|
+
export type EvmDynamicArgKind = (typeof EvmDynamicArgKind)[keyof typeof EvmDynamicArgKind];
|
|
721
|
+
export declare const EvmDynamicArgValidator: z.ZodObject<{
|
|
722
|
+
kind: z.ZodNativeEnum<{
|
|
723
|
+
readonly Literal: 0;
|
|
724
|
+
readonly Variable: 1;
|
|
725
|
+
}>;
|
|
726
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
719
727
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
isWritable: boolean;
|
|
728
|
+
data: string;
|
|
729
|
+
kind: 0 | 1;
|
|
723
730
|
}, {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
isWritable: boolean;
|
|
731
|
+
data: string;
|
|
732
|
+
kind: 0 | 1;
|
|
727
733
|
}>;
|
|
728
|
-
export declare const
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
+
export declare const EvmDynamicCallOperationCallValidator: z.ZodObject<{
|
|
735
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
736
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
737
|
+
selector: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
738
|
+
arguments: z.ZodArray<z.ZodObject<{
|
|
739
|
+
kind: z.ZodNativeEnum<{
|
|
740
|
+
readonly Literal: 0;
|
|
741
|
+
readonly Variable: 1;
|
|
742
|
+
}>;
|
|
743
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
734
744
|
}, "strip", z.ZodTypeAny, {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
isWritable: boolean;
|
|
745
|
+
data: string;
|
|
746
|
+
kind: 0 | 1;
|
|
738
747
|
}, {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
isWritable: boolean;
|
|
748
|
+
data: string;
|
|
749
|
+
kind: 0 | 1;
|
|
742
750
|
}>, "many">;
|
|
743
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
744
751
|
}, "strip", z.ZodTypeAny, {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
752
|
+
value: string;
|
|
753
|
+
target: string;
|
|
754
|
+
selector: string;
|
|
755
|
+
arguments: {
|
|
756
|
+
data: string;
|
|
757
|
+
kind: 0 | 1;
|
|
751
758
|
}[];
|
|
752
759
|
}, {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
760
|
+
value: string;
|
|
761
|
+
target: string;
|
|
762
|
+
selector: string;
|
|
763
|
+
arguments: {
|
|
764
|
+
data: string;
|
|
765
|
+
kind: 0 | 1;
|
|
759
766
|
}[];
|
|
760
767
|
}>;
|
|
761
|
-
export declare const
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
+
export declare const EvmDynamicCallOperationDataValidator: z.ZodObject<{
|
|
769
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
770
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
771
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
772
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
773
|
+
selector: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
774
|
+
arguments: z.ZodArray<z.ZodObject<{
|
|
775
|
+
kind: z.ZodNativeEnum<{
|
|
776
|
+
readonly Literal: 0;
|
|
777
|
+
readonly Variable: 1;
|
|
778
|
+
}>;
|
|
779
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
768
780
|
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
isWritable: boolean;
|
|
781
|
+
data: string;
|
|
782
|
+
kind: 0 | 1;
|
|
772
783
|
}, {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
isWritable: boolean;
|
|
784
|
+
data: string;
|
|
785
|
+
kind: 0 | 1;
|
|
776
786
|
}>, "many">;
|
|
777
|
-
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
778
787
|
}, "strip", z.ZodTypeAny, {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
788
|
+
value: string;
|
|
789
|
+
target: string;
|
|
790
|
+
selector: string;
|
|
791
|
+
arguments: {
|
|
792
|
+
data: string;
|
|
793
|
+
kind: 0 | 1;
|
|
794
|
+
}[];
|
|
795
|
+
}, {
|
|
796
|
+
value: string;
|
|
797
|
+
target: string;
|
|
798
|
+
selector: string;
|
|
799
|
+
arguments: {
|
|
800
|
+
data: string;
|
|
801
|
+
kind: 0 | 1;
|
|
802
|
+
}[];
|
|
803
|
+
}>, "many">;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
chainId: number;
|
|
806
|
+
calls: {
|
|
807
|
+
value: string;
|
|
808
|
+
target: string;
|
|
809
|
+
selector: string;
|
|
810
|
+
arguments: {
|
|
811
|
+
data: string;
|
|
812
|
+
kind: 0 | 1;
|
|
813
|
+
}[];
|
|
814
|
+
}[];
|
|
815
|
+
}, {
|
|
816
|
+
chainId: number;
|
|
817
|
+
calls: {
|
|
818
|
+
value: string;
|
|
819
|
+
target: string;
|
|
820
|
+
selector: string;
|
|
821
|
+
arguments: {
|
|
822
|
+
data: string;
|
|
823
|
+
kind: 0 | 1;
|
|
824
|
+
}[];
|
|
825
|
+
}[];
|
|
826
|
+
}>;
|
|
827
|
+
export declare const EvmDynamicCallOperationValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
828
|
+
opType: z.ZodNativeEnum<{
|
|
829
|
+
readonly Swap: 0;
|
|
830
|
+
readonly Transfer: 1;
|
|
831
|
+
readonly EvmCall: 2;
|
|
832
|
+
readonly CrossChainSwap: 3;
|
|
833
|
+
readonly EvmDynamicCall: 4;
|
|
834
|
+
readonly SvmCall: 5;
|
|
835
|
+
}>;
|
|
836
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
837
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
838
|
+
events: z.ZodArray<z.ZodObject<{
|
|
839
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
840
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
data: string;
|
|
843
|
+
topic: string;
|
|
844
|
+
}, {
|
|
845
|
+
data: string;
|
|
846
|
+
topic: string;
|
|
847
|
+
}>, "many">;
|
|
848
|
+
}, {
|
|
849
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
850
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
851
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
852
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
853
|
+
selector: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
854
|
+
arguments: z.ZodArray<z.ZodObject<{
|
|
855
|
+
kind: z.ZodNativeEnum<{
|
|
856
|
+
readonly Literal: 0;
|
|
857
|
+
readonly Variable: 1;
|
|
858
|
+
}>;
|
|
859
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
data: string;
|
|
862
|
+
kind: 0 | 1;
|
|
863
|
+
}, {
|
|
864
|
+
data: string;
|
|
865
|
+
kind: 0 | 1;
|
|
866
|
+
}>, "many">;
|
|
867
|
+
}, "strip", z.ZodTypeAny, {
|
|
868
|
+
value: string;
|
|
869
|
+
target: string;
|
|
870
|
+
selector: string;
|
|
871
|
+
arguments: {
|
|
872
|
+
data: string;
|
|
873
|
+
kind: 0 | 1;
|
|
874
|
+
}[];
|
|
875
|
+
}, {
|
|
876
|
+
value: string;
|
|
877
|
+
target: string;
|
|
878
|
+
selector: string;
|
|
879
|
+
arguments: {
|
|
880
|
+
data: string;
|
|
881
|
+
kind: 0 | 1;
|
|
882
|
+
}[];
|
|
883
|
+
}>, "many">;
|
|
884
|
+
}>, "strip", z.ZodTypeAny, {
|
|
885
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
886
|
+
user: string;
|
|
887
|
+
data: string;
|
|
888
|
+
events: {
|
|
889
|
+
data: string;
|
|
890
|
+
topic: string;
|
|
891
|
+
}[];
|
|
892
|
+
chainId: number;
|
|
893
|
+
calls: {
|
|
894
|
+
value: string;
|
|
895
|
+
target: string;
|
|
896
|
+
selector: string;
|
|
897
|
+
arguments: {
|
|
898
|
+
data: string;
|
|
899
|
+
kind: 0 | 1;
|
|
900
|
+
}[];
|
|
901
|
+
}[];
|
|
902
|
+
}, {
|
|
903
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
904
|
+
user: string;
|
|
905
|
+
data: string;
|
|
906
|
+
events: {
|
|
907
|
+
data: string;
|
|
908
|
+
topic: string;
|
|
909
|
+
}[];
|
|
910
|
+
chainId: number;
|
|
911
|
+
calls: {
|
|
912
|
+
value: string;
|
|
913
|
+
target: string;
|
|
914
|
+
selector: string;
|
|
915
|
+
arguments: {
|
|
916
|
+
data: string;
|
|
917
|
+
kind: 0 | 1;
|
|
918
|
+
}[];
|
|
919
|
+
}[];
|
|
920
|
+
}>;
|
|
921
|
+
export declare const SvmAccountMetaValidator: z.ZodObject<{
|
|
922
|
+
pubkey: z.ZodEffects<z.ZodString, string, string>;
|
|
923
|
+
isSigner: z.ZodBoolean;
|
|
924
|
+
isWritable: z.ZodBoolean;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
pubkey: string;
|
|
927
|
+
isSigner: boolean;
|
|
928
|
+
isWritable: boolean;
|
|
929
|
+
}, {
|
|
930
|
+
pubkey: string;
|
|
931
|
+
isSigner: boolean;
|
|
932
|
+
isWritable: boolean;
|
|
933
|
+
}>;
|
|
934
|
+
export declare const SvmCallOperationInstructionValidator: z.ZodObject<{
|
|
935
|
+
programId: z.ZodEffects<z.ZodString, string, string>;
|
|
936
|
+
accountsMeta: z.ZodArray<z.ZodObject<{
|
|
937
|
+
pubkey: z.ZodEffects<z.ZodString, string, string>;
|
|
938
|
+
isSigner: z.ZodBoolean;
|
|
939
|
+
isWritable: z.ZodBoolean;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
pubkey: string;
|
|
942
|
+
isSigner: boolean;
|
|
943
|
+
isWritable: boolean;
|
|
944
|
+
}, {
|
|
945
|
+
pubkey: string;
|
|
946
|
+
isSigner: boolean;
|
|
947
|
+
isWritable: boolean;
|
|
948
|
+
}>, "many">;
|
|
949
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
data: string;
|
|
952
|
+
programId: string;
|
|
953
|
+
accountsMeta: {
|
|
954
|
+
pubkey: string;
|
|
955
|
+
isSigner: boolean;
|
|
956
|
+
isWritable: boolean;
|
|
957
|
+
}[];
|
|
958
|
+
}, {
|
|
959
|
+
data: string;
|
|
960
|
+
programId: string;
|
|
961
|
+
accountsMeta: {
|
|
962
|
+
pubkey: string;
|
|
963
|
+
isSigner: boolean;
|
|
964
|
+
isWritable: boolean;
|
|
965
|
+
}[];
|
|
966
|
+
}>;
|
|
967
|
+
export declare const SvmCallOperationDataValidator: z.ZodObject<{
|
|
968
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
969
|
+
programId: z.ZodEffects<z.ZodString, string, string>;
|
|
970
|
+
accountsMeta: z.ZodArray<z.ZodObject<{
|
|
971
|
+
pubkey: z.ZodEffects<z.ZodString, string, string>;
|
|
972
|
+
isSigner: z.ZodBoolean;
|
|
973
|
+
isWritable: z.ZodBoolean;
|
|
974
|
+
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
pubkey: string;
|
|
976
|
+
isSigner: boolean;
|
|
977
|
+
isWritable: boolean;
|
|
978
|
+
}, {
|
|
979
|
+
pubkey: string;
|
|
980
|
+
isSigner: boolean;
|
|
981
|
+
isWritable: boolean;
|
|
982
|
+
}>, "many">;
|
|
983
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
984
|
+
}, "strip", z.ZodTypeAny, {
|
|
985
|
+
data: string;
|
|
986
|
+
programId: string;
|
|
987
|
+
accountsMeta: {
|
|
988
|
+
pubkey: string;
|
|
989
|
+
isSigner: boolean;
|
|
990
|
+
isWritable: boolean;
|
|
785
991
|
}[];
|
|
786
992
|
}, {
|
|
787
993
|
data: string;
|
|
@@ -813,28 +1019,17 @@ export declare const SvmCallIntentDataValidator: z.ZodObject<{
|
|
|
813
1019
|
}[];
|
|
814
1020
|
}[];
|
|
815
1021
|
}>;
|
|
816
|
-
export declare const
|
|
817
|
-
|
|
1022
|
+
export declare const SvmCallOperationValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
1023
|
+
opType: z.ZodNativeEnum<{
|
|
818
1024
|
readonly Swap: 0;
|
|
819
1025
|
readonly Transfer: 1;
|
|
820
1026
|
readonly EvmCall: 2;
|
|
821
|
-
readonly
|
|
1027
|
+
readonly CrossChainSwap: 3;
|
|
1028
|
+
readonly EvmDynamicCall: 4;
|
|
1029
|
+
readonly SvmCall: 5;
|
|
822
1030
|
}>;
|
|
823
1031
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
824
|
-
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
825
|
-
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
826
|
-
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
827
1032
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
828
|
-
maxFees: z.ZodArray<z.ZodObject<{
|
|
829
|
-
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
830
|
-
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
831
|
-
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
token: string;
|
|
833
|
-
amount: string;
|
|
834
|
-
}, {
|
|
835
|
-
token: string;
|
|
836
|
-
amount: string;
|
|
837
|
-
}>, "many">;
|
|
838
1033
|
events: z.ZodArray<z.ZodObject<{
|
|
839
1034
|
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
840
1035
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -845,8 +1040,6 @@ export declare const SvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
845
1040
|
data: string;
|
|
846
1041
|
topic: string;
|
|
847
1042
|
}>, "many">;
|
|
848
|
-
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
849
|
-
minValidations: z.ZodNumber;
|
|
850
1043
|
}, {
|
|
851
1044
|
instructions: z.ZodArray<z.ZodObject<{
|
|
852
1045
|
programId: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -882,22 +1075,13 @@ export declare const SvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
882
1075
|
}[];
|
|
883
1076
|
}>, "many">;
|
|
884
1077
|
}>, "strip", z.ZodTypeAny, {
|
|
885
|
-
|
|
1078
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
886
1079
|
user: string;
|
|
887
|
-
settler: string;
|
|
888
|
-
nonce: string;
|
|
889
|
-
deadline: string;
|
|
890
1080
|
data: string;
|
|
891
|
-
maxFees: {
|
|
892
|
-
token: string;
|
|
893
|
-
amount: string;
|
|
894
|
-
}[];
|
|
895
1081
|
events: {
|
|
896
1082
|
data: string;
|
|
897
1083
|
topic: string;
|
|
898
1084
|
}[];
|
|
899
|
-
configSig: string;
|
|
900
|
-
minValidations: number;
|
|
901
1085
|
instructions: {
|
|
902
1086
|
data: string;
|
|
903
1087
|
programId: string;
|
|
@@ -908,22 +1092,13 @@ export declare const SvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
908
1092
|
}[];
|
|
909
1093
|
}[];
|
|
910
1094
|
}, {
|
|
911
|
-
|
|
1095
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
912
1096
|
user: string;
|
|
913
|
-
settler: string;
|
|
914
|
-
nonce: string;
|
|
915
|
-
deadline: string;
|
|
916
1097
|
data: string;
|
|
917
|
-
maxFees: {
|
|
918
|
-
token: string;
|
|
919
|
-
amount: string;
|
|
920
|
-
}[];
|
|
921
1098
|
events: {
|
|
922
1099
|
data: string;
|
|
923
1100
|
topic: string;
|
|
924
1101
|
}[];
|
|
925
|
-
configSig: string;
|
|
926
|
-
minValidations: number;
|
|
927
1102
|
instructions: {
|
|
928
1103
|
data: string;
|
|
929
1104
|
programId: string;
|
|
@@ -934,4 +1109,1007 @@ export declare const SvmCallIntentValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
934
1109
|
}[];
|
|
935
1110
|
}[];
|
|
936
1111
|
}>;
|
|
1112
|
+
export declare const RunnerOperationValidator: z.ZodUnion<[z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1113
|
+
opType: z.ZodNativeEnum<{
|
|
1114
|
+
readonly Swap: 0;
|
|
1115
|
+
readonly Transfer: 1;
|
|
1116
|
+
readonly EvmCall: 2;
|
|
1117
|
+
readonly CrossChainSwap: 3;
|
|
1118
|
+
readonly EvmDynamicCall: 4;
|
|
1119
|
+
readonly SvmCall: 5;
|
|
1120
|
+
}>;
|
|
1121
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1122
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1123
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1124
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1125
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
data: string;
|
|
1128
|
+
topic: string;
|
|
1129
|
+
}, {
|
|
1130
|
+
data: string;
|
|
1131
|
+
topic: string;
|
|
1132
|
+
}>, "many">;
|
|
1133
|
+
}, {
|
|
1134
|
+
sourceChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1135
|
+
destinationChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1136
|
+
tokensIn: z.ZodArray<z.ZodObject<{
|
|
1137
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1138
|
+
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
1139
|
+
}, "strip", z.ZodTypeAny, {
|
|
1140
|
+
token: string;
|
|
1141
|
+
amount: string;
|
|
1142
|
+
}, {
|
|
1143
|
+
token: string;
|
|
1144
|
+
amount: string;
|
|
1145
|
+
}>, "many">;
|
|
1146
|
+
tokensOut: z.ZodArray<z.ZodObject<{
|
|
1147
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1148
|
+
minAmount: z.ZodEffects<z.ZodString, string, string>;
|
|
1149
|
+
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1150
|
+
}, "strip", z.ZodTypeAny, {
|
|
1151
|
+
token: string;
|
|
1152
|
+
minAmount: string;
|
|
1153
|
+
recipient: string;
|
|
1154
|
+
}, {
|
|
1155
|
+
token: string;
|
|
1156
|
+
minAmount: string;
|
|
1157
|
+
recipient: string;
|
|
1158
|
+
}>, "many">;
|
|
1159
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1160
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1161
|
+
user: string;
|
|
1162
|
+
events: {
|
|
1163
|
+
data: string;
|
|
1164
|
+
topic: string;
|
|
1165
|
+
}[];
|
|
1166
|
+
sourceChain: number;
|
|
1167
|
+
destinationChain: number;
|
|
1168
|
+
tokensIn: {
|
|
1169
|
+
token: string;
|
|
1170
|
+
amount: string;
|
|
1171
|
+
}[];
|
|
1172
|
+
tokensOut: {
|
|
1173
|
+
token: string;
|
|
1174
|
+
minAmount: string;
|
|
1175
|
+
recipient: string;
|
|
1176
|
+
}[];
|
|
1177
|
+
}, {
|
|
1178
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1179
|
+
user: string;
|
|
1180
|
+
events: {
|
|
1181
|
+
data: string;
|
|
1182
|
+
topic: string;
|
|
1183
|
+
}[];
|
|
1184
|
+
sourceChain: number;
|
|
1185
|
+
destinationChain: number;
|
|
1186
|
+
tokensIn: {
|
|
1187
|
+
token: string;
|
|
1188
|
+
amount: string;
|
|
1189
|
+
}[];
|
|
1190
|
+
tokensOut: {
|
|
1191
|
+
token: string;
|
|
1192
|
+
minAmount: string;
|
|
1193
|
+
recipient: string;
|
|
1194
|
+
}[];
|
|
1195
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1196
|
+
opType: z.ZodNativeEnum<{
|
|
1197
|
+
readonly Swap: 0;
|
|
1198
|
+
readonly Transfer: 1;
|
|
1199
|
+
readonly EvmCall: 2;
|
|
1200
|
+
readonly CrossChainSwap: 3;
|
|
1201
|
+
readonly EvmDynamicCall: 4;
|
|
1202
|
+
readonly SvmCall: 5;
|
|
1203
|
+
}>;
|
|
1204
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1205
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1206
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1207
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1208
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1209
|
+
}, "strip", z.ZodTypeAny, {
|
|
1210
|
+
data: string;
|
|
1211
|
+
topic: string;
|
|
1212
|
+
}, {
|
|
1213
|
+
data: string;
|
|
1214
|
+
topic: string;
|
|
1215
|
+
}>, "many">;
|
|
1216
|
+
}, {
|
|
1217
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1218
|
+
transfers: z.ZodArray<z.ZodObject<{
|
|
1219
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1220
|
+
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
1221
|
+
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1222
|
+
}, "strip", z.ZodTypeAny, {
|
|
1223
|
+
token: string;
|
|
1224
|
+
amount: string;
|
|
1225
|
+
recipient: string;
|
|
1226
|
+
}, {
|
|
1227
|
+
token: string;
|
|
1228
|
+
amount: string;
|
|
1229
|
+
recipient: string;
|
|
1230
|
+
}>, "many">;
|
|
1231
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1232
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1233
|
+
user: string;
|
|
1234
|
+
events: {
|
|
1235
|
+
data: string;
|
|
1236
|
+
topic: string;
|
|
1237
|
+
}[];
|
|
1238
|
+
chainId: number;
|
|
1239
|
+
transfers: {
|
|
1240
|
+
token: string;
|
|
1241
|
+
amount: string;
|
|
1242
|
+
recipient: string;
|
|
1243
|
+
}[];
|
|
1244
|
+
}, {
|
|
1245
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1246
|
+
user: string;
|
|
1247
|
+
events: {
|
|
1248
|
+
data: string;
|
|
1249
|
+
topic: string;
|
|
1250
|
+
}[];
|
|
1251
|
+
chainId: number;
|
|
1252
|
+
transfers: {
|
|
1253
|
+
token: string;
|
|
1254
|
+
amount: string;
|
|
1255
|
+
recipient: string;
|
|
1256
|
+
}[];
|
|
1257
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1258
|
+
opType: z.ZodNativeEnum<{
|
|
1259
|
+
readonly Swap: 0;
|
|
1260
|
+
readonly Transfer: 1;
|
|
1261
|
+
readonly EvmCall: 2;
|
|
1262
|
+
readonly CrossChainSwap: 3;
|
|
1263
|
+
readonly EvmDynamicCall: 4;
|
|
1264
|
+
readonly SvmCall: 5;
|
|
1265
|
+
}>;
|
|
1266
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1267
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1268
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1269
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1270
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1271
|
+
}, "strip", z.ZodTypeAny, {
|
|
1272
|
+
data: string;
|
|
1273
|
+
topic: string;
|
|
1274
|
+
}, {
|
|
1275
|
+
data: string;
|
|
1276
|
+
topic: string;
|
|
1277
|
+
}>, "many">;
|
|
1278
|
+
}, {
|
|
1279
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1280
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
1281
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
1282
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1283
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
1284
|
+
}, "strip", z.ZodTypeAny, {
|
|
1285
|
+
value: string;
|
|
1286
|
+
data: string;
|
|
1287
|
+
target: string;
|
|
1288
|
+
}, {
|
|
1289
|
+
value: string;
|
|
1290
|
+
data: string;
|
|
1291
|
+
target: string;
|
|
1292
|
+
}>, "many">;
|
|
1293
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1294
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1295
|
+
user: string;
|
|
1296
|
+
events: {
|
|
1297
|
+
data: string;
|
|
1298
|
+
topic: string;
|
|
1299
|
+
}[];
|
|
1300
|
+
chainId: number;
|
|
1301
|
+
calls: {
|
|
1302
|
+
value: string;
|
|
1303
|
+
data: string;
|
|
1304
|
+
target: string;
|
|
1305
|
+
}[];
|
|
1306
|
+
}, {
|
|
1307
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1308
|
+
user: string;
|
|
1309
|
+
events: {
|
|
1310
|
+
data: string;
|
|
1311
|
+
topic: string;
|
|
1312
|
+
}[];
|
|
1313
|
+
chainId: number;
|
|
1314
|
+
calls: {
|
|
1315
|
+
value: string;
|
|
1316
|
+
data: string;
|
|
1317
|
+
target: string;
|
|
1318
|
+
}[];
|
|
1319
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1320
|
+
opType: z.ZodNativeEnum<{
|
|
1321
|
+
readonly Swap: 0;
|
|
1322
|
+
readonly Transfer: 1;
|
|
1323
|
+
readonly EvmCall: 2;
|
|
1324
|
+
readonly CrossChainSwap: 3;
|
|
1325
|
+
readonly EvmDynamicCall: 4;
|
|
1326
|
+
readonly SvmCall: 5;
|
|
1327
|
+
}>;
|
|
1328
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1329
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1330
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1331
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1332
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1333
|
+
}, "strip", z.ZodTypeAny, {
|
|
1334
|
+
data: string;
|
|
1335
|
+
topic: string;
|
|
1336
|
+
}, {
|
|
1337
|
+
data: string;
|
|
1338
|
+
topic: string;
|
|
1339
|
+
}>, "many">;
|
|
1340
|
+
}, {
|
|
1341
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1342
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
1343
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
1344
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
1345
|
+
selector: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1346
|
+
arguments: z.ZodArray<z.ZodObject<{
|
|
1347
|
+
kind: z.ZodNativeEnum<{
|
|
1348
|
+
readonly Literal: 0;
|
|
1349
|
+
readonly Variable: 1;
|
|
1350
|
+
}>;
|
|
1351
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
data: string;
|
|
1354
|
+
kind: 0 | 1;
|
|
1355
|
+
}, {
|
|
1356
|
+
data: string;
|
|
1357
|
+
kind: 0 | 1;
|
|
1358
|
+
}>, "many">;
|
|
1359
|
+
}, "strip", z.ZodTypeAny, {
|
|
1360
|
+
value: string;
|
|
1361
|
+
target: string;
|
|
1362
|
+
selector: string;
|
|
1363
|
+
arguments: {
|
|
1364
|
+
data: string;
|
|
1365
|
+
kind: 0 | 1;
|
|
1366
|
+
}[];
|
|
1367
|
+
}, {
|
|
1368
|
+
value: string;
|
|
1369
|
+
target: string;
|
|
1370
|
+
selector: string;
|
|
1371
|
+
arguments: {
|
|
1372
|
+
data: string;
|
|
1373
|
+
kind: 0 | 1;
|
|
1374
|
+
}[];
|
|
1375
|
+
}>, "many">;
|
|
1376
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1377
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1378
|
+
user: string;
|
|
1379
|
+
events: {
|
|
1380
|
+
data: string;
|
|
1381
|
+
topic: string;
|
|
1382
|
+
}[];
|
|
1383
|
+
chainId: number;
|
|
1384
|
+
calls: {
|
|
1385
|
+
value: string;
|
|
1386
|
+
target: string;
|
|
1387
|
+
selector: string;
|
|
1388
|
+
arguments: {
|
|
1389
|
+
data: string;
|
|
1390
|
+
kind: 0 | 1;
|
|
1391
|
+
}[];
|
|
1392
|
+
}[];
|
|
1393
|
+
}, {
|
|
1394
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1395
|
+
user: string;
|
|
1396
|
+
events: {
|
|
1397
|
+
data: string;
|
|
1398
|
+
topic: string;
|
|
1399
|
+
}[];
|
|
1400
|
+
chainId: number;
|
|
1401
|
+
calls: {
|
|
1402
|
+
value: string;
|
|
1403
|
+
target: string;
|
|
1404
|
+
selector: string;
|
|
1405
|
+
arguments: {
|
|
1406
|
+
data: string;
|
|
1407
|
+
kind: 0 | 1;
|
|
1408
|
+
}[];
|
|
1409
|
+
}[];
|
|
1410
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1411
|
+
opType: z.ZodNativeEnum<{
|
|
1412
|
+
readonly Swap: 0;
|
|
1413
|
+
readonly Transfer: 1;
|
|
1414
|
+
readonly EvmCall: 2;
|
|
1415
|
+
readonly CrossChainSwap: 3;
|
|
1416
|
+
readonly EvmDynamicCall: 4;
|
|
1417
|
+
readonly SvmCall: 5;
|
|
1418
|
+
}>;
|
|
1419
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1420
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1421
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1423
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1424
|
+
}, "strip", z.ZodTypeAny, {
|
|
1425
|
+
data: string;
|
|
1426
|
+
topic: string;
|
|
1427
|
+
}, {
|
|
1428
|
+
data: string;
|
|
1429
|
+
topic: string;
|
|
1430
|
+
}>, "many">;
|
|
1431
|
+
}, {
|
|
1432
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
1433
|
+
programId: z.ZodEffects<z.ZodString, string, string>;
|
|
1434
|
+
accountsMeta: z.ZodArray<z.ZodObject<{
|
|
1435
|
+
pubkey: z.ZodEffects<z.ZodString, string, string>;
|
|
1436
|
+
isSigner: z.ZodBoolean;
|
|
1437
|
+
isWritable: z.ZodBoolean;
|
|
1438
|
+
}, "strip", z.ZodTypeAny, {
|
|
1439
|
+
pubkey: string;
|
|
1440
|
+
isSigner: boolean;
|
|
1441
|
+
isWritable: boolean;
|
|
1442
|
+
}, {
|
|
1443
|
+
pubkey: string;
|
|
1444
|
+
isSigner: boolean;
|
|
1445
|
+
isWritable: boolean;
|
|
1446
|
+
}>, "many">;
|
|
1447
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1448
|
+
}, "strip", z.ZodTypeAny, {
|
|
1449
|
+
data: string;
|
|
1450
|
+
programId: string;
|
|
1451
|
+
accountsMeta: {
|
|
1452
|
+
pubkey: string;
|
|
1453
|
+
isSigner: boolean;
|
|
1454
|
+
isWritable: boolean;
|
|
1455
|
+
}[];
|
|
1456
|
+
}, {
|
|
1457
|
+
data: string;
|
|
1458
|
+
programId: string;
|
|
1459
|
+
accountsMeta: {
|
|
1460
|
+
pubkey: string;
|
|
1461
|
+
isSigner: boolean;
|
|
1462
|
+
isWritable: boolean;
|
|
1463
|
+
}[];
|
|
1464
|
+
}>, "many">;
|
|
1465
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1466
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1467
|
+
user: string;
|
|
1468
|
+
events: {
|
|
1469
|
+
data: string;
|
|
1470
|
+
topic: string;
|
|
1471
|
+
}[];
|
|
1472
|
+
instructions: {
|
|
1473
|
+
data: string;
|
|
1474
|
+
programId: string;
|
|
1475
|
+
accountsMeta: {
|
|
1476
|
+
pubkey: string;
|
|
1477
|
+
isSigner: boolean;
|
|
1478
|
+
isWritable: boolean;
|
|
1479
|
+
}[];
|
|
1480
|
+
}[];
|
|
1481
|
+
}, {
|
|
1482
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1483
|
+
user: string;
|
|
1484
|
+
events: {
|
|
1485
|
+
data: string;
|
|
1486
|
+
topic: string;
|
|
1487
|
+
}[];
|
|
1488
|
+
instructions: {
|
|
1489
|
+
data: string;
|
|
1490
|
+
programId: string;
|
|
1491
|
+
accountsMeta: {
|
|
1492
|
+
pubkey: string;
|
|
1493
|
+
isSigner: boolean;
|
|
1494
|
+
isWritable: boolean;
|
|
1495
|
+
}[];
|
|
1496
|
+
}[];
|
|
1497
|
+
}>]>;
|
|
1498
|
+
export declare const RunnerIntentValidator: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1499
|
+
feePayer: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1500
|
+
settler: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1501
|
+
nonce: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1502
|
+
deadline: z.ZodEffects<z.ZodString, string, string>;
|
|
1503
|
+
maxFees: z.ZodArray<z.ZodObject<{
|
|
1504
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1505
|
+
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
1506
|
+
}, "strip", z.ZodTypeAny, {
|
|
1507
|
+
token: string;
|
|
1508
|
+
amount: string;
|
|
1509
|
+
}, {
|
|
1510
|
+
token: string;
|
|
1511
|
+
amount: string;
|
|
1512
|
+
}>, "many">;
|
|
1513
|
+
triggerSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1514
|
+
minValidations: z.ZodNumber;
|
|
1515
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
1516
|
+
opType: z.ZodNativeEnum<{
|
|
1517
|
+
readonly Swap: 0;
|
|
1518
|
+
readonly Transfer: 1;
|
|
1519
|
+
readonly EvmCall: 2;
|
|
1520
|
+
readonly CrossChainSwap: 3;
|
|
1521
|
+
readonly EvmDynamicCall: 4;
|
|
1522
|
+
readonly SvmCall: 5;
|
|
1523
|
+
}>;
|
|
1524
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1525
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1526
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1527
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1528
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1529
|
+
}, "strip", z.ZodTypeAny, {
|
|
1530
|
+
data: string;
|
|
1531
|
+
topic: string;
|
|
1532
|
+
}, {
|
|
1533
|
+
data: string;
|
|
1534
|
+
topic: string;
|
|
1535
|
+
}>, "many">;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1538
|
+
user: string;
|
|
1539
|
+
data: string;
|
|
1540
|
+
events: {
|
|
1541
|
+
data: string;
|
|
1542
|
+
topic: string;
|
|
1543
|
+
}[];
|
|
1544
|
+
}, {
|
|
1545
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1546
|
+
user: string;
|
|
1547
|
+
data: string;
|
|
1548
|
+
events: {
|
|
1549
|
+
data: string;
|
|
1550
|
+
topic: string;
|
|
1551
|
+
}[];
|
|
1552
|
+
}>, "many">;
|
|
1553
|
+
}, "triggerSig" | "minValidations" | "operations">, {
|
|
1554
|
+
operations: z.ZodArray<z.ZodUnion<[z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1555
|
+
opType: z.ZodNativeEnum<{
|
|
1556
|
+
readonly Swap: 0;
|
|
1557
|
+
readonly Transfer: 1;
|
|
1558
|
+
readonly EvmCall: 2;
|
|
1559
|
+
readonly CrossChainSwap: 3;
|
|
1560
|
+
readonly EvmDynamicCall: 4;
|
|
1561
|
+
readonly SvmCall: 5;
|
|
1562
|
+
}>;
|
|
1563
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1564
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1565
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1566
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1567
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1568
|
+
}, "strip", z.ZodTypeAny, {
|
|
1569
|
+
data: string;
|
|
1570
|
+
topic: string;
|
|
1571
|
+
}, {
|
|
1572
|
+
data: string;
|
|
1573
|
+
topic: string;
|
|
1574
|
+
}>, "many">;
|
|
1575
|
+
}, {
|
|
1576
|
+
sourceChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1577
|
+
destinationChain: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1578
|
+
tokensIn: z.ZodArray<z.ZodObject<{
|
|
1579
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1580
|
+
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
1581
|
+
}, "strip", z.ZodTypeAny, {
|
|
1582
|
+
token: string;
|
|
1583
|
+
amount: string;
|
|
1584
|
+
}, {
|
|
1585
|
+
token: string;
|
|
1586
|
+
amount: string;
|
|
1587
|
+
}>, "many">;
|
|
1588
|
+
tokensOut: z.ZodArray<z.ZodObject<{
|
|
1589
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1590
|
+
minAmount: z.ZodEffects<z.ZodString, string, string>;
|
|
1591
|
+
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
|
1593
|
+
token: string;
|
|
1594
|
+
minAmount: string;
|
|
1595
|
+
recipient: string;
|
|
1596
|
+
}, {
|
|
1597
|
+
token: string;
|
|
1598
|
+
minAmount: string;
|
|
1599
|
+
recipient: string;
|
|
1600
|
+
}>, "many">;
|
|
1601
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1602
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1603
|
+
user: string;
|
|
1604
|
+
events: {
|
|
1605
|
+
data: string;
|
|
1606
|
+
topic: string;
|
|
1607
|
+
}[];
|
|
1608
|
+
sourceChain: number;
|
|
1609
|
+
destinationChain: number;
|
|
1610
|
+
tokensIn: {
|
|
1611
|
+
token: string;
|
|
1612
|
+
amount: string;
|
|
1613
|
+
}[];
|
|
1614
|
+
tokensOut: {
|
|
1615
|
+
token: string;
|
|
1616
|
+
minAmount: string;
|
|
1617
|
+
recipient: string;
|
|
1618
|
+
}[];
|
|
1619
|
+
}, {
|
|
1620
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1621
|
+
user: string;
|
|
1622
|
+
events: {
|
|
1623
|
+
data: string;
|
|
1624
|
+
topic: string;
|
|
1625
|
+
}[];
|
|
1626
|
+
sourceChain: number;
|
|
1627
|
+
destinationChain: number;
|
|
1628
|
+
tokensIn: {
|
|
1629
|
+
token: string;
|
|
1630
|
+
amount: string;
|
|
1631
|
+
}[];
|
|
1632
|
+
tokensOut: {
|
|
1633
|
+
token: string;
|
|
1634
|
+
minAmount: string;
|
|
1635
|
+
recipient: string;
|
|
1636
|
+
}[];
|
|
1637
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1638
|
+
opType: z.ZodNativeEnum<{
|
|
1639
|
+
readonly Swap: 0;
|
|
1640
|
+
readonly Transfer: 1;
|
|
1641
|
+
readonly EvmCall: 2;
|
|
1642
|
+
readonly CrossChainSwap: 3;
|
|
1643
|
+
readonly EvmDynamicCall: 4;
|
|
1644
|
+
readonly SvmCall: 5;
|
|
1645
|
+
}>;
|
|
1646
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1647
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1648
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1649
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1650
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1651
|
+
}, "strip", z.ZodTypeAny, {
|
|
1652
|
+
data: string;
|
|
1653
|
+
topic: string;
|
|
1654
|
+
}, {
|
|
1655
|
+
data: string;
|
|
1656
|
+
topic: string;
|
|
1657
|
+
}>, "many">;
|
|
1658
|
+
}, {
|
|
1659
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1660
|
+
transfers: z.ZodArray<z.ZodObject<{
|
|
1661
|
+
token: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1662
|
+
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
1663
|
+
recipient: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1664
|
+
}, "strip", z.ZodTypeAny, {
|
|
1665
|
+
token: string;
|
|
1666
|
+
amount: string;
|
|
1667
|
+
recipient: string;
|
|
1668
|
+
}, {
|
|
1669
|
+
token: string;
|
|
1670
|
+
amount: string;
|
|
1671
|
+
recipient: string;
|
|
1672
|
+
}>, "many">;
|
|
1673
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1674
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1675
|
+
user: string;
|
|
1676
|
+
events: {
|
|
1677
|
+
data: string;
|
|
1678
|
+
topic: string;
|
|
1679
|
+
}[];
|
|
1680
|
+
chainId: number;
|
|
1681
|
+
transfers: {
|
|
1682
|
+
token: string;
|
|
1683
|
+
amount: string;
|
|
1684
|
+
recipient: string;
|
|
1685
|
+
}[];
|
|
1686
|
+
}, {
|
|
1687
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1688
|
+
user: string;
|
|
1689
|
+
events: {
|
|
1690
|
+
data: string;
|
|
1691
|
+
topic: string;
|
|
1692
|
+
}[];
|
|
1693
|
+
chainId: number;
|
|
1694
|
+
transfers: {
|
|
1695
|
+
token: string;
|
|
1696
|
+
amount: string;
|
|
1697
|
+
recipient: string;
|
|
1698
|
+
}[];
|
|
1699
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1700
|
+
opType: z.ZodNativeEnum<{
|
|
1701
|
+
readonly Swap: 0;
|
|
1702
|
+
readonly Transfer: 1;
|
|
1703
|
+
readonly EvmCall: 2;
|
|
1704
|
+
readonly CrossChainSwap: 3;
|
|
1705
|
+
readonly EvmDynamicCall: 4;
|
|
1706
|
+
readonly SvmCall: 5;
|
|
1707
|
+
}>;
|
|
1708
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1709
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1710
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1711
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1712
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
data: string;
|
|
1715
|
+
topic: string;
|
|
1716
|
+
}, {
|
|
1717
|
+
data: string;
|
|
1718
|
+
topic: string;
|
|
1719
|
+
}>, "many">;
|
|
1720
|
+
}, {
|
|
1721
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1722
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
1723
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
1724
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1725
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
1726
|
+
}, "strip", z.ZodTypeAny, {
|
|
1727
|
+
value: string;
|
|
1728
|
+
data: string;
|
|
1729
|
+
target: string;
|
|
1730
|
+
}, {
|
|
1731
|
+
value: string;
|
|
1732
|
+
data: string;
|
|
1733
|
+
target: string;
|
|
1734
|
+
}>, "many">;
|
|
1735
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1736
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1737
|
+
user: string;
|
|
1738
|
+
events: {
|
|
1739
|
+
data: string;
|
|
1740
|
+
topic: string;
|
|
1741
|
+
}[];
|
|
1742
|
+
chainId: number;
|
|
1743
|
+
calls: {
|
|
1744
|
+
value: string;
|
|
1745
|
+
data: string;
|
|
1746
|
+
target: string;
|
|
1747
|
+
}[];
|
|
1748
|
+
}, {
|
|
1749
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1750
|
+
user: string;
|
|
1751
|
+
events: {
|
|
1752
|
+
data: string;
|
|
1753
|
+
topic: string;
|
|
1754
|
+
}[];
|
|
1755
|
+
chainId: number;
|
|
1756
|
+
calls: {
|
|
1757
|
+
value: string;
|
|
1758
|
+
data: string;
|
|
1759
|
+
target: string;
|
|
1760
|
+
}[];
|
|
1761
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1762
|
+
opType: z.ZodNativeEnum<{
|
|
1763
|
+
readonly Swap: 0;
|
|
1764
|
+
readonly Transfer: 1;
|
|
1765
|
+
readonly EvmCall: 2;
|
|
1766
|
+
readonly CrossChainSwap: 3;
|
|
1767
|
+
readonly EvmDynamicCall: 4;
|
|
1768
|
+
readonly SvmCall: 5;
|
|
1769
|
+
}>;
|
|
1770
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1771
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1772
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1773
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1774
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1775
|
+
}, "strip", z.ZodTypeAny, {
|
|
1776
|
+
data: string;
|
|
1777
|
+
topic: string;
|
|
1778
|
+
}, {
|
|
1779
|
+
data: string;
|
|
1780
|
+
topic: string;
|
|
1781
|
+
}>, "many">;
|
|
1782
|
+
}, {
|
|
1783
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
1784
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
1785
|
+
target: z.ZodEffects<z.ZodString, string, string>;
|
|
1786
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
1787
|
+
selector: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1788
|
+
arguments: z.ZodArray<z.ZodObject<{
|
|
1789
|
+
kind: z.ZodNativeEnum<{
|
|
1790
|
+
readonly Literal: 0;
|
|
1791
|
+
readonly Variable: 1;
|
|
1792
|
+
}>;
|
|
1793
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1794
|
+
}, "strip", z.ZodTypeAny, {
|
|
1795
|
+
data: string;
|
|
1796
|
+
kind: 0 | 1;
|
|
1797
|
+
}, {
|
|
1798
|
+
data: string;
|
|
1799
|
+
kind: 0 | 1;
|
|
1800
|
+
}>, "many">;
|
|
1801
|
+
}, "strip", z.ZodTypeAny, {
|
|
1802
|
+
value: string;
|
|
1803
|
+
target: string;
|
|
1804
|
+
selector: string;
|
|
1805
|
+
arguments: {
|
|
1806
|
+
data: string;
|
|
1807
|
+
kind: 0 | 1;
|
|
1808
|
+
}[];
|
|
1809
|
+
}, {
|
|
1810
|
+
value: string;
|
|
1811
|
+
target: string;
|
|
1812
|
+
selector: string;
|
|
1813
|
+
arguments: {
|
|
1814
|
+
data: string;
|
|
1815
|
+
kind: 0 | 1;
|
|
1816
|
+
}[];
|
|
1817
|
+
}>, "many">;
|
|
1818
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1819
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1820
|
+
user: string;
|
|
1821
|
+
events: {
|
|
1822
|
+
data: string;
|
|
1823
|
+
topic: string;
|
|
1824
|
+
}[];
|
|
1825
|
+
chainId: number;
|
|
1826
|
+
calls: {
|
|
1827
|
+
value: string;
|
|
1828
|
+
target: string;
|
|
1829
|
+
selector: string;
|
|
1830
|
+
arguments: {
|
|
1831
|
+
data: string;
|
|
1832
|
+
kind: 0 | 1;
|
|
1833
|
+
}[];
|
|
1834
|
+
}[];
|
|
1835
|
+
}, {
|
|
1836
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1837
|
+
user: string;
|
|
1838
|
+
events: {
|
|
1839
|
+
data: string;
|
|
1840
|
+
topic: string;
|
|
1841
|
+
}[];
|
|
1842
|
+
chainId: number;
|
|
1843
|
+
calls: {
|
|
1844
|
+
value: string;
|
|
1845
|
+
target: string;
|
|
1846
|
+
selector: string;
|
|
1847
|
+
arguments: {
|
|
1848
|
+
data: string;
|
|
1849
|
+
kind: 0 | 1;
|
|
1850
|
+
}[];
|
|
1851
|
+
}[];
|
|
1852
|
+
}>, z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1853
|
+
opType: z.ZodNativeEnum<{
|
|
1854
|
+
readonly Swap: 0;
|
|
1855
|
+
readonly Transfer: 1;
|
|
1856
|
+
readonly EvmCall: 2;
|
|
1857
|
+
readonly CrossChainSwap: 3;
|
|
1858
|
+
readonly EvmDynamicCall: 4;
|
|
1859
|
+
readonly SvmCall: 5;
|
|
1860
|
+
}>;
|
|
1861
|
+
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1862
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1863
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1864
|
+
topic: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1865
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
data: string;
|
|
1868
|
+
topic: string;
|
|
1869
|
+
}, {
|
|
1870
|
+
data: string;
|
|
1871
|
+
topic: string;
|
|
1872
|
+
}>, "many">;
|
|
1873
|
+
}, {
|
|
1874
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
1875
|
+
programId: z.ZodEffects<z.ZodString, string, string>;
|
|
1876
|
+
accountsMeta: z.ZodArray<z.ZodObject<{
|
|
1877
|
+
pubkey: z.ZodEffects<z.ZodString, string, string>;
|
|
1878
|
+
isSigner: z.ZodBoolean;
|
|
1879
|
+
isWritable: z.ZodBoolean;
|
|
1880
|
+
}, "strip", z.ZodTypeAny, {
|
|
1881
|
+
pubkey: string;
|
|
1882
|
+
isSigner: boolean;
|
|
1883
|
+
isWritable: boolean;
|
|
1884
|
+
}, {
|
|
1885
|
+
pubkey: string;
|
|
1886
|
+
isSigner: boolean;
|
|
1887
|
+
isWritable: boolean;
|
|
1888
|
+
}>, "many">;
|
|
1889
|
+
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1890
|
+
}, "strip", z.ZodTypeAny, {
|
|
1891
|
+
data: string;
|
|
1892
|
+
programId: string;
|
|
1893
|
+
accountsMeta: {
|
|
1894
|
+
pubkey: string;
|
|
1895
|
+
isSigner: boolean;
|
|
1896
|
+
isWritable: boolean;
|
|
1897
|
+
}[];
|
|
1898
|
+
}, {
|
|
1899
|
+
data: string;
|
|
1900
|
+
programId: string;
|
|
1901
|
+
accountsMeta: {
|
|
1902
|
+
pubkey: string;
|
|
1903
|
+
isSigner: boolean;
|
|
1904
|
+
isWritable: boolean;
|
|
1905
|
+
}[];
|
|
1906
|
+
}>, "many">;
|
|
1907
|
+
}>, "data">, "strip", z.ZodTypeAny, {
|
|
1908
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1909
|
+
user: string;
|
|
1910
|
+
events: {
|
|
1911
|
+
data: string;
|
|
1912
|
+
topic: string;
|
|
1913
|
+
}[];
|
|
1914
|
+
instructions: {
|
|
1915
|
+
data: string;
|
|
1916
|
+
programId: string;
|
|
1917
|
+
accountsMeta: {
|
|
1918
|
+
pubkey: string;
|
|
1919
|
+
isSigner: boolean;
|
|
1920
|
+
isWritable: boolean;
|
|
1921
|
+
}[];
|
|
1922
|
+
}[];
|
|
1923
|
+
}, {
|
|
1924
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1925
|
+
user: string;
|
|
1926
|
+
events: {
|
|
1927
|
+
data: string;
|
|
1928
|
+
topic: string;
|
|
1929
|
+
}[];
|
|
1930
|
+
instructions: {
|
|
1931
|
+
data: string;
|
|
1932
|
+
programId: string;
|
|
1933
|
+
accountsMeta: {
|
|
1934
|
+
pubkey: string;
|
|
1935
|
+
isSigner: boolean;
|
|
1936
|
+
isWritable: boolean;
|
|
1937
|
+
}[];
|
|
1938
|
+
}[];
|
|
1939
|
+
}>]>, "many">;
|
|
1940
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1941
|
+
feePayer: string;
|
|
1942
|
+
settler: string;
|
|
1943
|
+
nonce: string;
|
|
1944
|
+
deadline: string;
|
|
1945
|
+
maxFees: {
|
|
1946
|
+
token: string;
|
|
1947
|
+
amount: string;
|
|
1948
|
+
}[];
|
|
1949
|
+
operations: ({
|
|
1950
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1951
|
+
user: string;
|
|
1952
|
+
events: {
|
|
1953
|
+
data: string;
|
|
1954
|
+
topic: string;
|
|
1955
|
+
}[];
|
|
1956
|
+
sourceChain: number;
|
|
1957
|
+
destinationChain: number;
|
|
1958
|
+
tokensIn: {
|
|
1959
|
+
token: string;
|
|
1960
|
+
amount: string;
|
|
1961
|
+
}[];
|
|
1962
|
+
tokensOut: {
|
|
1963
|
+
token: string;
|
|
1964
|
+
minAmount: string;
|
|
1965
|
+
recipient: string;
|
|
1966
|
+
}[];
|
|
1967
|
+
} | {
|
|
1968
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1969
|
+
user: string;
|
|
1970
|
+
events: {
|
|
1971
|
+
data: string;
|
|
1972
|
+
topic: string;
|
|
1973
|
+
}[];
|
|
1974
|
+
chainId: number;
|
|
1975
|
+
transfers: {
|
|
1976
|
+
token: string;
|
|
1977
|
+
amount: string;
|
|
1978
|
+
recipient: string;
|
|
1979
|
+
}[];
|
|
1980
|
+
} | {
|
|
1981
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1982
|
+
user: string;
|
|
1983
|
+
events: {
|
|
1984
|
+
data: string;
|
|
1985
|
+
topic: string;
|
|
1986
|
+
}[];
|
|
1987
|
+
chainId: number;
|
|
1988
|
+
calls: {
|
|
1989
|
+
value: string;
|
|
1990
|
+
data: string;
|
|
1991
|
+
target: string;
|
|
1992
|
+
}[];
|
|
1993
|
+
} | {
|
|
1994
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
1995
|
+
user: string;
|
|
1996
|
+
events: {
|
|
1997
|
+
data: string;
|
|
1998
|
+
topic: string;
|
|
1999
|
+
}[];
|
|
2000
|
+
chainId: number;
|
|
2001
|
+
calls: {
|
|
2002
|
+
value: string;
|
|
2003
|
+
target: string;
|
|
2004
|
+
selector: string;
|
|
2005
|
+
arguments: {
|
|
2006
|
+
data: string;
|
|
2007
|
+
kind: 0 | 1;
|
|
2008
|
+
}[];
|
|
2009
|
+
}[];
|
|
2010
|
+
} | {
|
|
2011
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2012
|
+
user: string;
|
|
2013
|
+
events: {
|
|
2014
|
+
data: string;
|
|
2015
|
+
topic: string;
|
|
2016
|
+
}[];
|
|
2017
|
+
instructions: {
|
|
2018
|
+
data: string;
|
|
2019
|
+
programId: string;
|
|
2020
|
+
accountsMeta: {
|
|
2021
|
+
pubkey: string;
|
|
2022
|
+
isSigner: boolean;
|
|
2023
|
+
isWritable: boolean;
|
|
2024
|
+
}[];
|
|
2025
|
+
}[];
|
|
2026
|
+
})[];
|
|
2027
|
+
}, {
|
|
2028
|
+
feePayer: string;
|
|
2029
|
+
settler: string;
|
|
2030
|
+
nonce: string;
|
|
2031
|
+
deadline: string;
|
|
2032
|
+
maxFees: {
|
|
2033
|
+
token: string;
|
|
2034
|
+
amount: string;
|
|
2035
|
+
}[];
|
|
2036
|
+
operations: ({
|
|
2037
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2038
|
+
user: string;
|
|
2039
|
+
events: {
|
|
2040
|
+
data: string;
|
|
2041
|
+
topic: string;
|
|
2042
|
+
}[];
|
|
2043
|
+
sourceChain: number;
|
|
2044
|
+
destinationChain: number;
|
|
2045
|
+
tokensIn: {
|
|
2046
|
+
token: string;
|
|
2047
|
+
amount: string;
|
|
2048
|
+
}[];
|
|
2049
|
+
tokensOut: {
|
|
2050
|
+
token: string;
|
|
2051
|
+
minAmount: string;
|
|
2052
|
+
recipient: string;
|
|
2053
|
+
}[];
|
|
2054
|
+
} | {
|
|
2055
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2056
|
+
user: string;
|
|
2057
|
+
events: {
|
|
2058
|
+
data: string;
|
|
2059
|
+
topic: string;
|
|
2060
|
+
}[];
|
|
2061
|
+
chainId: number;
|
|
2062
|
+
transfers: {
|
|
2063
|
+
token: string;
|
|
2064
|
+
amount: string;
|
|
2065
|
+
recipient: string;
|
|
2066
|
+
}[];
|
|
2067
|
+
} | {
|
|
2068
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2069
|
+
user: string;
|
|
2070
|
+
events: {
|
|
2071
|
+
data: string;
|
|
2072
|
+
topic: string;
|
|
2073
|
+
}[];
|
|
2074
|
+
chainId: number;
|
|
2075
|
+
calls: {
|
|
2076
|
+
value: string;
|
|
2077
|
+
data: string;
|
|
2078
|
+
target: string;
|
|
2079
|
+
}[];
|
|
2080
|
+
} | {
|
|
2081
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2082
|
+
user: string;
|
|
2083
|
+
events: {
|
|
2084
|
+
data: string;
|
|
2085
|
+
topic: string;
|
|
2086
|
+
}[];
|
|
2087
|
+
chainId: number;
|
|
2088
|
+
calls: {
|
|
2089
|
+
value: string;
|
|
2090
|
+
target: string;
|
|
2091
|
+
selector: string;
|
|
2092
|
+
arguments: {
|
|
2093
|
+
data: string;
|
|
2094
|
+
kind: 0 | 1;
|
|
2095
|
+
}[];
|
|
2096
|
+
}[];
|
|
2097
|
+
} | {
|
|
2098
|
+
opType: 0 | 1 | 2 | 3 | 4 | 5;
|
|
2099
|
+
user: string;
|
|
2100
|
+
events: {
|
|
2101
|
+
data: string;
|
|
2102
|
+
topic: string;
|
|
2103
|
+
}[];
|
|
2104
|
+
instructions: {
|
|
2105
|
+
data: string;
|
|
2106
|
+
programId: string;
|
|
2107
|
+
accountsMeta: {
|
|
2108
|
+
pubkey: string;
|
|
2109
|
+
isSigner: boolean;
|
|
2110
|
+
isWritable: boolean;
|
|
2111
|
+
}[];
|
|
2112
|
+
}[];
|
|
2113
|
+
})[];
|
|
2114
|
+
}>;
|
|
937
2115
|
//# sourceMappingURL=intents.d.ts.map
|