Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ export interface Wallet {
/**
* Total number of signed hashes returned by the wallet since its creation
*/
totalSignedHashes?: Number;
totalSignedHashes?: number;
/**
* Remaining number of `Sign` operations before the wallet will stop signing any data.
* - Note: This counter were deprecated for cards with COS 4.0 and higher
*/
remainingSignatures?: Number;
remainingSignatures?: number;
/**
* Index of the wallet in the card storage
*/
index: Number;
index: number;
}

export interface Manufacturer {
Expand Down Expand Up @@ -368,6 +368,7 @@ export interface File {
data: Data;
index: number;
settings: FileSettings;
name: string;
}

export interface UserFile {
Expand Down Expand Up @@ -406,9 +407,7 @@ export interface OwnerFile extends UserFile {

export type FileToWrite = OwnerFile | UserFile;

export type ReadFilesResponse = {
files: File[];
};
export type ReadFilesResponse = File[];

export interface WriteFilesResponse {
/**
Expand Down Expand Up @@ -442,7 +441,7 @@ export interface TangemSdk {
cardId: string,
hdPath?: DerivationPath,
initialMessage?: Message
): Promise<[SignHashesResponse]>;
): Promise<SignHashesResponse>;

createWallet(
curve: EllipticCurve,
Expand Down