@mimicprotocol/sdk 0.0.1-rc.14 → 0.0.1-rc.16
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/constants.d.ts +0 -1
- package/dist/axia/constants.d.ts.map +1 -1
- package/dist/axia/constants.js +1 -2
- package/dist/axia/constants.js.map +1 -1
- package/dist/axia/validators.d.ts +306 -211
- package/dist/axia/validators.d.ts.map +1 -1
- package/dist/axia/validators.js +2 -1
- package/dist/axia/validators.js.map +1 -1
- package/dist/client/domains/ConfigsClient.d.ts +1 -0
- package/dist/client/domains/ConfigsClient.d.ts.map +1 -1
- package/dist/client/domains/ConfigsClient.js +3 -0
- package/dist/client/domains/ConfigsClient.js.map +1 -1
- package/dist/client/domains/IntentsClient.d.ts.map +1 -1
- package/dist/client/domains/IntentsClient.js +1 -7
- package/dist/client/domains/IntentsClient.js.map +1 -1
- package/dist/oracle/eip712Types.d.ts +4 -0
- package/dist/oracle/eip712Types.d.ts.map +1 -1
- package/dist/oracle/eip712Types.js +5 -2
- package/dist/oracle/eip712Types.js.map +1 -1
- package/dist/oracle/validators.d.ts +201 -131
- package/dist/oracle/validators.d.ts.map +1 -1
- package/dist/oracle/validators.js +5 -3
- package/dist/oracle/validators.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 +2 -0
- package/dist/registry/validations.d.ts.map +1 -1
- package/dist/registry/validations.js +8 -1
- package/dist/registry/validations.js.map +1 -1
- package/dist/registry/validators.d.ts +26 -6
- package/dist/registry/validators.d.ts.map +1 -1
- package/dist/registry/validators.js +14 -3
- package/dist/registry/validators.js.map +1 -1
- package/dist/relayer/validators.d.ts +212 -148
- package/dist/relayer/validators.d.ts.map +1 -1
- package/dist/runner/validators.d.ts +276 -61
- package/dist/runner/validators.d.ts.map +1 -1
- package/dist/runner/validators.js +6 -1
- package/dist/runner/validators.js.map +1 -1
- package/dist/shared/codec/decoder.d.ts +1 -0
- 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/utils/random.d.ts +1 -0
- package/dist/shared/utils/random.d.ts.map +1 -1
- package/dist/shared/utils/random.js +10 -2
- package/dist/shared/utils/random.js.map +1 -1
- package/dist/shared/validators/intents.d.ts +3 -3
- package/dist/shared/validators/intents.js +1 -1
- package/dist/shared/validators/intents.js.map +1 -1
- package/dist/shared/validators/primitives.d.ts.map +1 -1
- package/dist/shared/validators/primitives.js +1 -1
- package/dist/shared/validators/primitives.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { TriggerType } from '../shared';
|
|
3
|
-
export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
3
|
+
export declare const RunExecutionRequestValidator: z.ZodEffects<z.ZodObject<{
|
|
4
4
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5
5
|
callbackUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
6
6
|
configSig: z.ZodString;
|
|
7
7
|
user: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
8
8
|
settlers: z.ZodString;
|
|
9
9
|
timestamp: z.ZodNumber;
|
|
10
|
+
oracleUrls: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
10
11
|
oracleResponses: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
11
12
|
signature: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
12
13
|
query: z.ZodObject<{
|
|
@@ -183,10 +184,9 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
183
184
|
chainIds: z.ZodArray<z.ZodEffects<z.ZodNumber, number, number>, "many">;
|
|
184
185
|
owner: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
185
186
|
usdMinAmount: z.ZodEffects<z.ZodString, string, string>;
|
|
186
|
-
timestamp: z.ZodEffects<z.ZodNumber, number, number>;
|
|
187
187
|
tokens: z.ZodArray<z.ZodObject<{
|
|
188
|
-
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
189
188
|
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
189
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
191
|
chainId: number;
|
|
192
192
|
address: string;
|
|
@@ -196,7 +196,6 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
196
196
|
}>, "many">;
|
|
197
197
|
tokenFilter: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
timestamp: number;
|
|
200
199
|
owner: string;
|
|
201
200
|
tokens: {
|
|
202
201
|
chainId: number;
|
|
@@ -206,7 +205,6 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
206
205
|
chainIds: number[];
|
|
207
206
|
tokenFilter: 0 | 1;
|
|
208
207
|
}, {
|
|
209
|
-
timestamp: number;
|
|
210
208
|
owner: string;
|
|
211
209
|
tokens: {
|
|
212
210
|
chainId: number;
|
|
@@ -218,7 +216,6 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
218
216
|
}>;
|
|
219
217
|
}, "strip", z.ZodTypeAny, {
|
|
220
218
|
params: {
|
|
221
|
-
timestamp: number;
|
|
222
219
|
owner: string;
|
|
223
220
|
tokens: {
|
|
224
221
|
chainId: number;
|
|
@@ -232,7 +229,6 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
232
229
|
hash: string;
|
|
233
230
|
}, {
|
|
234
231
|
params: {
|
|
235
|
-
timestamp: number;
|
|
236
232
|
owner: string;
|
|
237
233
|
tokens: {
|
|
238
234
|
chainId: number;
|
|
@@ -246,61 +242,90 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
246
242
|
hash: string;
|
|
247
243
|
}>;
|
|
248
244
|
result: z.ZodObject<{
|
|
249
|
-
value: z.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
245
|
+
value: z.ZodObject<{
|
|
246
|
+
timestamp: z.ZodEffects<z.ZodNumber, number, number>;
|
|
247
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
248
|
+
token: z.ZodObject<{
|
|
249
|
+
address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
250
|
+
chainId: z.ZodEffects<z.ZodNumber, number, number>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
chainId: number;
|
|
253
|
+
address: string;
|
|
254
|
+
}, {
|
|
255
|
+
chainId: number;
|
|
256
|
+
address: string;
|
|
257
|
+
}>;
|
|
258
|
+
balance: z.ZodEffects<z.ZodString, string, string>;
|
|
253
259
|
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
|
|
255
|
-
|
|
260
|
+
token: {
|
|
261
|
+
chainId: number;
|
|
262
|
+
address: string;
|
|
263
|
+
};
|
|
264
|
+
balance: string;
|
|
256
265
|
}, {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
token: {
|
|
267
|
+
chainId: number;
|
|
268
|
+
address: string;
|
|
269
|
+
};
|
|
270
|
+
balance: string;
|
|
271
|
+
}>, "many">;
|
|
261
272
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
273
|
+
timestamp: number;
|
|
274
|
+
balances: {
|
|
275
|
+
token: {
|
|
276
|
+
chainId: number;
|
|
277
|
+
address: string;
|
|
278
|
+
};
|
|
279
|
+
balance: string;
|
|
280
|
+
}[];
|
|
267
281
|
}, {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
282
|
+
timestamp: number;
|
|
283
|
+
balances: {
|
|
284
|
+
token: {
|
|
285
|
+
chainId: number;
|
|
286
|
+
address: string;
|
|
287
|
+
};
|
|
288
|
+
balance: string;
|
|
289
|
+
}[];
|
|
290
|
+
}>;
|
|
274
291
|
}, "strip", z.ZodTypeAny, {
|
|
275
292
|
value: {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
293
|
+
timestamp: number;
|
|
294
|
+
balances: {
|
|
295
|
+
token: {
|
|
296
|
+
chainId: number;
|
|
297
|
+
address: string;
|
|
298
|
+
};
|
|
299
|
+
balance: string;
|
|
300
|
+
}[];
|
|
301
|
+
};
|
|
282
302
|
}, {
|
|
283
303
|
value: {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
304
|
+
timestamp: number;
|
|
305
|
+
balances: {
|
|
306
|
+
token: {
|
|
307
|
+
chainId: number;
|
|
308
|
+
address: string;
|
|
309
|
+
};
|
|
310
|
+
balance: string;
|
|
311
|
+
}[];
|
|
312
|
+
};
|
|
290
313
|
}>;
|
|
291
314
|
}, "strip", z.ZodTypeAny, {
|
|
292
315
|
result: {
|
|
293
316
|
value: {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
317
|
+
timestamp: number;
|
|
318
|
+
balances: {
|
|
319
|
+
token: {
|
|
320
|
+
chainId: number;
|
|
321
|
+
address: string;
|
|
322
|
+
};
|
|
323
|
+
balance: string;
|
|
324
|
+
}[];
|
|
325
|
+
};
|
|
300
326
|
};
|
|
301
327
|
query: {
|
|
302
328
|
params: {
|
|
303
|
-
timestamp: number;
|
|
304
329
|
owner: string;
|
|
305
330
|
tokens: {
|
|
306
331
|
chainId: number;
|
|
@@ -317,16 +342,18 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
317
342
|
}, {
|
|
318
343
|
result: {
|
|
319
344
|
value: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
345
|
+
timestamp: number;
|
|
346
|
+
balances: {
|
|
347
|
+
token: {
|
|
348
|
+
chainId: number;
|
|
349
|
+
address: string;
|
|
350
|
+
};
|
|
351
|
+
balance: string;
|
|
352
|
+
}[];
|
|
353
|
+
};
|
|
326
354
|
};
|
|
327
355
|
query: {
|
|
328
356
|
params: {
|
|
329
|
-
timestamp: number;
|
|
330
357
|
owner: string;
|
|
331
358
|
tokens: {
|
|
332
359
|
chainId: number;
|
|
@@ -462,6 +489,7 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
462
489
|
input: Record<string, unknown>;
|
|
463
490
|
callbackUrl: string;
|
|
464
491
|
settlers: string;
|
|
492
|
+
oracleUrls?: string[] | undefined;
|
|
465
493
|
oracleResponses?: ({
|
|
466
494
|
result: {
|
|
467
495
|
value: string;
|
|
@@ -496,16 +524,109 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
496
524
|
} | {
|
|
497
525
|
result: {
|
|
498
526
|
value: {
|
|
527
|
+
timestamp: number;
|
|
528
|
+
balances: {
|
|
529
|
+
token: {
|
|
530
|
+
chainId: number;
|
|
531
|
+
address: string;
|
|
532
|
+
};
|
|
533
|
+
balance: string;
|
|
534
|
+
}[];
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
query: {
|
|
538
|
+
params: {
|
|
539
|
+
owner: string;
|
|
540
|
+
tokens: {
|
|
541
|
+
chainId: number;
|
|
542
|
+
address: string;
|
|
543
|
+
}[];
|
|
544
|
+
usdMinAmount: string;
|
|
545
|
+
chainIds: number[];
|
|
546
|
+
tokenFilter: 0 | 1;
|
|
547
|
+
};
|
|
548
|
+
name: "RelevantTokensQuery";
|
|
549
|
+
hash: string;
|
|
550
|
+
};
|
|
551
|
+
signature: string;
|
|
552
|
+
} | {
|
|
553
|
+
result: {
|
|
554
|
+
value: {
|
|
555
|
+
data: string;
|
|
556
|
+
blockNumber: number;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
query: {
|
|
560
|
+
params: {
|
|
561
|
+
chainId: number;
|
|
562
|
+
timestamp: number;
|
|
563
|
+
subgraphId: string;
|
|
564
|
+
query: string;
|
|
565
|
+
};
|
|
566
|
+
name: "SubgraphQuery";
|
|
567
|
+
hash: string;
|
|
568
|
+
};
|
|
569
|
+
signature: string;
|
|
570
|
+
})[] | undefined;
|
|
571
|
+
}, {
|
|
572
|
+
timestamp: number;
|
|
573
|
+
configSig: string;
|
|
574
|
+
user: string;
|
|
575
|
+
hash: string;
|
|
576
|
+
trigger: {
|
|
577
|
+
data: string;
|
|
578
|
+
type: TriggerType;
|
|
579
|
+
};
|
|
580
|
+
input: Record<string, unknown>;
|
|
581
|
+
callbackUrl: string;
|
|
582
|
+
settlers: string;
|
|
583
|
+
oracleUrls?: string[] | undefined;
|
|
584
|
+
oracleResponses?: ({
|
|
585
|
+
result: {
|
|
586
|
+
value: string;
|
|
587
|
+
};
|
|
588
|
+
query: {
|
|
589
|
+
params: {
|
|
590
|
+
chainId: number;
|
|
591
|
+
to: string;
|
|
592
|
+
data: string;
|
|
593
|
+
timestamp: number;
|
|
594
|
+
};
|
|
595
|
+
name: "EvmCallQuery";
|
|
596
|
+
hash: string;
|
|
597
|
+
};
|
|
598
|
+
signature: string;
|
|
599
|
+
} | {
|
|
600
|
+
result: {
|
|
601
|
+
value: string;
|
|
602
|
+
};
|
|
603
|
+
query: {
|
|
604
|
+
params: {
|
|
605
|
+
timestamp: number;
|
|
499
606
|
token: {
|
|
500
607
|
chainId: number;
|
|
501
608
|
address: string;
|
|
502
609
|
};
|
|
503
|
-
|
|
504
|
-
|
|
610
|
+
};
|
|
611
|
+
name: "TokenPriceQuery";
|
|
612
|
+
hash: string;
|
|
613
|
+
};
|
|
614
|
+
signature: string;
|
|
615
|
+
} | {
|
|
616
|
+
result: {
|
|
617
|
+
value: {
|
|
618
|
+
timestamp: number;
|
|
619
|
+
balances: {
|
|
620
|
+
token: {
|
|
621
|
+
chainId: number;
|
|
622
|
+
address: string;
|
|
623
|
+
};
|
|
624
|
+
balance: string;
|
|
625
|
+
}[];
|
|
626
|
+
};
|
|
505
627
|
};
|
|
506
628
|
query: {
|
|
507
629
|
params: {
|
|
508
|
-
timestamp: number;
|
|
509
630
|
owner: string;
|
|
510
631
|
tokens: {
|
|
511
632
|
chainId: number;
|
|
@@ -538,7 +659,7 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
538
659
|
};
|
|
539
660
|
signature: string;
|
|
540
661
|
})[] | undefined;
|
|
541
|
-
}
|
|
662
|
+
}>, {
|
|
542
663
|
timestamp: number;
|
|
543
664
|
configSig: string;
|
|
544
665
|
user: string;
|
|
@@ -550,6 +671,7 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
550
671
|
input: Record<string, unknown>;
|
|
551
672
|
callbackUrl: string;
|
|
552
673
|
settlers: string;
|
|
674
|
+
oracleUrls?: string[] | undefined;
|
|
553
675
|
oracleResponses?: ({
|
|
554
676
|
result: {
|
|
555
677
|
value: string;
|
|
@@ -584,16 +706,109 @@ export declare const RunExecutionRequestValidator: z.ZodObject<{
|
|
|
584
706
|
} | {
|
|
585
707
|
result: {
|
|
586
708
|
value: {
|
|
709
|
+
timestamp: number;
|
|
710
|
+
balances: {
|
|
711
|
+
token: {
|
|
712
|
+
chainId: number;
|
|
713
|
+
address: string;
|
|
714
|
+
};
|
|
715
|
+
balance: string;
|
|
716
|
+
}[];
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
query: {
|
|
720
|
+
params: {
|
|
721
|
+
owner: string;
|
|
722
|
+
tokens: {
|
|
723
|
+
chainId: number;
|
|
724
|
+
address: string;
|
|
725
|
+
}[];
|
|
726
|
+
usdMinAmount: string;
|
|
727
|
+
chainIds: number[];
|
|
728
|
+
tokenFilter: 0 | 1;
|
|
729
|
+
};
|
|
730
|
+
name: "RelevantTokensQuery";
|
|
731
|
+
hash: string;
|
|
732
|
+
};
|
|
733
|
+
signature: string;
|
|
734
|
+
} | {
|
|
735
|
+
result: {
|
|
736
|
+
value: {
|
|
737
|
+
data: string;
|
|
738
|
+
blockNumber: number;
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
query: {
|
|
742
|
+
params: {
|
|
743
|
+
chainId: number;
|
|
744
|
+
timestamp: number;
|
|
745
|
+
subgraphId: string;
|
|
746
|
+
query: string;
|
|
747
|
+
};
|
|
748
|
+
name: "SubgraphQuery";
|
|
749
|
+
hash: string;
|
|
750
|
+
};
|
|
751
|
+
signature: string;
|
|
752
|
+
})[] | undefined;
|
|
753
|
+
}, {
|
|
754
|
+
timestamp: number;
|
|
755
|
+
configSig: string;
|
|
756
|
+
user: string;
|
|
757
|
+
hash: string;
|
|
758
|
+
trigger: {
|
|
759
|
+
data: string;
|
|
760
|
+
type: TriggerType;
|
|
761
|
+
};
|
|
762
|
+
input: Record<string, unknown>;
|
|
763
|
+
callbackUrl: string;
|
|
764
|
+
settlers: string;
|
|
765
|
+
oracleUrls?: string[] | undefined;
|
|
766
|
+
oracleResponses?: ({
|
|
767
|
+
result: {
|
|
768
|
+
value: string;
|
|
769
|
+
};
|
|
770
|
+
query: {
|
|
771
|
+
params: {
|
|
772
|
+
chainId: number;
|
|
773
|
+
to: string;
|
|
774
|
+
data: string;
|
|
775
|
+
timestamp: number;
|
|
776
|
+
};
|
|
777
|
+
name: "EvmCallQuery";
|
|
778
|
+
hash: string;
|
|
779
|
+
};
|
|
780
|
+
signature: string;
|
|
781
|
+
} | {
|
|
782
|
+
result: {
|
|
783
|
+
value: string;
|
|
784
|
+
};
|
|
785
|
+
query: {
|
|
786
|
+
params: {
|
|
787
|
+
timestamp: number;
|
|
587
788
|
token: {
|
|
588
789
|
chainId: number;
|
|
589
790
|
address: string;
|
|
590
791
|
};
|
|
591
|
-
|
|
592
|
-
|
|
792
|
+
};
|
|
793
|
+
name: "TokenPriceQuery";
|
|
794
|
+
hash: string;
|
|
795
|
+
};
|
|
796
|
+
signature: string;
|
|
797
|
+
} | {
|
|
798
|
+
result: {
|
|
799
|
+
value: {
|
|
800
|
+
timestamp: number;
|
|
801
|
+
balances: {
|
|
802
|
+
token: {
|
|
803
|
+
chainId: number;
|
|
804
|
+
address: string;
|
|
805
|
+
};
|
|
806
|
+
balance: string;
|
|
807
|
+
}[];
|
|
808
|
+
};
|
|
593
809
|
};
|
|
594
810
|
query: {
|
|
595
811
|
params: {
|
|
596
|
-
timestamp: number;
|
|
597
812
|
owner: string;
|
|
598
813
|
tokens: {
|
|
599
814
|
chainId: number;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBrC,CAAA;AAEJ,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAA"}
|
|
@@ -4,19 +4,24 @@ exports.RunExecutionResultValidator = exports.RunExecutionRequestValidator = voi
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const oracle_1 = require("../oracle");
|
|
6
6
|
const shared_1 = require("../shared");
|
|
7
|
-
exports.RunExecutionRequestValidator = zod_1.z
|
|
7
|
+
exports.RunExecutionRequestValidator = zod_1.z
|
|
8
|
+
.object({
|
|
8
9
|
input: zod_1.z.record(shared_1.StringValidator, zod_1.z.unknown()),
|
|
9
10
|
callbackUrl: shared_1.UrlValidator,
|
|
10
11
|
configSig: shared_1.StringValidator,
|
|
11
12
|
user: shared_1.AddressValidator,
|
|
12
13
|
settlers: shared_1.StringValidator,
|
|
13
14
|
timestamp: shared_1.TimestampValidator,
|
|
15
|
+
oracleUrls: zod_1.z.array(shared_1.UrlValidator).optional(),
|
|
14
16
|
oracleResponses: zod_1.z.array(oracle_1.OracleResponseValidator).optional(),
|
|
15
17
|
hash: shared_1.HexValidator,
|
|
16
18
|
trigger: zod_1.z.object({
|
|
17
19
|
data: shared_1.HexValidator,
|
|
18
20
|
type: zod_1.z.nativeEnum(shared_1.TriggerType),
|
|
19
21
|
}),
|
|
22
|
+
})
|
|
23
|
+
.refine((data) => (data.oracleUrls && !data.oracleResponses) || (!data.oracleUrls && data.oracleResponses), {
|
|
24
|
+
message: 'Either oracleUrls or oracleResponses must be present, but not both',
|
|
20
25
|
});
|
|
21
26
|
exports.RunExecutionResultValidator = zod_1.z.object({
|
|
22
27
|
stdout: shared_1.EmptyStringValidator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/runner/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,sCAAmD;AACnD,sCAQkB;AAEL,QAAA,4BAA4B,GAAG,OAAC,
|
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/runner/validators.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,sCAAmD;AACnD,sCAQkB;AAEL,QAAA,4BAA4B,GAAG,OAAC;KAC1C,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,wBAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;IAC7C,WAAW,EAAE,qBAAY;IACzB,SAAS,EAAE,wBAAe;IAC1B,IAAI,EAAE,yBAAgB;IACtB,QAAQ,EAAE,wBAAe;IACzB,SAAS,EAAE,2BAAkB;IAC7B,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAY,CAAC,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAuB,CAAC,CAAC,QAAQ,EAAE;IAC5D,IAAI,EAAE,qBAAY;IAClB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,qBAAY;QAClB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAW,CAAC;KAChC,CAAC;CACH,CAAC;KACD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE;IAC1G,OAAO,EAAE,oEAAoE;CAC9E,CAAC,CAAA;AAES,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,6BAAoB;IAC5B,MAAM,EAAE,6BAAoB;CAC7B,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ 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 getChainId(intent: Intent): number;
|
|
6
7
|
export declare function decodeCronExecution(data: string): CronExecutionData;
|
|
7
8
|
export declare function decodeEventExecution(data: string): EventExecutionData;
|
|
8
9
|
//# sourceMappingURL=decoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAOjB,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,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAGnE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAIrE"}
|
|
@@ -4,11 +4,13 @@ exports.decodeSwapIntent = decodeSwapIntent;
|
|
|
4
4
|
exports.decodeSwapProposal = decodeSwapProposal;
|
|
5
5
|
exports.decodeTransferIntent = decodeTransferIntent;
|
|
6
6
|
exports.decodeCallIntent = decodeCallIntent;
|
|
7
|
+
exports.getChainId = getChainId;
|
|
7
8
|
exports.decodeCronExecution = decodeCronExecution;
|
|
8
9
|
exports.decodeEventExecution = decodeEventExecution;
|
|
9
10
|
const ethers_1 = require("ethers");
|
|
10
11
|
const eip712Types_1 = require("../eip712Types");
|
|
11
12
|
const utils_1 = require("../utils");
|
|
13
|
+
const validators_1 = require("../validators");
|
|
12
14
|
const evm_1 = require("./chains/evm");
|
|
13
15
|
const svm_1 = require("./chains/svm");
|
|
14
16
|
function decodeSwapIntent(intent) {
|
|
@@ -47,6 +49,15 @@ function decodeCallIntent(intent) {
|
|
|
47
49
|
calls,
|
|
48
50
|
};
|
|
49
51
|
}
|
|
52
|
+
function getChainId(intent) {
|
|
53
|
+
if (intent.op === validators_1.OpType.Swap)
|
|
54
|
+
return decodeSwapIntent(intent).sourceChain;
|
|
55
|
+
if (intent.op === validators_1.OpType.Transfer)
|
|
56
|
+
return decodeTransferIntent(intent).chainId;
|
|
57
|
+
if (intent.op === validators_1.OpType.Call)
|
|
58
|
+
return decodeCallIntent(intent).chainId;
|
|
59
|
+
throw new Error(`Unsupported intent op: ${intent.op}`);
|
|
60
|
+
}
|
|
50
61
|
function decodeCronExecution(data) {
|
|
51
62
|
const [decoded] = ethers_1.AbiCoder.defaultAbiCoder().decode([eip712Types_1.CRON_EXECUTION_ABI_TYPE], data);
|
|
52
63
|
return { timestamp: parseInt(decoded) };
|
|
@@ -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":"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"}
|
|
@@ -5,4 +5,5 @@ export declare function randomHex(length: number): string;
|
|
|
5
5
|
export declare function randomBase58(length: number): string;
|
|
6
6
|
export declare function randomCid(): string;
|
|
7
7
|
export declare function randomString(length: number, dictionary?: string): string;
|
|
8
|
+
export declare function randomNumber(length: number): number;
|
|
8
9
|
//# sourceMappingURL=random.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/random.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,UAAU,SAAyD,GAClE,MAAM,
|
|
1
|
+
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/random.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,UAAU,SAAyD,GAClE,MAAM,CASR;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKnD"}
|
|
@@ -8,6 +8,7 @@ exports.randomHex = randomHex;
|
|
|
8
8
|
exports.randomBase58 = randomBase58;
|
|
9
9
|
exports.randomCid = randomCid;
|
|
10
10
|
exports.randomString = randomString;
|
|
11
|
+
exports.randomNumber = randomNumber;
|
|
11
12
|
const web3_js_1 = require("@solana/web3.js");
|
|
12
13
|
const crypto_1 = require("crypto");
|
|
13
14
|
function randomEvmAddress() {
|
|
@@ -29,12 +30,19 @@ function randomCid() {
|
|
|
29
30
|
return 'b' + randomString(58, 'abcdefghijklmnopqrstuvwxyz234567');
|
|
30
31
|
}
|
|
31
32
|
function randomString(length, dictionary = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') {
|
|
32
|
-
const charactersLength = dictionary.length;
|
|
33
33
|
let result = '';
|
|
34
34
|
for (let i = 0; i < length; i++) {
|
|
35
|
-
const randomIndex = Math.floor(Math.random() *
|
|
35
|
+
const randomIndex = Math.floor(Math.random() * dictionary.length);
|
|
36
36
|
result += dictionary.charAt(randomIndex);
|
|
37
37
|
}
|
|
38
38
|
return result;
|
|
39
39
|
}
|
|
40
|
+
function randomNumber(length) {
|
|
41
|
+
if (length > 15)
|
|
42
|
+
throw new Error('Length exceeds max safe integer');
|
|
43
|
+
let result = String((0, crypto_1.randomInt)(1, 10));
|
|
44
|
+
for (let i = 1; i < length; i++)
|
|
45
|
+
result += (0, crypto_1.randomInt)(0, 10).toString();
|
|
46
|
+
return Number(result);
|
|
47
|
+
}
|
|
40
48
|
//# sourceMappingURL=random.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.js","sourceRoot":"","sources":["../../../src/shared/utils/random.ts"],"names":[],"mappings":";AAAA,0CAA0C;;AAK1C,4CAEC;AAED,4CAEC;AAED,8BAEC;AAED,8BAEC;AAED,oCAEC;AAED,8BAEC;AAED,
|
|
1
|
+
{"version":3,"file":"random.js","sourceRoot":"","sources":["../../../src/shared/utils/random.ts"],"names":[],"mappings":";AAAA,0CAA0C;;AAK1C,4CAEC;AAED,4CAEC;AAED,8BAEC;AAED,8BAEC;AAED,oCAEC;AAED,8BAEC;AAED,oCAYC;AAED,oCAKC;AA9CD,6CAA2C;AAC3C,mCAA+C;AAE/C,SAAgB,gBAAgB;IAC9B,OAAO,SAAS,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAI,mBAAS,CAAC,IAAA,oBAAW,EAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;AAClD,CAAC;AAED,SAAgB,SAAS;IACvB,OAAO,SAAS,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC;AAED,SAAgB,SAAS,CAAC,MAAc;IACtC,OAAO,IAAI,GAAG,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,kBAAkB,CAAC,CAAA;AAC5D,CAAC;AAED,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO,YAAY,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AAC3F,CAAC;AAED,SAAgB,SAAS;IACvB,OAAO,GAAG,GAAG,YAAY,CAAC,EAAE,EAAE,kCAAkC,CAAC,CAAA;AACnE,CAAC;AAED,SAAgB,YAAY,CAC1B,MAAc,EACd,UAAU,GAAG,sDAAsD;IAEnE,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;QACjE,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAgB,YAAY,CAAC,MAAc;IACzC,IAAI,MAAM,GAAG,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;IACnE,IAAI,MAAM,GAAG,MAAM,CAAC,IAAA,kBAAS,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE;QAAE,MAAM,IAAI,IAAA,kBAAS,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IACtE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;AACvB,CAAC"}
|
|
@@ -138,7 +138,7 @@ export declare const ValidatedIntentValidator: z.ZodObject<z.objectUtil.extendSh
|
|
|
138
138
|
configSig: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
139
139
|
minValidations: z.ZodNumber;
|
|
140
140
|
}, {
|
|
141
|
-
validations: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
141
|
+
validations: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">, "many">;
|
|
142
142
|
}>, "strip", z.ZodTypeAny, {
|
|
143
143
|
data: string;
|
|
144
144
|
configSig: string;
|
|
@@ -156,7 +156,7 @@ export declare const ValidatedIntentValidator: z.ZodObject<z.objectUtil.extendSh
|
|
|
156
156
|
topic: string;
|
|
157
157
|
}[];
|
|
158
158
|
minValidations: number;
|
|
159
|
-
validations: string[];
|
|
159
|
+
validations: string[][];
|
|
160
160
|
}, {
|
|
161
161
|
data: string;
|
|
162
162
|
configSig: string;
|
|
@@ -174,7 +174,7 @@ export declare const ValidatedIntentValidator: z.ZodObject<z.objectUtil.extendSh
|
|
|
174
174
|
topic: string;
|
|
175
175
|
}[];
|
|
176
176
|
minValidations: number;
|
|
177
|
-
validations: string[];
|
|
177
|
+
validations: string[][];
|
|
178
178
|
}>;
|
|
179
179
|
export declare const ProposalValidator: z.ZodObject<{
|
|
180
180
|
solver: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -32,7 +32,7 @@ exports.IntentValidator = zod_1.z.object({
|
|
|
32
32
|
minValidations: primitives_1.PositiveNumberValidator,
|
|
33
33
|
});
|
|
34
34
|
exports.ValidatedIntentValidator = exports.IntentValidator.extend({
|
|
35
|
-
validations: zod_1.z.array(primitives_1.SignatureValidator),
|
|
35
|
+
validations: zod_1.z.array(zod_1.z.array(primitives_1.SignatureValidator)).length(2),
|
|
36
36
|
});
|
|
37
37
|
exports.ProposalValidator = zod_1.z.object({
|
|
38
38
|
solver: primitives_1.AddressValidator,
|