@argent/x-shared 1.38.0 → 1.39.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/index.cjs +1 -1
- package/dist/index.js +295 -282
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.d.ts +1660 -52
- package/dist/src/features/simulation/activity/schema.js +68 -49
- package/dist/src/features/swap/models/quote.model.d.ts +4 -4
- package/dist/src/features/swap/models/trade.model.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/dist/src/staking/index.d.ts +1 -0
- package/dist/src/staking/schema.cjs +1 -0
- package/dist/src/staking/schema.d.ts +3027 -0
- package/dist/src/staking/schema.js +137 -0
- package/dist/src/tokens/service/implementation.d.ts +25 -6
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +983 -238
- package/dist/src/tokens/service/types/backend.model.js +29 -22
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +1390 -430
- package/dist/src/tokens/service/types/defiPosition.model.js +29 -22
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +3 -2
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
- package/dist/src/tokens/service/types/webToken.model.d.ts +8 -8
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +5 -5
- package/package.json +1 -1
|
@@ -426,6 +426,90 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
426
426
|
name: string;
|
|
427
427
|
parameters?: unknown[] | undefined;
|
|
428
428
|
} | null | undefined;
|
|
429
|
+
}>, z.ZodObject<{
|
|
430
|
+
type: z.ZodLiteral<"staking">;
|
|
431
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
432
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
433
|
+
asset: z.ZodObject<{
|
|
434
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
435
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
436
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
437
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
438
|
+
currency: z.ZodString;
|
|
439
|
+
currencyAmount: z.ZodNumber;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
currency: string;
|
|
442
|
+
currencyAmount: number;
|
|
443
|
+
}, {
|
|
444
|
+
currency: string;
|
|
445
|
+
currencyAmount: number;
|
|
446
|
+
}>>>;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
type: "nft" | "token";
|
|
449
|
+
tokenAddress: `0x${string}`;
|
|
450
|
+
amount?: string | undefined;
|
|
451
|
+
fiatAmount?: {
|
|
452
|
+
currency: string;
|
|
453
|
+
currencyAmount: number;
|
|
454
|
+
} | null | undefined;
|
|
455
|
+
}, {
|
|
456
|
+
type: "nft" | "token";
|
|
457
|
+
tokenAddress: string;
|
|
458
|
+
amount?: string | undefined;
|
|
459
|
+
fiatAmount?: {
|
|
460
|
+
currency: string;
|
|
461
|
+
currencyAmount: number;
|
|
462
|
+
} | null | undefined;
|
|
463
|
+
}>;
|
|
464
|
+
stakerInfo: z.ZodObject<{
|
|
465
|
+
name: z.ZodString;
|
|
466
|
+
iconUrl: z.ZodString;
|
|
467
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
name: string;
|
|
470
|
+
address: `0x${string}`;
|
|
471
|
+
iconUrl: string;
|
|
472
|
+
}, {
|
|
473
|
+
name: string;
|
|
474
|
+
address: string;
|
|
475
|
+
iconUrl: string;
|
|
476
|
+
}>;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
type: "staking";
|
|
479
|
+
stakerInfo: {
|
|
480
|
+
name: string;
|
|
481
|
+
address: `0x${string}`;
|
|
482
|
+
iconUrl: string;
|
|
483
|
+
};
|
|
484
|
+
asset: {
|
|
485
|
+
type: "nft" | "token";
|
|
486
|
+
tokenAddress: `0x${string}`;
|
|
487
|
+
amount?: string | undefined;
|
|
488
|
+
fiatAmount?: {
|
|
489
|
+
currency: string;
|
|
490
|
+
currencyAmount: number;
|
|
491
|
+
} | null | undefined;
|
|
492
|
+
};
|
|
493
|
+
counterparty: `0x${string}`;
|
|
494
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
495
|
+
}, {
|
|
496
|
+
type: "staking";
|
|
497
|
+
stakerInfo: {
|
|
498
|
+
name: string;
|
|
499
|
+
address: string;
|
|
500
|
+
iconUrl: string;
|
|
501
|
+
};
|
|
502
|
+
asset: {
|
|
503
|
+
type: "nft" | "token";
|
|
504
|
+
tokenAddress: string;
|
|
505
|
+
amount?: string | undefined;
|
|
506
|
+
fiatAmount?: {
|
|
507
|
+
currency: string;
|
|
508
|
+
currencyAmount: number;
|
|
509
|
+
} | null | undefined;
|
|
510
|
+
};
|
|
511
|
+
counterparty: string;
|
|
512
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
429
513
|
}>]>, z.ZodObject<{
|
|
430
514
|
type: z.ZodLiteral<"multicall">;
|
|
431
515
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -790,6 +874,90 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
790
874
|
name: string;
|
|
791
875
|
parameters?: unknown[] | undefined;
|
|
792
876
|
} | null | undefined;
|
|
877
|
+
}>, z.ZodObject<{
|
|
878
|
+
type: z.ZodLiteral<"staking">;
|
|
879
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
880
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
881
|
+
asset: z.ZodObject<{
|
|
882
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
883
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
884
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
885
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
886
|
+
currency: z.ZodString;
|
|
887
|
+
currencyAmount: z.ZodNumber;
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
|
+
currency: string;
|
|
890
|
+
currencyAmount: number;
|
|
891
|
+
}, {
|
|
892
|
+
currency: string;
|
|
893
|
+
currencyAmount: number;
|
|
894
|
+
}>>>;
|
|
895
|
+
}, "strip", z.ZodTypeAny, {
|
|
896
|
+
type: "nft" | "token";
|
|
897
|
+
tokenAddress: `0x${string}`;
|
|
898
|
+
amount?: string | undefined;
|
|
899
|
+
fiatAmount?: {
|
|
900
|
+
currency: string;
|
|
901
|
+
currencyAmount: number;
|
|
902
|
+
} | null | undefined;
|
|
903
|
+
}, {
|
|
904
|
+
type: "nft" | "token";
|
|
905
|
+
tokenAddress: string;
|
|
906
|
+
amount?: string | undefined;
|
|
907
|
+
fiatAmount?: {
|
|
908
|
+
currency: string;
|
|
909
|
+
currencyAmount: number;
|
|
910
|
+
} | null | undefined;
|
|
911
|
+
}>;
|
|
912
|
+
stakerInfo: z.ZodObject<{
|
|
913
|
+
name: z.ZodString;
|
|
914
|
+
iconUrl: z.ZodString;
|
|
915
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
name: string;
|
|
918
|
+
address: `0x${string}`;
|
|
919
|
+
iconUrl: string;
|
|
920
|
+
}, {
|
|
921
|
+
name: string;
|
|
922
|
+
address: string;
|
|
923
|
+
iconUrl: string;
|
|
924
|
+
}>;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
type: "staking";
|
|
927
|
+
stakerInfo: {
|
|
928
|
+
name: string;
|
|
929
|
+
address: `0x${string}`;
|
|
930
|
+
iconUrl: string;
|
|
931
|
+
};
|
|
932
|
+
asset: {
|
|
933
|
+
type: "nft" | "token";
|
|
934
|
+
tokenAddress: `0x${string}`;
|
|
935
|
+
amount?: string | undefined;
|
|
936
|
+
fiatAmount?: {
|
|
937
|
+
currency: string;
|
|
938
|
+
currencyAmount: number;
|
|
939
|
+
} | null | undefined;
|
|
940
|
+
};
|
|
941
|
+
counterparty: `0x${string}`;
|
|
942
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
943
|
+
}, {
|
|
944
|
+
type: "staking";
|
|
945
|
+
stakerInfo: {
|
|
946
|
+
name: string;
|
|
947
|
+
address: string;
|
|
948
|
+
iconUrl: string;
|
|
949
|
+
};
|
|
950
|
+
asset: {
|
|
951
|
+
type: "nft" | "token";
|
|
952
|
+
tokenAddress: string;
|
|
953
|
+
amount?: string | undefined;
|
|
954
|
+
fiatAmount?: {
|
|
955
|
+
currency: string;
|
|
956
|
+
currencyAmount: number;
|
|
957
|
+
} | null | undefined;
|
|
958
|
+
};
|
|
959
|
+
counterparty: string;
|
|
960
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
793
961
|
}>]>;
|
|
794
962
|
}, "strip", z.ZodTypeAny, {
|
|
795
963
|
details: {
|
|
@@ -867,6 +1035,24 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
867
1035
|
name: string;
|
|
868
1036
|
parameters?: unknown[] | undefined;
|
|
869
1037
|
} | null | undefined;
|
|
1038
|
+
} | {
|
|
1039
|
+
type: "staking";
|
|
1040
|
+
stakerInfo: {
|
|
1041
|
+
name: string;
|
|
1042
|
+
address: `0x${string}`;
|
|
1043
|
+
iconUrl: string;
|
|
1044
|
+
};
|
|
1045
|
+
asset: {
|
|
1046
|
+
type: "nft" | "token";
|
|
1047
|
+
tokenAddress: `0x${string}`;
|
|
1048
|
+
amount?: string | undefined;
|
|
1049
|
+
fiatAmount?: {
|
|
1050
|
+
currency: string;
|
|
1051
|
+
currencyAmount: number;
|
|
1052
|
+
} | null | undefined;
|
|
1053
|
+
};
|
|
1054
|
+
counterparty: `0x${string}`;
|
|
1055
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
870
1056
|
};
|
|
871
1057
|
}, {
|
|
872
1058
|
details: {
|
|
@@ -944,6 +1130,24 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
944
1130
|
name: string;
|
|
945
1131
|
parameters?: unknown[] | undefined;
|
|
946
1132
|
} | null | undefined;
|
|
1133
|
+
} | {
|
|
1134
|
+
type: "staking";
|
|
1135
|
+
stakerInfo: {
|
|
1136
|
+
name: string;
|
|
1137
|
+
address: string;
|
|
1138
|
+
iconUrl: string;
|
|
1139
|
+
};
|
|
1140
|
+
asset: {
|
|
1141
|
+
type: "nft" | "token";
|
|
1142
|
+
tokenAddress: string;
|
|
1143
|
+
amount?: string | undefined;
|
|
1144
|
+
fiatAmount?: {
|
|
1145
|
+
currency: string;
|
|
1146
|
+
currencyAmount: number;
|
|
1147
|
+
} | null | undefined;
|
|
1148
|
+
};
|
|
1149
|
+
counterparty: string;
|
|
1150
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
947
1151
|
};
|
|
948
1152
|
}>, "many">;
|
|
949
1153
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1024,6 +1228,24 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
1024
1228
|
name: string;
|
|
1025
1229
|
parameters?: unknown[] | undefined;
|
|
1026
1230
|
} | null | undefined;
|
|
1231
|
+
} | {
|
|
1232
|
+
type: "staking";
|
|
1233
|
+
stakerInfo: {
|
|
1234
|
+
name: string;
|
|
1235
|
+
address: `0x${string}`;
|
|
1236
|
+
iconUrl: string;
|
|
1237
|
+
};
|
|
1238
|
+
asset: {
|
|
1239
|
+
type: "nft" | "token";
|
|
1240
|
+
tokenAddress: `0x${string}`;
|
|
1241
|
+
amount?: string | undefined;
|
|
1242
|
+
fiatAmount?: {
|
|
1243
|
+
currency: string;
|
|
1244
|
+
currencyAmount: number;
|
|
1245
|
+
} | null | undefined;
|
|
1246
|
+
};
|
|
1247
|
+
counterparty: `0x${string}`;
|
|
1248
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
1027
1249
|
};
|
|
1028
1250
|
}[];
|
|
1029
1251
|
}, {
|
|
@@ -1104,6 +1326,24 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
|
|
|
1104
1326
|
name: string;
|
|
1105
1327
|
parameters?: unknown[] | undefined;
|
|
1106
1328
|
} | null | undefined;
|
|
1329
|
+
} | {
|
|
1330
|
+
type: "staking";
|
|
1331
|
+
stakerInfo: {
|
|
1332
|
+
name: string;
|
|
1333
|
+
address: string;
|
|
1334
|
+
iconUrl: string;
|
|
1335
|
+
};
|
|
1336
|
+
asset: {
|
|
1337
|
+
type: "nft" | "token";
|
|
1338
|
+
tokenAddress: string;
|
|
1339
|
+
amount?: string | undefined;
|
|
1340
|
+
fiatAmount?: {
|
|
1341
|
+
currency: string;
|
|
1342
|
+
currencyAmount: number;
|
|
1343
|
+
} | null | undefined;
|
|
1344
|
+
};
|
|
1345
|
+
counterparty: string;
|
|
1346
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
1107
1347
|
};
|
|
1108
1348
|
}[];
|
|
1109
1349
|
}>]>;
|
|
@@ -1286,7 +1526,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
1286
1526
|
wallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1287
1527
|
txSender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1288
1528
|
source: z.ZodString;
|
|
1289
|
-
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
1529
|
+
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade", "staking"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
1290
1530
|
group: z.ZodEnum<["finance", "security"]>;
|
|
1291
1531
|
submitted: z.ZodNumber;
|
|
1292
1532
|
lastModified: z.ZodNumber;
|
|
@@ -1818,6 +2058,90 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
1818
2058
|
name: string;
|
|
1819
2059
|
parameters?: unknown[] | undefined;
|
|
1820
2060
|
} | null | undefined;
|
|
2061
|
+
}>, z.ZodObject<{
|
|
2062
|
+
type: z.ZodLiteral<"staking">;
|
|
2063
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
2064
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2065
|
+
asset: z.ZodObject<{
|
|
2066
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
2067
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2068
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
2069
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2070
|
+
currency: z.ZodString;
|
|
2071
|
+
currencyAmount: z.ZodNumber;
|
|
2072
|
+
}, "strip", z.ZodTypeAny, {
|
|
2073
|
+
currency: string;
|
|
2074
|
+
currencyAmount: number;
|
|
2075
|
+
}, {
|
|
2076
|
+
currency: string;
|
|
2077
|
+
currencyAmount: number;
|
|
2078
|
+
}>>>;
|
|
2079
|
+
}, "strip", z.ZodTypeAny, {
|
|
2080
|
+
type: "nft" | "token";
|
|
2081
|
+
tokenAddress: `0x${string}`;
|
|
2082
|
+
amount?: string | undefined;
|
|
2083
|
+
fiatAmount?: {
|
|
2084
|
+
currency: string;
|
|
2085
|
+
currencyAmount: number;
|
|
2086
|
+
} | null | undefined;
|
|
2087
|
+
}, {
|
|
2088
|
+
type: "nft" | "token";
|
|
2089
|
+
tokenAddress: string;
|
|
2090
|
+
amount?: string | undefined;
|
|
2091
|
+
fiatAmount?: {
|
|
2092
|
+
currency: string;
|
|
2093
|
+
currencyAmount: number;
|
|
2094
|
+
} | null | undefined;
|
|
2095
|
+
}>;
|
|
2096
|
+
stakerInfo: z.ZodObject<{
|
|
2097
|
+
name: z.ZodString;
|
|
2098
|
+
iconUrl: z.ZodString;
|
|
2099
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2100
|
+
}, "strip", z.ZodTypeAny, {
|
|
2101
|
+
name: string;
|
|
2102
|
+
address: `0x${string}`;
|
|
2103
|
+
iconUrl: string;
|
|
2104
|
+
}, {
|
|
2105
|
+
name: string;
|
|
2106
|
+
address: string;
|
|
2107
|
+
iconUrl: string;
|
|
2108
|
+
}>;
|
|
2109
|
+
}, "strip", z.ZodTypeAny, {
|
|
2110
|
+
type: "staking";
|
|
2111
|
+
stakerInfo: {
|
|
2112
|
+
name: string;
|
|
2113
|
+
address: `0x${string}`;
|
|
2114
|
+
iconUrl: string;
|
|
2115
|
+
};
|
|
2116
|
+
asset: {
|
|
2117
|
+
type: "nft" | "token";
|
|
2118
|
+
tokenAddress: `0x${string}`;
|
|
2119
|
+
amount?: string | undefined;
|
|
2120
|
+
fiatAmount?: {
|
|
2121
|
+
currency: string;
|
|
2122
|
+
currencyAmount: number;
|
|
2123
|
+
} | null | undefined;
|
|
2124
|
+
};
|
|
2125
|
+
counterparty: `0x${string}`;
|
|
2126
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2127
|
+
}, {
|
|
2128
|
+
type: "staking";
|
|
2129
|
+
stakerInfo: {
|
|
2130
|
+
name: string;
|
|
2131
|
+
address: string;
|
|
2132
|
+
iconUrl: string;
|
|
2133
|
+
};
|
|
2134
|
+
asset: {
|
|
2135
|
+
type: "nft" | "token";
|
|
2136
|
+
tokenAddress: string;
|
|
2137
|
+
amount?: string | undefined;
|
|
2138
|
+
fiatAmount?: {
|
|
2139
|
+
currency: string;
|
|
2140
|
+
currencyAmount: number;
|
|
2141
|
+
} | null | undefined;
|
|
2142
|
+
};
|
|
2143
|
+
counterparty: string;
|
|
2144
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
1821
2145
|
}>]>, z.ZodObject<{
|
|
1822
2146
|
type: z.ZodLiteral<"multicall">;
|
|
1823
2147
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -2160,28 +2484,112 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
2160
2484
|
dappAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2161
2485
|
function: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2162
2486
|
name: z.ZodString;
|
|
2163
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2487
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2488
|
+
}, "strip", z.ZodTypeAny, {
|
|
2489
|
+
name: string;
|
|
2490
|
+
parameters?: unknown[] | undefined;
|
|
2491
|
+
}, {
|
|
2492
|
+
name: string;
|
|
2493
|
+
parameters?: unknown[] | undefined;
|
|
2494
|
+
}>>>;
|
|
2495
|
+
}, "strip", z.ZodTypeAny, {
|
|
2496
|
+
type: "dappInteraction";
|
|
2497
|
+
dappAddress: `0x${string}`;
|
|
2498
|
+
function?: {
|
|
2499
|
+
name: string;
|
|
2500
|
+
parameters?: unknown[] | undefined;
|
|
2501
|
+
} | null | undefined;
|
|
2502
|
+
}, {
|
|
2503
|
+
type: "dappInteraction";
|
|
2504
|
+
dappAddress: string;
|
|
2505
|
+
function?: {
|
|
2506
|
+
name: string;
|
|
2507
|
+
parameters?: unknown[] | undefined;
|
|
2508
|
+
} | null | undefined;
|
|
2509
|
+
}>, z.ZodObject<{
|
|
2510
|
+
type: z.ZodLiteral<"staking">;
|
|
2511
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
2512
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2513
|
+
asset: z.ZodObject<{
|
|
2514
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
2515
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2516
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2518
|
+
currency: z.ZodString;
|
|
2519
|
+
currencyAmount: z.ZodNumber;
|
|
2520
|
+
}, "strip", z.ZodTypeAny, {
|
|
2521
|
+
currency: string;
|
|
2522
|
+
currencyAmount: number;
|
|
2523
|
+
}, {
|
|
2524
|
+
currency: string;
|
|
2525
|
+
currencyAmount: number;
|
|
2526
|
+
}>>>;
|
|
2527
|
+
}, "strip", z.ZodTypeAny, {
|
|
2528
|
+
type: "nft" | "token";
|
|
2529
|
+
tokenAddress: `0x${string}`;
|
|
2530
|
+
amount?: string | undefined;
|
|
2531
|
+
fiatAmount?: {
|
|
2532
|
+
currency: string;
|
|
2533
|
+
currencyAmount: number;
|
|
2534
|
+
} | null | undefined;
|
|
2535
|
+
}, {
|
|
2536
|
+
type: "nft" | "token";
|
|
2537
|
+
tokenAddress: string;
|
|
2538
|
+
amount?: string | undefined;
|
|
2539
|
+
fiatAmount?: {
|
|
2540
|
+
currency: string;
|
|
2541
|
+
currencyAmount: number;
|
|
2542
|
+
} | null | undefined;
|
|
2543
|
+
}>;
|
|
2544
|
+
stakerInfo: z.ZodObject<{
|
|
2545
|
+
name: z.ZodString;
|
|
2546
|
+
iconUrl: z.ZodString;
|
|
2547
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2164
2548
|
}, "strip", z.ZodTypeAny, {
|
|
2165
2549
|
name: string;
|
|
2166
|
-
|
|
2550
|
+
address: `0x${string}`;
|
|
2551
|
+
iconUrl: string;
|
|
2167
2552
|
}, {
|
|
2168
2553
|
name: string;
|
|
2169
|
-
|
|
2170
|
-
|
|
2554
|
+
address: string;
|
|
2555
|
+
iconUrl: string;
|
|
2556
|
+
}>;
|
|
2171
2557
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
type: "
|
|
2173
|
-
|
|
2174
|
-
function?: {
|
|
2558
|
+
type: "staking";
|
|
2559
|
+
stakerInfo: {
|
|
2175
2560
|
name: string;
|
|
2176
|
-
|
|
2177
|
-
|
|
2561
|
+
address: `0x${string}`;
|
|
2562
|
+
iconUrl: string;
|
|
2563
|
+
};
|
|
2564
|
+
asset: {
|
|
2565
|
+
type: "nft" | "token";
|
|
2566
|
+
tokenAddress: `0x${string}`;
|
|
2567
|
+
amount?: string | undefined;
|
|
2568
|
+
fiatAmount?: {
|
|
2569
|
+
currency: string;
|
|
2570
|
+
currencyAmount: number;
|
|
2571
|
+
} | null | undefined;
|
|
2572
|
+
};
|
|
2573
|
+
counterparty: `0x${string}`;
|
|
2574
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2178
2575
|
}, {
|
|
2179
|
-
type: "
|
|
2180
|
-
|
|
2181
|
-
function?: {
|
|
2576
|
+
type: "staking";
|
|
2577
|
+
stakerInfo: {
|
|
2182
2578
|
name: string;
|
|
2183
|
-
|
|
2184
|
-
|
|
2579
|
+
address: string;
|
|
2580
|
+
iconUrl: string;
|
|
2581
|
+
};
|
|
2582
|
+
asset: {
|
|
2583
|
+
type: "nft" | "token";
|
|
2584
|
+
tokenAddress: string;
|
|
2585
|
+
amount?: string | undefined;
|
|
2586
|
+
fiatAmount?: {
|
|
2587
|
+
currency: string;
|
|
2588
|
+
currencyAmount: number;
|
|
2589
|
+
} | null | undefined;
|
|
2590
|
+
};
|
|
2591
|
+
counterparty: string;
|
|
2592
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2185
2593
|
}>]>;
|
|
2186
2594
|
}, "strip", z.ZodTypeAny, {
|
|
2187
2595
|
details: {
|
|
@@ -2259,6 +2667,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
2259
2667
|
name: string;
|
|
2260
2668
|
parameters?: unknown[] | undefined;
|
|
2261
2669
|
} | null | undefined;
|
|
2670
|
+
} | {
|
|
2671
|
+
type: "staking";
|
|
2672
|
+
stakerInfo: {
|
|
2673
|
+
name: string;
|
|
2674
|
+
address: `0x${string}`;
|
|
2675
|
+
iconUrl: string;
|
|
2676
|
+
};
|
|
2677
|
+
asset: {
|
|
2678
|
+
type: "nft" | "token";
|
|
2679
|
+
tokenAddress: `0x${string}`;
|
|
2680
|
+
amount?: string | undefined;
|
|
2681
|
+
fiatAmount?: {
|
|
2682
|
+
currency: string;
|
|
2683
|
+
currencyAmount: number;
|
|
2684
|
+
} | null | undefined;
|
|
2685
|
+
};
|
|
2686
|
+
counterparty: `0x${string}`;
|
|
2687
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2262
2688
|
};
|
|
2263
2689
|
}, {
|
|
2264
2690
|
details: {
|
|
@@ -2336,6 +2762,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
2336
2762
|
name: string;
|
|
2337
2763
|
parameters?: unknown[] | undefined;
|
|
2338
2764
|
} | null | undefined;
|
|
2765
|
+
} | {
|
|
2766
|
+
type: "staking";
|
|
2767
|
+
stakerInfo: {
|
|
2768
|
+
name: string;
|
|
2769
|
+
address: string;
|
|
2770
|
+
iconUrl: string;
|
|
2771
|
+
};
|
|
2772
|
+
asset: {
|
|
2773
|
+
type: "nft" | "token";
|
|
2774
|
+
tokenAddress: string;
|
|
2775
|
+
amount?: string | undefined;
|
|
2776
|
+
fiatAmount?: {
|
|
2777
|
+
currency: string;
|
|
2778
|
+
currencyAmount: number;
|
|
2779
|
+
} | null | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
counterparty: string;
|
|
2782
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2339
2783
|
};
|
|
2340
2784
|
}>, "many">;
|
|
2341
2785
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2416,6 +2860,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
2416
2860
|
name: string;
|
|
2417
2861
|
parameters?: unknown[] | undefined;
|
|
2418
2862
|
} | null | undefined;
|
|
2863
|
+
} | {
|
|
2864
|
+
type: "staking";
|
|
2865
|
+
stakerInfo: {
|
|
2866
|
+
name: string;
|
|
2867
|
+
address: `0x${string}`;
|
|
2868
|
+
iconUrl: string;
|
|
2869
|
+
};
|
|
2870
|
+
asset: {
|
|
2871
|
+
type: "nft" | "token";
|
|
2872
|
+
tokenAddress: `0x${string}`;
|
|
2873
|
+
amount?: string | undefined;
|
|
2874
|
+
fiatAmount?: {
|
|
2875
|
+
currency: string;
|
|
2876
|
+
currencyAmount: number;
|
|
2877
|
+
} | null | undefined;
|
|
2878
|
+
};
|
|
2879
|
+
counterparty: `0x${string}`;
|
|
2880
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2419
2881
|
};
|
|
2420
2882
|
}[];
|
|
2421
2883
|
}, {
|
|
@@ -2496,6 +2958,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
2496
2958
|
name: string;
|
|
2497
2959
|
parameters?: unknown[] | undefined;
|
|
2498
2960
|
} | null | undefined;
|
|
2961
|
+
} | {
|
|
2962
|
+
type: "staking";
|
|
2963
|
+
stakerInfo: {
|
|
2964
|
+
name: string;
|
|
2965
|
+
address: string;
|
|
2966
|
+
iconUrl: string;
|
|
2967
|
+
};
|
|
2968
|
+
asset: {
|
|
2969
|
+
type: "nft" | "token";
|
|
2970
|
+
tokenAddress: string;
|
|
2971
|
+
amount?: string | undefined;
|
|
2972
|
+
fiatAmount?: {
|
|
2973
|
+
currency: string;
|
|
2974
|
+
currencyAmount: number;
|
|
2975
|
+
} | null | undefined;
|
|
2976
|
+
};
|
|
2977
|
+
counterparty: string;
|
|
2978
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
2499
2979
|
};
|
|
2500
2980
|
}[];
|
|
2501
2981
|
}>]>;
|
|
@@ -3309,7 +3789,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3309
3789
|
}>>;
|
|
3310
3790
|
}, "strip", z.ZodTypeAny, {
|
|
3311
3791
|
status: "pending" | "success" | "failure";
|
|
3312
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
3792
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
3313
3793
|
wallet: `0x${string}`;
|
|
3314
3794
|
id: string;
|
|
3315
3795
|
group: "security" | "finance";
|
|
@@ -3388,6 +3868,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3388
3868
|
name: string;
|
|
3389
3869
|
parameters?: unknown[] | undefined;
|
|
3390
3870
|
} | null | undefined;
|
|
3871
|
+
} | {
|
|
3872
|
+
type: "staking";
|
|
3873
|
+
stakerInfo: {
|
|
3874
|
+
name: string;
|
|
3875
|
+
address: `0x${string}`;
|
|
3876
|
+
iconUrl: string;
|
|
3877
|
+
};
|
|
3878
|
+
asset: {
|
|
3879
|
+
type: "nft" | "token";
|
|
3880
|
+
tokenAddress: `0x${string}`;
|
|
3881
|
+
amount?: string | undefined;
|
|
3882
|
+
fiatAmount?: {
|
|
3883
|
+
currency: string;
|
|
3884
|
+
currencyAmount: number;
|
|
3885
|
+
} | null | undefined;
|
|
3886
|
+
};
|
|
3887
|
+
counterparty: `0x${string}`;
|
|
3888
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
3391
3889
|
} | {
|
|
3392
3890
|
type: "multicall";
|
|
3393
3891
|
calls: {
|
|
@@ -3466,6 +3964,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3466
3964
|
name: string;
|
|
3467
3965
|
parameters?: unknown[] | undefined;
|
|
3468
3966
|
} | null | undefined;
|
|
3967
|
+
} | {
|
|
3968
|
+
type: "staking";
|
|
3969
|
+
stakerInfo: {
|
|
3970
|
+
name: string;
|
|
3971
|
+
address: `0x${string}`;
|
|
3972
|
+
iconUrl: string;
|
|
3973
|
+
};
|
|
3974
|
+
asset: {
|
|
3975
|
+
type: "nft" | "token";
|
|
3976
|
+
tokenAddress: `0x${string}`;
|
|
3977
|
+
amount?: string | undefined;
|
|
3978
|
+
fiatAmount?: {
|
|
3979
|
+
currency: string;
|
|
3980
|
+
currencyAmount: number;
|
|
3981
|
+
} | null | undefined;
|
|
3982
|
+
};
|
|
3983
|
+
counterparty: `0x${string}`;
|
|
3984
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
3469
3985
|
};
|
|
3470
3986
|
}[];
|
|
3471
3987
|
};
|
|
@@ -3671,7 +4187,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3671
4187
|
} | undefined;
|
|
3672
4188
|
}, {
|
|
3673
4189
|
status: "pending" | "success" | "failure";
|
|
3674
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
4190
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
3675
4191
|
wallet: string;
|
|
3676
4192
|
id: string;
|
|
3677
4193
|
group: "security" | "finance";
|
|
@@ -3750,6 +4266,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3750
4266
|
name: string;
|
|
3751
4267
|
parameters?: unknown[] | undefined;
|
|
3752
4268
|
} | null | undefined;
|
|
4269
|
+
} | {
|
|
4270
|
+
type: "staking";
|
|
4271
|
+
stakerInfo: {
|
|
4272
|
+
name: string;
|
|
4273
|
+
address: string;
|
|
4274
|
+
iconUrl: string;
|
|
4275
|
+
};
|
|
4276
|
+
asset: {
|
|
4277
|
+
type: "nft" | "token";
|
|
4278
|
+
tokenAddress: string;
|
|
4279
|
+
amount?: string | undefined;
|
|
4280
|
+
fiatAmount?: {
|
|
4281
|
+
currency: string;
|
|
4282
|
+
currencyAmount: number;
|
|
4283
|
+
} | null | undefined;
|
|
4284
|
+
};
|
|
4285
|
+
counterparty: string;
|
|
4286
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
3753
4287
|
} | {
|
|
3754
4288
|
type: "multicall";
|
|
3755
4289
|
calls: {
|
|
@@ -3828,6 +4362,24 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
3828
4362
|
name: string;
|
|
3829
4363
|
parameters?: unknown[] | undefined;
|
|
3830
4364
|
} | null | undefined;
|
|
4365
|
+
} | {
|
|
4366
|
+
type: "staking";
|
|
4367
|
+
stakerInfo: {
|
|
4368
|
+
name: string;
|
|
4369
|
+
address: string;
|
|
4370
|
+
iconUrl: string;
|
|
4371
|
+
};
|
|
4372
|
+
asset: {
|
|
4373
|
+
type: "nft" | "token";
|
|
4374
|
+
tokenAddress: string;
|
|
4375
|
+
amount?: string | undefined;
|
|
4376
|
+
fiatAmount?: {
|
|
4377
|
+
currency: string;
|
|
4378
|
+
currencyAmount: number;
|
|
4379
|
+
} | null | undefined;
|
|
4380
|
+
};
|
|
4381
|
+
counterparty: string;
|
|
4382
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
3831
4383
|
};
|
|
3832
4384
|
}[];
|
|
3833
4385
|
};
|
|
@@ -4040,13 +4592,64 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
|
|
|
4040
4592
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
4041
4593
|
/** let's not import the keys from x-ui here */
|
|
4042
4594
|
icon: z.ZodOptional<z.ZodString>;
|
|
4595
|
+
investment: z.ZodOptional<z.ZodObject<{
|
|
4596
|
+
stakerInfo: z.ZodObject<{
|
|
4597
|
+
name: z.ZodString;
|
|
4598
|
+
iconUrl: z.ZodString;
|
|
4599
|
+
address: z.ZodString;
|
|
4600
|
+
}, "strip", z.ZodTypeAny, {
|
|
4601
|
+
name: string;
|
|
4602
|
+
address: string;
|
|
4603
|
+
iconUrl: string;
|
|
4604
|
+
}, {
|
|
4605
|
+
name: string;
|
|
4606
|
+
address: string;
|
|
4607
|
+
iconUrl: string;
|
|
4608
|
+
}>;
|
|
4609
|
+
tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
|
|
4610
|
+
amount: z.ZodString;
|
|
4611
|
+
}, "strip", z.ZodTypeAny, {
|
|
4612
|
+
amount: string;
|
|
4613
|
+
stakerInfo: {
|
|
4614
|
+
name: string;
|
|
4615
|
+
address: string;
|
|
4616
|
+
iconUrl: string;
|
|
4617
|
+
};
|
|
4618
|
+
tokenAddress: `0x${string}`;
|
|
4619
|
+
}, {
|
|
4620
|
+
amount: string;
|
|
4621
|
+
stakerInfo: {
|
|
4622
|
+
name: string;
|
|
4623
|
+
address: string;
|
|
4624
|
+
iconUrl: string;
|
|
4625
|
+
};
|
|
4626
|
+
tokenAddress: string;
|
|
4627
|
+
}>>;
|
|
4043
4628
|
}, "strip", z.ZodTypeAny, {
|
|
4044
4629
|
icon?: string | undefined;
|
|
4630
|
+
investment?: {
|
|
4631
|
+
amount: string;
|
|
4632
|
+
stakerInfo: {
|
|
4633
|
+
name: string;
|
|
4634
|
+
address: string;
|
|
4635
|
+
iconUrl: string;
|
|
4636
|
+
};
|
|
4637
|
+
tokenAddress: `0x${string}`;
|
|
4638
|
+
} | undefined;
|
|
4045
4639
|
title?: string | undefined;
|
|
4046
4640
|
shortTitle?: string | undefined;
|
|
4047
4641
|
subtitle?: string | undefined;
|
|
4048
4642
|
}, {
|
|
4049
4643
|
icon?: string | undefined;
|
|
4644
|
+
investment?: {
|
|
4645
|
+
amount: string;
|
|
4646
|
+
stakerInfo: {
|
|
4647
|
+
name: string;
|
|
4648
|
+
address: string;
|
|
4649
|
+
iconUrl: string;
|
|
4650
|
+
};
|
|
4651
|
+
tokenAddress: string;
|
|
4652
|
+
} | undefined;
|
|
4050
4653
|
title?: string | undefined;
|
|
4051
4654
|
shortTitle?: string | undefined;
|
|
4052
4655
|
subtitle?: string | undefined;
|
|
@@ -4063,7 +4666,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
4063
4666
|
wallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
4064
4667
|
txSender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
4065
4668
|
source: z.ZodString;
|
|
4066
|
-
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
4669
|
+
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade", "staking"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
4067
4670
|
group: z.ZodEnum<["finance", "security"]>;
|
|
4068
4671
|
submitted: z.ZodNumber;
|
|
4069
4672
|
lastModified: z.ZodNumber;
|
|
@@ -4582,19 +5185,103 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
4582
5185
|
parameters?: unknown[] | undefined;
|
|
4583
5186
|
}>>>;
|
|
4584
5187
|
}, "strip", z.ZodTypeAny, {
|
|
4585
|
-
type: "dappInteraction";
|
|
4586
|
-
dappAddress: `0x${string}`;
|
|
4587
|
-
function?: {
|
|
5188
|
+
type: "dappInteraction";
|
|
5189
|
+
dappAddress: `0x${string}`;
|
|
5190
|
+
function?: {
|
|
5191
|
+
name: string;
|
|
5192
|
+
parameters?: unknown[] | undefined;
|
|
5193
|
+
} | null | undefined;
|
|
5194
|
+
}, {
|
|
5195
|
+
type: "dappInteraction";
|
|
5196
|
+
dappAddress: string;
|
|
5197
|
+
function?: {
|
|
5198
|
+
name: string;
|
|
5199
|
+
parameters?: unknown[] | undefined;
|
|
5200
|
+
} | null | undefined;
|
|
5201
|
+
}>, z.ZodObject<{
|
|
5202
|
+
type: z.ZodLiteral<"staking">;
|
|
5203
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
5204
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5205
|
+
asset: z.ZodObject<{
|
|
5206
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
5207
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5208
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
5209
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5210
|
+
currency: z.ZodString;
|
|
5211
|
+
currencyAmount: z.ZodNumber;
|
|
5212
|
+
}, "strip", z.ZodTypeAny, {
|
|
5213
|
+
currency: string;
|
|
5214
|
+
currencyAmount: number;
|
|
5215
|
+
}, {
|
|
5216
|
+
currency: string;
|
|
5217
|
+
currencyAmount: number;
|
|
5218
|
+
}>>>;
|
|
5219
|
+
}, "strip", z.ZodTypeAny, {
|
|
5220
|
+
type: "nft" | "token";
|
|
5221
|
+
tokenAddress: `0x${string}`;
|
|
5222
|
+
amount?: string | undefined;
|
|
5223
|
+
fiatAmount?: {
|
|
5224
|
+
currency: string;
|
|
5225
|
+
currencyAmount: number;
|
|
5226
|
+
} | null | undefined;
|
|
5227
|
+
}, {
|
|
5228
|
+
type: "nft" | "token";
|
|
5229
|
+
tokenAddress: string;
|
|
5230
|
+
amount?: string | undefined;
|
|
5231
|
+
fiatAmount?: {
|
|
5232
|
+
currency: string;
|
|
5233
|
+
currencyAmount: number;
|
|
5234
|
+
} | null | undefined;
|
|
5235
|
+
}>;
|
|
5236
|
+
stakerInfo: z.ZodObject<{
|
|
5237
|
+
name: z.ZodString;
|
|
5238
|
+
iconUrl: z.ZodString;
|
|
5239
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5240
|
+
}, "strip", z.ZodTypeAny, {
|
|
5241
|
+
name: string;
|
|
5242
|
+
address: `0x${string}`;
|
|
5243
|
+
iconUrl: string;
|
|
5244
|
+
}, {
|
|
5245
|
+
name: string;
|
|
5246
|
+
address: string;
|
|
5247
|
+
iconUrl: string;
|
|
5248
|
+
}>;
|
|
5249
|
+
}, "strip", z.ZodTypeAny, {
|
|
5250
|
+
type: "staking";
|
|
5251
|
+
stakerInfo: {
|
|
4588
5252
|
name: string;
|
|
4589
|
-
|
|
4590
|
-
|
|
5253
|
+
address: `0x${string}`;
|
|
5254
|
+
iconUrl: string;
|
|
5255
|
+
};
|
|
5256
|
+
asset: {
|
|
5257
|
+
type: "nft" | "token";
|
|
5258
|
+
tokenAddress: `0x${string}`;
|
|
5259
|
+
amount?: string | undefined;
|
|
5260
|
+
fiatAmount?: {
|
|
5261
|
+
currency: string;
|
|
5262
|
+
currencyAmount: number;
|
|
5263
|
+
} | null | undefined;
|
|
5264
|
+
};
|
|
5265
|
+
counterparty: `0x${string}`;
|
|
5266
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
4591
5267
|
}, {
|
|
4592
|
-
type: "
|
|
4593
|
-
|
|
4594
|
-
function?: {
|
|
5268
|
+
type: "staking";
|
|
5269
|
+
stakerInfo: {
|
|
4595
5270
|
name: string;
|
|
4596
|
-
|
|
4597
|
-
|
|
5271
|
+
address: string;
|
|
5272
|
+
iconUrl: string;
|
|
5273
|
+
};
|
|
5274
|
+
asset: {
|
|
5275
|
+
type: "nft" | "token";
|
|
5276
|
+
tokenAddress: string;
|
|
5277
|
+
amount?: string | undefined;
|
|
5278
|
+
fiatAmount?: {
|
|
5279
|
+
currency: string;
|
|
5280
|
+
currencyAmount: number;
|
|
5281
|
+
} | null | undefined;
|
|
5282
|
+
};
|
|
5283
|
+
counterparty: string;
|
|
5284
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
4598
5285
|
}>]>, z.ZodObject<{
|
|
4599
5286
|
type: z.ZodLiteral<"multicall">;
|
|
4600
5287
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -4959,6 +5646,90 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
4959
5646
|
name: string;
|
|
4960
5647
|
parameters?: unknown[] | undefined;
|
|
4961
5648
|
} | null | undefined;
|
|
5649
|
+
}>, z.ZodObject<{
|
|
5650
|
+
type: z.ZodLiteral<"staking">;
|
|
5651
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
5652
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5653
|
+
asset: z.ZodObject<{
|
|
5654
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
5655
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5656
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
5657
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5658
|
+
currency: z.ZodString;
|
|
5659
|
+
currencyAmount: z.ZodNumber;
|
|
5660
|
+
}, "strip", z.ZodTypeAny, {
|
|
5661
|
+
currency: string;
|
|
5662
|
+
currencyAmount: number;
|
|
5663
|
+
}, {
|
|
5664
|
+
currency: string;
|
|
5665
|
+
currencyAmount: number;
|
|
5666
|
+
}>>>;
|
|
5667
|
+
}, "strip", z.ZodTypeAny, {
|
|
5668
|
+
type: "nft" | "token";
|
|
5669
|
+
tokenAddress: `0x${string}`;
|
|
5670
|
+
amount?: string | undefined;
|
|
5671
|
+
fiatAmount?: {
|
|
5672
|
+
currency: string;
|
|
5673
|
+
currencyAmount: number;
|
|
5674
|
+
} | null | undefined;
|
|
5675
|
+
}, {
|
|
5676
|
+
type: "nft" | "token";
|
|
5677
|
+
tokenAddress: string;
|
|
5678
|
+
amount?: string | undefined;
|
|
5679
|
+
fiatAmount?: {
|
|
5680
|
+
currency: string;
|
|
5681
|
+
currencyAmount: number;
|
|
5682
|
+
} | null | undefined;
|
|
5683
|
+
}>;
|
|
5684
|
+
stakerInfo: z.ZodObject<{
|
|
5685
|
+
name: z.ZodString;
|
|
5686
|
+
iconUrl: z.ZodString;
|
|
5687
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5688
|
+
}, "strip", z.ZodTypeAny, {
|
|
5689
|
+
name: string;
|
|
5690
|
+
address: `0x${string}`;
|
|
5691
|
+
iconUrl: string;
|
|
5692
|
+
}, {
|
|
5693
|
+
name: string;
|
|
5694
|
+
address: string;
|
|
5695
|
+
iconUrl: string;
|
|
5696
|
+
}>;
|
|
5697
|
+
}, "strip", z.ZodTypeAny, {
|
|
5698
|
+
type: "staking";
|
|
5699
|
+
stakerInfo: {
|
|
5700
|
+
name: string;
|
|
5701
|
+
address: `0x${string}`;
|
|
5702
|
+
iconUrl: string;
|
|
5703
|
+
};
|
|
5704
|
+
asset: {
|
|
5705
|
+
type: "nft" | "token";
|
|
5706
|
+
tokenAddress: `0x${string}`;
|
|
5707
|
+
amount?: string | undefined;
|
|
5708
|
+
fiatAmount?: {
|
|
5709
|
+
currency: string;
|
|
5710
|
+
currencyAmount: number;
|
|
5711
|
+
} | null | undefined;
|
|
5712
|
+
};
|
|
5713
|
+
counterparty: `0x${string}`;
|
|
5714
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
5715
|
+
}, {
|
|
5716
|
+
type: "staking";
|
|
5717
|
+
stakerInfo: {
|
|
5718
|
+
name: string;
|
|
5719
|
+
address: string;
|
|
5720
|
+
iconUrl: string;
|
|
5721
|
+
};
|
|
5722
|
+
asset: {
|
|
5723
|
+
type: "nft" | "token";
|
|
5724
|
+
tokenAddress: string;
|
|
5725
|
+
amount?: string | undefined;
|
|
5726
|
+
fiatAmount?: {
|
|
5727
|
+
currency: string;
|
|
5728
|
+
currencyAmount: number;
|
|
5729
|
+
} | null | undefined;
|
|
5730
|
+
};
|
|
5731
|
+
counterparty: string;
|
|
5732
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
4962
5733
|
}>]>;
|
|
4963
5734
|
}, "strip", z.ZodTypeAny, {
|
|
4964
5735
|
details: {
|
|
@@ -5036,6 +5807,24 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5036
5807
|
name: string;
|
|
5037
5808
|
parameters?: unknown[] | undefined;
|
|
5038
5809
|
} | null | undefined;
|
|
5810
|
+
} | {
|
|
5811
|
+
type: "staking";
|
|
5812
|
+
stakerInfo: {
|
|
5813
|
+
name: string;
|
|
5814
|
+
address: `0x${string}`;
|
|
5815
|
+
iconUrl: string;
|
|
5816
|
+
};
|
|
5817
|
+
asset: {
|
|
5818
|
+
type: "nft" | "token";
|
|
5819
|
+
tokenAddress: `0x${string}`;
|
|
5820
|
+
amount?: string | undefined;
|
|
5821
|
+
fiatAmount?: {
|
|
5822
|
+
currency: string;
|
|
5823
|
+
currencyAmount: number;
|
|
5824
|
+
} | null | undefined;
|
|
5825
|
+
};
|
|
5826
|
+
counterparty: `0x${string}`;
|
|
5827
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
5039
5828
|
};
|
|
5040
5829
|
}, {
|
|
5041
5830
|
details: {
|
|
@@ -5113,6 +5902,24 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5113
5902
|
name: string;
|
|
5114
5903
|
parameters?: unknown[] | undefined;
|
|
5115
5904
|
} | null | undefined;
|
|
5905
|
+
} | {
|
|
5906
|
+
type: "staking";
|
|
5907
|
+
stakerInfo: {
|
|
5908
|
+
name: string;
|
|
5909
|
+
address: string;
|
|
5910
|
+
iconUrl: string;
|
|
5911
|
+
};
|
|
5912
|
+
asset: {
|
|
5913
|
+
type: "nft" | "token";
|
|
5914
|
+
tokenAddress: string;
|
|
5915
|
+
amount?: string | undefined;
|
|
5916
|
+
fiatAmount?: {
|
|
5917
|
+
currency: string;
|
|
5918
|
+
currencyAmount: number;
|
|
5919
|
+
} | null | undefined;
|
|
5920
|
+
};
|
|
5921
|
+
counterparty: string;
|
|
5922
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
5116
5923
|
};
|
|
5117
5924
|
}>, "many">;
|
|
5118
5925
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5193,6 +6000,24 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5193
6000
|
name: string;
|
|
5194
6001
|
parameters?: unknown[] | undefined;
|
|
5195
6002
|
} | null | undefined;
|
|
6003
|
+
} | {
|
|
6004
|
+
type: "staking";
|
|
6005
|
+
stakerInfo: {
|
|
6006
|
+
name: string;
|
|
6007
|
+
address: `0x${string}`;
|
|
6008
|
+
iconUrl: string;
|
|
6009
|
+
};
|
|
6010
|
+
asset: {
|
|
6011
|
+
type: "nft" | "token";
|
|
6012
|
+
tokenAddress: `0x${string}`;
|
|
6013
|
+
amount?: string | undefined;
|
|
6014
|
+
fiatAmount?: {
|
|
6015
|
+
currency: string;
|
|
6016
|
+
currencyAmount: number;
|
|
6017
|
+
} | null | undefined;
|
|
6018
|
+
};
|
|
6019
|
+
counterparty: `0x${string}`;
|
|
6020
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
5196
6021
|
};
|
|
5197
6022
|
}[];
|
|
5198
6023
|
}, {
|
|
@@ -5273,6 +6098,24 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5273
6098
|
name: string;
|
|
5274
6099
|
parameters?: unknown[] | undefined;
|
|
5275
6100
|
} | null | undefined;
|
|
6101
|
+
} | {
|
|
6102
|
+
type: "staking";
|
|
6103
|
+
stakerInfo: {
|
|
6104
|
+
name: string;
|
|
6105
|
+
address: string;
|
|
6106
|
+
iconUrl: string;
|
|
6107
|
+
};
|
|
6108
|
+
asset: {
|
|
6109
|
+
type: "nft" | "token";
|
|
6110
|
+
tokenAddress: string;
|
|
6111
|
+
amount?: string | undefined;
|
|
6112
|
+
fiatAmount?: {
|
|
6113
|
+
currency: string;
|
|
6114
|
+
currencyAmount: number;
|
|
6115
|
+
} | null | undefined;
|
|
6116
|
+
};
|
|
6117
|
+
counterparty: string;
|
|
6118
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
5276
6119
|
};
|
|
5277
6120
|
}[];
|
|
5278
6121
|
}>]>;
|
|
@@ -6084,7 +6927,7 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
6084
6927
|
}, {
|
|
6085
6928
|
signers: string[];
|
|
6086
6929
|
}>>;
|
|
6087
|
-
}, "status" | "
|
|
6930
|
+
}, "status" | "fees" | "submitted" | "lastModified" | "transferSummary" | "actions" | "multisigDetails">, {
|
|
6088
6931
|
status: z.ZodUnion<[z.ZodEnum<["pending", "success", "failure"]>, z.ZodEnum<["rejected", "cancelled", "queued"]>]>;
|
|
6089
6932
|
type: z.ZodLiteral<"native">;
|
|
6090
6933
|
transaction: z.ZodObject<Pick<{
|
|
@@ -6146,13 +6989,64 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
6146
6989
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
6147
6990
|
/** let's not import the keys from x-ui here */
|
|
6148
6991
|
icon: z.ZodOptional<z.ZodString>;
|
|
6992
|
+
investment: z.ZodOptional<z.ZodObject<{
|
|
6993
|
+
stakerInfo: z.ZodObject<{
|
|
6994
|
+
name: z.ZodString;
|
|
6995
|
+
iconUrl: z.ZodString;
|
|
6996
|
+
address: z.ZodString;
|
|
6997
|
+
}, "strip", z.ZodTypeAny, {
|
|
6998
|
+
name: string;
|
|
6999
|
+
address: string;
|
|
7000
|
+
iconUrl: string;
|
|
7001
|
+
}, {
|
|
7002
|
+
name: string;
|
|
7003
|
+
address: string;
|
|
7004
|
+
iconUrl: string;
|
|
7005
|
+
}>;
|
|
7006
|
+
tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
|
|
7007
|
+
amount: z.ZodString;
|
|
7008
|
+
}, "strip", z.ZodTypeAny, {
|
|
7009
|
+
amount: string;
|
|
7010
|
+
stakerInfo: {
|
|
7011
|
+
name: string;
|
|
7012
|
+
address: string;
|
|
7013
|
+
iconUrl: string;
|
|
7014
|
+
};
|
|
7015
|
+
tokenAddress: `0x${string}`;
|
|
7016
|
+
}, {
|
|
7017
|
+
amount: string;
|
|
7018
|
+
stakerInfo: {
|
|
7019
|
+
name: string;
|
|
7020
|
+
address: string;
|
|
7021
|
+
iconUrl: string;
|
|
7022
|
+
};
|
|
7023
|
+
tokenAddress: string;
|
|
7024
|
+
}>>;
|
|
6149
7025
|
}, "strip", z.ZodTypeAny, {
|
|
6150
7026
|
icon?: string | undefined;
|
|
7027
|
+
investment?: {
|
|
7028
|
+
amount: string;
|
|
7029
|
+
stakerInfo: {
|
|
7030
|
+
name: string;
|
|
7031
|
+
address: string;
|
|
7032
|
+
iconUrl: string;
|
|
7033
|
+
};
|
|
7034
|
+
tokenAddress: `0x${string}`;
|
|
7035
|
+
} | undefined;
|
|
6151
7036
|
title?: string | undefined;
|
|
6152
7037
|
shortTitle?: string | undefined;
|
|
6153
7038
|
subtitle?: string | undefined;
|
|
6154
7039
|
}, {
|
|
6155
7040
|
icon?: string | undefined;
|
|
7041
|
+
investment?: {
|
|
7042
|
+
amount: string;
|
|
7043
|
+
stakerInfo: {
|
|
7044
|
+
name: string;
|
|
7045
|
+
address: string;
|
|
7046
|
+
iconUrl: string;
|
|
7047
|
+
};
|
|
7048
|
+
tokenAddress: string;
|
|
7049
|
+
} | undefined;
|
|
6156
7050
|
title?: string | undefined;
|
|
6157
7051
|
shortTitle?: string | undefined;
|
|
6158
7052
|
subtitle?: string | undefined;
|
|
@@ -6337,6 +7231,15 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
6337
7231
|
} | undefined;
|
|
6338
7232
|
meta?: {
|
|
6339
7233
|
icon?: string | undefined;
|
|
7234
|
+
investment?: {
|
|
7235
|
+
amount: string;
|
|
7236
|
+
stakerInfo: {
|
|
7237
|
+
name: string;
|
|
7238
|
+
address: string;
|
|
7239
|
+
iconUrl: string;
|
|
7240
|
+
};
|
|
7241
|
+
tokenAddress: `0x${string}`;
|
|
7242
|
+
} | undefined;
|
|
6340
7243
|
title?: string | undefined;
|
|
6341
7244
|
shortTitle?: string | undefined;
|
|
6342
7245
|
subtitle?: string | undefined;
|
|
@@ -6521,6 +7424,15 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
6521
7424
|
} | undefined;
|
|
6522
7425
|
meta?: {
|
|
6523
7426
|
icon?: string | undefined;
|
|
7427
|
+
investment?: {
|
|
7428
|
+
amount: string;
|
|
7429
|
+
stakerInfo: {
|
|
7430
|
+
name: string;
|
|
7431
|
+
address: string;
|
|
7432
|
+
iconUrl: string;
|
|
7433
|
+
};
|
|
7434
|
+
tokenAddress: string;
|
|
7435
|
+
} | undefined;
|
|
6524
7436
|
title?: string | undefined;
|
|
6525
7437
|
shortTitle?: string | undefined;
|
|
6526
7438
|
subtitle?: string | undefined;
|
|
@@ -6535,7 +7447,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
6535
7447
|
wallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
6536
7448
|
txSender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
6537
7449
|
source: z.ZodString;
|
|
6538
|
-
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
7450
|
+
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade", "staking"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
6539
7451
|
group: z.ZodEnum<["finance", "security"]>;
|
|
6540
7452
|
submitted: z.ZodNumber;
|
|
6541
7453
|
lastModified: z.ZodNumber;
|
|
@@ -7061,12 +7973,96 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7061
7973
|
parameters?: unknown[] | undefined;
|
|
7062
7974
|
} | null | undefined;
|
|
7063
7975
|
}, {
|
|
7064
|
-
type: "dappInteraction";
|
|
7065
|
-
dappAddress: string;
|
|
7066
|
-
function?: {
|
|
7976
|
+
type: "dappInteraction";
|
|
7977
|
+
dappAddress: string;
|
|
7978
|
+
function?: {
|
|
7979
|
+
name: string;
|
|
7980
|
+
parameters?: unknown[] | undefined;
|
|
7981
|
+
} | null | undefined;
|
|
7982
|
+
}>, z.ZodObject<{
|
|
7983
|
+
type: z.ZodLiteral<"staking">;
|
|
7984
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
7985
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7986
|
+
asset: z.ZodObject<{
|
|
7987
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
7988
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
7989
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
7990
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7991
|
+
currency: z.ZodString;
|
|
7992
|
+
currencyAmount: z.ZodNumber;
|
|
7993
|
+
}, "strip", z.ZodTypeAny, {
|
|
7994
|
+
currency: string;
|
|
7995
|
+
currencyAmount: number;
|
|
7996
|
+
}, {
|
|
7997
|
+
currency: string;
|
|
7998
|
+
currencyAmount: number;
|
|
7999
|
+
}>>>;
|
|
8000
|
+
}, "strip", z.ZodTypeAny, {
|
|
8001
|
+
type: "nft" | "token";
|
|
8002
|
+
tokenAddress: `0x${string}`;
|
|
8003
|
+
amount?: string | undefined;
|
|
8004
|
+
fiatAmount?: {
|
|
8005
|
+
currency: string;
|
|
8006
|
+
currencyAmount: number;
|
|
8007
|
+
} | null | undefined;
|
|
8008
|
+
}, {
|
|
8009
|
+
type: "nft" | "token";
|
|
8010
|
+
tokenAddress: string;
|
|
8011
|
+
amount?: string | undefined;
|
|
8012
|
+
fiatAmount?: {
|
|
8013
|
+
currency: string;
|
|
8014
|
+
currencyAmount: number;
|
|
8015
|
+
} | null | undefined;
|
|
8016
|
+
}>;
|
|
8017
|
+
stakerInfo: z.ZodObject<{
|
|
8018
|
+
name: z.ZodString;
|
|
8019
|
+
iconUrl: z.ZodString;
|
|
8020
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
8021
|
+
}, "strip", z.ZodTypeAny, {
|
|
8022
|
+
name: string;
|
|
8023
|
+
address: `0x${string}`;
|
|
8024
|
+
iconUrl: string;
|
|
8025
|
+
}, {
|
|
8026
|
+
name: string;
|
|
8027
|
+
address: string;
|
|
8028
|
+
iconUrl: string;
|
|
8029
|
+
}>;
|
|
8030
|
+
}, "strip", z.ZodTypeAny, {
|
|
8031
|
+
type: "staking";
|
|
8032
|
+
stakerInfo: {
|
|
8033
|
+
name: string;
|
|
8034
|
+
address: `0x${string}`;
|
|
8035
|
+
iconUrl: string;
|
|
8036
|
+
};
|
|
8037
|
+
asset: {
|
|
8038
|
+
type: "nft" | "token";
|
|
8039
|
+
tokenAddress: `0x${string}`;
|
|
8040
|
+
amount?: string | undefined;
|
|
8041
|
+
fiatAmount?: {
|
|
8042
|
+
currency: string;
|
|
8043
|
+
currencyAmount: number;
|
|
8044
|
+
} | null | undefined;
|
|
8045
|
+
};
|
|
8046
|
+
counterparty: `0x${string}`;
|
|
8047
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
8048
|
+
}, {
|
|
8049
|
+
type: "staking";
|
|
8050
|
+
stakerInfo: {
|
|
7067
8051
|
name: string;
|
|
7068
|
-
|
|
7069
|
-
|
|
8052
|
+
address: string;
|
|
8053
|
+
iconUrl: string;
|
|
8054
|
+
};
|
|
8055
|
+
asset: {
|
|
8056
|
+
type: "nft" | "token";
|
|
8057
|
+
tokenAddress: string;
|
|
8058
|
+
amount?: string | undefined;
|
|
8059
|
+
fiatAmount?: {
|
|
8060
|
+
currency: string;
|
|
8061
|
+
currencyAmount: number;
|
|
8062
|
+
} | null | undefined;
|
|
8063
|
+
};
|
|
8064
|
+
counterparty: string;
|
|
8065
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7070
8066
|
}>]>, z.ZodObject<{
|
|
7071
8067
|
type: z.ZodLiteral<"multicall">;
|
|
7072
8068
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -7431,6 +8427,90 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7431
8427
|
name: string;
|
|
7432
8428
|
parameters?: unknown[] | undefined;
|
|
7433
8429
|
} | null | undefined;
|
|
8430
|
+
}>, z.ZodObject<{
|
|
8431
|
+
type: z.ZodLiteral<"staking">;
|
|
8432
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
8433
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
8434
|
+
asset: z.ZodObject<{
|
|
8435
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
8436
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
8437
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
8438
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8439
|
+
currency: z.ZodString;
|
|
8440
|
+
currencyAmount: z.ZodNumber;
|
|
8441
|
+
}, "strip", z.ZodTypeAny, {
|
|
8442
|
+
currency: string;
|
|
8443
|
+
currencyAmount: number;
|
|
8444
|
+
}, {
|
|
8445
|
+
currency: string;
|
|
8446
|
+
currencyAmount: number;
|
|
8447
|
+
}>>>;
|
|
8448
|
+
}, "strip", z.ZodTypeAny, {
|
|
8449
|
+
type: "nft" | "token";
|
|
8450
|
+
tokenAddress: `0x${string}`;
|
|
8451
|
+
amount?: string | undefined;
|
|
8452
|
+
fiatAmount?: {
|
|
8453
|
+
currency: string;
|
|
8454
|
+
currencyAmount: number;
|
|
8455
|
+
} | null | undefined;
|
|
8456
|
+
}, {
|
|
8457
|
+
type: "nft" | "token";
|
|
8458
|
+
tokenAddress: string;
|
|
8459
|
+
amount?: string | undefined;
|
|
8460
|
+
fiatAmount?: {
|
|
8461
|
+
currency: string;
|
|
8462
|
+
currencyAmount: number;
|
|
8463
|
+
} | null | undefined;
|
|
8464
|
+
}>;
|
|
8465
|
+
stakerInfo: z.ZodObject<{
|
|
8466
|
+
name: z.ZodString;
|
|
8467
|
+
iconUrl: z.ZodString;
|
|
8468
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
8469
|
+
}, "strip", z.ZodTypeAny, {
|
|
8470
|
+
name: string;
|
|
8471
|
+
address: `0x${string}`;
|
|
8472
|
+
iconUrl: string;
|
|
8473
|
+
}, {
|
|
8474
|
+
name: string;
|
|
8475
|
+
address: string;
|
|
8476
|
+
iconUrl: string;
|
|
8477
|
+
}>;
|
|
8478
|
+
}, "strip", z.ZodTypeAny, {
|
|
8479
|
+
type: "staking";
|
|
8480
|
+
stakerInfo: {
|
|
8481
|
+
name: string;
|
|
8482
|
+
address: `0x${string}`;
|
|
8483
|
+
iconUrl: string;
|
|
8484
|
+
};
|
|
8485
|
+
asset: {
|
|
8486
|
+
type: "nft" | "token";
|
|
8487
|
+
tokenAddress: `0x${string}`;
|
|
8488
|
+
amount?: string | undefined;
|
|
8489
|
+
fiatAmount?: {
|
|
8490
|
+
currency: string;
|
|
8491
|
+
currencyAmount: number;
|
|
8492
|
+
} | null | undefined;
|
|
8493
|
+
};
|
|
8494
|
+
counterparty: `0x${string}`;
|
|
8495
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
8496
|
+
}, {
|
|
8497
|
+
type: "staking";
|
|
8498
|
+
stakerInfo: {
|
|
8499
|
+
name: string;
|
|
8500
|
+
address: string;
|
|
8501
|
+
iconUrl: string;
|
|
8502
|
+
};
|
|
8503
|
+
asset: {
|
|
8504
|
+
type: "nft" | "token";
|
|
8505
|
+
tokenAddress: string;
|
|
8506
|
+
amount?: string | undefined;
|
|
8507
|
+
fiatAmount?: {
|
|
8508
|
+
currency: string;
|
|
8509
|
+
currencyAmount: number;
|
|
8510
|
+
} | null | undefined;
|
|
8511
|
+
};
|
|
8512
|
+
counterparty: string;
|
|
8513
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7434
8514
|
}>]>;
|
|
7435
8515
|
}, "strip", z.ZodTypeAny, {
|
|
7436
8516
|
details: {
|
|
@@ -7508,6 +8588,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7508
8588
|
name: string;
|
|
7509
8589
|
parameters?: unknown[] | undefined;
|
|
7510
8590
|
} | null | undefined;
|
|
8591
|
+
} | {
|
|
8592
|
+
type: "staking";
|
|
8593
|
+
stakerInfo: {
|
|
8594
|
+
name: string;
|
|
8595
|
+
address: `0x${string}`;
|
|
8596
|
+
iconUrl: string;
|
|
8597
|
+
};
|
|
8598
|
+
asset: {
|
|
8599
|
+
type: "nft" | "token";
|
|
8600
|
+
tokenAddress: `0x${string}`;
|
|
8601
|
+
amount?: string | undefined;
|
|
8602
|
+
fiatAmount?: {
|
|
8603
|
+
currency: string;
|
|
8604
|
+
currencyAmount: number;
|
|
8605
|
+
} | null | undefined;
|
|
8606
|
+
};
|
|
8607
|
+
counterparty: `0x${string}`;
|
|
8608
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7511
8609
|
};
|
|
7512
8610
|
}, {
|
|
7513
8611
|
details: {
|
|
@@ -7585,6 +8683,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7585
8683
|
name: string;
|
|
7586
8684
|
parameters?: unknown[] | undefined;
|
|
7587
8685
|
} | null | undefined;
|
|
8686
|
+
} | {
|
|
8687
|
+
type: "staking";
|
|
8688
|
+
stakerInfo: {
|
|
8689
|
+
name: string;
|
|
8690
|
+
address: string;
|
|
8691
|
+
iconUrl: string;
|
|
8692
|
+
};
|
|
8693
|
+
asset: {
|
|
8694
|
+
type: "nft" | "token";
|
|
8695
|
+
tokenAddress: string;
|
|
8696
|
+
amount?: string | undefined;
|
|
8697
|
+
fiatAmount?: {
|
|
8698
|
+
currency: string;
|
|
8699
|
+
currencyAmount: number;
|
|
8700
|
+
} | null | undefined;
|
|
8701
|
+
};
|
|
8702
|
+
counterparty: string;
|
|
8703
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7588
8704
|
};
|
|
7589
8705
|
}>, "many">;
|
|
7590
8706
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7665,6 +8781,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7665
8781
|
name: string;
|
|
7666
8782
|
parameters?: unknown[] | undefined;
|
|
7667
8783
|
} | null | undefined;
|
|
8784
|
+
} | {
|
|
8785
|
+
type: "staking";
|
|
8786
|
+
stakerInfo: {
|
|
8787
|
+
name: string;
|
|
8788
|
+
address: `0x${string}`;
|
|
8789
|
+
iconUrl: string;
|
|
8790
|
+
};
|
|
8791
|
+
asset: {
|
|
8792
|
+
type: "nft" | "token";
|
|
8793
|
+
tokenAddress: `0x${string}`;
|
|
8794
|
+
amount?: string | undefined;
|
|
8795
|
+
fiatAmount?: {
|
|
8796
|
+
currency: string;
|
|
8797
|
+
currencyAmount: number;
|
|
8798
|
+
} | null | undefined;
|
|
8799
|
+
};
|
|
8800
|
+
counterparty: `0x${string}`;
|
|
8801
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7668
8802
|
};
|
|
7669
8803
|
}[];
|
|
7670
8804
|
}, {
|
|
@@ -7745,6 +8879,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
7745
8879
|
name: string;
|
|
7746
8880
|
parameters?: unknown[] | undefined;
|
|
7747
8881
|
} | null | undefined;
|
|
8882
|
+
} | {
|
|
8883
|
+
type: "staking";
|
|
8884
|
+
stakerInfo: {
|
|
8885
|
+
name: string;
|
|
8886
|
+
address: string;
|
|
8887
|
+
iconUrl: string;
|
|
8888
|
+
};
|
|
8889
|
+
asset: {
|
|
8890
|
+
type: "nft" | "token";
|
|
8891
|
+
tokenAddress: string;
|
|
8892
|
+
amount?: string | undefined;
|
|
8893
|
+
fiatAmount?: {
|
|
8894
|
+
currency: string;
|
|
8895
|
+
currencyAmount: number;
|
|
8896
|
+
} | null | undefined;
|
|
8897
|
+
};
|
|
8898
|
+
counterparty: string;
|
|
8899
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
7748
8900
|
};
|
|
7749
8901
|
}[];
|
|
7750
8902
|
}>]>;
|
|
@@ -8558,7 +9710,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
8558
9710
|
}>>;
|
|
8559
9711
|
}, "strip", z.ZodTypeAny, {
|
|
8560
9712
|
status: "pending" | "success" | "failure";
|
|
8561
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
9713
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
8562
9714
|
wallet: `0x${string}`;
|
|
8563
9715
|
id: string;
|
|
8564
9716
|
group: "security" | "finance";
|
|
@@ -8637,6 +9789,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
8637
9789
|
name: string;
|
|
8638
9790
|
parameters?: unknown[] | undefined;
|
|
8639
9791
|
} | null | undefined;
|
|
9792
|
+
} | {
|
|
9793
|
+
type: "staking";
|
|
9794
|
+
stakerInfo: {
|
|
9795
|
+
name: string;
|
|
9796
|
+
address: `0x${string}`;
|
|
9797
|
+
iconUrl: string;
|
|
9798
|
+
};
|
|
9799
|
+
asset: {
|
|
9800
|
+
type: "nft" | "token";
|
|
9801
|
+
tokenAddress: `0x${string}`;
|
|
9802
|
+
amount?: string | undefined;
|
|
9803
|
+
fiatAmount?: {
|
|
9804
|
+
currency: string;
|
|
9805
|
+
currencyAmount: number;
|
|
9806
|
+
} | null | undefined;
|
|
9807
|
+
};
|
|
9808
|
+
counterparty: `0x${string}`;
|
|
9809
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
8640
9810
|
} | {
|
|
8641
9811
|
type: "multicall";
|
|
8642
9812
|
calls: {
|
|
@@ -8715,6 +9885,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
8715
9885
|
name: string;
|
|
8716
9886
|
parameters?: unknown[] | undefined;
|
|
8717
9887
|
} | null | undefined;
|
|
9888
|
+
} | {
|
|
9889
|
+
type: "staking";
|
|
9890
|
+
stakerInfo: {
|
|
9891
|
+
name: string;
|
|
9892
|
+
address: `0x${string}`;
|
|
9893
|
+
iconUrl: string;
|
|
9894
|
+
};
|
|
9895
|
+
asset: {
|
|
9896
|
+
type: "nft" | "token";
|
|
9897
|
+
tokenAddress: `0x${string}`;
|
|
9898
|
+
amount?: string | undefined;
|
|
9899
|
+
fiatAmount?: {
|
|
9900
|
+
currency: string;
|
|
9901
|
+
currencyAmount: number;
|
|
9902
|
+
} | null | undefined;
|
|
9903
|
+
};
|
|
9904
|
+
counterparty: `0x${string}`;
|
|
9905
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
8718
9906
|
};
|
|
8719
9907
|
}[];
|
|
8720
9908
|
};
|
|
@@ -8920,7 +10108,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
8920
10108
|
} | undefined;
|
|
8921
10109
|
}, {
|
|
8922
10110
|
status: "pending" | "success" | "failure";
|
|
8923
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
10111
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
8924
10112
|
wallet: string;
|
|
8925
10113
|
id: string;
|
|
8926
10114
|
group: "security" | "finance";
|
|
@@ -8999,6 +10187,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
8999
10187
|
name: string;
|
|
9000
10188
|
parameters?: unknown[] | undefined;
|
|
9001
10189
|
} | null | undefined;
|
|
10190
|
+
} | {
|
|
10191
|
+
type: "staking";
|
|
10192
|
+
stakerInfo: {
|
|
10193
|
+
name: string;
|
|
10194
|
+
address: string;
|
|
10195
|
+
iconUrl: string;
|
|
10196
|
+
};
|
|
10197
|
+
asset: {
|
|
10198
|
+
type: "nft" | "token";
|
|
10199
|
+
tokenAddress: string;
|
|
10200
|
+
amount?: string | undefined;
|
|
10201
|
+
fiatAmount?: {
|
|
10202
|
+
currency: string;
|
|
10203
|
+
currencyAmount: number;
|
|
10204
|
+
} | null | undefined;
|
|
10205
|
+
};
|
|
10206
|
+
counterparty: string;
|
|
10207
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
9002
10208
|
} | {
|
|
9003
10209
|
type: "multicall";
|
|
9004
10210
|
calls: {
|
|
@@ -9077,6 +10283,24 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
9077
10283
|
name: string;
|
|
9078
10284
|
parameters?: unknown[] | undefined;
|
|
9079
10285
|
} | null | undefined;
|
|
10286
|
+
} | {
|
|
10287
|
+
type: "staking";
|
|
10288
|
+
stakerInfo: {
|
|
10289
|
+
name: string;
|
|
10290
|
+
address: string;
|
|
10291
|
+
iconUrl: string;
|
|
10292
|
+
};
|
|
10293
|
+
asset: {
|
|
10294
|
+
type: "nft" | "token";
|
|
10295
|
+
tokenAddress: string;
|
|
10296
|
+
amount?: string | undefined;
|
|
10297
|
+
fiatAmount?: {
|
|
10298
|
+
currency: string;
|
|
10299
|
+
currencyAmount: number;
|
|
10300
|
+
} | null | undefined;
|
|
10301
|
+
};
|
|
10302
|
+
counterparty: string;
|
|
10303
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
9080
10304
|
};
|
|
9081
10305
|
}[];
|
|
9082
10306
|
};
|
|
@@ -9289,7 +10513,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
9289
10513
|
wallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
9290
10514
|
txSender: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
9291
10515
|
source: z.ZodString;
|
|
9292
|
-
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
10516
|
+
type: z.ZodEnum<["approval", "changePubKey", "dappInteraction", "deploy", "gift", "multicall", "payment", "security", "trade", "staking"]>; /** TODO: this schema could be further narrowed - this type will be equal to details.type */
|
|
9293
10517
|
group: z.ZodEnum<["finance", "security"]>;
|
|
9294
10518
|
submitted: z.ZodNumber;
|
|
9295
10519
|
lastModified: z.ZodNumber;
|
|
@@ -9808,19 +11032,103 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
9808
11032
|
parameters?: unknown[] | undefined;
|
|
9809
11033
|
}>>>;
|
|
9810
11034
|
}, "strip", z.ZodTypeAny, {
|
|
9811
|
-
type: "dappInteraction";
|
|
9812
|
-
dappAddress: `0x${string}`;
|
|
9813
|
-
function?: {
|
|
11035
|
+
type: "dappInteraction";
|
|
11036
|
+
dappAddress: `0x${string}`;
|
|
11037
|
+
function?: {
|
|
11038
|
+
name: string;
|
|
11039
|
+
parameters?: unknown[] | undefined;
|
|
11040
|
+
} | null | undefined;
|
|
11041
|
+
}, {
|
|
11042
|
+
type: "dappInteraction";
|
|
11043
|
+
dappAddress: string;
|
|
11044
|
+
function?: {
|
|
11045
|
+
name: string;
|
|
11046
|
+
parameters?: unknown[] | undefined;
|
|
11047
|
+
} | null | undefined;
|
|
11048
|
+
}>, z.ZodObject<{
|
|
11049
|
+
type: z.ZodLiteral<"staking">;
|
|
11050
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
11051
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11052
|
+
asset: z.ZodObject<{
|
|
11053
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
11054
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11055
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
11056
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
11057
|
+
currency: z.ZodString;
|
|
11058
|
+
currencyAmount: z.ZodNumber;
|
|
11059
|
+
}, "strip", z.ZodTypeAny, {
|
|
11060
|
+
currency: string;
|
|
11061
|
+
currencyAmount: number;
|
|
11062
|
+
}, {
|
|
11063
|
+
currency: string;
|
|
11064
|
+
currencyAmount: number;
|
|
11065
|
+
}>>>;
|
|
11066
|
+
}, "strip", z.ZodTypeAny, {
|
|
11067
|
+
type: "nft" | "token";
|
|
11068
|
+
tokenAddress: `0x${string}`;
|
|
11069
|
+
amount?: string | undefined;
|
|
11070
|
+
fiatAmount?: {
|
|
11071
|
+
currency: string;
|
|
11072
|
+
currencyAmount: number;
|
|
11073
|
+
} | null | undefined;
|
|
11074
|
+
}, {
|
|
11075
|
+
type: "nft" | "token";
|
|
11076
|
+
tokenAddress: string;
|
|
11077
|
+
amount?: string | undefined;
|
|
11078
|
+
fiatAmount?: {
|
|
11079
|
+
currency: string;
|
|
11080
|
+
currencyAmount: number;
|
|
11081
|
+
} | null | undefined;
|
|
11082
|
+
}>;
|
|
11083
|
+
stakerInfo: z.ZodObject<{
|
|
11084
|
+
name: z.ZodString;
|
|
11085
|
+
iconUrl: z.ZodString;
|
|
11086
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11087
|
+
}, "strip", z.ZodTypeAny, {
|
|
11088
|
+
name: string;
|
|
11089
|
+
address: `0x${string}`;
|
|
11090
|
+
iconUrl: string;
|
|
11091
|
+
}, {
|
|
11092
|
+
name: string;
|
|
11093
|
+
address: string;
|
|
11094
|
+
iconUrl: string;
|
|
11095
|
+
}>;
|
|
11096
|
+
}, "strip", z.ZodTypeAny, {
|
|
11097
|
+
type: "staking";
|
|
11098
|
+
stakerInfo: {
|
|
9814
11099
|
name: string;
|
|
9815
|
-
|
|
9816
|
-
|
|
11100
|
+
address: `0x${string}`;
|
|
11101
|
+
iconUrl: string;
|
|
11102
|
+
};
|
|
11103
|
+
asset: {
|
|
11104
|
+
type: "nft" | "token";
|
|
11105
|
+
tokenAddress: `0x${string}`;
|
|
11106
|
+
amount?: string | undefined;
|
|
11107
|
+
fiatAmount?: {
|
|
11108
|
+
currency: string;
|
|
11109
|
+
currencyAmount: number;
|
|
11110
|
+
} | null | undefined;
|
|
11111
|
+
};
|
|
11112
|
+
counterparty: `0x${string}`;
|
|
11113
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
9817
11114
|
}, {
|
|
9818
|
-
type: "
|
|
9819
|
-
|
|
9820
|
-
function?: {
|
|
11115
|
+
type: "staking";
|
|
11116
|
+
stakerInfo: {
|
|
9821
11117
|
name: string;
|
|
9822
|
-
|
|
9823
|
-
|
|
11118
|
+
address: string;
|
|
11119
|
+
iconUrl: string;
|
|
11120
|
+
};
|
|
11121
|
+
asset: {
|
|
11122
|
+
type: "nft" | "token";
|
|
11123
|
+
tokenAddress: string;
|
|
11124
|
+
amount?: string | undefined;
|
|
11125
|
+
fiatAmount?: {
|
|
11126
|
+
currency: string;
|
|
11127
|
+
currencyAmount: number;
|
|
11128
|
+
} | null | undefined;
|
|
11129
|
+
};
|
|
11130
|
+
counterparty: string;
|
|
11131
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
9824
11132
|
}>]>, z.ZodObject<{
|
|
9825
11133
|
type: z.ZodLiteral<"multicall">;
|
|
9826
11134
|
calls: z.ZodArray<z.ZodObject<{
|
|
@@ -10185,6 +11493,90 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10185
11493
|
name: string;
|
|
10186
11494
|
parameters?: unknown[] | undefined;
|
|
10187
11495
|
} | null | undefined;
|
|
11496
|
+
}>, z.ZodObject<{
|
|
11497
|
+
type: z.ZodLiteral<"staking">;
|
|
11498
|
+
stakingAction: z.ZodEnum<["deposit", "withdraw", "finalizeWithdraw", "claim"]>;
|
|
11499
|
+
counterparty: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11500
|
+
asset: z.ZodObject<{
|
|
11501
|
+
type: z.ZodEnum<["token", "nft"]>;
|
|
11502
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11503
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
11504
|
+
fiatAmount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
11505
|
+
currency: z.ZodString;
|
|
11506
|
+
currencyAmount: z.ZodNumber;
|
|
11507
|
+
}, "strip", z.ZodTypeAny, {
|
|
11508
|
+
currency: string;
|
|
11509
|
+
currencyAmount: number;
|
|
11510
|
+
}, {
|
|
11511
|
+
currency: string;
|
|
11512
|
+
currencyAmount: number;
|
|
11513
|
+
}>>>;
|
|
11514
|
+
}, "strip", z.ZodTypeAny, {
|
|
11515
|
+
type: "nft" | "token";
|
|
11516
|
+
tokenAddress: `0x${string}`;
|
|
11517
|
+
amount?: string | undefined;
|
|
11518
|
+
fiatAmount?: {
|
|
11519
|
+
currency: string;
|
|
11520
|
+
currencyAmount: number;
|
|
11521
|
+
} | null | undefined;
|
|
11522
|
+
}, {
|
|
11523
|
+
type: "nft" | "token";
|
|
11524
|
+
tokenAddress: string;
|
|
11525
|
+
amount?: string | undefined;
|
|
11526
|
+
fiatAmount?: {
|
|
11527
|
+
currency: string;
|
|
11528
|
+
currencyAmount: number;
|
|
11529
|
+
} | null | undefined;
|
|
11530
|
+
}>;
|
|
11531
|
+
stakerInfo: z.ZodObject<{
|
|
11532
|
+
name: z.ZodString;
|
|
11533
|
+
iconUrl: z.ZodString;
|
|
11534
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
11535
|
+
}, "strip", z.ZodTypeAny, {
|
|
11536
|
+
name: string;
|
|
11537
|
+
address: `0x${string}`;
|
|
11538
|
+
iconUrl: string;
|
|
11539
|
+
}, {
|
|
11540
|
+
name: string;
|
|
11541
|
+
address: string;
|
|
11542
|
+
iconUrl: string;
|
|
11543
|
+
}>;
|
|
11544
|
+
}, "strip", z.ZodTypeAny, {
|
|
11545
|
+
type: "staking";
|
|
11546
|
+
stakerInfo: {
|
|
11547
|
+
name: string;
|
|
11548
|
+
address: `0x${string}`;
|
|
11549
|
+
iconUrl: string;
|
|
11550
|
+
};
|
|
11551
|
+
asset: {
|
|
11552
|
+
type: "nft" | "token";
|
|
11553
|
+
tokenAddress: `0x${string}`;
|
|
11554
|
+
amount?: string | undefined;
|
|
11555
|
+
fiatAmount?: {
|
|
11556
|
+
currency: string;
|
|
11557
|
+
currencyAmount: number;
|
|
11558
|
+
} | null | undefined;
|
|
11559
|
+
};
|
|
11560
|
+
counterparty: `0x${string}`;
|
|
11561
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
11562
|
+
}, {
|
|
11563
|
+
type: "staking";
|
|
11564
|
+
stakerInfo: {
|
|
11565
|
+
name: string;
|
|
11566
|
+
address: string;
|
|
11567
|
+
iconUrl: string;
|
|
11568
|
+
};
|
|
11569
|
+
asset: {
|
|
11570
|
+
type: "nft" | "token";
|
|
11571
|
+
tokenAddress: string;
|
|
11572
|
+
amount?: string | undefined;
|
|
11573
|
+
fiatAmount?: {
|
|
11574
|
+
currency: string;
|
|
11575
|
+
currencyAmount: number;
|
|
11576
|
+
} | null | undefined;
|
|
11577
|
+
};
|
|
11578
|
+
counterparty: string;
|
|
11579
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
10188
11580
|
}>]>;
|
|
10189
11581
|
}, "strip", z.ZodTypeAny, {
|
|
10190
11582
|
details: {
|
|
@@ -10262,6 +11654,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10262
11654
|
name: string;
|
|
10263
11655
|
parameters?: unknown[] | undefined;
|
|
10264
11656
|
} | null | undefined;
|
|
11657
|
+
} | {
|
|
11658
|
+
type: "staking";
|
|
11659
|
+
stakerInfo: {
|
|
11660
|
+
name: string;
|
|
11661
|
+
address: `0x${string}`;
|
|
11662
|
+
iconUrl: string;
|
|
11663
|
+
};
|
|
11664
|
+
asset: {
|
|
11665
|
+
type: "nft" | "token";
|
|
11666
|
+
tokenAddress: `0x${string}`;
|
|
11667
|
+
amount?: string | undefined;
|
|
11668
|
+
fiatAmount?: {
|
|
11669
|
+
currency: string;
|
|
11670
|
+
currencyAmount: number;
|
|
11671
|
+
} | null | undefined;
|
|
11672
|
+
};
|
|
11673
|
+
counterparty: `0x${string}`;
|
|
11674
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
10265
11675
|
};
|
|
10266
11676
|
}, {
|
|
10267
11677
|
details: {
|
|
@@ -10339,6 +11749,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10339
11749
|
name: string;
|
|
10340
11750
|
parameters?: unknown[] | undefined;
|
|
10341
11751
|
} | null | undefined;
|
|
11752
|
+
} | {
|
|
11753
|
+
type: "staking";
|
|
11754
|
+
stakerInfo: {
|
|
11755
|
+
name: string;
|
|
11756
|
+
address: string;
|
|
11757
|
+
iconUrl: string;
|
|
11758
|
+
};
|
|
11759
|
+
asset: {
|
|
11760
|
+
type: "nft" | "token";
|
|
11761
|
+
tokenAddress: string;
|
|
11762
|
+
amount?: string | undefined;
|
|
11763
|
+
fiatAmount?: {
|
|
11764
|
+
currency: string;
|
|
11765
|
+
currencyAmount: number;
|
|
11766
|
+
} | null | undefined;
|
|
11767
|
+
};
|
|
11768
|
+
counterparty: string;
|
|
11769
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
10342
11770
|
};
|
|
10343
11771
|
}>, "many">;
|
|
10344
11772
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10419,6 +11847,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10419
11847
|
name: string;
|
|
10420
11848
|
parameters?: unknown[] | undefined;
|
|
10421
11849
|
} | null | undefined;
|
|
11850
|
+
} | {
|
|
11851
|
+
type: "staking";
|
|
11852
|
+
stakerInfo: {
|
|
11853
|
+
name: string;
|
|
11854
|
+
address: `0x${string}`;
|
|
11855
|
+
iconUrl: string;
|
|
11856
|
+
};
|
|
11857
|
+
asset: {
|
|
11858
|
+
type: "nft" | "token";
|
|
11859
|
+
tokenAddress: `0x${string}`;
|
|
11860
|
+
amount?: string | undefined;
|
|
11861
|
+
fiatAmount?: {
|
|
11862
|
+
currency: string;
|
|
11863
|
+
currencyAmount: number;
|
|
11864
|
+
} | null | undefined;
|
|
11865
|
+
};
|
|
11866
|
+
counterparty: `0x${string}`;
|
|
11867
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
10422
11868
|
};
|
|
10423
11869
|
}[];
|
|
10424
11870
|
}, {
|
|
@@ -10499,6 +11945,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
10499
11945
|
name: string;
|
|
10500
11946
|
parameters?: unknown[] | undefined;
|
|
10501
11947
|
} | null | undefined;
|
|
11948
|
+
} | {
|
|
11949
|
+
type: "staking";
|
|
11950
|
+
stakerInfo: {
|
|
11951
|
+
name: string;
|
|
11952
|
+
address: string;
|
|
11953
|
+
iconUrl: string;
|
|
11954
|
+
};
|
|
11955
|
+
asset: {
|
|
11956
|
+
type: "nft" | "token";
|
|
11957
|
+
tokenAddress: string;
|
|
11958
|
+
amount?: string | undefined;
|
|
11959
|
+
fiatAmount?: {
|
|
11960
|
+
currency: string;
|
|
11961
|
+
currencyAmount: number;
|
|
11962
|
+
} | null | undefined;
|
|
11963
|
+
};
|
|
11964
|
+
counterparty: string;
|
|
11965
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
10502
11966
|
};
|
|
10503
11967
|
}[];
|
|
10504
11968
|
}>]>;
|
|
@@ -11312,7 +12776,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11312
12776
|
}>>;
|
|
11313
12777
|
}, "strip", z.ZodTypeAny, {
|
|
11314
12778
|
status: "pending" | "success" | "failure";
|
|
11315
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
12779
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
11316
12780
|
wallet: `0x${string}`;
|
|
11317
12781
|
id: string;
|
|
11318
12782
|
group: "security" | "finance";
|
|
@@ -11391,6 +12855,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11391
12855
|
name: string;
|
|
11392
12856
|
parameters?: unknown[] | undefined;
|
|
11393
12857
|
} | null | undefined;
|
|
12858
|
+
} | {
|
|
12859
|
+
type: "staking";
|
|
12860
|
+
stakerInfo: {
|
|
12861
|
+
name: string;
|
|
12862
|
+
address: `0x${string}`;
|
|
12863
|
+
iconUrl: string;
|
|
12864
|
+
};
|
|
12865
|
+
asset: {
|
|
12866
|
+
type: "nft" | "token";
|
|
12867
|
+
tokenAddress: `0x${string}`;
|
|
12868
|
+
amount?: string | undefined;
|
|
12869
|
+
fiatAmount?: {
|
|
12870
|
+
currency: string;
|
|
12871
|
+
currencyAmount: number;
|
|
12872
|
+
} | null | undefined;
|
|
12873
|
+
};
|
|
12874
|
+
counterparty: `0x${string}`;
|
|
12875
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
11394
12876
|
} | {
|
|
11395
12877
|
type: "multicall";
|
|
11396
12878
|
calls: {
|
|
@@ -11469,6 +12951,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11469
12951
|
name: string;
|
|
11470
12952
|
parameters?: unknown[] | undefined;
|
|
11471
12953
|
} | null | undefined;
|
|
12954
|
+
} | {
|
|
12955
|
+
type: "staking";
|
|
12956
|
+
stakerInfo: {
|
|
12957
|
+
name: string;
|
|
12958
|
+
address: `0x${string}`;
|
|
12959
|
+
iconUrl: string;
|
|
12960
|
+
};
|
|
12961
|
+
asset: {
|
|
12962
|
+
type: "nft" | "token";
|
|
12963
|
+
tokenAddress: `0x${string}`;
|
|
12964
|
+
amount?: string | undefined;
|
|
12965
|
+
fiatAmount?: {
|
|
12966
|
+
currency: string;
|
|
12967
|
+
currencyAmount: number;
|
|
12968
|
+
} | null | undefined;
|
|
12969
|
+
};
|
|
12970
|
+
counterparty: `0x${string}`;
|
|
12971
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
11472
12972
|
};
|
|
11473
12973
|
}[];
|
|
11474
12974
|
};
|
|
@@ -11674,7 +13174,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11674
13174
|
} | undefined;
|
|
11675
13175
|
}, {
|
|
11676
13176
|
status: "pending" | "success" | "failure";
|
|
11677
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
13177
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
11678
13178
|
wallet: string;
|
|
11679
13179
|
id: string;
|
|
11680
13180
|
group: "security" | "finance";
|
|
@@ -11753,6 +13253,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11753
13253
|
name: string;
|
|
11754
13254
|
parameters?: unknown[] | undefined;
|
|
11755
13255
|
} | null | undefined;
|
|
13256
|
+
} | {
|
|
13257
|
+
type: "staking";
|
|
13258
|
+
stakerInfo: {
|
|
13259
|
+
name: string;
|
|
13260
|
+
address: string;
|
|
13261
|
+
iconUrl: string;
|
|
13262
|
+
};
|
|
13263
|
+
asset: {
|
|
13264
|
+
type: "nft" | "token";
|
|
13265
|
+
tokenAddress: string;
|
|
13266
|
+
amount?: string | undefined;
|
|
13267
|
+
fiatAmount?: {
|
|
13268
|
+
currency: string;
|
|
13269
|
+
currencyAmount: number;
|
|
13270
|
+
} | null | undefined;
|
|
13271
|
+
};
|
|
13272
|
+
counterparty: string;
|
|
13273
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
11756
13274
|
} | {
|
|
11757
13275
|
type: "multicall";
|
|
11758
13276
|
calls: {
|
|
@@ -11831,6 +13349,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
11831
13349
|
name: string;
|
|
11832
13350
|
parameters?: unknown[] | undefined;
|
|
11833
13351
|
} | null | undefined;
|
|
13352
|
+
} | {
|
|
13353
|
+
type: "staking";
|
|
13354
|
+
stakerInfo: {
|
|
13355
|
+
name: string;
|
|
13356
|
+
address: string;
|
|
13357
|
+
iconUrl: string;
|
|
13358
|
+
};
|
|
13359
|
+
asset: {
|
|
13360
|
+
type: "nft" | "token";
|
|
13361
|
+
tokenAddress: string;
|
|
13362
|
+
amount?: string | undefined;
|
|
13363
|
+
fiatAmount?: {
|
|
13364
|
+
currency: string;
|
|
13365
|
+
currencyAmount: number;
|
|
13366
|
+
} | null | undefined;
|
|
13367
|
+
};
|
|
13368
|
+
counterparty: string;
|
|
13369
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
11834
13370
|
};
|
|
11835
13371
|
}[];
|
|
11836
13372
|
};
|
|
@@ -12044,7 +13580,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12044
13580
|
page: number;
|
|
12045
13581
|
activities: {
|
|
12046
13582
|
status: "pending" | "success" | "failure";
|
|
12047
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
13583
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
12048
13584
|
wallet: `0x${string}`;
|
|
12049
13585
|
id: string;
|
|
12050
13586
|
group: "security" | "finance";
|
|
@@ -12123,6 +13659,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12123
13659
|
name: string;
|
|
12124
13660
|
parameters?: unknown[] | undefined;
|
|
12125
13661
|
} | null | undefined;
|
|
13662
|
+
} | {
|
|
13663
|
+
type: "staking";
|
|
13664
|
+
stakerInfo: {
|
|
13665
|
+
name: string;
|
|
13666
|
+
address: `0x${string}`;
|
|
13667
|
+
iconUrl: string;
|
|
13668
|
+
};
|
|
13669
|
+
asset: {
|
|
13670
|
+
type: "nft" | "token";
|
|
13671
|
+
tokenAddress: `0x${string}`;
|
|
13672
|
+
amount?: string | undefined;
|
|
13673
|
+
fiatAmount?: {
|
|
13674
|
+
currency: string;
|
|
13675
|
+
currencyAmount: number;
|
|
13676
|
+
} | null | undefined;
|
|
13677
|
+
};
|
|
13678
|
+
counterparty: `0x${string}`;
|
|
13679
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
12126
13680
|
} | {
|
|
12127
13681
|
type: "multicall";
|
|
12128
13682
|
calls: {
|
|
@@ -12201,6 +13755,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12201
13755
|
name: string;
|
|
12202
13756
|
parameters?: unknown[] | undefined;
|
|
12203
13757
|
} | null | undefined;
|
|
13758
|
+
} | {
|
|
13759
|
+
type: "staking";
|
|
13760
|
+
stakerInfo: {
|
|
13761
|
+
name: string;
|
|
13762
|
+
address: `0x${string}`;
|
|
13763
|
+
iconUrl: string;
|
|
13764
|
+
};
|
|
13765
|
+
asset: {
|
|
13766
|
+
type: "nft" | "token";
|
|
13767
|
+
tokenAddress: `0x${string}`;
|
|
13768
|
+
amount?: string | undefined;
|
|
13769
|
+
fiatAmount?: {
|
|
13770
|
+
currency: string;
|
|
13771
|
+
currencyAmount: number;
|
|
13772
|
+
} | null | undefined;
|
|
13773
|
+
};
|
|
13774
|
+
counterparty: `0x${string}`;
|
|
13775
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
12204
13776
|
};
|
|
12205
13777
|
}[];
|
|
12206
13778
|
};
|
|
@@ -12412,7 +13984,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12412
13984
|
page: number;
|
|
12413
13985
|
activities: {
|
|
12414
13986
|
status: "pending" | "success" | "failure";
|
|
12415
|
-
type: "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
13987
|
+
type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
|
|
12416
13988
|
wallet: string;
|
|
12417
13989
|
id: string;
|
|
12418
13990
|
group: "security" | "finance";
|
|
@@ -12491,6 +14063,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12491
14063
|
name: string;
|
|
12492
14064
|
parameters?: unknown[] | undefined;
|
|
12493
14065
|
} | null | undefined;
|
|
14066
|
+
} | {
|
|
14067
|
+
type: "staking";
|
|
14068
|
+
stakerInfo: {
|
|
14069
|
+
name: string;
|
|
14070
|
+
address: string;
|
|
14071
|
+
iconUrl: string;
|
|
14072
|
+
};
|
|
14073
|
+
asset: {
|
|
14074
|
+
type: "nft" | "token";
|
|
14075
|
+
tokenAddress: string;
|
|
14076
|
+
amount?: string | undefined;
|
|
14077
|
+
fiatAmount?: {
|
|
14078
|
+
currency: string;
|
|
14079
|
+
currencyAmount: number;
|
|
14080
|
+
} | null | undefined;
|
|
14081
|
+
};
|
|
14082
|
+
counterparty: string;
|
|
14083
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
12494
14084
|
} | {
|
|
12495
14085
|
type: "multicall";
|
|
12496
14086
|
calls: {
|
|
@@ -12569,6 +14159,24 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
12569
14159
|
name: string;
|
|
12570
14160
|
parameters?: unknown[] | undefined;
|
|
12571
14161
|
} | null | undefined;
|
|
14162
|
+
} | {
|
|
14163
|
+
type: "staking";
|
|
14164
|
+
stakerInfo: {
|
|
14165
|
+
name: string;
|
|
14166
|
+
address: string;
|
|
14167
|
+
iconUrl: string;
|
|
14168
|
+
};
|
|
14169
|
+
asset: {
|
|
14170
|
+
type: "nft" | "token";
|
|
14171
|
+
tokenAddress: string;
|
|
14172
|
+
amount?: string | undefined;
|
|
14173
|
+
fiatAmount?: {
|
|
14174
|
+
currency: string;
|
|
14175
|
+
currencyAmount: number;
|
|
14176
|
+
} | null | undefined;
|
|
14177
|
+
};
|
|
14178
|
+
counterparty: string;
|
|
14179
|
+
stakingAction: "deposit" | "withdraw" | "finalizeWithdraw" | "claim";
|
|
12572
14180
|
};
|
|
12573
14181
|
}[];
|
|
12574
14182
|
};
|