Skip to content

Commit b7fc1c5

Browse files
[DDW-1179] Fix types
1 parent 48eb525 commit b7fc1c5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

source/common/types/hardware-wallets.types.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import { BridgeInfo, Device as TrezorDevice, UdevInfo } from '@trezor/connect';
2+
import {
3+
TxOutputDestinationType,
4+
AddressType,
5+
GovernanceVotingRegistrationFormat,
6+
TxAuxiliaryDataType,
7+
} from '@cardano-foundation/ledgerjs-hw-app-cardano';
28

39
export type BIP32Path = Array<number>;
410
export type LedgerModel = 'nanoS' | 'nanoSP' | 'nanoX';
@@ -139,14 +145,18 @@ export type LedgerSignTransactionOutputsType =
139145
| []
140146
| Array<LedgerOutputTypeAddress | LedgerOutputTypeChange>;
141147
export type LedgerAuxiliaryDataType = {
142-
type: string;
148+
type: TxAuxiliaryDataType;
143149
params: {
150+
format: GovernanceVotingRegistrationFormat;
144151
votingPublicKeyHex: string;
145152
stakingPath: BIP32Path;
146153
rewardsDestination: {
147-
type: number;
154+
type: TxOutputDestinationType;
148155
params: {
149-
stakingPath: BIP32Path;
156+
type: AddressType;
157+
params: {
158+
stakingPath: BIP32Path;
159+
};
150160
};
151161
};
152162
nonce: string;
@@ -199,7 +209,7 @@ export type LedgerSignTransactionResponse = {
199209
txHashHex: string;
200210
witnesses: Array<Witness>;
201211
auxiliaryDataSupplement?: {
202-
catalystRegistrationSignatureHex: string;
212+
governanceVotingRegistrationSignatureHex: string;
203213
auxiliaryDataHashHex: string;
204214
type: 'catalyst_registration';
205215
};

0 commit comments

Comments
 (0)