@ledgerhq/revault-api 1.43.0 → 1.43.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-BxhO5dk7.d.mts → app-types-C5PTn2QL.d.mts} +125 -4
- package/lib/fakes.d.mts +26 -2
- package/lib/fakes.mjs +50 -3
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +291 -10
- package/package.json +2 -2
package/lib/index.d.mts
CHANGED
|
@@ -11,8 +11,8 @@ import * as _trpc_server_unstable_core_do_not_import from '@trpc/server/unstable
|
|
|
11
11
|
import * as fastify_types_type_provider from 'fastify/types/type-provider';
|
|
12
12
|
import * as http from 'http';
|
|
13
13
|
import * as fastify from 'fastify';
|
|
14
|
-
import { A as AssetResponse } from './app-types-
|
|
15
|
-
export { a as AccountFreshAddress, b as AccountLiveDataResponse, c as AccountResponse, d as AccountSortBy, D as ApproveVaultRequestInput, E as Challenge, x as ChallengeResponse, C as CurrencyResponse, R as RequestSortBy, S as SoftChallenge, n as TokenResponse, T as TransactionResponse, V as VaultRequestCreateInput, u as VaultRequestResponse, y as genTransactionSchemas, z as zAccountFreshAddress, e as zAccountLiveDataResponse, f as zAccountResponse, g as zAccountSortBy, B as zApproveVaultRequestInput, o as zAssetCapabilitiesResponse, p as zAssetResponse, h as zBalance, w as zChallengeResponse, q as zCurrencyResponse, m as zEstimateFeesResponse, v as zRequestSortBy, i as zStake, j as zStakeSortBy, k as zStakingValidator, l as zStakingValidatorSortBy, r as zTokenResponse, s as zVaultRequestCreateInput, t as zVaultRequestResponse } from './app-types-
|
|
14
|
+
import { A as AssetResponse } from './app-types-C5PTn2QL.mjs';
|
|
15
|
+
export { a as AccountFreshAddress, b as AccountLiveDataResponse, c as AccountResponse, d as AccountSortBy, D as ApproveVaultRequestInput, E as Challenge, x as ChallengeResponse, C as CurrencyResponse, R as RequestSortBy, S as SoftChallenge, n as TokenResponse, T as TransactionResponse, V as VaultRequestCreateInput, u as VaultRequestResponse, y as genTransactionSchemas, z as zAccountFreshAddress, e as zAccountLiveDataResponse, f as zAccountResponse, g as zAccountSortBy, B as zApproveVaultRequestInput, o as zAssetCapabilitiesResponse, p as zAssetResponse, h as zBalance, w as zChallengeResponse, q as zCurrencyResponse, m as zEstimateFeesResponse, v as zRequestSortBy, i as zStake, j as zStakeSortBy, k as zStakingValidator, l as zStakingValidatorSortBy, r as zTokenResponse, s as zVaultRequestCreateInput, t as zVaultRequestResponse } from './app-types-C5PTn2QL.mjs';
|
|
16
16
|
|
|
17
17
|
declare const zGovernableAction: z$1.ZodEnum<{
|
|
18
18
|
SEND: "SEND";
|
|
@@ -181,6 +181,8 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
181
181
|
recipients: z__default.ZodArray<z__default.ZodString>;
|
|
182
182
|
type: z__default.ZodEnum<{
|
|
183
183
|
CANTON_LIKE_SEND: "CANTON_LIKE_SEND";
|
|
184
|
+
CANTON_LIKE_SEND_TOKEN: "CANTON_LIKE_SEND_TOKEN";
|
|
185
|
+
CANTON_LIKE_WITHDRAW: "CANTON_LIKE_WITHDRAW";
|
|
184
186
|
CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
|
|
185
187
|
CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
|
|
186
188
|
CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
|
|
@@ -584,6 +586,8 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
584
586
|
recipients: z__default.ZodArray<z__default.ZodString>;
|
|
585
587
|
type: z__default.ZodEnum<{
|
|
586
588
|
CANTON_LIKE_SEND: "CANTON_LIKE_SEND";
|
|
589
|
+
CANTON_LIKE_SEND_TOKEN: "CANTON_LIKE_SEND_TOKEN";
|
|
590
|
+
CANTON_LIKE_WITHDRAW: "CANTON_LIKE_WITHDRAW";
|
|
587
591
|
CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
|
|
588
592
|
CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
|
|
589
593
|
CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
|
|
@@ -2635,6 +2639,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2635
2639
|
currency: string;
|
|
2636
2640
|
network: string;
|
|
2637
2641
|
contractAddress: string | null;
|
|
2642
|
+
tokenIdentifier: string | null;
|
|
2638
2643
|
index: number;
|
|
2639
2644
|
derivationPath: string;
|
|
2640
2645
|
status: "ACTIVE" | "INACTIVE";
|
|
@@ -2730,6 +2735,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2730
2735
|
currency: string;
|
|
2731
2736
|
network: string;
|
|
2732
2737
|
contractAddress: string | null;
|
|
2738
|
+
tokenIdentifier: string | null;
|
|
2733
2739
|
index: number;
|
|
2734
2740
|
derivationPath: string;
|
|
2735
2741
|
status: "ACTIVE" | "INACTIVE";
|
|
@@ -2881,7 +2887,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2881
2887
|
fee: string;
|
|
2882
2888
|
senders: string[];
|
|
2883
2889
|
recipients: string[];
|
|
2884
|
-
type: "CANTON_LIKE_SEND" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_PRE_APPROVAL" | "CANTON_LIKE_TAP";
|
|
2890
|
+
type: "CANTON_LIKE_SEND" | "CANTON_LIKE_SEND_TOKEN" | "CANTON_LIKE_WITHDRAW" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_PRE_APPROVAL" | "CANTON_LIKE_TAP";
|
|
2885
2891
|
note: {
|
|
2886
2892
|
title: string;
|
|
2887
2893
|
content: string;
|
|
@@ -3184,6 +3190,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3184
3190
|
recipient: string;
|
|
3185
3191
|
amount: string;
|
|
3186
3192
|
type: "CANTON_LIKE_SEND";
|
|
3193
|
+
executeBeforeSeconds?: number | undefined;
|
|
3194
|
+
} | {
|
|
3195
|
+
currency: string;
|
|
3196
|
+
recipient: string;
|
|
3197
|
+
amount: string;
|
|
3198
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
3199
|
+
executeBeforeSeconds?: number | undefined;
|
|
3200
|
+
} | {
|
|
3201
|
+
currency: string;
|
|
3202
|
+
transferProposal: {
|
|
3203
|
+
amount: string;
|
|
3204
|
+
contractId: string;
|
|
3205
|
+
instrumentId: string;
|
|
3206
|
+
expiresAtMicros: number;
|
|
3207
|
+
memo: string | null;
|
|
3208
|
+
sender: string;
|
|
3209
|
+
recipient: string;
|
|
3210
|
+
};
|
|
3211
|
+
reason: string | null;
|
|
3212
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
3187
3213
|
} | {
|
|
3188
3214
|
currency: string;
|
|
3189
3215
|
transferProposal: {
|
|
@@ -4158,6 +4184,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4158
4184
|
currency: {
|
|
4159
4185
|
network: string;
|
|
4160
4186
|
contractAddress: string | null;
|
|
4187
|
+
tokenIdentifier: string | null;
|
|
4161
4188
|
};
|
|
4162
4189
|
}[];
|
|
4163
4190
|
meta: {
|
|
@@ -5808,6 +5835,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5808
5835
|
recipient: string;
|
|
5809
5836
|
amount: string;
|
|
5810
5837
|
type: "CANTON_LIKE_SEND";
|
|
5838
|
+
executeBeforeSeconds?: number | undefined;
|
|
5811
5839
|
} | {
|
|
5812
5840
|
amount: string;
|
|
5813
5841
|
currency: string;
|
|
@@ -5993,6 +6021,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5993
6021
|
recipient: string;
|
|
5994
6022
|
amount: string;
|
|
5995
6023
|
type: "CANTON_LIKE_SEND";
|
|
6024
|
+
executeBeforeSeconds?: number | undefined;
|
|
5996
6025
|
} | {
|
|
5997
6026
|
amount: string;
|
|
5998
6027
|
currency: string;
|
|
@@ -6142,6 +6171,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6142
6171
|
recipient: string;
|
|
6143
6172
|
amount: string;
|
|
6144
6173
|
type: "CANTON_LIKE_SEND";
|
|
6174
|
+
executeBeforeSeconds?: number | undefined;
|
|
6145
6175
|
} | {
|
|
6146
6176
|
amount: string;
|
|
6147
6177
|
currency: string;
|
|
@@ -6326,6 +6356,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6326
6356
|
recipient: string;
|
|
6327
6357
|
amount: string;
|
|
6328
6358
|
type: "CANTON_LIKE_SEND";
|
|
6359
|
+
executeBeforeSeconds?: number | undefined;
|
|
6360
|
+
} | {
|
|
6361
|
+
currency: string;
|
|
6362
|
+
recipient: string;
|
|
6363
|
+
amount: string;
|
|
6364
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
6365
|
+
executeBeforeSeconds?: number | undefined;
|
|
6366
|
+
} | {
|
|
6367
|
+
currency: string;
|
|
6368
|
+
transferProposal: {
|
|
6369
|
+
amount: string;
|
|
6370
|
+
contractId: string;
|
|
6371
|
+
instrumentId: string;
|
|
6372
|
+
expiresAtMicros: number;
|
|
6373
|
+
memo: string | null;
|
|
6374
|
+
sender: string;
|
|
6375
|
+
recipient: string;
|
|
6376
|
+
};
|
|
6377
|
+
reason: string | null;
|
|
6378
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
6329
6379
|
} | {
|
|
6330
6380
|
currency: string;
|
|
6331
6381
|
transferProposal: {
|
|
@@ -7434,6 +7484,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
7434
7484
|
} | {
|
|
7435
7485
|
type: "CREATE_ACCOUNT";
|
|
7436
7486
|
data: {
|
|
7487
|
+
contractAddress: string | null;
|
|
7488
|
+
tokenIdentifier: string | null;
|
|
7437
7489
|
currency: string;
|
|
7438
7490
|
name: string;
|
|
7439
7491
|
governance: {
|
|
@@ -7480,7 +7532,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
7480
7532
|
index: number;
|
|
7481
7533
|
derivationPath: string;
|
|
7482
7534
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
7483
|
-
contractAddress?: string | undefined;
|
|
7484
7535
|
};
|
|
7485
7536
|
id: string;
|
|
7486
7537
|
legacyId: number;
|
|
@@ -8238,6 +8289,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
8238
8289
|
recipient: string;
|
|
8239
8290
|
amount: string;
|
|
8240
8291
|
type: "CANTON_LIKE_SEND";
|
|
8292
|
+
executeBeforeSeconds?: number | undefined;
|
|
8241
8293
|
} | {
|
|
8242
8294
|
amount: string;
|
|
8243
8295
|
currency: string;
|
|
@@ -8423,6 +8475,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
8423
8475
|
recipient: string;
|
|
8424
8476
|
amount: string;
|
|
8425
8477
|
type: "CANTON_LIKE_SEND";
|
|
8478
|
+
executeBeforeSeconds?: number | undefined;
|
|
8426
8479
|
} | {
|
|
8427
8480
|
amount: string;
|
|
8428
8481
|
currency: string;
|
|
@@ -8572,6 +8625,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
8572
8625
|
recipient: string;
|
|
8573
8626
|
amount: string;
|
|
8574
8627
|
type: "CANTON_LIKE_SEND";
|
|
8628
|
+
executeBeforeSeconds?: number | undefined;
|
|
8575
8629
|
} | {
|
|
8576
8630
|
amount: string;
|
|
8577
8631
|
currency: string;
|
|
@@ -8756,6 +8810,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
8756
8810
|
recipient: string;
|
|
8757
8811
|
amount: string;
|
|
8758
8812
|
type: "CANTON_LIKE_SEND";
|
|
8813
|
+
executeBeforeSeconds?: number | undefined;
|
|
8814
|
+
} | {
|
|
8815
|
+
currency: string;
|
|
8816
|
+
recipient: string;
|
|
8817
|
+
amount: string;
|
|
8818
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
8819
|
+
executeBeforeSeconds?: number | undefined;
|
|
8820
|
+
} | {
|
|
8821
|
+
currency: string;
|
|
8822
|
+
transferProposal: {
|
|
8823
|
+
amount: string;
|
|
8824
|
+
contractId: string;
|
|
8825
|
+
instrumentId: string;
|
|
8826
|
+
expiresAtMicros: number;
|
|
8827
|
+
memo: string | null;
|
|
8828
|
+
sender: string;
|
|
8829
|
+
recipient: string;
|
|
8830
|
+
};
|
|
8831
|
+
reason: string | null;
|
|
8832
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
8759
8833
|
} | {
|
|
8760
8834
|
currency: string;
|
|
8761
8835
|
transferProposal: {
|
|
@@ -9864,6 +9938,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
9864
9938
|
} | {
|
|
9865
9939
|
type: "CREATE_ACCOUNT";
|
|
9866
9940
|
data: {
|
|
9941
|
+
contractAddress: string | null;
|
|
9942
|
+
tokenIdentifier: string | null;
|
|
9867
9943
|
currency: string;
|
|
9868
9944
|
name: string;
|
|
9869
9945
|
governance: {
|
|
@@ -9910,7 +9986,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
9910
9986
|
index: number;
|
|
9911
9987
|
derivationPath: string;
|
|
9912
9988
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
9913
|
-
contractAddress?: string | undefined;
|
|
9914
9989
|
};
|
|
9915
9990
|
id: string;
|
|
9916
9991
|
legacyId: number;
|
|
@@ -10482,6 +10557,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
10482
10557
|
recipient: string;
|
|
10483
10558
|
amount: string;
|
|
10484
10559
|
type: "CANTON_LIKE_SEND";
|
|
10560
|
+
executeBeforeSeconds?: number | undefined;
|
|
10485
10561
|
} | {
|
|
10486
10562
|
amount: string;
|
|
10487
10563
|
currency: string;
|
|
@@ -10615,6 +10691,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
10615
10691
|
recipient: string;
|
|
10616
10692
|
amount: string;
|
|
10617
10693
|
type: "CANTON_LIKE_SEND";
|
|
10694
|
+
executeBeforeSeconds?: number | undefined;
|
|
10618
10695
|
} | {
|
|
10619
10696
|
amount: string;
|
|
10620
10697
|
currency: string;
|
|
@@ -10738,6 +10815,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
10738
10815
|
recipient: string;
|
|
10739
10816
|
amount: string;
|
|
10740
10817
|
type: "CANTON_LIKE_SEND";
|
|
10818
|
+
executeBeforeSeconds?: number | undefined;
|
|
10741
10819
|
} | {
|
|
10742
10820
|
amount: string;
|
|
10743
10821
|
currency: string;
|
|
@@ -10870,6 +10948,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
10870
10948
|
recipient: string;
|
|
10871
10949
|
amount: string;
|
|
10872
10950
|
type: "CANTON_LIKE_SEND";
|
|
10951
|
+
executeBeforeSeconds?: number | undefined;
|
|
10952
|
+
} | {
|
|
10953
|
+
currency: string;
|
|
10954
|
+
recipient: string;
|
|
10955
|
+
amount: string;
|
|
10956
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
10957
|
+
executeBeforeSeconds?: number | undefined;
|
|
10958
|
+
} | {
|
|
10959
|
+
currency: string;
|
|
10960
|
+
transferProposal: {
|
|
10961
|
+
amount: string;
|
|
10962
|
+
contractId: string;
|
|
10963
|
+
instrumentId: string;
|
|
10964
|
+
expiresAtMicros: number;
|
|
10965
|
+
memo: string | null;
|
|
10966
|
+
sender: string;
|
|
10967
|
+
recipient: string;
|
|
10968
|
+
};
|
|
10969
|
+
reason: string | null;
|
|
10970
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
10873
10971
|
} | {
|
|
10874
10972
|
currency: string;
|
|
10875
10973
|
transferProposal: {
|
|
@@ -11532,6 +11630,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
11532
11630
|
data: {
|
|
11533
11631
|
name: string;
|
|
11534
11632
|
currency: string;
|
|
11633
|
+
contractAddress: string | null;
|
|
11634
|
+
tokenIdentifier: string | null;
|
|
11535
11635
|
governance: {
|
|
11536
11636
|
type: "CLASSIC";
|
|
11537
11637
|
policy: {
|
|
@@ -11574,7 +11674,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
11574
11674
|
};
|
|
11575
11675
|
};
|
|
11576
11676
|
index?: number | undefined;
|
|
11577
|
-
contractAddress?: string | undefined;
|
|
11578
11677
|
};
|
|
11579
11678
|
note?: {
|
|
11580
11679
|
title: string;
|
|
@@ -11977,6 +12076,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
11977
12076
|
recipient: string;
|
|
11978
12077
|
amount: string;
|
|
11979
12078
|
type: "CANTON_LIKE_SEND";
|
|
12079
|
+
executeBeforeSeconds?: number | undefined;
|
|
11980
12080
|
} | {
|
|
11981
12081
|
amount: string;
|
|
11982
12082
|
currency: string;
|
|
@@ -12162,6 +12262,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
12162
12262
|
recipient: string;
|
|
12163
12263
|
amount: string;
|
|
12164
12264
|
type: "CANTON_LIKE_SEND";
|
|
12265
|
+
executeBeforeSeconds?: number | undefined;
|
|
12165
12266
|
} | {
|
|
12166
12267
|
amount: string;
|
|
12167
12268
|
currency: string;
|
|
@@ -12311,6 +12412,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
12311
12412
|
recipient: string;
|
|
12312
12413
|
amount: string;
|
|
12313
12414
|
type: "CANTON_LIKE_SEND";
|
|
12415
|
+
executeBeforeSeconds?: number | undefined;
|
|
12314
12416
|
} | {
|
|
12315
12417
|
amount: string;
|
|
12316
12418
|
currency: string;
|
|
@@ -12495,6 +12597,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
12495
12597
|
recipient: string;
|
|
12496
12598
|
amount: string;
|
|
12497
12599
|
type: "CANTON_LIKE_SEND";
|
|
12600
|
+
executeBeforeSeconds?: number | undefined;
|
|
12601
|
+
} | {
|
|
12602
|
+
currency: string;
|
|
12603
|
+
recipient: string;
|
|
12604
|
+
amount: string;
|
|
12605
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
12606
|
+
executeBeforeSeconds?: number | undefined;
|
|
12607
|
+
} | {
|
|
12608
|
+
currency: string;
|
|
12609
|
+
transferProposal: {
|
|
12610
|
+
amount: string;
|
|
12611
|
+
contractId: string;
|
|
12612
|
+
instrumentId: string;
|
|
12613
|
+
expiresAtMicros: number;
|
|
12614
|
+
memo: string | null;
|
|
12615
|
+
sender: string;
|
|
12616
|
+
recipient: string;
|
|
12617
|
+
};
|
|
12618
|
+
reason: string | null;
|
|
12619
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
12498
12620
|
} | {
|
|
12499
12621
|
currency: string;
|
|
12500
12622
|
transferProposal: {
|
|
@@ -13603,6 +13725,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
13603
13725
|
} | {
|
|
13604
13726
|
type: "CREATE_ACCOUNT";
|
|
13605
13727
|
data: {
|
|
13728
|
+
contractAddress: string | null;
|
|
13729
|
+
tokenIdentifier: string | null;
|
|
13606
13730
|
currency: string;
|
|
13607
13731
|
name: string;
|
|
13608
13732
|
governance: {
|
|
@@ -13649,7 +13773,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
13649
13773
|
index: number;
|
|
13650
13774
|
derivationPath: string;
|
|
13651
13775
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
13652
|
-
contractAddress?: string | undefined;
|
|
13653
13776
|
};
|
|
13654
13777
|
id: string;
|
|
13655
13778
|
legacyId: number;
|
|
@@ -14227,6 +14350,91 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
14227
14350
|
};
|
|
14228
14351
|
} & RateLimitMetricsMeta;
|
|
14229
14352
|
}>;
|
|
14353
|
+
createHederaTransaction: _trpc_server.TRPCMutationProcedure<{
|
|
14354
|
+
input: {
|
|
14355
|
+
accountId: string;
|
|
14356
|
+
transaction: unknown;
|
|
14357
|
+
note?: {
|
|
14358
|
+
title: string;
|
|
14359
|
+
content: string;
|
|
14360
|
+
} | undefined;
|
|
14361
|
+
};
|
|
14362
|
+
output: {
|
|
14363
|
+
type: "CREATE_TRANSACTION";
|
|
14364
|
+
data: {
|
|
14365
|
+
accountId: string;
|
|
14366
|
+
transaction: {
|
|
14367
|
+
amount: string;
|
|
14368
|
+
currency: string;
|
|
14369
|
+
maxFee: string | null;
|
|
14370
|
+
recipient: string;
|
|
14371
|
+
type: "HEDERA_LIKE_SEND";
|
|
14372
|
+
feeStrategy: {
|
|
14373
|
+
type: "SLOW" | "NORMAL" | "FAST";
|
|
14374
|
+
};
|
|
14375
|
+
} | {
|
|
14376
|
+
amount: string;
|
|
14377
|
+
currency: string;
|
|
14378
|
+
maxFee: string | null;
|
|
14379
|
+
recipient: string;
|
|
14380
|
+
type: "HEDERA_LIKE_SEND_TOKEN";
|
|
14381
|
+
feeStrategy: {
|
|
14382
|
+
type: "SLOW" | "NORMAL" | "FAST";
|
|
14383
|
+
};
|
|
14384
|
+
};
|
|
14385
|
+
};
|
|
14386
|
+
id: string;
|
|
14387
|
+
legacyId: number;
|
|
14388
|
+
state: "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "APPROVED" | "EXECUTING" | "EXECUTED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK";
|
|
14389
|
+
reviewSteps: {
|
|
14390
|
+
stageName: string;
|
|
14391
|
+
quorum: number;
|
|
14392
|
+
}[];
|
|
14393
|
+
currentStepIndex: number;
|
|
14394
|
+
expiresAt: Date;
|
|
14395
|
+
targetId: string | null;
|
|
14396
|
+
note: {
|
|
14397
|
+
title: string;
|
|
14398
|
+
content: string;
|
|
14399
|
+
} | null;
|
|
14400
|
+
reviews: {
|
|
14401
|
+
stepIndex: number;
|
|
14402
|
+
userId: string;
|
|
14403
|
+
status: "PENDING" | "APPROVED" | "REJECTED" | "QUEUED" | "OBSOLETE";
|
|
14404
|
+
createdAt: Date;
|
|
14405
|
+
updatedAt: Date;
|
|
14406
|
+
}[];
|
|
14407
|
+
createdAt: Date;
|
|
14408
|
+
updatedAt: Date;
|
|
14409
|
+
createdById: string;
|
|
14410
|
+
expiredAt?: Date | undefined;
|
|
14411
|
+
inflight?: {
|
|
14412
|
+
lastError: string | null;
|
|
14413
|
+
numFailed: number;
|
|
14414
|
+
retryAfter: Date;
|
|
14415
|
+
} | undefined;
|
|
14416
|
+
};
|
|
14417
|
+
meta: {
|
|
14418
|
+
[x: string]: unknown;
|
|
14419
|
+
} & {
|
|
14420
|
+
openapi?: {
|
|
14421
|
+
enabled?: boolean;
|
|
14422
|
+
method: trpc_to_openapi.OpenApiMethod;
|
|
14423
|
+
path: `/${string}`;
|
|
14424
|
+
operationId?: string;
|
|
14425
|
+
summary?: string;
|
|
14426
|
+
description?: string;
|
|
14427
|
+
protect?: boolean;
|
|
14428
|
+
tags?: string[];
|
|
14429
|
+
contentTypes?: trpc_to_openapi.OpenApiContentType[];
|
|
14430
|
+
deprecated?: boolean;
|
|
14431
|
+
requestHeaders?: z.ZodObject;
|
|
14432
|
+
responseHeaders?: z.ZodObject;
|
|
14433
|
+
successDescription?: string;
|
|
14434
|
+
errorResponses?: number[] | Record<number, string>;
|
|
14435
|
+
};
|
|
14436
|
+
} & RateLimitMetricsMeta;
|
|
14437
|
+
}>;
|
|
14230
14438
|
approve: _trpc_server.TRPCMutationProcedure<{
|
|
14231
14439
|
input: {
|
|
14232
14440
|
id: string;
|
|
@@ -14632,6 +14840,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
14632
14840
|
recipient: string;
|
|
14633
14841
|
amount: string;
|
|
14634
14842
|
type: "CANTON_LIKE_SEND";
|
|
14843
|
+
executeBeforeSeconds?: number | undefined;
|
|
14635
14844
|
} | {
|
|
14636
14845
|
amount: string;
|
|
14637
14846
|
currency: string;
|
|
@@ -14817,6 +15026,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
14817
15026
|
recipient: string;
|
|
14818
15027
|
amount: string;
|
|
14819
15028
|
type: "CANTON_LIKE_SEND";
|
|
15029
|
+
executeBeforeSeconds?: number | undefined;
|
|
14820
15030
|
} | {
|
|
14821
15031
|
amount: string;
|
|
14822
15032
|
currency: string;
|
|
@@ -14966,6 +15176,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
14966
15176
|
recipient: string;
|
|
14967
15177
|
amount: string;
|
|
14968
15178
|
type: "CANTON_LIKE_SEND";
|
|
15179
|
+
executeBeforeSeconds?: number | undefined;
|
|
14969
15180
|
} | {
|
|
14970
15181
|
amount: string;
|
|
14971
15182
|
currency: string;
|
|
@@ -15150,6 +15361,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
15150
15361
|
recipient: string;
|
|
15151
15362
|
amount: string;
|
|
15152
15363
|
type: "CANTON_LIKE_SEND";
|
|
15364
|
+
executeBeforeSeconds?: number | undefined;
|
|
15365
|
+
} | {
|
|
15366
|
+
currency: string;
|
|
15367
|
+
recipient: string;
|
|
15368
|
+
amount: string;
|
|
15369
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
15370
|
+
executeBeforeSeconds?: number | undefined;
|
|
15371
|
+
} | {
|
|
15372
|
+
currency: string;
|
|
15373
|
+
transferProposal: {
|
|
15374
|
+
amount: string;
|
|
15375
|
+
contractId: string;
|
|
15376
|
+
instrumentId: string;
|
|
15377
|
+
expiresAtMicros: number;
|
|
15378
|
+
memo: string | null;
|
|
15379
|
+
sender: string;
|
|
15380
|
+
recipient: string;
|
|
15381
|
+
};
|
|
15382
|
+
reason: string | null;
|
|
15383
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
15153
15384
|
} | {
|
|
15154
15385
|
currency: string;
|
|
15155
15386
|
transferProposal: {
|
|
@@ -16258,6 +16489,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
16258
16489
|
} | {
|
|
16259
16490
|
type: "CREATE_ACCOUNT";
|
|
16260
16491
|
data: {
|
|
16492
|
+
contractAddress: string | null;
|
|
16493
|
+
tokenIdentifier: string | null;
|
|
16261
16494
|
currency: string;
|
|
16262
16495
|
name: string;
|
|
16263
16496
|
governance: {
|
|
@@ -16304,7 +16537,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
16304
16537
|
index: number;
|
|
16305
16538
|
derivationPath: string;
|
|
16306
16539
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
16307
|
-
contractAddress?: string | undefined;
|
|
16308
16540
|
};
|
|
16309
16541
|
id: string;
|
|
16310
16542
|
legacyId: number;
|
|
@@ -17064,6 +17296,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
17064
17296
|
recipient: string;
|
|
17065
17297
|
amount: string;
|
|
17066
17298
|
type: "CANTON_LIKE_SEND";
|
|
17299
|
+
executeBeforeSeconds?: number | undefined;
|
|
17067
17300
|
} | {
|
|
17068
17301
|
amount: string;
|
|
17069
17302
|
currency: string;
|
|
@@ -17249,6 +17482,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
17249
17482
|
recipient: string;
|
|
17250
17483
|
amount: string;
|
|
17251
17484
|
type: "CANTON_LIKE_SEND";
|
|
17485
|
+
executeBeforeSeconds?: number | undefined;
|
|
17252
17486
|
} | {
|
|
17253
17487
|
amount: string;
|
|
17254
17488
|
currency: string;
|
|
@@ -17398,6 +17632,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
17398
17632
|
recipient: string;
|
|
17399
17633
|
amount: string;
|
|
17400
17634
|
type: "CANTON_LIKE_SEND";
|
|
17635
|
+
executeBeforeSeconds?: number | undefined;
|
|
17401
17636
|
} | {
|
|
17402
17637
|
amount: string;
|
|
17403
17638
|
currency: string;
|
|
@@ -17582,6 +17817,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
17582
17817
|
recipient: string;
|
|
17583
17818
|
amount: string;
|
|
17584
17819
|
type: "CANTON_LIKE_SEND";
|
|
17820
|
+
executeBeforeSeconds?: number | undefined;
|
|
17821
|
+
} | {
|
|
17822
|
+
currency: string;
|
|
17823
|
+
recipient: string;
|
|
17824
|
+
amount: string;
|
|
17825
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
17826
|
+
executeBeforeSeconds?: number | undefined;
|
|
17827
|
+
} | {
|
|
17828
|
+
currency: string;
|
|
17829
|
+
transferProposal: {
|
|
17830
|
+
amount: string;
|
|
17831
|
+
contractId: string;
|
|
17832
|
+
instrumentId: string;
|
|
17833
|
+
expiresAtMicros: number;
|
|
17834
|
+
memo: string | null;
|
|
17835
|
+
sender: string;
|
|
17836
|
+
recipient: string;
|
|
17837
|
+
};
|
|
17838
|
+
reason: string | null;
|
|
17839
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
17585
17840
|
} | {
|
|
17586
17841
|
currency: string;
|
|
17587
17842
|
transferProposal: {
|
|
@@ -18690,6 +18945,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
18690
18945
|
} | {
|
|
18691
18946
|
type: "CREATE_ACCOUNT";
|
|
18692
18947
|
data: {
|
|
18948
|
+
contractAddress: string | null;
|
|
18949
|
+
tokenIdentifier: string | null;
|
|
18693
18950
|
currency: string;
|
|
18694
18951
|
name: string;
|
|
18695
18952
|
governance: {
|
|
@@ -18736,7 +18993,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
18736
18993
|
index: number;
|
|
18737
18994
|
derivationPath: string;
|
|
18738
18995
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
18739
|
-
contractAddress?: string | undefined;
|
|
18740
18996
|
};
|
|
18741
18997
|
id: string;
|
|
18742
18998
|
legacyId: number;
|
|
@@ -19492,6 +19748,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
19492
19748
|
recipient: string;
|
|
19493
19749
|
amount: string;
|
|
19494
19750
|
type: "CANTON_LIKE_SEND";
|
|
19751
|
+
executeBeforeSeconds?: number | undefined;
|
|
19495
19752
|
} | {
|
|
19496
19753
|
amount: string;
|
|
19497
19754
|
currency: string;
|
|
@@ -19677,6 +19934,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
19677
19934
|
recipient: string;
|
|
19678
19935
|
amount: string;
|
|
19679
19936
|
type: "CANTON_LIKE_SEND";
|
|
19937
|
+
executeBeforeSeconds?: number | undefined;
|
|
19680
19938
|
} | {
|
|
19681
19939
|
amount: string;
|
|
19682
19940
|
currency: string;
|
|
@@ -19826,6 +20084,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
19826
20084
|
recipient: string;
|
|
19827
20085
|
amount: string;
|
|
19828
20086
|
type: "CANTON_LIKE_SEND";
|
|
20087
|
+
executeBeforeSeconds?: number | undefined;
|
|
19829
20088
|
} | {
|
|
19830
20089
|
amount: string;
|
|
19831
20090
|
currency: string;
|
|
@@ -20010,6 +20269,26 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
20010
20269
|
recipient: string;
|
|
20011
20270
|
amount: string;
|
|
20012
20271
|
type: "CANTON_LIKE_SEND";
|
|
20272
|
+
executeBeforeSeconds?: number | undefined;
|
|
20273
|
+
} | {
|
|
20274
|
+
currency: string;
|
|
20275
|
+
recipient: string;
|
|
20276
|
+
amount: string;
|
|
20277
|
+
type: "CANTON_LIKE_SEND_TOKEN";
|
|
20278
|
+
executeBeforeSeconds?: number | undefined;
|
|
20279
|
+
} | {
|
|
20280
|
+
currency: string;
|
|
20281
|
+
transferProposal: {
|
|
20282
|
+
amount: string;
|
|
20283
|
+
contractId: string;
|
|
20284
|
+
instrumentId: string;
|
|
20285
|
+
expiresAtMicros: number;
|
|
20286
|
+
memo: string | null;
|
|
20287
|
+
sender: string;
|
|
20288
|
+
recipient: string;
|
|
20289
|
+
};
|
|
20290
|
+
reason: string | null;
|
|
20291
|
+
type: "CANTON_LIKE_WITHDRAW";
|
|
20013
20292
|
} | {
|
|
20014
20293
|
currency: string;
|
|
20015
20294
|
transferProposal: {
|
|
@@ -21118,6 +21397,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
21118
21397
|
} | {
|
|
21119
21398
|
type: "CREATE_ACCOUNT";
|
|
21120
21399
|
data: {
|
|
21400
|
+
contractAddress: string | null;
|
|
21401
|
+
tokenIdentifier: string | null;
|
|
21121
21402
|
currency: string;
|
|
21122
21403
|
name: string;
|
|
21123
21404
|
governance: {
|
|
@@ -21164,7 +21445,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
21164
21445
|
index: number;
|
|
21165
21446
|
derivationPath: string;
|
|
21166
21447
|
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
21167
|
-
contractAddress?: string | undefined;
|
|
21168
21448
|
};
|
|
21169
21449
|
id: string;
|
|
21170
21450
|
legacyId: number;
|
|
@@ -26247,6 +26527,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
26247
26527
|
network: string;
|
|
26248
26528
|
assetType: "TOKEN";
|
|
26249
26529
|
contractAddress: string;
|
|
26530
|
+
tokenIdentifier: string | null;
|
|
26250
26531
|
metaCurrencyId: string | null;
|
|
26251
26532
|
})[];
|
|
26252
26533
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/revault-api",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"invariant": "^2.2.4",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"socket.io": "^4.8.1",
|
|
28
|
-
"@trpc/server": "11.
|
|
28
|
+
"@trpc/server": "11.7.2",
|
|
29
29
|
"trpc-to-openapi": "^3.1.0",
|
|
30
30
|
"zod": "^4.1.13"
|
|
31
31
|
}
|