Skip to content

Commit

Permalink
feat: Add more info on wallet platform
Browse files Browse the repository at this point in the history
With this new information it will be possible to tell that DApp on
which device the wallet is running and in which mode.
  • Loading branch information
marcuspuchalla committed Nov 14, 2023
1 parent 670f2d1 commit b4a27be
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 b4a27be

Please sign in to comment.