Skip to content

Commit

Permalink
Merge pull request #55 from marcuspuchalla/feature/#54-add-os-informa…
Browse files Browse the repository at this point in the history
…tion

feat: Add more info on wallet platform
  • Loading branch information
fabianbormann authored Nov 15, 2023
2 parents 670f2d1 + b4a27be commit 7ce4384
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ export type Cip30DataSignature = {
signature: CoseSign1CborHex;
};

export type deviceType = 'mobile' | 'desktop'
export type mobileOsType = 'ios' | 'android'
export type appType = 'browser' | 'pwa' | 'native'

export type osInfo = {
deviceType: deviceType,
mobileOsType?: mobileOsType,
mobileType?: appType,
url?: String
}

export type PeerConnectApi = {
apiVersion: string;
name: string;
Expand Down Expand Up @@ -75,6 +86,7 @@ export interface IWalletInfo {
version: string;
icon: string;
requestAutoconnect?: boolean;
osInfo?: osInfo
}

export interface DAppPeerConnectParameters {
Expand Down

0 comments on commit 7ce4384

Please sign in to comment.