@@ -27,7 +27,7 @@ export type AccountCode = string;
2727
2828export type Fiat = 'AUD' | 'BRL' | 'BTC' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'EUR' | 'GBP' | 'HKD' | 'ILS' | 'JPY' | 'KRW' | 'NOK' | 'NZD' | 'PLN' | 'RUB' | 'sat' | 'SEK' | 'SGD' | 'USD' ;
2929
30- export type ConversionUnit = Fiat | 'sat'
30+ export type ConversionUnit = Fiat | 'sat' ;
3131
3232export type CoinUnit = 'BTC' | 'sat' | 'LTC' | 'ETH' | 'TBTC' | 'tsat' | 'TLTC' | 'SEPETH' ;
3333
@@ -40,7 +40,7 @@ export type CoinCode = NativeCoinCode | ERC20CoinCode;
4040export type FiatWithDisplayName = {
4141 currency : Fiat ;
4242 displayName : string ;
43- }
43+ } ;
4444
4545export type Terc20Token = {
4646 code : ERC20CoinCode ;
@@ -51,7 +51,7 @@ export type Terc20Token = {
5151export type TActiveToken = {
5252 tokenCode : ERC20CoinCode ;
5353 accountCode : AccountCode ;
54- }
54+ } ;
5555
5656export type TKeystore = {
5757 watchonly : boolean ;
@@ -74,7 +74,7 @@ export type TAccount = {
7474 activeTokens ?: TActiveToken [ ] ;
7575 blockExplorerTxPrefix : string ;
7676 bitsuranceStatus ?: TDetailStatus ;
77- }
77+ } ;
7878
7979export const getAccounts = ( ) : Promise < TAccount [ ] > => {
8080 return apiGet ( 'accounts' ) ;
@@ -110,7 +110,7 @@ export type TAccountsBalanceSummaryResponse = {
110110 accountsBalanceSummary : TAccountsBalanceSummary ;
111111} | {
112112 success : false ;
113- }
113+ } ;
114114
115115export const getAccountsBalanceSummary = ( ) : Promise < TAccountsBalanceSummaryResponse > => {
116116 return apiGet ( 'accounts/balance-summary' ) ;
@@ -119,7 +119,7 @@ export const getAccountsBalanceSummary = (): Promise<TAccountsBalanceSummaryResp
119119type TEthAccountCodeAndNameByAddress = SuccessResponse & {
120120 code : AccountCode ;
121121 name : string ;
122- }
122+ } ;
123123
124124export const getEthAccountCodeAndNameByAddress = ( address : string ) : Promise < TEthAccountCodeAndNameByAddress > => {
125125 return apiPost ( 'accounts/eth-account-code' , { address } ) ;
@@ -130,7 +130,7 @@ export type TStatus = {
130130 synced : boolean ;
131131 fatalError : boolean ;
132132 offlineError : string | null ;
133- }
133+ } ;
134134
135135export const getStatus = ( code : AccountCode ) : Promise < TStatus > => {
136136 return apiGet ( `account/${ code } /status` ) ;
@@ -144,28 +144,28 @@ type TKeyInfo = {
144144 keypath : string ;
145145 rootFingerprint : string ;
146146 xpub : string ;
147- }
147+ } ;
148148
149149export type TBitcoinSimple = {
150150 keyInfo : TKeyInfo ;
151151 scriptType : ScriptType ;
152- }
152+ } ;
153153
154154export type TEthereumSimple = {
155155 keyInfo : TKeyInfo ;
156- }
156+ } ;
157157
158158export type TSigningConfiguration = {
159159 bitcoinSimple : TBitcoinSimple ;
160160 ethereumSimple ?: never ;
161161} | {
162162 bitcoinSimple ?: never ;
163163 ethereumSimple : TEthereumSimple ;
164- }
164+ } ;
165165
166166export type TSigningConfigurationList = null | {
167167 signingConfigurations : TSigningConfiguration [ ] ;
168- }
168+ } ;
169169
170170export const getInfo = ( code : AccountCode ) => {
171171 return ( ) : Promise < TSigningConfigurationList > => {
@@ -188,7 +188,7 @@ type TChartDataResponse = {
188188 data : TChartData ;
189189} | {
190190 success : false ;
191- }
191+ } ;
192192
193193export type TChartData = {
194194 chartDataMissing : boolean ;
@@ -199,7 +199,7 @@ export type TChartData = {
199199 formattedChartTotal : string | null ;
200200 chartIsUpToDate : boolean ; // only valid if chartDataMissing is false
201201 lastTimestamp : number ;
202- }
202+ } ;
203203
204204export const getChartData = ( ) : Promise < TChartDataResponse > => {
205205 return apiGet ( 'chart-data' ) ;
@@ -228,7 +228,7 @@ type TBalanceResponse = {
228228 balance : TBalance ;
229229} | {
230230 success : false ;
231- }
231+ } ;
232232
233233export const getBalance = ( code : AccountCode ) : Promise < TBalanceResponse > => {
234234 return apiGet ( `account/${ code } /balance` ) ;
@@ -257,14 +257,14 @@ export type TTransaction = {
257257 txID : string ;
258258 vsize : number ;
259259 weight : number ;
260- }
260+ } ;
261261
262- export type TTransactions = { success : false } | { success : true ; list : TTransaction [ ] ; } ;
262+ export type TTransactions = { success : false } | { success : true ; list : TTransaction [ ] } ;
263263
264264type TNoteTx = {
265265 internalTxID : string ;
266266 note : string ;
267- }
267+ } ;
268268
269269export const postNotesTx = ( code : AccountCode , {
270270 internalTxID,
@@ -285,7 +285,7 @@ type TExport = {
285285 success : boolean ;
286286 path : string ;
287287 errorMessage : string ;
288- }
288+ } ;
289289
290290export const exportAccount = ( code : AccountCode ) : Promise < TExport | null > => {
291291 return apiPost ( `account/${ code } /export` ) ;
@@ -294,19 +294,19 @@ export const exportAccount = (code: AccountCode): Promise<TExport | null> => {
294294export const verifyXPub = (
295295 code : AccountCode ,
296296 signingConfigIndex : number ,
297- ) : Promise < { success : true ; } | { success : false ; errorMessage : string ; } > => {
297+ ) : Promise < { success : true } | { success : false ; errorMessage : string } > => {
298298 return apiPost ( `account/${ code } /verify-extended-public-key` , { signingConfigIndex } ) ;
299299} ;
300300
301301export type TReceiveAddress = {
302302 addressID : string ;
303303 address : string ;
304- }
304+ } ;
305305
306306export type TReceiveAddressList = {
307307 scriptType : ScriptType | null ;
308308 addresses : NonEmptyArray < TReceiveAddress > ;
309- }
309+ } ;
310310
311311export const getReceiveAddressList = ( code : AccountCode ) => {
312312 return ( ) : Promise < NonEmptyArray < TReceiveAddressList > | null > => {
@@ -371,12 +371,12 @@ export type FeeTargetCode = 'custom' | 'low' | 'economy' | 'normal' | 'high' | '
371371export type TFeeTarget = {
372372 code : FeeTargetCode ;
373373 feeRateInfo : string ;
374- }
374+ } ;
375375
376376export type TFeeTargetList = {
377377 feeTargets : TFeeTarget [ ] ;
378378 defaultFeeTarget : FeeTargetCode ;
379- }
379+ } ;
380380
381381export const getFeeTargetList = ( code : AccountCode ) : Promise < TFeeTargetList > => {
382382 return apiGet ( `account/${ code } /fee-targets` ) ;
@@ -429,7 +429,7 @@ export type TAddAccount = {
429429 accountCode ?: string ;
430430 errorCode ?: 'accountAlreadyExists' | 'accountLimitReached' ;
431431 errorMessage ?: string ;
432- }
432+ } ;
433433
434434export const addAccount = ( coinCode : string , name : string ) : Promise < TAddAccount > => {
435435 return apiPost ( 'account-add' , {
@@ -438,7 +438,7 @@ export const addAccount = (coinCode: string, name: string): Promise<TAddAccount>
438438 } ) ;
439439} ;
440440
441- export type TSignMessage = { success : false , aborted ?: boolean ; errorMessage ?: string ; } | { success : true ; signature : string ; }
441+ export type TSignMessage = { success : false ; aborted ?: boolean ; errorMessage ?: string } | { success : true ; signature : string } ;
442442
443443export type TSignWalletConnectTx = {
444444 success : false ;
@@ -448,7 +448,7 @@ export type TSignWalletConnectTx = {
448448 success : true ;
449449 txHash : string ;
450450 rawTx : string ;
451- }
451+ } ;
452452
453453export const ethSignMessage = ( code : AccountCode , message : string ) : Promise < TSignMessage > => {
454454 return apiPost ( `account/${ code } /eth-sign-msg` , message ) ;
@@ -470,7 +470,7 @@ type AddressSignResponse = {
470470 success : false ;
471471 errorMessage ?: string ;
472472 errorCode ?: 'userAbort' | 'wrongKeystore' ;
473- }
473+ } ;
474474
475475export const signAddress = ( format : ScriptType | '' , msg : string , code : AccountCode ) : Promise < AddressSignResponse > => {
476476 return apiPost ( `account/${ code } /sign-address` , { format, msg, code } ) ;
0 commit comments