File tree Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export interface WalletInterface {
116
116
address : StateSyncer
117
117
network : StateSyncer
118
118
balance : StateSyncer
119
- settings ?: ( ) => void
119
+ dashboard ?: ( ) => void
120
120
}
121
121
122
122
export interface StateSyncer {
@@ -130,7 +130,7 @@ export interface Wallet {
130
130
type : 'hardware' | 'injected' | 'sdk'
131
131
instance ?: any
132
132
connect ?: ( ) => Promise < { message : string } | undefined >
133
- settings ?: ( ) => void
133
+ dashboard ?: ( ) => void
134
134
}
135
135
136
136
export interface CommonWalletOptions {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function authereum(
52
52
return loggedIn && instance . getBalance ( )
53
53
}
54
54
} ,
55
- settings : ( ) =>
55
+ dashboard : ( ) =>
56
56
openLink (
57
57
`https://${
58
58
networkId !== 1 ? `${ networkName ( networkId ) } .` : ''
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function portis(options: SdkWalletOptions & CommonWalletOptions): WalletModule {
66
66
} , 1 )
67
67
} )
68
68
} ,
69
- settings : ( ) => openLink ( 'https://wallet.portis.io/' )
69
+ dashboard : ( ) => openLink ( 'https://wallet.portis.io/' )
70
70
}
71
71
}
72
72
} ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function squarelink(
61
61
)
62
62
} )
63
63
} ,
64
- settings : ( ) => openLink ( 'https://app.squarelink.com/' )
64
+ dashboard : ( ) => openLink ( 'https://app.squarelink.com/' )
65
65
}
66
66
}
67
67
} ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function torus(options: TorusOptions & CommonWalletOptions): WalletModule {
77
77
)
78
78
} )
79
79
} ,
80
- settings : ( ) => openLink ( 'https://app.tor.us/' )
80
+ dashboard : ( ) => openLink ( 'https://app.tor.us/' )
81
81
}
82
82
}
83
83
} ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function unilogin(options: CommonWalletOptions): WalletModule {
24
24
new Promise ( resolve =>
25
25
provider . send ( { method : 'ul_disconnect' } , resolve )
26
26
) ,
27
- settings : ( ) => provider . openDashboard ( )
27
+ dashboard : ( ) => provider . openDashboard ( )
28
28
}
29
29
}
30
30
} ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const wallet: WritableStore = writable({
51
51
provider : null ,
52
52
connect : null ,
53
53
instance : null ,
54
- settings : null ,
54
+ dashboard : null ,
55
55
type : null
56
56
} )
57
57
@@ -119,7 +119,7 @@ export function resetWalletState(options?: {
119
119
provider : undefined ,
120
120
connect : undefined ,
121
121
instance : undefined ,
122
- settings : undefined
122
+ dashboard : undefined
123
123
} ) )
124
124
125
125
currentInterface . disconnect && currentInterface . disconnect ( )
@@ -136,7 +136,7 @@ export function resetWalletState(options?: {
136
136
provider : undefined ,
137
137
connect : undefined ,
138
138
instance : undefined ,
139
- settings : undefined
139
+ dashboard : undefined
140
140
} ) )
141
141
142
142
! disconnected &&
Original file line number Diff line number Diff line change 175
175
wallet .set ({
176
176
provider ,
177
177
instance ,
178
- settings : selectedWalletInterface .settings ,
178
+ dashboard : selectedWalletInterface .dashboard ,
179
179
name: module .name ,
180
180
connect: selectedWalletInterface .connect ,
181
181
type: module .type
You can’t perform that action at this time.
0 commit comments