You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

7 years ago
// @flow
export type Device = {
manufacturer: string,
path: string,
product: string,
productId: string,
vendorId: string,
}
export type Devices = Array<Device>
// -------------------- Settings
export type CurrencySettings = {
confirmationsToSpend: number,
minConfirmationsToSpend: number,
maxConfirmationsToSpend: number,
confirmationsNb: number,
minConfirmationsNb: number,
maxConfirmationsNb: number,
transactionFees: number,
}
export type CurrenciesSettings = {
[coinType: number]: CurrencySettings,
}
export type Settings = {
hasCompletedOnboarding: boolean,
language: string,
orderAccounts: string,
username: string,
counterValue: string,
password: {
isEnabled: boolean,
value: string,
},
marketIndicator: 'eastern' | 'western',
currenciesSettings: CurrenciesSettings,
region: {
key: string,
name: string,
},
}
export type T = (?string, ?Object) => string
// -------------------- Manager
export type MemoryInfos = {
applicationsSize: number,
freeSize: number,
systemSize: number,
totalAppSlots: number,
usedAppSlots: number,
}