@ledgerhq/revault-api 1.36.0 → 1.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{app-types-CG9mLS0l.d.mts → app-types-BYRSuEx3.d.mts} +1123 -106
- package/lib/fakes.d.mts +169 -21
- package/lib/fakes.mjs +179 -89
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +2674 -180
- package/package.json +1 -1
package/lib/fakes.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestType, VaultRequest, VaultRequestReview, Account } from '@prisma/client';
|
|
2
|
-
import {
|
|
2
|
+
import { C as CurrencyResponse, T as TokenResponse, I as UserChallenge, A as AccountResponse, D as VaultRequestResponse } from './app-types-BYRSuEx3.mjs';
|
|
3
3
|
import z__default from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -882,7 +882,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
882
882
|
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
883
883
|
recipient: z__default.ZodString;
|
|
884
884
|
} & {
|
|
885
|
-
type: z__default.ZodLiteral<"
|
|
885
|
+
type: z__default.ZodLiteral<"SOLANA_LIKE_FUND_AND_SEND_TOKEN">;
|
|
886
886
|
feeStrategy: z__default.ZodObject<{
|
|
887
887
|
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
|
|
888
888
|
}, "strip", z__default.ZodTypeAny, {
|
|
@@ -891,7 +891,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
891
891
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
892
892
|
}>;
|
|
893
893
|
}, "strip", z__default.ZodTypeAny, {
|
|
894
|
-
type: "
|
|
894
|
+
type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
|
|
895
895
|
currency: string;
|
|
896
896
|
recipient: string;
|
|
897
897
|
amount: string;
|
|
@@ -900,7 +900,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
900
900
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
901
901
|
};
|
|
902
902
|
}, {
|
|
903
|
-
type: "
|
|
903
|
+
type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
|
|
904
904
|
currency: string;
|
|
905
905
|
recipient: string;
|
|
906
906
|
amount: string;
|
|
@@ -908,6 +908,31 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
908
908
|
feeStrategy: {
|
|
909
909
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
910
910
|
};
|
|
911
|
+
}>, z__default.ZodObject<{
|
|
912
|
+
type: z__default.ZodLiteral<"SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT">;
|
|
913
|
+
currency: z__default.ZodString;
|
|
914
|
+
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
915
|
+
feeStrategy: z__default.ZodObject<{
|
|
916
|
+
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
|
|
917
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
918
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
919
|
+
}, {
|
|
920
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
921
|
+
}>;
|
|
922
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
923
|
+
type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
|
|
924
|
+
currency: string;
|
|
925
|
+
maxFee: string | null;
|
|
926
|
+
feeStrategy: {
|
|
927
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
928
|
+
};
|
|
929
|
+
}, {
|
|
930
|
+
type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
|
|
931
|
+
currency: string;
|
|
932
|
+
maxFee: string | null;
|
|
933
|
+
feeStrategy: {
|
|
934
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
935
|
+
};
|
|
911
936
|
}>, z__default.ZodObject<{
|
|
912
937
|
amount: z__default.ZodString;
|
|
913
938
|
currency: z__default.ZodString;
|
|
@@ -1048,11 +1073,12 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1048
1073
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
1049
1074
|
};
|
|
1050
1075
|
}>, z__default.ZodObject<{
|
|
1051
|
-
|
|
1052
|
-
amount: z__default.ZodOptional<z__default.ZodString>;
|
|
1076
|
+
amount: z__default.ZodString;
|
|
1053
1077
|
currency: z__default.ZodString;
|
|
1054
1078
|
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
1055
1079
|
recipient: z__default.ZodString;
|
|
1080
|
+
} & {
|
|
1081
|
+
type: z__default.ZodLiteral<"TEZOS_LIKE_SEND">;
|
|
1056
1082
|
feeStrategy: z__default.ZodObject<{
|
|
1057
1083
|
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST", "CUSTOM"]>;
|
|
1058
1084
|
} & {
|
|
@@ -1068,34 +1094,33 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1068
1094
|
storageLimit: string | null;
|
|
1069
1095
|
}>;
|
|
1070
1096
|
}, "strip", z__default.ZodTypeAny, {
|
|
1071
|
-
type: "
|
|
1097
|
+
type: "TEZOS_LIKE_SEND";
|
|
1072
1098
|
currency: string;
|
|
1073
1099
|
recipient: string;
|
|
1100
|
+
amount: string;
|
|
1074
1101
|
maxFee: string | null;
|
|
1075
1102
|
feeStrategy: {
|
|
1076
1103
|
type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
|
|
1077
1104
|
gasLimit: string;
|
|
1078
1105
|
storageLimit: string | null;
|
|
1079
1106
|
};
|
|
1080
|
-
amount?: string | undefined;
|
|
1081
1107
|
}, {
|
|
1082
|
-
type: "
|
|
1108
|
+
type: "TEZOS_LIKE_SEND";
|
|
1083
1109
|
currency: string;
|
|
1084
1110
|
recipient: string;
|
|
1111
|
+
amount: string;
|
|
1085
1112
|
maxFee: string | null;
|
|
1086
1113
|
feeStrategy: {
|
|
1087
1114
|
type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
|
|
1088
1115
|
gasLimit: string;
|
|
1089
1116
|
storageLimit: string | null;
|
|
1090
1117
|
};
|
|
1091
|
-
amount?: string | undefined;
|
|
1092
1118
|
}>, z__default.ZodObject<{
|
|
1093
|
-
|
|
1119
|
+
type: z__default.ZodLiteral<"TEZOS_LIKE_DELEGATE">;
|
|
1120
|
+
amount: z__default.ZodOptional<z__default.ZodString>;
|
|
1094
1121
|
currency: z__default.ZodString;
|
|
1095
1122
|
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
1096
1123
|
recipient: z__default.ZodString;
|
|
1097
|
-
} & {
|
|
1098
|
-
type: z__default.ZodLiteral<"TEZOS_LIKE_SEND">;
|
|
1099
1124
|
feeStrategy: z__default.ZodObject<{
|
|
1100
1125
|
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST", "CUSTOM"]>;
|
|
1101
1126
|
} & {
|
|
@@ -1111,27 +1136,27 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1111
1136
|
storageLimit: string | null;
|
|
1112
1137
|
}>;
|
|
1113
1138
|
}, "strip", z__default.ZodTypeAny, {
|
|
1114
|
-
type: "
|
|
1139
|
+
type: "TEZOS_LIKE_DELEGATE";
|
|
1115
1140
|
currency: string;
|
|
1116
1141
|
recipient: string;
|
|
1117
|
-
amount: string;
|
|
1118
1142
|
maxFee: string | null;
|
|
1119
1143
|
feeStrategy: {
|
|
1120
1144
|
type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
|
|
1121
1145
|
gasLimit: string;
|
|
1122
1146
|
storageLimit: string | null;
|
|
1123
1147
|
};
|
|
1148
|
+
amount?: string | undefined;
|
|
1124
1149
|
}, {
|
|
1125
|
-
type: "
|
|
1150
|
+
type: "TEZOS_LIKE_DELEGATE";
|
|
1126
1151
|
currency: string;
|
|
1127
1152
|
recipient: string;
|
|
1128
|
-
amount: string;
|
|
1129
1153
|
maxFee: string | null;
|
|
1130
1154
|
feeStrategy: {
|
|
1131
1155
|
type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
|
|
1132
1156
|
gasLimit: string;
|
|
1133
1157
|
storageLimit: string | null;
|
|
1134
1158
|
};
|
|
1159
|
+
amount?: string | undefined;
|
|
1135
1160
|
}>, z__default.ZodObject<{
|
|
1136
1161
|
type: z__default.ZodLiteral<"TEZOS_LIKE_UNDELEGATE">;
|
|
1137
1162
|
amount: z__default.ZodOptional<z__default.ZodString>;
|
|
@@ -1174,6 +1199,70 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1174
1199
|
};
|
|
1175
1200
|
recipient?: string | undefined;
|
|
1176
1201
|
amount?: string | undefined;
|
|
1202
|
+
}>, z__default.ZodObject<{
|
|
1203
|
+
amount: z__default.ZodString;
|
|
1204
|
+
currency: z__default.ZodString;
|
|
1205
|
+
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
1206
|
+
recipient: z__default.ZodString;
|
|
1207
|
+
} & {
|
|
1208
|
+
type: z__default.ZodLiteral<"TRON_LIKE_SEND">;
|
|
1209
|
+
feeStrategy: z__default.ZodObject<{
|
|
1210
|
+
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
|
|
1211
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1212
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1213
|
+
}, {
|
|
1214
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1215
|
+
}>;
|
|
1216
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1217
|
+
type: "TRON_LIKE_SEND";
|
|
1218
|
+
currency: string;
|
|
1219
|
+
recipient: string;
|
|
1220
|
+
amount: string;
|
|
1221
|
+
maxFee: string | null;
|
|
1222
|
+
feeStrategy: {
|
|
1223
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1224
|
+
};
|
|
1225
|
+
}, {
|
|
1226
|
+
type: "TRON_LIKE_SEND";
|
|
1227
|
+
currency: string;
|
|
1228
|
+
recipient: string;
|
|
1229
|
+
amount: string;
|
|
1230
|
+
maxFee: string | null;
|
|
1231
|
+
feeStrategy: {
|
|
1232
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1233
|
+
};
|
|
1234
|
+
}>, z__default.ZodObject<{
|
|
1235
|
+
amount: z__default.ZodString;
|
|
1236
|
+
currency: z__default.ZodString;
|
|
1237
|
+
maxFee: z__default.ZodNullable<z__default.ZodString>;
|
|
1238
|
+
recipient: z__default.ZodString;
|
|
1239
|
+
} & {
|
|
1240
|
+
type: z__default.ZodLiteral<"TRON_LIKE_SEND_TOKEN">;
|
|
1241
|
+
feeStrategy: z__default.ZodObject<{
|
|
1242
|
+
type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
|
|
1243
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1244
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1245
|
+
}, {
|
|
1246
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1247
|
+
}>;
|
|
1248
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1249
|
+
type: "TRON_LIKE_SEND_TOKEN";
|
|
1250
|
+
currency: string;
|
|
1251
|
+
recipient: string;
|
|
1252
|
+
amount: string;
|
|
1253
|
+
maxFee: string | null;
|
|
1254
|
+
feeStrategy: {
|
|
1255
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1256
|
+
};
|
|
1257
|
+
}, {
|
|
1258
|
+
type: "TRON_LIKE_SEND_TOKEN";
|
|
1259
|
+
currency: string;
|
|
1260
|
+
recipient: string;
|
|
1261
|
+
amount: string;
|
|
1262
|
+
maxFee: string | null;
|
|
1263
|
+
feeStrategy: {
|
|
1264
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1265
|
+
};
|
|
1177
1266
|
}>]>;
|
|
1178
1267
|
}, "strip", z__default.ZodTypeAny, {
|
|
1179
1268
|
accountId: string;
|
|
@@ -1428,7 +1517,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1428
1517
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
1429
1518
|
};
|
|
1430
1519
|
} | {
|
|
1431
|
-
type: "
|
|
1520
|
+
type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
|
|
1432
1521
|
currency: string;
|
|
1433
1522
|
recipient: string;
|
|
1434
1523
|
amount: string;
|
|
@@ -1436,6 +1525,13 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1436
1525
|
feeStrategy: {
|
|
1437
1526
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
1438
1527
|
};
|
|
1528
|
+
} | {
|
|
1529
|
+
type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
|
|
1530
|
+
currency: string;
|
|
1531
|
+
maxFee: string | null;
|
|
1532
|
+
feeStrategy: {
|
|
1533
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1534
|
+
};
|
|
1439
1535
|
} | {
|
|
1440
1536
|
type: "CARDANO_LIKE_SEND";
|
|
1441
1537
|
currency: string;
|
|
@@ -1499,6 +1595,24 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1499
1595
|
type: "GENERIC_TRANSACTION";
|
|
1500
1596
|
currency: string;
|
|
1501
1597
|
rawTx: string;
|
|
1598
|
+
} | {
|
|
1599
|
+
type: "TRON_LIKE_SEND";
|
|
1600
|
+
currency: string;
|
|
1601
|
+
recipient: string;
|
|
1602
|
+
amount: string;
|
|
1603
|
+
maxFee: string | null;
|
|
1604
|
+
feeStrategy: {
|
|
1605
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1606
|
+
};
|
|
1607
|
+
} | {
|
|
1608
|
+
type: "TRON_LIKE_SEND_TOKEN";
|
|
1609
|
+
currency: string;
|
|
1610
|
+
recipient: string;
|
|
1611
|
+
amount: string;
|
|
1612
|
+
maxFee: string | null;
|
|
1613
|
+
feeStrategy: {
|
|
1614
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1615
|
+
};
|
|
1502
1616
|
};
|
|
1503
1617
|
}, {
|
|
1504
1618
|
accountId: string;
|
|
@@ -1753,7 +1867,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1753
1867
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
1754
1868
|
};
|
|
1755
1869
|
} | {
|
|
1756
|
-
type: "
|
|
1870
|
+
type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
|
|
1757
1871
|
currency: string;
|
|
1758
1872
|
recipient: string;
|
|
1759
1873
|
amount: string;
|
|
@@ -1761,6 +1875,13 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1761
1875
|
feeStrategy: {
|
|
1762
1876
|
type: "FAST" | "NORMAL" | "SLOW";
|
|
1763
1877
|
};
|
|
1878
|
+
} | {
|
|
1879
|
+
type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
|
|
1880
|
+
currency: string;
|
|
1881
|
+
maxFee: string | null;
|
|
1882
|
+
feeStrategy: {
|
|
1883
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1884
|
+
};
|
|
1764
1885
|
} | {
|
|
1765
1886
|
type: "CARDANO_LIKE_SEND";
|
|
1766
1887
|
currency: string;
|
|
@@ -1824,6 +1945,24 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
1824
1945
|
type: "GENERIC_TRANSACTION";
|
|
1825
1946
|
currency: string;
|
|
1826
1947
|
rawTx: string;
|
|
1948
|
+
} | {
|
|
1949
|
+
type: "TRON_LIKE_SEND";
|
|
1950
|
+
currency: string;
|
|
1951
|
+
recipient: string;
|
|
1952
|
+
amount: string;
|
|
1953
|
+
maxFee: string | null;
|
|
1954
|
+
feeStrategy: {
|
|
1955
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1956
|
+
};
|
|
1957
|
+
} | {
|
|
1958
|
+
type: "TRON_LIKE_SEND_TOKEN";
|
|
1959
|
+
currency: string;
|
|
1960
|
+
recipient: string;
|
|
1961
|
+
amount: string;
|
|
1962
|
+
maxFee: string | null;
|
|
1963
|
+
feeStrategy: {
|
|
1964
|
+
type: "FAST" | "NORMAL" | "SLOW";
|
|
1965
|
+
};
|
|
1827
1966
|
};
|
|
1828
1967
|
}>;
|
|
1829
1968
|
type CreateTransactionRequestData = z__default.infer<typeof zCreateTransactionRequestData>;
|
|
@@ -2134,6 +2273,14 @@ declare const zEditPublicPolicyRequestData: z__default.ZodObject<{
|
|
|
2134
2273
|
}>;
|
|
2135
2274
|
type EditPublicPolicyRequestData = z__default.infer<typeof zEditPublicPolicyRequestData>;
|
|
2136
2275
|
|
|
2276
|
+
type AllAssets = {
|
|
2277
|
+
currencies: CurrencyResponse[];
|
|
2278
|
+
tokens: TokenResponse[];
|
|
2279
|
+
};
|
|
2280
|
+
declare global {
|
|
2281
|
+
var _allAssetsPromise: Promise<AllAssets> | undefined;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2137
2284
|
declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
|
|
2138
2285
|
name: z__default.ZodString;
|
|
2139
2286
|
currency: z__default.ZodString;
|
|
@@ -2403,10 +2550,11 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
|
|
|
2403
2550
|
GENERIC_LIKE: "GENERIC_LIKE";
|
|
2404
2551
|
RAW_SIGNING: "RAW_SIGNING";
|
|
2405
2552
|
SUI_LIKE: "SUI_LIKE";
|
|
2553
|
+
TRON_LIKE: "TRON_LIKE";
|
|
2406
2554
|
}>;
|
|
2407
2555
|
}, "strip", z__default.ZodTypeAny, {
|
|
2408
2556
|
name: string;
|
|
2409
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
2557
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE" | "TRON_LIKE";
|
|
2410
2558
|
derivationPath: string;
|
|
2411
2559
|
currency: string;
|
|
2412
2560
|
index: number;
|
|
@@ -2454,7 +2602,7 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
|
|
|
2454
2602
|
contractAddress?: string | undefined;
|
|
2455
2603
|
}, {
|
|
2456
2604
|
name: string;
|
|
2457
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
2605
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE" | "TRON_LIKE";
|
|
2458
2606
|
derivationPath: string;
|
|
2459
2607
|
currency: string;
|
|
2460
2608
|
index: number;
|