File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 11import { 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
39export type BIP32Path = Array < number > ;
410export type LedgerModel = 'nanoS' | 'nanoSP' | 'nanoX' ;
@@ -139,14 +145,18 @@ export type LedgerSignTransactionOutputsType =
139145 | [ ]
140146 | Array < LedgerOutputTypeAddress | LedgerOutputTypeChange > ;
141147export 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 } ;
You can’t perform that action at this time.
0 commit comments