@argent/x-shared 1.56.1 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/features/simulation/activity/schema.d.ts +240 -0
- package/dist/src/features/simulation/activity/utils/createNativeActivity.d.ts +8 -0
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +948 -0
- package/dist/src/features/simulation/transactionReview/schema.js +21 -16
- package/dist/src/transactions/transactionAction.d.ts +4 -4
- package/dist/src/transactions/transactionSimulationTypes.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3618,6 +3618,18 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3618
3618
|
calldata: string[];
|
|
3619
3619
|
entrypoint: string;
|
|
3620
3620
|
label: string;
|
|
3621
|
+
}>, z.ZodObject<{
|
|
3622
|
+
type: z.ZodLiteral<"class_hash">;
|
|
3623
|
+
label: z.ZodString;
|
|
3624
|
+
classHash: z.ZodString;
|
|
3625
|
+
}, "strip", z.ZodTypeAny, {
|
|
3626
|
+
type: "class_hash";
|
|
3627
|
+
classHash: string;
|
|
3628
|
+
label: string;
|
|
3629
|
+
}, {
|
|
3630
|
+
type: "class_hash";
|
|
3631
|
+
classHash: string;
|
|
3632
|
+
label: string;
|
|
3621
3633
|
}>, z.ZodObject<{
|
|
3622
3634
|
type: z.ZodLiteral<"text">;
|
|
3623
3635
|
label: z.ZodString;
|
|
@@ -3841,6 +3853,18 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3841
3853
|
calldata: string[];
|
|
3842
3854
|
entrypoint: string;
|
|
3843
3855
|
label: string;
|
|
3856
|
+
}>, z.ZodObject<{
|
|
3857
|
+
type: z.ZodLiteral<"class_hash">;
|
|
3858
|
+
label: z.ZodString;
|
|
3859
|
+
classHash: z.ZodString;
|
|
3860
|
+
}, "strip", z.ZodTypeAny, {
|
|
3861
|
+
type: "class_hash";
|
|
3862
|
+
classHash: string;
|
|
3863
|
+
label: string;
|
|
3864
|
+
}, {
|
|
3865
|
+
type: "class_hash";
|
|
3866
|
+
classHash: string;
|
|
3867
|
+
label: string;
|
|
3844
3868
|
}>, z.ZodObject<{
|
|
3845
3869
|
type: z.ZodLiteral<"text">;
|
|
3846
3870
|
label: z.ZodString;
|
|
@@ -3950,6 +3974,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3950
3974
|
calldata: string[];
|
|
3951
3975
|
entrypoint: string;
|
|
3952
3976
|
label: string;
|
|
3977
|
+
} | {
|
|
3978
|
+
type: "class_hash";
|
|
3979
|
+
classHash: string;
|
|
3980
|
+
label: string;
|
|
3953
3981
|
} | {
|
|
3954
3982
|
type: "text";
|
|
3955
3983
|
label: string;
|
|
@@ -4009,6 +4037,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4009
4037
|
calldata: string[];
|
|
4010
4038
|
entrypoint: string;
|
|
4011
4039
|
label: string;
|
|
4040
|
+
} | {
|
|
4041
|
+
type: "class_hash";
|
|
4042
|
+
classHash: string;
|
|
4043
|
+
label: string;
|
|
4012
4044
|
} | {
|
|
4013
4045
|
type: "text";
|
|
4014
4046
|
label: string;
|
|
@@ -4070,6 +4102,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4070
4102
|
calldata: string[];
|
|
4071
4103
|
entrypoint: string;
|
|
4072
4104
|
label: string;
|
|
4105
|
+
} | {
|
|
4106
|
+
type: "class_hash";
|
|
4107
|
+
classHash: string;
|
|
4108
|
+
label: string;
|
|
4073
4109
|
} | {
|
|
4074
4110
|
type: "text";
|
|
4075
4111
|
label: string;
|
|
@@ -4129,6 +4165,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4129
4165
|
calldata: string[];
|
|
4130
4166
|
entrypoint: string;
|
|
4131
4167
|
label: string;
|
|
4168
|
+
} | {
|
|
4169
|
+
type: "class_hash";
|
|
4170
|
+
classHash: string;
|
|
4171
|
+
label: string;
|
|
4132
4172
|
} | {
|
|
4133
4173
|
type: "text";
|
|
4134
4174
|
label: string;
|
|
@@ -4500,6 +4540,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4500
4540
|
calldata: string[];
|
|
4501
4541
|
entrypoint: string;
|
|
4502
4542
|
label: string;
|
|
4543
|
+
} | {
|
|
4544
|
+
type: "class_hash";
|
|
4545
|
+
classHash: string;
|
|
4546
|
+
label: string;
|
|
4503
4547
|
} | {
|
|
4504
4548
|
type: "text";
|
|
4505
4549
|
label: string;
|
|
@@ -4559,6 +4603,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4559
4603
|
calldata: string[];
|
|
4560
4604
|
entrypoint: string;
|
|
4561
4605
|
label: string;
|
|
4606
|
+
} | {
|
|
4607
|
+
type: "class_hash";
|
|
4608
|
+
classHash: string;
|
|
4609
|
+
label: string;
|
|
4562
4610
|
} | {
|
|
4563
4611
|
type: "text";
|
|
4564
4612
|
label: string;
|
|
@@ -4926,6 +4974,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4926
4974
|
calldata: string[];
|
|
4927
4975
|
entrypoint: string;
|
|
4928
4976
|
label: string;
|
|
4977
|
+
} | {
|
|
4978
|
+
type: "class_hash";
|
|
4979
|
+
classHash: string;
|
|
4980
|
+
label: string;
|
|
4929
4981
|
} | {
|
|
4930
4982
|
type: "text";
|
|
4931
4983
|
label: string;
|
|
@@ -4985,6 +5037,10 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
4985
5037
|
calldata: string[];
|
|
4986
5038
|
entrypoint: string;
|
|
4987
5039
|
label: string;
|
|
5040
|
+
} | {
|
|
5041
|
+
type: "class_hash";
|
|
5042
|
+
classHash: string;
|
|
5043
|
+
label: string;
|
|
4988
5044
|
} | {
|
|
4989
5045
|
type: "text";
|
|
4990
5046
|
label: string;
|
|
@@ -7021,6 +7077,18 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7021
7077
|
calldata: string[];
|
|
7022
7078
|
entrypoint: string;
|
|
7023
7079
|
label: string;
|
|
7080
|
+
}>, z.ZodObject<{
|
|
7081
|
+
type: z.ZodLiteral<"class_hash">;
|
|
7082
|
+
label: z.ZodString;
|
|
7083
|
+
classHash: z.ZodString;
|
|
7084
|
+
}, "strip", z.ZodTypeAny, {
|
|
7085
|
+
type: "class_hash";
|
|
7086
|
+
classHash: string;
|
|
7087
|
+
label: string;
|
|
7088
|
+
}, {
|
|
7089
|
+
type: "class_hash";
|
|
7090
|
+
classHash: string;
|
|
7091
|
+
label: string;
|
|
7024
7092
|
}>, z.ZodObject<{
|
|
7025
7093
|
type: z.ZodLiteral<"text">;
|
|
7026
7094
|
label: z.ZodString;
|
|
@@ -7244,6 +7312,18 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7244
7312
|
calldata: string[];
|
|
7245
7313
|
entrypoint: string;
|
|
7246
7314
|
label: string;
|
|
7315
|
+
}>, z.ZodObject<{
|
|
7316
|
+
type: z.ZodLiteral<"class_hash">;
|
|
7317
|
+
label: z.ZodString;
|
|
7318
|
+
classHash: z.ZodString;
|
|
7319
|
+
}, "strip", z.ZodTypeAny, {
|
|
7320
|
+
type: "class_hash";
|
|
7321
|
+
classHash: string;
|
|
7322
|
+
label: string;
|
|
7323
|
+
}, {
|
|
7324
|
+
type: "class_hash";
|
|
7325
|
+
classHash: string;
|
|
7326
|
+
label: string;
|
|
7247
7327
|
}>, z.ZodObject<{
|
|
7248
7328
|
type: z.ZodLiteral<"text">;
|
|
7249
7329
|
label: z.ZodString;
|
|
@@ -7353,6 +7433,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7353
7433
|
calldata: string[];
|
|
7354
7434
|
entrypoint: string;
|
|
7355
7435
|
label: string;
|
|
7436
|
+
} | {
|
|
7437
|
+
type: "class_hash";
|
|
7438
|
+
classHash: string;
|
|
7439
|
+
label: string;
|
|
7356
7440
|
} | {
|
|
7357
7441
|
type: "text";
|
|
7358
7442
|
label: string;
|
|
@@ -7412,6 +7496,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7412
7496
|
calldata: string[];
|
|
7413
7497
|
entrypoint: string;
|
|
7414
7498
|
label: string;
|
|
7499
|
+
} | {
|
|
7500
|
+
type: "class_hash";
|
|
7501
|
+
classHash: string;
|
|
7502
|
+
label: string;
|
|
7415
7503
|
} | {
|
|
7416
7504
|
type: "text";
|
|
7417
7505
|
label: string;
|
|
@@ -7473,6 +7561,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7473
7561
|
calldata: string[];
|
|
7474
7562
|
entrypoint: string;
|
|
7475
7563
|
label: string;
|
|
7564
|
+
} | {
|
|
7565
|
+
type: "class_hash";
|
|
7566
|
+
classHash: string;
|
|
7567
|
+
label: string;
|
|
7476
7568
|
} | {
|
|
7477
7569
|
type: "text";
|
|
7478
7570
|
label: string;
|
|
@@ -7532,6 +7624,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7532
7624
|
calldata: string[];
|
|
7533
7625
|
entrypoint: string;
|
|
7534
7626
|
label: string;
|
|
7627
|
+
} | {
|
|
7628
|
+
type: "class_hash";
|
|
7629
|
+
classHash: string;
|
|
7630
|
+
label: string;
|
|
7535
7631
|
} | {
|
|
7536
7632
|
type: "text";
|
|
7537
7633
|
label: string;
|
|
@@ -7803,6 +7899,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7803
7899
|
calldata: string[];
|
|
7804
7900
|
entrypoint: string;
|
|
7805
7901
|
label: string;
|
|
7902
|
+
} | {
|
|
7903
|
+
type: "class_hash";
|
|
7904
|
+
classHash: string;
|
|
7905
|
+
label: string;
|
|
7806
7906
|
} | {
|
|
7807
7907
|
type: "text";
|
|
7808
7908
|
label: string;
|
|
@@ -7862,6 +7962,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
7862
7962
|
calldata: string[];
|
|
7863
7963
|
entrypoint: string;
|
|
7864
7964
|
label: string;
|
|
7965
|
+
} | {
|
|
7966
|
+
type: "class_hash";
|
|
7967
|
+
classHash: string;
|
|
7968
|
+
label: string;
|
|
7865
7969
|
} | {
|
|
7866
7970
|
type: "text";
|
|
7867
7971
|
label: string;
|
|
@@ -8001,6 +8105,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
8001
8105
|
calldata: string[];
|
|
8002
8106
|
entrypoint: string;
|
|
8003
8107
|
label: string;
|
|
8108
|
+
} | {
|
|
8109
|
+
type: "class_hash";
|
|
8110
|
+
classHash: string;
|
|
8111
|
+
label: string;
|
|
8004
8112
|
} | {
|
|
8005
8113
|
type: "text";
|
|
8006
8114
|
label: string;
|
|
@@ -8060,6 +8168,10 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
8060
8168
|
calldata: string[];
|
|
8061
8169
|
entrypoint: string;
|
|
8062
8170
|
label: string;
|
|
8171
|
+
} | {
|
|
8172
|
+
type: "class_hash";
|
|
8173
|
+
classHash: string;
|
|
8174
|
+
label: string;
|
|
8063
8175
|
} | {
|
|
8064
8176
|
type: "text";
|
|
8065
8177
|
label: string;
|
|
@@ -10019,6 +10131,18 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10019
10131
|
calldata: string[];
|
|
10020
10132
|
entrypoint: string;
|
|
10021
10133
|
label: string;
|
|
10134
|
+
}>, z.ZodObject<{
|
|
10135
|
+
type: z.ZodLiteral<"class_hash">;
|
|
10136
|
+
label: z.ZodString;
|
|
10137
|
+
classHash: z.ZodString;
|
|
10138
|
+
}, "strip", z.ZodTypeAny, {
|
|
10139
|
+
type: "class_hash";
|
|
10140
|
+
classHash: string;
|
|
10141
|
+
label: string;
|
|
10142
|
+
}, {
|
|
10143
|
+
type: "class_hash";
|
|
10144
|
+
classHash: string;
|
|
10145
|
+
label: string;
|
|
10022
10146
|
}>, z.ZodObject<{
|
|
10023
10147
|
type: z.ZodLiteral<"text">;
|
|
10024
10148
|
label: z.ZodString;
|
|
@@ -10242,6 +10366,18 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10242
10366
|
calldata: string[];
|
|
10243
10367
|
entrypoint: string;
|
|
10244
10368
|
label: string;
|
|
10369
|
+
}>, z.ZodObject<{
|
|
10370
|
+
type: z.ZodLiteral<"class_hash">;
|
|
10371
|
+
label: z.ZodString;
|
|
10372
|
+
classHash: z.ZodString;
|
|
10373
|
+
}, "strip", z.ZodTypeAny, {
|
|
10374
|
+
type: "class_hash";
|
|
10375
|
+
classHash: string;
|
|
10376
|
+
label: string;
|
|
10377
|
+
}, {
|
|
10378
|
+
type: "class_hash";
|
|
10379
|
+
classHash: string;
|
|
10380
|
+
label: string;
|
|
10245
10381
|
}>, z.ZodObject<{
|
|
10246
10382
|
type: z.ZodLiteral<"text">;
|
|
10247
10383
|
label: z.ZodString;
|
|
@@ -10351,6 +10487,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10351
10487
|
calldata: string[];
|
|
10352
10488
|
entrypoint: string;
|
|
10353
10489
|
label: string;
|
|
10490
|
+
} | {
|
|
10491
|
+
type: "class_hash";
|
|
10492
|
+
classHash: string;
|
|
10493
|
+
label: string;
|
|
10354
10494
|
} | {
|
|
10355
10495
|
type: "text";
|
|
10356
10496
|
label: string;
|
|
@@ -10410,6 +10550,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10410
10550
|
calldata: string[];
|
|
10411
10551
|
entrypoint: string;
|
|
10412
10552
|
label: string;
|
|
10553
|
+
} | {
|
|
10554
|
+
type: "class_hash";
|
|
10555
|
+
classHash: string;
|
|
10556
|
+
label: string;
|
|
10413
10557
|
} | {
|
|
10414
10558
|
type: "text";
|
|
10415
10559
|
label: string;
|
|
@@ -10471,6 +10615,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10471
10615
|
calldata: string[];
|
|
10472
10616
|
entrypoint: string;
|
|
10473
10617
|
label: string;
|
|
10618
|
+
} | {
|
|
10619
|
+
type: "class_hash";
|
|
10620
|
+
classHash: string;
|
|
10621
|
+
label: string;
|
|
10474
10622
|
} | {
|
|
10475
10623
|
type: "text";
|
|
10476
10624
|
label: string;
|
|
@@ -10530,6 +10678,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10530
10678
|
calldata: string[];
|
|
10531
10679
|
entrypoint: string;
|
|
10532
10680
|
label: string;
|
|
10681
|
+
} | {
|
|
10682
|
+
type: "class_hash";
|
|
10683
|
+
classHash: string;
|
|
10684
|
+
label: string;
|
|
10533
10685
|
} | {
|
|
10534
10686
|
type: "text";
|
|
10535
10687
|
label: string;
|
|
@@ -10901,6 +11053,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10901
11053
|
calldata: string[];
|
|
10902
11054
|
entrypoint: string;
|
|
10903
11055
|
label: string;
|
|
11056
|
+
} | {
|
|
11057
|
+
type: "class_hash";
|
|
11058
|
+
classHash: string;
|
|
11059
|
+
label: string;
|
|
10904
11060
|
} | {
|
|
10905
11061
|
type: "text";
|
|
10906
11062
|
label: string;
|
|
@@ -10960,6 +11116,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
10960
11116
|
calldata: string[];
|
|
10961
11117
|
entrypoint: string;
|
|
10962
11118
|
label: string;
|
|
11119
|
+
} | {
|
|
11120
|
+
type: "class_hash";
|
|
11121
|
+
classHash: string;
|
|
11122
|
+
label: string;
|
|
10963
11123
|
} | {
|
|
10964
11124
|
type: "text";
|
|
10965
11125
|
label: string;
|
|
@@ -11327,6 +11487,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
11327
11487
|
calldata: string[];
|
|
11328
11488
|
entrypoint: string;
|
|
11329
11489
|
label: string;
|
|
11490
|
+
} | {
|
|
11491
|
+
type: "class_hash";
|
|
11492
|
+
classHash: string;
|
|
11493
|
+
label: string;
|
|
11330
11494
|
} | {
|
|
11331
11495
|
type: "text";
|
|
11332
11496
|
label: string;
|
|
@@ -11386,6 +11550,10 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
11386
11550
|
calldata: string[];
|
|
11387
11551
|
entrypoint: string;
|
|
11388
11552
|
label: string;
|
|
11553
|
+
} | {
|
|
11554
|
+
type: "class_hash";
|
|
11555
|
+
classHash: string;
|
|
11556
|
+
label: string;
|
|
11389
11557
|
} | {
|
|
11390
11558
|
type: "text";
|
|
11391
11559
|
label: string;
|
|
@@ -13325,6 +13493,18 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13325
13493
|
calldata: string[];
|
|
13326
13494
|
entrypoint: string;
|
|
13327
13495
|
label: string;
|
|
13496
|
+
}>, z.ZodObject<{
|
|
13497
|
+
type: z.ZodLiteral<"class_hash">;
|
|
13498
|
+
label: z.ZodString;
|
|
13499
|
+
classHash: z.ZodString;
|
|
13500
|
+
}, "strip", z.ZodTypeAny, {
|
|
13501
|
+
type: "class_hash";
|
|
13502
|
+
classHash: string;
|
|
13503
|
+
label: string;
|
|
13504
|
+
}, {
|
|
13505
|
+
type: "class_hash";
|
|
13506
|
+
classHash: string;
|
|
13507
|
+
label: string;
|
|
13328
13508
|
}>, z.ZodObject<{
|
|
13329
13509
|
type: z.ZodLiteral<"text">;
|
|
13330
13510
|
label: z.ZodString;
|
|
@@ -13548,6 +13728,18 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13548
13728
|
calldata: string[];
|
|
13549
13729
|
entrypoint: string;
|
|
13550
13730
|
label: string;
|
|
13731
|
+
}>, z.ZodObject<{
|
|
13732
|
+
type: z.ZodLiteral<"class_hash">;
|
|
13733
|
+
label: z.ZodString;
|
|
13734
|
+
classHash: z.ZodString;
|
|
13735
|
+
}, "strip", z.ZodTypeAny, {
|
|
13736
|
+
type: "class_hash";
|
|
13737
|
+
classHash: string;
|
|
13738
|
+
label: string;
|
|
13739
|
+
}, {
|
|
13740
|
+
type: "class_hash";
|
|
13741
|
+
classHash: string;
|
|
13742
|
+
label: string;
|
|
13551
13743
|
}>, z.ZodObject<{
|
|
13552
13744
|
type: z.ZodLiteral<"text">;
|
|
13553
13745
|
label: z.ZodString;
|
|
@@ -13657,6 +13849,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13657
13849
|
calldata: string[];
|
|
13658
13850
|
entrypoint: string;
|
|
13659
13851
|
label: string;
|
|
13852
|
+
} | {
|
|
13853
|
+
type: "class_hash";
|
|
13854
|
+
classHash: string;
|
|
13855
|
+
label: string;
|
|
13660
13856
|
} | {
|
|
13661
13857
|
type: "text";
|
|
13662
13858
|
label: string;
|
|
@@ -13716,6 +13912,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13716
13912
|
calldata: string[];
|
|
13717
13913
|
entrypoint: string;
|
|
13718
13914
|
label: string;
|
|
13915
|
+
} | {
|
|
13916
|
+
type: "class_hash";
|
|
13917
|
+
classHash: string;
|
|
13918
|
+
label: string;
|
|
13719
13919
|
} | {
|
|
13720
13920
|
type: "text";
|
|
13721
13921
|
label: string;
|
|
@@ -13777,6 +13977,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13777
13977
|
calldata: string[];
|
|
13778
13978
|
entrypoint: string;
|
|
13779
13979
|
label: string;
|
|
13980
|
+
} | {
|
|
13981
|
+
type: "class_hash";
|
|
13982
|
+
classHash: string;
|
|
13983
|
+
label: string;
|
|
13780
13984
|
} | {
|
|
13781
13985
|
type: "text";
|
|
13782
13986
|
label: string;
|
|
@@ -13836,6 +14040,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
13836
14040
|
calldata: string[];
|
|
13837
14041
|
entrypoint: string;
|
|
13838
14042
|
label: string;
|
|
14043
|
+
} | {
|
|
14044
|
+
type: "class_hash";
|
|
14045
|
+
classHash: string;
|
|
14046
|
+
label: string;
|
|
13839
14047
|
} | {
|
|
13840
14048
|
type: "text";
|
|
13841
14049
|
label: string;
|
|
@@ -14207,6 +14415,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14207
14415
|
calldata: string[];
|
|
14208
14416
|
entrypoint: string;
|
|
14209
14417
|
label: string;
|
|
14418
|
+
} | {
|
|
14419
|
+
type: "class_hash";
|
|
14420
|
+
classHash: string;
|
|
14421
|
+
label: string;
|
|
14210
14422
|
} | {
|
|
14211
14423
|
type: "text";
|
|
14212
14424
|
label: string;
|
|
@@ -14266,6 +14478,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14266
14478
|
calldata: string[];
|
|
14267
14479
|
entrypoint: string;
|
|
14268
14480
|
label: string;
|
|
14481
|
+
} | {
|
|
14482
|
+
type: "class_hash";
|
|
14483
|
+
classHash: string;
|
|
14484
|
+
label: string;
|
|
14269
14485
|
} | {
|
|
14270
14486
|
type: "text";
|
|
14271
14487
|
label: string;
|
|
@@ -14633,6 +14849,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14633
14849
|
calldata: string[];
|
|
14634
14850
|
entrypoint: string;
|
|
14635
14851
|
label: string;
|
|
14852
|
+
} | {
|
|
14853
|
+
type: "class_hash";
|
|
14854
|
+
classHash: string;
|
|
14855
|
+
label: string;
|
|
14636
14856
|
} | {
|
|
14637
14857
|
type: "text";
|
|
14638
14858
|
label: string;
|
|
@@ -14692,6 +14912,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
14692
14912
|
calldata: string[];
|
|
14693
14913
|
entrypoint: string;
|
|
14694
14914
|
label: string;
|
|
14915
|
+
} | {
|
|
14916
|
+
type: "class_hash";
|
|
14917
|
+
classHash: string;
|
|
14918
|
+
label: string;
|
|
14695
14919
|
} | {
|
|
14696
14920
|
type: "text";
|
|
14697
14921
|
label: string;
|
|
@@ -15067,6 +15291,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
15067
15291
|
calldata: string[];
|
|
15068
15292
|
entrypoint: string;
|
|
15069
15293
|
label: string;
|
|
15294
|
+
} | {
|
|
15295
|
+
type: "class_hash";
|
|
15296
|
+
classHash: string;
|
|
15297
|
+
label: string;
|
|
15070
15298
|
} | {
|
|
15071
15299
|
type: "text";
|
|
15072
15300
|
label: string;
|
|
@@ -15126,6 +15354,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
15126
15354
|
calldata: string[];
|
|
15127
15355
|
entrypoint: string;
|
|
15128
15356
|
label: string;
|
|
15357
|
+
} | {
|
|
15358
|
+
type: "class_hash";
|
|
15359
|
+
classHash: string;
|
|
15360
|
+
label: string;
|
|
15129
15361
|
} | {
|
|
15130
15362
|
type: "text";
|
|
15131
15363
|
label: string;
|
|
@@ -15499,6 +15731,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
15499
15731
|
calldata: string[];
|
|
15500
15732
|
entrypoint: string;
|
|
15501
15733
|
label: string;
|
|
15734
|
+
} | {
|
|
15735
|
+
type: "class_hash";
|
|
15736
|
+
classHash: string;
|
|
15737
|
+
label: string;
|
|
15502
15738
|
} | {
|
|
15503
15739
|
type: "text";
|
|
15504
15740
|
label: string;
|
|
@@ -15558,6 +15794,10 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
15558
15794
|
calldata: string[];
|
|
15559
15795
|
entrypoint: string;
|
|
15560
15796
|
label: string;
|
|
15797
|
+
} | {
|
|
15798
|
+
type: "class_hash";
|
|
15799
|
+
classHash: string;
|
|
15800
|
+
label: string;
|
|
15561
15801
|
} | {
|
|
15562
15802
|
type: "text";
|
|
15563
15803
|
label: string;
|
|
@@ -47,6 +47,10 @@ export declare function normalizeActions(simulateAndReview: SimulateAndReview):
|
|
|
47
47
|
calldata: string[];
|
|
48
48
|
entrypoint: string;
|
|
49
49
|
label: string;
|
|
50
|
+
} | {
|
|
51
|
+
type: "class_hash";
|
|
52
|
+
classHash: string;
|
|
53
|
+
label: string;
|
|
50
54
|
} | {
|
|
51
55
|
type: "text";
|
|
52
56
|
label: string;
|
|
@@ -106,6 +110,10 @@ export declare function normalizeActions(simulateAndReview: SimulateAndReview):
|
|
|
106
110
|
calldata: string[];
|
|
107
111
|
entrypoint: string;
|
|
108
112
|
label: string;
|
|
113
|
+
} | {
|
|
114
|
+
type: "class_hash";
|
|
115
|
+
classHash: string;
|
|
116
|
+
label: string;
|
|
109
117
|
} | {
|
|
110
118
|
type: "text";
|
|
111
119
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),f=require("../fees/schema.cjs"),l=require("../warning/schema.cjs"),n=require("../../../chains/starknet/address.cjs"),k=t.z.object({name:t.z.string(),url:t.z.string(),position:t.z.number()}),o=t.z.object({address:t.z.string(),name:t.z.string(),symbol:t.z.string().optional(),decimals:t.z.number().optional(),unknown:t.z.boolean(),iconUrl:t.z.string().optional(),type:t.z.string()}),i=t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("amount"),label:t.z.string(),token:o,amount:t.z.string(),usd:t.z.string(),editable:t.z.boolean()}),t.z.object({type:t.z.literal("address"),label:t.z.string(),address:t.z.string(),addressName:t.z.string().optional(),verified:t.z.boolean().optional()}),t.z.object({type:t.z.literal("timestamp"),label:t.z.string(),value:t.z.string()}),t.z.object({type:t.z.literal("token_address"),label:t.z.string(),token:o}),t.z.object({type:t.z.literal("calldata"),label:t.z.string(),entrypoint:t.z.string(),calldata:t.z.array(t.z.string())}),t.z.object({type:t.z.literal("text"),label:t.z.string(),text:t.z.string()}),t.z.object({type:t.z.literal("nft"),label:t.z.string(),token:o})]),z=t.z.object({name:t.z.string(),properties:t.z.array(i),defaultProperties:t.z.array(i).optional()}),m=t.z.union([t.z.literal("verified"),t.z.literal("neutral"),t.z.literal("partial"),t.z.literal("warn")]),p=t.z.object({unknown_token:t.z.unknown().optional(),date_of_addition:t.z.string().optional(),contract_address:n.addressSchema.optional(),reason:t.z.string().optional(),value:t.z.string().or(t.z.number()).optional()}),r=t.z.object({reason:l.reasonsSchema,details:p.optional(),severity:l.severitySchema}),d=t.z.object({assessment:m,warnings:t.z.array(r).optional(),assessmentReasons:t.z.array(t.z.string()).optional(),assessmentDetails:t.z.object({contract_address:t.z.string()}).optional(),action:z}),g=t.z.object({name:t.z.string(),description:t.z.string(),logoUrl:t.z.string(),iconUrl:t.z.string(),argentVerified:t.z.boolean(),links:t.z.array(k)}),u=t.z.object({assessment:t.z.union([t.z.literal("verified"),t.z.literal("neutral"),t.z.literal("partial"),t.z.literal("warn")]),warnings:t.z.array(r).optional(),assessmentDetails:t.z.object({contract_address:t.z.string()}).optional(),targetedDapp:g.optional(),reviews:t.z.array(d)}).optional(),b=t.z.object({banner:t.z.string().nullable().optional(),preview:t.z.string().nullable().optional(),full:t.z.string().nullable().optional(),original:t.z.string().nullable().optional()}),v=t.z.object({twitter:t.z.string().optional(),external:t.z.string().optional(),discord:t.z.string().optional()}),s=t.z.object({address:n.addressSchemaArgentBackend,decimals:t.z.number().optional(),symbol:t.z.string().optional(),name:t.z.string(),description:t.z.string().optional(),type:t.z.string().optional(),usdValue:t.z.string().optional(),iconUrl:t.z.string().optional(),unknown:t.z.boolean().optional(),imageUrls:b.optional(),links:v.optional()}),w=t.z.object({tokenAddress:n.addressSchemaArgentBackend,owner:n.addressSchemaArgentBackend,spender:n.addressSchemaArgentBackend,value:t.z.string().optional(),approvalForAll:t.z.boolean(),details:s.optional()}),A=t.z.object({tokenAddress:n.addressSchemaArgentBackend,from:n.addressSchemaArgentBackend,to:n.addressSchemaArgentBackend,tokenId:t.z.string().optional(),value:t.z.string().optional(),details:s.optional()}),a=t.z.union([t.z.string(),t.z.number(),t.z.bigint()]).transform(e=>parseInt(e.toString(),10)),c={overallFee:a,gasPrice:a,gasUsage:a,dataGasPrice:a.optional(),dataGasConsumed:a.optional()},S=t.z.object({...c,unit:t.z.string().transform(e=>e.toUpperCase()).pipe(t.z.literal("WEI")),maxFee:a}).or(t.z.object({...c,unit:t.z.string().transform(e=>e.toUpperCase()).pipe(t.z.literal("FRI")),maxAmount:a,maxPricePerUnit:a})),E=t.z.object({type:t.z.string(),label:t.z.string(),tokenId:t.z.string().optional(),value:t.z.string().optional(),usdValue:t.z.string().optional(),token:s,sent:t.z.boolean().optional(),tokenIdDetails:t.z.object({name:t.z.string().optional(),description:t.z.string().optional(),imageUrls:b.optional()}).optional()}),U=t.z.object({approvals:t.z.array(w).optional(),transfers:t.z.array(A).optional(),calculatedNonce:t.z.string().optional(),feeEstimation:S,summary:t.z.array(E).optional()}),D=t.z.object({label:t.z.string().optional(),code:t.z.number().optional(),message:t.z.string().optional(),error:t.z.string().optional()}),h=t.z.object({reviewOfTransaction:u,simulation:U,simulationError:t.z.undefined()}),y=t.z.object({reviewOfTransaction:u,simulation:t.z.undefined(),simulationError:D}),j=h.or(y),B=t.z.object({transactions:t.z.array(j).optional()}),P=t.z.object({transactions:t.z.array(j).optional(),enrichedFeeEstimation:f.estimatedFeesSchema.optional(),isBackendDown:t.z.boolean().default(!1).optional()});function T(e){return h.safeParse(e).success}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),f=require("../fees/schema.cjs"),l=require("../warning/schema.cjs"),n=require("../../../chains/starknet/address.cjs"),k=t.z.object({name:t.z.string(),url:t.z.string(),position:t.z.number()}),o=t.z.object({address:t.z.string(),name:t.z.string(),symbol:t.z.string().optional(),decimals:t.z.number().optional(),unknown:t.z.boolean(),iconUrl:t.z.string().optional(),type:t.z.string()}),i=t.z.discriminatedUnion("type",[t.z.object({type:t.z.literal("amount"),label:t.z.string(),token:o,amount:t.z.string(),usd:t.z.string(),editable:t.z.boolean()}),t.z.object({type:t.z.literal("address"),label:t.z.string(),address:t.z.string(),addressName:t.z.string().optional(),verified:t.z.boolean().optional()}),t.z.object({type:t.z.literal("timestamp"),label:t.z.string(),value:t.z.string()}),t.z.object({type:t.z.literal("token_address"),label:t.z.string(),token:o}),t.z.object({type:t.z.literal("calldata"),label:t.z.string(),entrypoint:t.z.string(),calldata:t.z.array(t.z.string())}),t.z.object({type:t.z.literal("class_hash"),label:t.z.string(),classHash:t.z.string()}),t.z.object({type:t.z.literal("text"),label:t.z.string(),text:t.z.string()}),t.z.object({type:t.z.literal("nft"),label:t.z.string(),token:o})]),z=t.z.object({name:t.z.string(),properties:t.z.array(i),defaultProperties:t.z.array(i).optional()}),m=t.z.union([t.z.literal("verified"),t.z.literal("neutral"),t.z.literal("partial"),t.z.literal("warn")]),p=t.z.object({unknown_token:t.z.unknown().optional(),date_of_addition:t.z.string().optional(),contract_address:n.addressSchema.optional(),reason:t.z.string().optional(),value:t.z.string().or(t.z.number()).optional()}),r=t.z.object({reason:l.reasonsSchema,details:p.optional(),severity:l.severitySchema}),d=t.z.object({assessment:m,warnings:t.z.array(r).optional(),assessmentReasons:t.z.array(t.z.string()).optional(),assessmentDetails:t.z.object({contract_address:t.z.string()}).optional(),action:z}),g=t.z.object({name:t.z.string(),description:t.z.string(),logoUrl:t.z.string(),iconUrl:t.z.string(),argentVerified:t.z.boolean(),links:t.z.array(k)}),u=t.z.object({assessment:t.z.union([t.z.literal("verified"),t.z.literal("neutral"),t.z.literal("partial"),t.z.literal("warn")]),warnings:t.z.array(r).optional(),assessmentDetails:t.z.object({contract_address:t.z.string()}).optional(),targetedDapp:g.optional(),reviews:t.z.array(d)}).optional(),b=t.z.object({banner:t.z.string().nullable().optional(),preview:t.z.string().nullable().optional(),full:t.z.string().nullable().optional(),original:t.z.string().nullable().optional()}),v=t.z.object({twitter:t.z.string().optional(),external:t.z.string().optional(),discord:t.z.string().optional()}),s=t.z.object({address:n.addressSchemaArgentBackend,decimals:t.z.number().optional(),symbol:t.z.string().optional(),name:t.z.string(),description:t.z.string().optional(),type:t.z.string().optional(),usdValue:t.z.string().optional(),iconUrl:t.z.string().optional(),unknown:t.z.boolean().optional(),imageUrls:b.optional(),links:v.optional()}),w=t.z.object({tokenAddress:n.addressSchemaArgentBackend,owner:n.addressSchemaArgentBackend,spender:n.addressSchemaArgentBackend,value:t.z.string().optional(),approvalForAll:t.z.boolean(),details:s.optional()}),A=t.z.object({tokenAddress:n.addressSchemaArgentBackend,from:n.addressSchemaArgentBackend,to:n.addressSchemaArgentBackend,tokenId:t.z.string().optional(),value:t.z.string().optional(),details:s.optional()}),a=t.z.union([t.z.string(),t.z.number(),t.z.bigint()]).transform(e=>parseInt(e.toString(),10)),c={overallFee:a,gasPrice:a,gasUsage:a,dataGasPrice:a.optional(),dataGasConsumed:a.optional()},S=t.z.object({...c,unit:t.z.string().transform(e=>e.toUpperCase()).pipe(t.z.literal("WEI")),maxFee:a}).or(t.z.object({...c,unit:t.z.string().transform(e=>e.toUpperCase()).pipe(t.z.literal("FRI")),maxAmount:a,maxPricePerUnit:a})),E=t.z.object({type:t.z.string(),label:t.z.string(),tokenId:t.z.string().optional(),value:t.z.string().optional(),usdValue:t.z.string().optional(),token:s,sent:t.z.boolean().optional(),tokenIdDetails:t.z.object({name:t.z.string().optional(),description:t.z.string().optional(),imageUrls:b.optional()}).optional()}),U=t.z.object({approvals:t.z.array(w).optional(),transfers:t.z.array(A).optional(),calculatedNonce:t.z.string().optional(),feeEstimation:S,summary:t.z.array(E).optional()}),D=t.z.object({label:t.z.string().optional(),code:t.z.number().optional(),message:t.z.string().optional(),error:t.z.string().optional()}),h=t.z.object({reviewOfTransaction:u,simulation:U,simulationError:t.z.undefined()}),y=t.z.object({reviewOfTransaction:u,simulation:t.z.undefined(),simulationError:D}),j=h.or(y),B=t.z.object({transactions:t.z.array(j).optional()}),P=t.z.object({transactions:t.z.array(j).optional(),enrichedFeeEstimation:f.estimatedFeesSchema.optional(),isBackendDown:t.z.boolean().default(!1).optional()});function T(e){return h.safeParse(e).success}function _(e){return y.safeParse(e).success}exports.actionSchema=z;exports.assessmentSchema=m;exports.enrichedSimulateAndReviewSchema=P;exports.feeEstimationSchema=S;exports.isNotTransactionSimulationError=T;exports.isTransactionSimulationError=_;exports.propertySchema=i;exports.reviewSchema=d;exports.simulateAndReviewSchema=B;exports.targetedDappSchema=g;exports.warningDetailsSchema=p;exports.warningSchema=r;
|