@mimicprotocol/sdk 0.0.1-rc.13 → 0.0.1-rc.15
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/validators.d.ts +323 -272
- package/dist/axia/validators.d.ts.map +1 -1
- package/dist/axia/validators.js +1 -2
- package/dist/axia/validators.js.map +1 -1
- package/dist/client/domains/ConfigsClient.d.ts.map +1 -1
- package/dist/client/domains/ConfigsClient.js +1 -3
- package/dist/client/domains/ConfigsClient.js.map +1 -1
- package/dist/oracle/eip712Types.d.ts +26 -0
- package/dist/oracle/eip712Types.d.ts.map +1 -1
- package/dist/oracle/eip712Types.js +27 -2
- package/dist/oracle/eip712Types.js.map +1 -1
- package/dist/oracle/types.d.ts +8 -1
- package/dist/oracle/types.d.ts.map +1 -1
- package/dist/oracle/validators.d.ts +408 -148
- package/dist/oracle/validators.d.ts.map +1 -1
- package/dist/oracle/validators.js +19 -5
- package/dist/oracle/validators.js.map +1 -1
- package/dist/registry/eip712Types.d.ts.map +1 -1
- package/dist/registry/eip712Types.js +2 -1
- package/dist/registry/eip712Types.js.map +1 -1
- package/dist/registry/types.d.ts +2 -1
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/registry/types.js.map +1 -1
- package/dist/registry/validations.d.ts +0 -2
- package/dist/registry/validations.d.ts.map +1 -1
- package/dist/registry/validations.js +1 -8
- package/dist/registry/validations.js.map +1 -1
- package/dist/registry/validators.d.ts +93 -60
- package/dist/registry/validators.d.ts.map +1 -1
- package/dist/registry/validators.js +6 -4
- package/dist/registry/validators.js.map +1 -1
- package/dist/relayer/validators.d.ts +235 -189
- package/dist/relayer/validators.d.ts.map +1 -1
- package/dist/relayer/validators.js +1 -2
- package/dist/relayer/validators.js.map +1 -1
- package/dist/runner/validators.d.ts +106 -76
- package/dist/runner/validators.d.ts.map +1 -1
- package/dist/shared/codec/decoder.d.ts +3 -1
- package/dist/shared/codec/decoder.d.ts.map +1 -1
- package/dist/shared/codec/decoder.js +11 -0
- package/dist/shared/codec/decoder.js.map +1 -1
- package/dist/shared/codec/encoder.js +1 -1
- package/dist/shared/codec/encoder.js.map +1 -1
- package/dist/shared/eip712Types/index.d.ts +1 -1
- package/dist/shared/eip712Types/index.js +1 -1
- package/dist/shared/types/executions.d.ts +1 -2
- package/dist/shared/types/executions.d.ts.map +1 -1
- package/dist/shared/types/primitives.d.ts +3 -1
- package/dist/shared/types/primitives.d.ts.map +1 -1
- package/dist/shared/validators/executions.d.ts +18 -35
- package/dist/shared/validators/executions.d.ts.map +1 -1
- package/dist/shared/validators/executions.js +4 -17
- package/dist/shared/validators/executions.js.map +1 -1
- package/dist/shared/validators/primitives.d.ts +20 -0
- package/dist/shared/validators/primitives.d.ts.map +1 -1
- package/dist/shared/validators/primitives.js +9 -1
- package/dist/shared/validators/primitives.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/relayer/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/relayer/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAA"}
|
|
@@ -9,7 +9,6 @@ const validators_1 = require("../shared/validators");
|
|
|
9
9
|
exports.QueueExecutionValidator = zod_1.z.object({
|
|
10
10
|
hash: shared_1.HexValidator,
|
|
11
11
|
logs: zod_1.z.array(validators_1.StringValidator).optional(),
|
|
12
|
-
errorLogs: zod_1.z.array(validators_1.StringValidator).optional(),
|
|
13
12
|
});
|
|
14
13
|
exports.RunnerExecutionResultDataValidator = zod_1.z.object({
|
|
15
14
|
timestamp: shared_1.TimestampValidator,
|
|
@@ -23,7 +22,7 @@ exports.RunnerExecutionResultDataValidator = zod_1.z.object({
|
|
|
23
22
|
});
|
|
24
23
|
exports.RunnerExecutionResultValidator = zod_1.z.object({
|
|
25
24
|
status: zod_1.z.enum(['success', 'error']),
|
|
26
|
-
logs: zod_1.z.array(validators_1.
|
|
25
|
+
logs: zod_1.z.array(validators_1.StringValidator),
|
|
27
26
|
result: exports.RunnerExecutionResultDataValidator,
|
|
28
27
|
});
|
|
29
28
|
exports.RelayerExecutionResultValidator = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/relayer/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,kCAAkD;AAClD,sCAAmD;AACnD,sCAOkB;AAClB,
|
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/relayer/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,kCAAkD;AACl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kB,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAwB,CAAC;IAC1C,SAAS,EAAE,2BAAkB;CAC9B,CAAC,CAAA"}
|
|
@@ -15,7 +15,7 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
15
15
|
params: z.ZodObject<{
|
|
16
16
|
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
17
17
|
timestamp: z.ZodEffects<z.ZodNumber, number, number>;
|
|
18
|
-
to: z.ZodEffects<z.
|
|
18
|
+
to: z.ZodEffects<z.ZodString, string, string>;
|
|
19
19
|
data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
chainId: number;
|
|
@@ -183,10 +183,9 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
183
183
|
chainIds: z.ZodArray<z.ZodEffects<z.ZodNumber, number, number>, "many">;
|
|
184
184
|
owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
185
185
|
usdMinAmount: z.ZodEffects<z.ZodString, string, string>;
|
|
186
|
-
timestamp: z.ZodEffects<z.ZodNumber, number, number>;
|
|
187
186
|
tokens: z.ZodArray<z.ZodObject<{
|
|
188
|
-
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
189
187
|
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
190
189
|
}, "strip", z.ZodTypeAny, {
|
|
191
190
|
chainId: number;
|
|
192
191
|
address: string;
|
|
@@ -196,34 +195,31 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
196
195
|
}>, "many">;
|
|
197
196
|
tokenFilter: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
198
197
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
|
|
198
|
+
owner: string;
|
|
200
199
|
tokens: {
|
|
201
200
|
chainId: number;
|
|
202
201
|
address: string;
|
|
203
202
|
}[];
|
|
204
|
-
owner: string;
|
|
205
203
|
usdMinAmount: string;
|
|
206
204
|
chainIds: number[];
|
|
207
205
|
tokenFilter: 0 | 1;
|
|
208
206
|
}, {
|
|
209
|
-
|
|
207
|
+
owner: string;
|
|
210
208
|
tokens: {
|
|
211
209
|
chainId: number;
|
|
212
210
|
address: string;
|
|
213
211
|
}[];
|
|
214
|
-
owner: string;
|
|
215
212
|
usdMinAmount: string;
|
|
216
213
|
chainIds: number[];
|
|
217
214
|
tokenFilter: 0 | 1;
|
|
218
215
|
}>;
|
|
219
216
|
}, "strip", z.ZodTypeAny, {
|
|
220
217
|
params: {
|
|
221
|
-
|
|
218
|
+
owner: string;
|
|
222
219
|
tokens: {
|
|
223
220
|
chainId: number;
|
|
224
221
|
address: string;
|
|
225
222
|
}[];
|
|
226
|
-
owner: string;
|
|
227
223
|
usdMinAmount: string;
|
|
228
224
|
chainIds: number[];
|
|
229
225
|
tokenFilter: 0 | 1;
|
|
@@ -232,12 +228,11 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
232
228
|
hash: string;
|
|
233
229
|
}, {
|
|
234
230
|
params: {
|
|
235
|
-
|
|
231
|
+
owner: string;
|
|
236
232
|
tokens: {
|
|
237
233
|
chainId: number;
|
|
238
234
|
address: string;
|
|
239
235
|
}[];
|
|
240
|
-
owner: string;
|
|
241
236
|
usdMinAmount: string;
|
|
242
237
|
chainIds: number[];
|
|
243
238
|
tokenFilter: 0 | 1;
|
|
@@ -246,66 +241,95 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
246
241
|
hash: string;
|
|
247
242
|
}>;
|
|
248
243
|
result: z.ZodObject<{
|
|
249
|
-
value: z.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
244
|
+
value: z.ZodObject<{
|
|
245
|
+
timestamp: z.ZodEffects<z.ZodNumber, number, number>;
|
|
246
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
247
|
+
token: z.ZodObject<{
|
|
248
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
249
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
chainId: number;
|
|
252
|
+
address: string;
|
|
253
|
+
}, {
|
|
254
|
+
chainId: number;
|
|
255
|
+
address: string;
|
|
256
|
+
}>;
|
|
257
|
+
balance: z.ZodEffects<z.ZodString, string, string>;
|
|
253
258
|
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
|
|
255
|
-
|
|
259
|
+
token: {
|
|
260
|
+
chainId: number;
|
|
261
|
+
address: string;
|
|
262
|
+
};
|
|
263
|
+
balance: string;
|
|
256
264
|
}, {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
265
|
+
token: {
|
|
266
|
+
chainId: number;
|
|
267
|
+
address: string;
|
|
268
|
+
};
|
|
269
|
+
balance: string;
|
|
270
|
+
}>, "many">;
|
|
261
271
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
272
|
+
timestamp: number;
|
|
273
|
+
balances: {
|
|
274
|
+
token: {
|
|
275
|
+
chainId: number;
|
|
276
|
+
address: string;
|
|
277
|
+
};
|
|
278
|
+
balance: string;
|
|
279
|
+
}[];
|
|
267
280
|
}, {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
281
|
+
timestamp: number;
|
|
282
|
+
balances: {
|
|
283
|
+
token: {
|
|
284
|
+
chainId: number;
|
|
285
|
+
address: string;
|
|
286
|
+
};
|
|
287
|
+
balance: string;
|
|
288
|
+
}[];
|
|
289
|
+
}>;
|
|
274
290
|
}, "strip", z.ZodTypeAny, {
|
|
275
291
|
value: {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
292
|
+
timestamp: number;
|
|
293
|
+
balances: {
|
|
294
|
+
token: {
|
|
295
|
+
chainId: number;
|
|
296
|
+
address: string;
|
|
297
|
+
};
|
|
298
|
+
balance: string;
|
|
299
|
+
}[];
|
|
300
|
+
};
|
|
282
301
|
}, {
|
|
283
302
|
value: {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
303
|
+
timestamp: number;
|
|
304
|
+
balances: {
|
|
305
|
+
token: {
|
|
306
|
+
chainId: number;
|
|
307
|
+
address: string;
|
|
308
|
+
};
|
|
309
|
+
balance: string;
|
|
310
|
+
}[];
|
|
311
|
+
};
|
|
290
312
|
}>;
|
|
291
313
|
}, "strip", z.ZodTypeAny, {
|
|
292
314
|
result: {
|
|
293
315
|
value: {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
316
|
+
timestamp: number;
|
|
317
|
+
balances: {
|
|
318
|
+
token: {
|
|
319
|
+
chainId: number;
|
|
320
|
+
address: string;
|
|
321
|
+
};
|
|
322
|
+
balance: string;
|
|
323
|
+
}[];
|
|
324
|
+
};
|
|
300
325
|
};
|
|
301
326
|
query: {
|
|
302
327
|
params: {
|
|
303
|
-
|
|
328
|
+
owner: string;
|
|
304
329
|
tokens: {
|
|
305
330
|
chainId: number;
|
|
306
331
|
address: string;
|
|
307
332
|
}[];
|
|
308
|
-
owner: string;
|
|
309
333
|
usdMinAmount: string;
|
|
310
334
|
chainIds: number[];
|
|
311
335
|
tokenFilter: 0 | 1;
|
|
@@ -317,21 +341,23 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
317
341
|
}, {
|
|
318
342
|
result: {
|
|
319
343
|
value: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
344
|
+
timestamp: number;
|
|
345
|
+
balances: {
|
|
346
|
+
token: {
|
|
347
|
+
chainId: number;
|
|
348
|
+
address: string;
|
|
349
|
+
};
|
|
350
|
+
balance: string;
|
|
351
|
+
}[];
|
|
352
|
+
};
|
|
326
353
|
};
|
|
327
354
|
query: {
|
|
328
355
|
params: {
|
|
329
|
-
|
|
356
|
+
owner: string;
|
|
330
357
|
tokens: {
|
|
331
358
|
chainId: number;
|
|
332
359
|
address: string;
|
|
333
360
|
}[];
|
|
334
|
-
owner: string;
|
|
335
361
|
usdMinAmount: string;
|
|
336
362
|
chainIds: number[];
|
|
337
363
|
tokenFilter: 0 | 1;
|
|
@@ -496,21 +522,23 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
496
522
|
} | {
|
|
497
523
|
result: {
|
|
498
524
|
value: {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
525
|
+
timestamp: number;
|
|
526
|
+
balances: {
|
|
527
|
+
token: {
|
|
528
|
+
chainId: number;
|
|
529
|
+
address: string;
|
|
530
|
+
};
|
|
531
|
+
balance: string;
|
|
532
|
+
}[];
|
|
533
|
+
};
|
|
505
534
|
};
|
|
506
535
|
query: {
|
|
507
536
|
params: {
|
|
508
|
-
|
|
537
|
+
owner: string;
|
|
509
538
|
tokens: {
|
|
510
539
|
chainId: number;
|
|
511
540
|
address: string;
|
|
512
541
|
}[];
|
|
513
|
-
owner: string;
|
|
514
542
|
usdMinAmount: string;
|
|
515
543
|
chainIds: number[];
|
|
516
544
|
tokenFilter: 0 | 1;
|
|
@@ -584,21 +612,23 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
584
612
|
} | {
|
|
585
613
|
result: {
|
|
586
614
|
value: {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
615
|
+
timestamp: number;
|
|
616
|
+
balances: {
|
|
617
|
+
token: {
|
|
618
|
+
chainId: number;
|
|
619
|
+
address: string;
|
|
620
|
+
};
|
|
621
|
+
balance: string;
|
|
622
|
+
}[];
|
|
623
|
+
};
|
|
593
624
|
};
|
|
594
625
|
query: {
|
|
595
626
|
params: {
|
|
596
|
-
|
|
627
|
+
owner: string;
|
|
597
628
|
tokens: {
|
|
598
629
|
chainId: number;
|
|
599
630
|
address: string;
|
|
600
631
|
}[];
|
|
601
|
-
owner: string;
|
|
602
632
|
usdMinAmount: string;
|
|
603
633
|
chainIds: number[];
|
|
604
634
|
tokenFilter: 0 | 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/runner/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAML,WAAW,EAEZ,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/runner/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAML,WAAW,EAEZ,MAAM,WAAW,CAAA;AAElB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAavC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { CallIntent, Intent, Proposal, SwapIntent, SwapProposal, TransferIntent } from '../types';
|
|
1
|
+
import { CallIntent, CronExecutionData, EventExecutionData, Intent, Proposal, SwapIntent, SwapProposal, TransferIntent } from '../types';
|
|
2
2
|
export declare function decodeSwapIntent(intent: Intent): SwapIntent;
|
|
3
3
|
export declare function decodeSwapProposal(proposal: Proposal): SwapProposal;
|
|
4
4
|
export declare function decodeTransferIntent(intent: Intent): TransferIntent;
|
|
5
5
|
export declare function decodeCallIntent(intent: Intent): CallIntent;
|
|
6
|
+
export declare function decodeCronExecution(data: string): CronExecutionData;
|
|
7
|
+
export declare function decodeEventExecution(data: string): EventExecutionData;
|
|
6
8
|
//# sourceMappingURL=decoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../../src/shared/codec/decoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../../src/shared/codec/decoder.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACf,MAAM,UAAU,CAAA;AAMjB,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAI3D;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAUnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAMnE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAc3D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAGnE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAIrE"}
|
|
@@ -4,6 +4,8 @@ exports.decodeSwapIntent = decodeSwapIntent;
|
|
|
4
4
|
exports.decodeSwapProposal = decodeSwapProposal;
|
|
5
5
|
exports.decodeTransferIntent = decodeTransferIntent;
|
|
6
6
|
exports.decodeCallIntent = decodeCallIntent;
|
|
7
|
+
exports.decodeCronExecution = decodeCronExecution;
|
|
8
|
+
exports.decodeEventExecution = decodeEventExecution;
|
|
7
9
|
const ethers_1 = require("ethers");
|
|
8
10
|
const eip712Types_1 = require("../eip712Types");
|
|
9
11
|
const utils_1 = require("../utils");
|
|
@@ -45,4 +47,13 @@ function decodeCallIntent(intent) {
|
|
|
45
47
|
calls,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
50
|
+
function decodeCronExecution(data) {
|
|
51
|
+
const [decoded] = ethers_1.AbiCoder.defaultAbiCoder().decode([eip712Types_1.CRON_EXECUTION_ABI_TYPE], data);
|
|
52
|
+
return { timestamp: parseInt(decoded) };
|
|
53
|
+
}
|
|
54
|
+
function decodeEventExecution(data) {
|
|
55
|
+
const [decoded] = ethers_1.AbiCoder.defaultAbiCoder().decode([eip712Types_1.EVENT_EXECUTION_ABI_TYPE], data);
|
|
56
|
+
const [blockHash, index, topics, eventData] = decoded;
|
|
57
|
+
return { blockHash, index: parseInt(index), topics, eventData };
|
|
58
|
+
}
|
|
48
59
|
//# sourceMappingURL=decoder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../src/shared/codec/decoder.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../src/shared/codec/decoder.ts"],"names":[],"mappings":";;AAuBA,4CAIC;AAED,gDAUC;AAED,oDAMC;AAED,4CAcC;AAED,kDAGC;AAED,oDAIC;AA1ED,mCAA8C;AAE9C,gDAKuB;AAWvB,oCAAiC;AAEjC,sCAA2E;AAC3E,sCAA2E;AAE3E,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,MAAM,YAAY,GAAG,IAAA,oBAAW,EAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAChD,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,IAAA,yBAAmB,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,yBAAmB,EAAC,MAAM,CAAC,CAAA;IACxF,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,QAAkB;IACnD,MAAM,CAAC,OAAO,CAAC,GAAG,iBAAQ,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,oCAAsB,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC5F,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,GAAG,OAAO,CAAA;IAEpD,OAAO;QACL,GAAG,QAAQ;QACX,QAAQ,EAAE,QAAQ,CAAC,WAAW,EAAE;QAChC,YAAY;QACZ,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KACxE,CAAA;AACH,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAc;IACjD,MAAM,YAAY,GAAG,IAAA,oBAAW,EAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAChD,MAAM,OAAO,GAA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G,iBAAQ,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,sCAAwB,CAAC,EAAE,IAAI,CAAC,CAAA;IACrF,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,OAAO,CAAA;IACrD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;AACjE,CAAC"}
|
|
@@ -87,7 +87,7 @@ function encodeCronExecution(execution) {
|
|
|
87
87
|
return ethers_1.AbiCoder.defaultAbiCoder().encode([eip712Types_1.CRON_EXECUTION_ABI_TYPE], [[execution.timestamp]]);
|
|
88
88
|
}
|
|
89
89
|
function encodeEventExecution(execution) {
|
|
90
|
-
return ethers_1.AbiCoder.defaultAbiCoder().encode([eip712Types_1.EVENT_EXECUTION_ABI_TYPE], [[execution.
|
|
90
|
+
return ethers_1.AbiCoder.defaultAbiCoder().encode([eip712Types_1.EVENT_EXECUTION_ABI_TYPE], [[execution.blockHash, execution.index, execution.topics, execution.eventData]]);
|
|
91
91
|
}
|
|
92
92
|
function toRawIntent(output) {
|
|
93
93
|
let data = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../src/shared/codec/encoder.ts"],"names":[],"mappings":";;AA8BA,gCAEC;AAED,oCAGC;AAED,oCAEC;AAED,wCAoBC;AAMD,4CAMC;AAED,gDAKC;AAED,oDAOC;AAED,4CAKC;AAED,sCAEC;AAED,0CAUC;AAED,kDAEC;AAED,oDAKC;AAED,kCAsBC;AArJD,mCAA4C;AAE5C,gDAOuB;AAevB,oCAA+C;AAC/C,8CAAsC;AAEtC,sCAA4F;AAC5F,sCAA4F;AAE5F,SAAgB,UAAU,CAAC,MAAc;IACvC,OAAO,IAAA,kBAAS,EAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAA;AACxC,CAAC;AAED,SAAgB,YAAY,CA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,KAAK,mBAAM,CAAC,QAAQ;YAClB,IAAI,GAAG,oBAAoB,CAAC,MAA4B,CAAC,CAAA;YACzD,MAAK;QACP,KAAK,mBAAM,CAAC,IAAI;YACd,IAAI,GAAG,gBAAgB,CAAC,MAAwB,CAAC,CAAA;YACjD,MAAK;IACT,CAAC;IAED,OAAO;QACL,GAAG,MAAM;QACT,IAAI;QACJ,IAAI,EAAE,UAAU,CAAC,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;KACtC,CAAA;AACH,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const MAX_FEE_TYPE_HASH: string;
|
|
|
8
8
|
export declare const INTENT_EVENT_TYPE_HASH: string;
|
|
9
9
|
export declare const EXECUTION_TYPE_HASH: string;
|
|
10
10
|
export declare const CRON_EXECUTION_ABI_TYPE = "tuple(uint256)";
|
|
11
|
-
export declare const EVENT_EXECUTION_ABI_TYPE = "tuple(uint256,
|
|
11
|
+
export declare const EVENT_EXECUTION_ABI_TYPE = "tuple(bytes32,uint256,bytes32[],bytes)";
|
|
12
12
|
export declare const SWAP_INTENT_ABI_TYPE = "tuple(uint256,uint256,tuple(address,uint256)[],tuple(address,uint256,address)[])";
|
|
13
13
|
export declare const SWAP_PROPOSAL_ABI_TYPE = "tuple(address,bytes,uint256[])";
|
|
14
14
|
export declare const TRANSFER_INTENT_ABI_TYPE = "tuple(uint256,tuple(address,uint256,address)[])";
|
|
@@ -12,7 +12,7 @@ exports.MAX_FEE_TYPE_HASH = (0, ethers_1.keccak256)((0, ethers_1.toUtf8Bytes)('M
|
|
|
12
12
|
exports.INTENT_EVENT_TYPE_HASH = (0, ethers_1.keccak256)((0, ethers_1.toUtf8Bytes)('IntentEvent(bytes32 topic,bytes data)'));
|
|
13
13
|
exports.EXECUTION_TYPE_HASH = (0, ethers_1.keccak256)((0, ethers_1.toUtf8Bytes)('Execution(bytes32 configSig,uint8 triggerType,bytes triggerData)'));
|
|
14
14
|
exports.CRON_EXECUTION_ABI_TYPE = 'tuple(uint256)';
|
|
15
|
-
exports.EVENT_EXECUTION_ABI_TYPE = 'tuple(uint256,
|
|
15
|
+
exports.EVENT_EXECUTION_ABI_TYPE = 'tuple(bytes32,uint256,bytes32[],bytes)';
|
|
16
16
|
const TOKENS_IN_ABI_TYPE = 'tuple(address,uint256)[]';
|
|
17
17
|
const TOKENS_OUT_ABI_TYPE = 'tuple(address,uint256,address)[]';
|
|
18
18
|
exports.SWAP_INTENT_ABI_TYPE = `tuple(uint256,uint256,${TOKENS_IN_ABI_TYPE},${TOKENS_OUT_ABI_TYPE})`;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { CronExecutionDataValidator, CronExecutionValidator, EventExecutionDataValidator, EventExecutionValidator, ExecutionValidator
|
|
2
|
+
import { CronExecutionDataValidator, CronExecutionValidator, EventExecutionDataValidator, EventExecutionValidator, ExecutionValidator } from '../validators';
|
|
3
3
|
export type Execution = z.infer<typeof ExecutionValidator>;
|
|
4
4
|
export type CronExecutionData = z.infer<typeof CronExecutionDataValidator>;
|
|
5
5
|
export type CronExecution = z.infer<typeof CronExecutionValidator>;
|
|
6
6
|
export type EventExecutionData = z.infer<typeof EventExecutionDataValidator>;
|
|
7
7
|
export type EventExecution = z.infer<typeof EventExecutionValidator>;
|
|
8
|
-
export type Log = z.infer<typeof LogValidator>;
|
|
9
8
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/shared/types/executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,EACvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/shared/types/executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAI1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAIlE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AddressValidator, BigIntegerValidator, ChainIdValidator, HexValidator, SignatureValidator, TimestampValidator, TokenIdValidator } from '../validators';
|
|
2
|
+
import { AddressValidator, BigIntegerValidator, ChainIdValidator, EvmAddressValidator, HexValidator, SignatureValidator, SvmAddressValidator, TimestampValidator, TokenIdValidator } from '../validators';
|
|
3
3
|
export type Signature = z.infer<typeof SignatureValidator>;
|
|
4
4
|
export type Hash = z.infer<typeof HexValidator>;
|
|
5
5
|
export type ChainId = z.infer<typeof ChainIdValidator>;
|
|
6
6
|
export type Address = z.infer<typeof AddressValidator>;
|
|
7
|
+
export type EvmAddress = z.infer<typeof EvmAddressValidator>;
|
|
8
|
+
export type SvmAddress = z.infer<typeof SvmAddressValidator>;
|
|
7
9
|
export type Timestamp = z.infer<typeof TimestampValidator>;
|
|
8
10
|
export type BigInteger = z.infer<typeof BigIntegerValidator>;
|
|
9
11
|
export type TokenId = z.infer<typeof TokenIdValidator>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../src/shared/types/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE1D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEtD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../src/shared/types/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAEtB,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE1D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEtD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -41,62 +41,45 @@ export declare const CronExecutionValidator: z.ZodObject<z.objectUtil.extendShap
|
|
|
41
41
|
triggerData: string;
|
|
42
42
|
}>;
|
|
43
43
|
export declare const EventExecutionDataValidator: z.ZodObject<{
|
|
44
|
-
|
|
45
|
-
contract: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
46
|
-
block: z.ZodNumber;
|
|
44
|
+
blockHash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
47
45
|
index: z.ZodNumber;
|
|
46
|
+
topics: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
47
|
+
eventData: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
|
|
50
|
-
contract: string;
|
|
51
|
-
block: number;
|
|
49
|
+
blockHash: string;
|
|
52
50
|
index: number;
|
|
51
|
+
topics: string[];
|
|
52
|
+
eventData: string;
|
|
53
53
|
}, {
|
|
54
|
-
|
|
55
|
-
contract: string;
|
|
56
|
-
block: number;
|
|
54
|
+
blockHash: string;
|
|
57
55
|
index: number;
|
|
56
|
+
topics: string[];
|
|
57
|
+
eventData: string;
|
|
58
58
|
}>;
|
|
59
59
|
export declare const EventExecutionValidator: z.ZodObject<z.objectUtil.extendShape<{
|
|
60
60
|
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
61
61
|
triggerType: z.ZodNativeEnum<typeof TriggerType>;
|
|
62
62
|
triggerData: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
63
63
|
}, {
|
|
64
|
-
|
|
65
|
-
contract: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
66
|
-
block: z.ZodNumber;
|
|
64
|
+
blockHash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
67
65
|
index: z.ZodNumber;
|
|
66
|
+
topics: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
67
|
+
eventData: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
68
68
|
}>, "strip", z.ZodTypeAny, {
|
|
69
|
-
chainId: number;
|
|
70
69
|
configSig: string;
|
|
71
70
|
triggerType: TriggerType;
|
|
72
71
|
triggerData: string;
|
|
73
|
-
|
|
74
|
-
block: number;
|
|
72
|
+
blockHash: string;
|
|
75
73
|
index: number;
|
|
74
|
+
topics: string[];
|
|
75
|
+
eventData: string;
|
|
76
76
|
}, {
|
|
77
|
-
chainId: number;
|
|
78
77
|
configSig: string;
|
|
79
78
|
triggerType: TriggerType;
|
|
80
79
|
triggerData: string;
|
|
81
|
-
|
|
82
|
-
block: number;
|
|
80
|
+
blockHash: string;
|
|
83
81
|
index: number;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Critical = "Critical",
|
|
87
|
-
Error = "Error",
|
|
88
|
-
Warning = "Warning",
|
|
89
|
-
Info = "Info",
|
|
90
|
-
Debug = "Debug"
|
|
91
|
-
}
|
|
92
|
-
export declare const LogValidator: z.ZodObject<{
|
|
93
|
-
level: z.ZodNativeEnum<typeof LogLevel>;
|
|
94
|
-
log: z.ZodString;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
level: LogLevel;
|
|
97
|
-
log: string;
|
|
98
|
-
}, {
|
|
99
|
-
level: LogLevel;
|
|
100
|
-
log: string;
|
|
82
|
+
topics: string[];
|
|
83
|
+
eventData: string;
|
|
101
84
|
}>;
|
|
102
85
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/shared/validators/executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/shared/validators/executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,oBAAY,WAAW;IACrB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAA;AAIF,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;EAAuD,CAAA;AAI1F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EventExecutionValidator = exports.EventExecutionDataValidator = exports.CronExecutionValidator = exports.CronExecutionDataValidator = exports.ExecutionValidator = exports.TriggerType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("./primitives");
|
|
6
6
|
var TriggerType;
|
|
@@ -20,23 +20,10 @@ exports.CronExecutionDataValidator = zod_1.z.object({
|
|
|
20
20
|
exports.CronExecutionValidator = exports.ExecutionValidator.merge(exports.CronExecutionDataValidator);
|
|
21
21
|
// === EVENT ===
|
|
22
22
|
exports.EventExecutionDataValidator = zod_1.z.object({
|
|
23
|
-
|
|
24
|
-
contract: primitives_1.AddressValidator,
|
|
25
|
-
block: primitives_1.PositiveIntegerValidator,
|
|
23
|
+
blockHash: primitives_1.HexValidator,
|
|
26
24
|
index: primitives_1.PositiveIntegerValidator,
|
|
25
|
+
topics: zod_1.z.array(primitives_1.HexValidator).max(4),
|
|
26
|
+
eventData: primitives_1.HexValidator,
|
|
27
27
|
});
|
|
28
28
|
exports.EventExecutionValidator = exports.ExecutionValidator.merge(exports.EventExecutionDataValidator);
|
|
29
|
-
// === LOGS ===
|
|
30
|
-
var LogLevel;
|
|
31
|
-
(function (LogLevel) {
|
|
32
|
-
LogLevel["Critical"] = "Critical";
|
|
33
|
-
LogLevel["Error"] = "Error";
|
|
34
|
-
LogLevel["Warning"] = "Warning";
|
|
35
|
-
LogLevel["Info"] = "Info";
|
|
36
|
-
LogLevel["Debug"] = "Debug";
|
|
37
|
-
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
38
|
-
exports.LogValidator = zod_1.z.object({
|
|
39
|
-
level: zod_1.z.nativeEnum(LogLevel),
|
|
40
|
-
log: primitives_1.StringValidator,
|
|
41
|
-
});
|
|
42
29
|
//# sourceMappingURL=executions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/shared/validators/executions.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/shared/validators/executions.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,6CAA6G;AAE7G,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,+CAAK,CAAA;AACP,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAEY,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,+BAAkB;IAC7B,WAAW,EAAE,OAAC,CAAC,UAAU,CAAC,WAAW,CAAC;IACtC,WAAW,EAAE,yBAAY;CAC1B,CAAC,CAAA;AAEF,eAAe;AAEF,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,+BAAkB;CAC9B,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,0BAAkB,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAA;AAE1F,gBAAgB;AAEH,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,yBAAY;IACvB,KAAK,EAAE,qCAAwB;IAC/B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,SAAS,EAAE,yBAAY;CACxB,CAAC,CAAA;AAEW,QAAA,uBAAuB,GAAG,0BAAkB,CAAC,KAAK,CAAC,mCAA2B,CAAC,CAAA"}
|