Package Exports
- @ledgerhq/types-live
- @ledgerhq/types-live/lib-es/index.js
- @ledgerhq/types-live/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/types-live) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

@ledgerhq/types-live
Ledger Live main types.
API
Table of Contents
- TokenAccount
- ChildAccount
- Address
- Account
- SubAccount
- AccountLike
- AccountLikeArray
- TokenAccountRaw
- ChildAccountRaw
- AccountRaw
- SubAccountRaw
- AccountRawLike
- AccountIdParams
- ScanAccountEventRaw
- DeviceId
- PreloadStrategy
- BroadcastArg0
- SignOperationArg0
- SignOperationFnSignature
- CurrencyBridge
- AccountBridge
- CurrenciesData
- DatasetTest
- DerivationMode
- FeatureId
- Feature
- Properties
- enabled
- desktop_version
- desktop_version
- desktop_version
- enabledOverriddenForCurrentDesktopVersion
- mobile_version
- mobile_version
- mobile_version
- enabledOverriddenForCurrentMobileVersion
- languages_whitelisted
- languages_whitelisted
- languages_blacklisted
- enabledOverriddenForCurrentLanguage
- overridesRemote
- overriddenByEnv
- params
- DefaultFeatures
- LedgerScriptParams
- DeviceInfo
- DeviceModelInfo
- DeviceVersion
- McuVersion
- SeedPhraseType
- FirmwareInfo
- OsuFirmware
- FinalFirmware
- FirmwareUpdateContext
- ApplicationVersion
- Application
- AppType
- App
- Category
- SocketEvent
- NFTStandard
- NFTMediaSize
- NFTMedias
- NFTMetadata
- NFTCollectionMetadata
- ProtoNFT
- ProtoNFTRaw
- NFT
- NFTMetadataLinksProviders
- NFTMetadataResponse
- NFTCollectionMetadataResponse
- FloorPrice
- OperationType
- Operation
- OperationRaw
- DailyOperationsSection
- DailyOperations
- PaginationConfig
- SyncConfig
- BalanceHistoryData
- BalanceHistory
- BalanceHistoryRaw
- BalanceHistoryWithCountervalue
- ValueChange
- AccountPortfolio
- CurrencyPortfolio
- Portfolio
- PortfolioRangeConfig
- PortfolioRange
- AssetsDistribution
- PostOnboardingActionId
- navigationParams
- startAction
- PostOnboardingAction
- PostOnboardingActionState
- PostOnboardingState
- PostOnboardingHubState
- SwapOperation
- SwapOperationRaw
- SignedOperation
- SignedOperationRaw
- SignOperationEvent
- SignOperationEventRaw
- TransactionCommon
- TransactionCommonRaw
- FeeStrategy
- TransactionStatusCommon
- TransactionStatusCommonRaw
TokenAccount
A token belongs to an Account and share the parent account address
Type: {type: "TokenAccount"
, id: string, parentId: string, token: TokenCurrency, balance: BigNumber, spendableBalance: BigNumber, creationDate: Date, operationsCount: number, operations: Array<Operation>, pendingOperations: Array<Operation>, starred: boolean, balanceHistoryCache: BalanceHistoryCache, swapHistory: Array<SwapOperation>, approvals: Array<{sender: string, value: string}>?}
Properties
type
"TokenAccount"
id
stringparentId
stringtoken
TokenCurrencybalance
BigNumberspendableBalance
BigNumbercreationDate
DateoperationsCount
numberoperations
Array<Operation>pendingOperations
Array<Operation>starred
booleanbalanceHistoryCache
BalanceHistoryCacheswapHistory
Array<SwapOperation>approvals
Array<{sender: string, value: string}>?
ChildAccount
A child account belongs to an Account but has its own address
Type: {type: "ChildAccount"
, id: string, name: string, starred: boolean, parentId: string, currency: CryptoCurrency, address: string, balance: BigNumber, creationDate: Date, operationsCount: number, operations: Array<Operation>, pendingOperations: Array<Operation>, balanceHistoryCache: BalanceHistoryCache, swapHistory: Array<SwapOperation>}
Properties
type
"ChildAccount"
id
stringname
stringstarred
booleanparentId
stringcurrency
CryptoCurrencyaddress
stringbalance
BigNumbercreationDate
DateoperationsCount
numberoperations
Array<Operation>pendingOperations
Array<Operation>balanceHistoryCache
BalanceHistoryCacheswapHistory
Array<SwapOperation>
Address
Type: {address: string, derivationPath: string}
Properties
Account
Account type is the main level account of a blockchain currency. Each family maybe need an extra field, to solve this, you can have some subtyping like this:
export type BitcoinAccount = Account & { bitcoinResources: BitcoinResources }
and all parts where we would need it, we would need to cast,
const bitcoinAccount = account as BitcoinAccount;
and that BitcoinAccount type would be part of a coin integration family specific indeed.
Type: {type: "Account"
, id: string, seedIdentifier: string, xpub: string?, derivationMode: DerivationMode, index: number, freshAddress: string, freshAddressPath: string, freshAddresses: Array<Address>, name: string, starred: boolean, used: boolean, balance: BigNumber, spendableBalance: BigNumber, creationDate: Date, blockHeight: number, currency: CryptoCurrency, feesCurrency: (CryptoCurrency | TokenCurrency)?, unit: Unit, operationsCount: number, operations: Array<Operation>, pendingOperations: Array<Operation>, lastSyncDate: Date, endpointConfig: (string | null | undefined)?, subAccounts: Array<SubAccount>?, balanceHistoryCache: BalanceHistoryCache, swapHistory: Array<SwapOperation>, syncHash: string?, nfts: Array<ProtoNFT>?}
Properties
type
"Account"
id
stringseedIdentifier
stringxpub
string?derivationMode
DerivationModeindex
numberfreshAddress
stringfreshAddressPath
stringfreshAddresses
Array<Address>name
stringstarred
booleanused
booleanbalance
BigNumberspendableBalance
BigNumbercreationDate
DateblockHeight
numbercurrency
CryptoCurrencyfeesCurrency
(CryptoCurrency | TokenCurrency)?unit
UnitoperationsCount
numberoperations
Array<Operation>pendingOperations
Array<Operation>lastSyncDate
DateendpointConfig
(string | null | undefined)?subAccounts
Array<SubAccount>?balanceHistoryCache
BalanceHistoryCacheswapHistory
Array<SwapOperation>syncHash
string?nfts
Array<ProtoNFT>?
SubAccount
super type that is either a token or a child account
Type: (TokenAccount | ChildAccount)
AccountLike
One of the Account type
Type: (Account | SubAccount)
AccountLikeArray
An array of AccountLikes
Type: (Array<AccountLike> | Array<TokenAccount> | Array<ChildAccount> | Array<Account>)
TokenAccountRaw
Type: {type: "TokenAccountRaw"
, id: string, starred: boolean?, parentId: string, tokenId: string, creationDate: string?, operationsCount: number?, operations: Array<OperationRaw>, pendingOperations: Array<OperationRaw>, balance: string, spendableBalance: string?, balanceHistoryCache: BalanceHistoryCache?, swapHistory: Array<SwapOperationRaw>?, approvals: Array<{sender: string, value: string}>?}
Properties
type
"TokenAccountRaw"
id
stringstarred
boolean?parentId
stringtokenId
stringcreationDate
string?operationsCount
number?operations
Array<OperationRaw>pendingOperations
Array<OperationRaw>balance
stringspendableBalance
string?balanceHistoryCache
BalanceHistoryCache?swapHistory
Array<SwapOperationRaw>?approvals
Array<{sender: string, value: string}>?
ChildAccountRaw
Type: {type: "ChildAccountRaw"
, id: string, name: string, starred: boolean?, parentId: string, currencyId: string, address: string, creationDate: string?, operationsCount: number?, operations: Array<OperationRaw>, pendingOperations: Array<OperationRaw>, balance: string, balanceHistoryCache: BalanceHistoryCache?, swapHistory: Array<SwapOperationRaw>?}
Properties
type
"ChildAccountRaw"
id
stringname
stringstarred
boolean?parentId
stringcurrencyId
stringaddress
stringcreationDate
string?operationsCount
number?operations
Array<OperationRaw>pendingOperations
Array<OperationRaw>balance
stringbalanceHistoryCache
BalanceHistoryCache?swapHistory
Array<SwapOperationRaw>?
AccountRaw
Type: {id: string, seedIdentifier: string, xpub: string?, derivationMode: DerivationMode, index: number, freshAddress: string, freshAddressPath: string, freshAddresses: Array<Address>, name: string, starred: boolean?, used: boolean?, balance: string, spendableBalance: string?, blockHeight: number, creationDate: string?, operationsCount: number?, currencyId: string, feesCurrencyId: string?, operations: Array<OperationRaw>, pendingOperations: Array<OperationRaw>, unitMagnitude: number, lastSyncDate: string, endpointConfig: (string | null | undefined)?, subAccounts: Array<SubAccountRaw>?, balanceHistoryCache: BalanceHistoryCache?, swapHistory: Array<SwapOperationRaw>?, syncHash: string?, nfts: Array<ProtoNFTRaw>?}
Properties
id
stringseedIdentifier
stringxpub
string?derivationMode
DerivationModeindex
numberfreshAddress
stringfreshAddressPath
stringfreshAddresses
Array<Address>name
stringstarred
boolean?used
boolean?balance
stringspendableBalance
string?blockHeight
numbercreationDate
string?operationsCount
number?currencyId
stringfeesCurrencyId
string?operations
Array<OperationRaw>pendingOperations
Array<OperationRaw>unitMagnitude
numberlastSyncDate
stringendpointConfig
(string | null | undefined)?subAccounts
Array<SubAccountRaw>?balanceHistoryCache
BalanceHistoryCache?swapHistory
Array<SwapOperationRaw>?syncHash
string?nfts
Array<ProtoNFTRaw>?
SubAccountRaw
Type: (TokenAccountRaw | ChildAccountRaw)
AccountRawLike
Type: (AccountRaw | SubAccountRaw)
AccountIdParams
Type: {type: string, version: string, currencyId: string, xpubOrAddress: string, derivationMode: DerivationMode}
Properties
type
stringversion
stringcurrencyId
stringxpubOrAddress
stringderivationMode
DerivationMode
ScanAccountEventRaw
More events will come in the future
Type: {type: "discovered"
, account: AccountRaw}
Properties
type
"discovered"
account
AccountRaw
DeviceId
Unique identifier of a device. It will depend on the underlying implementation.
Type: string
PreloadStrategy
Type: Partial<{preloadMaxAge: number}>
BroadcastArg0
Type: {account: Account, signedOperation: SignedOperation}
Properties
account
AccountsignedOperation
SignedOperation
SignOperationArg0
Type: {account: Account, transaction: T, deviceId: DeviceId}
Properties
SignOperationFnSignature
Type: function (arg0: SignOperationArg0<T>): Observable<SignOperationEvent>
CurrencyBridge
Abstraction related to a currency
AccountBridge
Abstraction related to an account
assignToAccountRaw
This function mutates the 'accountRaw' object in-place to add any extra fields that the coin may need to set. It is called during the serialization mechanism, for instance bitcoinResources need to be serialized.
Type: function (account: Account, accountRaw: AccountRaw): void
Parameters
account
Account The original account object.accountRaw
AccountRaw The account in its serialized form.
assignFromAccountRaw
This function mutates the 'account' object in-place to add any extra fields that the coin may need to set. It is called during the deserialization mechanism, for instance bitcoinResources need to be deserialized.
Type: function (accountRaw: AccountRaw, account: Account): void
Parameters
accountRaw
AccountRaw The account in its serialized form.account
Account The original account object.
initAccount
This function mutates the 'account' object to extend it with any extra fields of the coin. For instance bitcoinResources needs to be created.
Type: function (account: Account): void
Parameters
account
Account The original account object to mutates in-place.
CurrenciesData
Type: {FIXME_ignoreAccountFields: Array<string>?, FIXME_ignoreOperationFields: Array<string>?, FIXME_ignorePreloadFields: Array<string>?, mockDeviceOptions: any?, scanAccounts: Array<{name: string, apdus: string, unstableAccounts: boolean?, test: function (expect: ExpectFn, scanned: Array<Account>, bridge: CurrencyBridge): any?}>?, accounts: Array<{implementations: Array<string>?, raw: AccountRaw, FIXME_tests: Array<(string | RegExp)>?, transactions: Array<CurrencyTransaction<T>>?, test: function (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>): any?}>?, test: function (arg0: ExpectFn, arg1: CurrencyBridge): any?}
Properties
FIXME_ignoreAccountFields
Array<string>?FIXME_ignoreOperationFields
Array<string>?FIXME_ignorePreloadFields
Array<string>?mockDeviceOptions
any?scanAccounts
Array<{name: string, apdus: string, unstableAccounts: boolean?, test: function (expect: ExpectFn, scanned: Array<Account>, bridge: CurrencyBridge): any?}>?accounts
Array<{implementations: Array<string>?, raw: AccountRaw, FIXME_tests: Array<(string | RegExp)>?, transactions: Array<CurrencyTransaction<T>>?, test: function (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>): any?}>?test
function (arg0: ExpectFn, arg1: CurrencyBridge): any?
DatasetTest
Type: {implementations: Array<string>, currencies: (Record<CryptoCurrencyIds, CurrenciesData<T>> | Record<string, never>)}
Properties
implementations
Array<string>currencies
(Record<CryptoCurrencyIds, CurrenciesData<T>> | Record<string, never>)
DerivationMode
DerivationMode is a string identifier of a specific derivation scheme in a list defined in live-common derivation.ts
Type: string
FeatureId
Add others with union (e.g. "learn" | "market" | "foo")
Type: ("learn"
| "brazePushNotifications"
| "brazeLearn"
| "llmNewDeviceSelection"
| "llmNewFirmwareUpdateUx"
| "ratingsPrompt"
| "counterValue"
| "deviceInitialApps"
| "buyDeviceFromLive"
| "ptxSmartRouting"
| "ptxEarn"
| "currencyAvalancheCChain"
| "currencyStacks"
| "currencyOptimism"
| "currencyOptimismGoerli"
| "currencyArbitrum"
| "currencyArbitrumGoerli"
| "currencyRsk"
| "currencyBittorrent"
| "currencyKavaEvm"
| "currencyEvmosEvm"
| "currencyEnergyWeb"
| "currencyAstar"
| "currencyMetis"
| "currencyBoba"
| "currencyMoonriver"
| "currencyVelasEvm"
| "currencySyscoin"
| "currencyAxelar"
| "currencySecretNetwork"
| "currencyDesmos"
| "currencyUmee"
| "currencyStargaze"
| "currencyOnomy"
| "currencyPersistence"
| "currencyQuicksilver"
| "currencyInternetComputer"
| "currencyTelosEvm"
| "currencyCoreum"
| "currencyPolygonZkEvm"
| "currencyPolygonZkEvmTestnet"
| "currencyBase"
| "currencyBaseGoerli"
| "currencyKlaytn"
| "ptxSmartRoutingMobile"
| "mockFeature"
| "multibuyNavigation"
| "syncOnboarding"
| "walletConnectLiveApp"
| "walletConnectEntryPoint"
| "customImage"
| "referralProgramDiscoverCard"
| "referralProgramDesktopBanner"
| "referralProgramDesktopSidebar"
| "referralProgramMobile"
| "disableNftSend"
| "disableNftLedgerMarket"
| "disableNftRaribleOpensea"
| "walletNftGallery"
| "receiveStakingFlowConfigDesktop"
| "ethStakingProviders"
| "storyly"
| "staxWelcomeScreen"
| "postOnboardingClaimNft"
| "postOnboardingAssetsTransfer"
| "firebaseEnvironmentReadOnly"
| "protectServicesMobile"
| "protectServicesDesktop"
| "ptxServiceCtaExchangeDrawer"
| "ptxServiceCtaScreens"
| "swapWalletApiPartnerList"
| "stakePrograms"
| "portfolioExchangeBanner"
| "objkt"
| "editEthTx"
| "stakeAccountBanner"
| "newsfeedPage"
| "domainInputResolution"
| "discover"
| "protectServicesDiscoverDesktop"
| "protectServicesDesktop"
| "transactionsAlerts"
| "listAppsV2"
| "editEthTx"
)
Feature
We use objects instead of direct booleans for potential future improvements like feature versioning etc
Type: {enabled: boolean, desktop_version: string?, enabledOverriddenForCurrentDesktopVersion: boolean?, mobile_version: string?, enabledOverriddenForCurrentMobileVersion: boolean?, languages_whitelisted: [string]?, languages_blacklisted: [string]?, enabledOverriddenForCurrentLanguage: boolean?, overridesRemote: boolean?, overriddenByEnv: boolean?, params: T?}
Properties
enabled
booleandesktop_version
string?enabledOverriddenForCurrentDesktopVersion
boolean?mobile_version
string?enabledOverriddenForCurrentMobileVersion
boolean?languages_whitelisted
[string]?languages_blacklisted
[string]?enabledOverriddenForCurrentLanguage
boolean?overridesRemote
boolean?overriddenByEnv
boolean?params
T?
enabled
If false, the feature is disabled (for every languages regardless of the languages_whitelisted option)
Type: boolean
desktop_version
The desktop_version
option is desktop specific, it has no impact on mobile
Type: string
desktop_version
If set, the feature is disabled when the desktop app version does not satisfies this param
Type: string
desktop_version
It should respect the semantic versioning specification (https://semver.org/)
Type: string
enabledOverriddenForCurrentDesktopVersion
Whether the remote value of enabled
was overriden due to desktop_version
Type: boolean
mobile_version
The mobile_version
option is mobile specific, it has no impact on mobile
Type: string
mobile_version
If set, the feature is disabled when the mobile app version does not satisfies this param
Type: string
mobile_version
It should respect the semantic versioning specification (https://semver.org/)
Type: string
enabledOverriddenForCurrentMobileVersion
Whether the remote value of enabled
was overriden due to mobile_version
Type: boolean
languages_whitelisted
You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now)
Type: [string]
languages_whitelisted
List of languages for which the feature is enabled (it will be disabled by default for all of the others)
Type: [string]
languages_blacklisted
List of languages for which the feature is disabled
Type: [string]
enabledOverriddenForCurrentLanguage
Whether the remote value of enabled
was overriden due to languages_whitelisted
or languages_blacklisted
Type: boolean
overridesRemote
Whether the remote value of this object was overriden locally
Type: boolean
overriddenByEnv
Whether the remote value of this object was overriden by an environment variable
Type: boolean
params
Additional params
Type: T
DefaultFeatures
Type: any
LedgerScriptParams
Type: {firmware: string, firmwareKey: string, delete: string?, deleteKey: string?, targetId: (string | number)?, hash: string, perso: string}
Properties
firmware
stringfirmwareKey
stringdelete
string?deleteKey
string?targetId
(string | number)?hash
stringperso
string
DeviceInfo
Type: {mcuVersion: string, version: string, majMin: string, targetId: (string | number), isBootloader: boolean, isRecoveryMode: boolean?, isOSU: boolean, providerName: (string | null | undefined), managerAllowed: boolean, pinValidated: boolean, seVersion: string?, mcuBlVersion: string?, mcuTargetId: number?, seTargetId: number?, onboarded: boolean?, hasDevFirmware: boolean?, bootloaderVersion: string?, hardwareVersion: number?, languageId: number?}
Properties
mcuVersion
stringversion
stringmajMin
stringtargetId
(string | number)isBootloader
booleanisRecoveryMode
boolean?isOSU
booleanproviderName
(string | null | undefined)managerAllowed
booleanpinValidated
booleanseVersion
string?mcuBlVersion
string?mcuTargetId
number?seTargetId
number?onboarded
boolean?hasDevFirmware
boolean?bootloaderVersion
string?hardwareVersion
number?languageId
number?
DeviceModelInfo
Type: {modelId: DeviceModelId, deviceInfo: DeviceInfo, apps: Array<{name: string, version: string}>}
Properties
modelId
DeviceModelIddeviceInfo
DeviceInfoapps
Array<{name: string, version: string}>
DeviceVersion
Type: {id: Id, name: string, display_name: string, target_id: string, description: string, device: Id, providers: Array<Id>, mcu_versions: Array<Id>, se_firmware_final_versions: Array<Id>, osu_versions: Array<Id>, application_versions: Array<Id>, date_creation: string, date_last_modified: string}
Properties
id
Idname
stringdisplay_name
stringtarget_id
stringdescription
stringdevice
Idproviders
Array<Id>mcu_versions
Array<Id>se_firmware_final_versions
Array<Id>osu_versions
Array<Id>application_versions
Array<Id>date_creation
stringdate_last_modified
string
McuVersion
Type: {id: Id, mcu: Id, name: string, description: (string | null | undefined), providers: Array<Id>, from_bootloader_version: string, device_versions: Array<Id>, se_firmware_final_versions: Array<Id>, date_creation: string, date_last_modified: string}
Properties
id
Idmcu
Idname
stringdescription
(string | null | undefined)providers
Array<Id>from_bootloader_version
stringdevice_versions
Array<Id>se_firmware_final_versions
Array<Id>date_creation
stringdate_last_modified
string
SeedPhraseType
FirmwareInfo
Type: {isBootloader: boolean, rawVersion: string, targetId: number, seVersion: string?, mcuVersion: string, mcuBlVersion: string?, mcuTargetId: number?, seTargetId: number?, flags: Buffer, bootloaderVersion: string?, hardwareVersion: number?, languageId: number?}
Properties
isBootloader
booleanrawVersion
stringtargetId
numberseVersion
string?mcuVersion
stringmcuBlVersion
string?mcuTargetId
number?seTargetId
number?flags
BufferbootloaderVersion
string?hardwareVersion
number?languageId
number?
OsuFirmware
Type: any
FinalFirmware
Type: any
FirmwareUpdateContext
Type: {osu: OsuFirmware, final: FinalFirmware, shouldFlashMCU: boolean}
Properties
osu
OsuFirmwarefinal
FinalFirmwareshouldFlashMCU
boolean
ApplicationVersion
Type: {id: Id, name: string, version: string, app: Id, description: (string | null | undefined), display_name: string, icon: string, notes: (string | null | undefined), perso: string, hash: string, firmware: string, firmware_key: string, delete: string, delete_key: string, device_versions: Array<Id>, se_firmware_final_versions: Array<Id>, providers: Array<Id>, date_creation: string, date_last_modified: string, type: AppType?, bytes: (number | null | undefined), warning: (string | null | undefined), currency: CryptoCurrency?}
Properties
id
Idname
stringversion
stringapp
Iddescription
(string | null | undefined)display_name
stringicon
stringnotes
(string | null | undefined)perso
stringhash
stringfirmware
stringfirmware_key
stringdelete
stringdelete_key
stringdevice_versions
Array<Id>se_firmware_final_versions
Array<Id>providers
Array<Id>date_creation
stringdate_last_modified
stringtype
AppType?bytes
(number | null | undefined)warning
(string | null | undefined)currency
CryptoCurrency?
Application
Type: {id: Id, name: string, description: (string | null | undefined), application_versions: Array<ApplicationVersion>, providers: Array<Id>, category: Id, publisher: (Id | null | undefined), date_creation: string, date_last_modified: string, currencyId: (string | null | undefined), authorName: (string | null | undefined), supportURL: (string | null | undefined), contactURL: (string | null | undefined), sourceURL: (string | null | undefined), compatibleWalletsJSON: (string | null | undefined)}
Properties
id
Idname
stringdescription
(string | null | undefined)application_versions
Array<ApplicationVersion>providers
Array<Id>category
Idpublisher
(Id | null | undefined)date_creation
stringdate_last_modified
stringcurrencyId
(string | null | undefined)authorName
(string | null | undefined)supportURL
(string | null | undefined)contactURL
(string | null | undefined)sourceURL
(string | null | undefined)compatibleWalletsJSON
(string | null | undefined)
AppType
App
App is higher level on top of Application and ApplicationVersion with all fields Live needs and in normalized form (but still serializable)
Type: {id: Id, name: string, displayName: string, version: string, currencyId: (string | null | undefined), description: (string | null | undefined), dateModified: string, icon: string, authorName: (string | null | undefined), supportURL: (string | null | undefined), contactURL: (string | null | undefined), sourceURL: (string | null | undefined), compatibleWallets: Array<{name: string, url: (string | null | undefined)}>, hash: string, perso: string, firmware: string, firmware_key: string, delete: string, delete_key: string, dependencies: Array<string>, bytes: (number | null | undefined), warning: (string | null | undefined), indexOfMarketCap: number, isDevTools: boolean, type: AppType}
Properties
id
Idname
stringdisplayName
stringversion
stringcurrencyId
(string | null | undefined)description
(string | null | undefined)dateModified
stringicon
stringauthorName
(string | null | undefined)supportURL
(string | null | undefined)contactURL
(string | null | undefined)sourceURL
(string | null | undefined)compatibleWallets
Array<{name: string, url: (string | null | undefined)}>hash
stringperso
stringfirmware
stringfirmware_key
stringdelete
stringdelete_key
stringdependencies
Array<string>bytes
(number | null | undefined)warning
(string | null | undefined)indexOfMarketCap
numberisDevTools
booleantype
AppType
Category
Type: {id: Id, name: string, description: (string | null | undefined), providers: Array<Id>, applications: Array<Id>, date_creation: string, date_last_modified: string}
Properties
id
Idname
stringdescription
(string | null | undefined)providers
Array<Id>applications
Array<Id>date_creation
stringdate_last_modified
string
SocketEvent
Type: ({type: "bulk-progress"
, progress: number, index: number, total: number} | {type: "result"
, payload: any} | {type: "warning"
, message: string} | {type: "device-permission-requested"
, wording: string} | {type: "device-permission-granted"
} | {type: "exchange-before"
, nonce: number, apdu: Buffer} | {type: "exchange"
, nonce: number, apdu: Buffer, data: Buffer, status: number} | {type: "opened"
} | {type: "closed"
})
NFTStandard
Type: ("ERC721"
| "ERC1155"
)
NFTMediaSize
Type: ("preview"
| "big"
| "original"
)
NFTMedias
Type: Record<NFTMediaSize, {uri: string, mediaType: string}>
NFTMetadata
Type: {tokenName: (string | null), nftName: (string | null), medias: NFTMedias, description: (string | null), properties: Array<Record<("key"
| "value"
), string>>, links: Record<NFTMetadataLinksProviders, string>, staxImage: string?}
Properties
tokenName
(string | null)nftName
(string | null)medias
NFTMediasdescription
(string | null)properties
Array<Record<("key"
|"value"
), string>>links
Record<NFTMetadataLinksProviders, string>staxImage
string?
NFTCollectionMetadata
Type: {tokenName: (string | null)}
Properties
tokenName
(string | null)
ProtoNFT
Type: {id: string, tokenId: string, amount: BigNumber, contract: string, standard: NFTStandard, currencyId: CryptoCurrencyIds, metadata: NFTMetadata?}
Properties
id
stringtokenId
stringamount
BigNumbercontract
stringstandard
NFTStandardcurrencyId
CryptoCurrencyIdsmetadata
NFTMetadata?
ProtoNFTRaw
Type: any
NFT
Type: any
NFTMetadataLinksProviders
Type: ("opensea"
| "rarible"
| "explorer"
)
NFTMetadataResponse
Type: {status: (200
| 404
| 500
), result: ({contract: string, tokenId: string, tokenName: (string | null), nftName: (string | null), medias: NFTMedias, description: (string | null), properties: Array<Record<("key"
| "value"
), string>>, links: Record<NFTMetadataLinksProviders, string>, staxImage: string?} | null)?}
Properties
status
(200
|404
|500
)result
({contract: string, tokenId: string, tokenName: (string | null), nftName: (string | null), medias: NFTMedias, description: (string | null), properties: Array<Record<("key"
|"value"
), string>>, links: Record<NFTMetadataLinksProviders, string>, staxImage: string?} | null)?
NFTCollectionMetadataResponse
Type: {status: (200
| 404
| 500
), result: ({contract: string, tokenName: (string | null)} | null)?}
Properties
FloorPrice
Type: {ticker: string, value: number}
Properties
OperationType
Type: ("IN"
| "OUT"
| "NONE"
| "CREATE"
| "REVEAL"
| "DELEGATE"
| "UNDELEGATE"
| "REDELEGATE"
| "REWARD"
| "FEES"
| "FREEZE"
| "UNFREEZE"
| "VOTE"
| "REWARD_PAYOUT"
| "BOND"
| "UNBOND"
| "WITHDRAW_UNBONDED"
| "SET_CONTROLLER"
| "SLASH"
| "NOMINATE"
| "CHILL"
| "APPROVE"
| "OPT_IN"
| "OPT_OUT"
| "LOCK"
| "UNLOCK"
| "WITHDRAW"
| "REVOKE"
| "ACTIVATE"
| "REGISTER"
| "NFT_IN"
| "NFT_OUT"
| "STAKE"
| "UNSTAKE"
| "WITHDRAW_UNSTAKED"
)
Operation
Type: {id: string, hash: string, type: OperationType, value: BigNumber, fee: BigNumber, senders: Array<string>, recipients: Array<string>, blockHeight: (number | null | undefined), blockHash: (string | null | undefined), transactionSequenceNumber: number?, accountId: string, standard: (NFTStandard | string)?, operator: string?, contract: string?, tokenId: string?, date: Date, extra: Record<string, any>, hasFailed: boolean?, subOperations: Array<Operation>?, internalOperations: Array<Operation>?, nftOperations: Array<Operation>?, transactionRaw: TransactionCommonRaw?}
Properties
id
stringhash
stringtype
OperationTypevalue
BigNumberfee
BigNumbersenders
Array<string>recipients
Array<string>blockHeight
(number | null | undefined)blockHash
(string | null | undefined)transactionSequenceNumber
number?accountId
stringstandard
(NFTStandard | string)?operator
string?contract
string?tokenId
string?date
Dateextra
Record<string, any>hasFailed
boolean?subOperations
Array<Operation>?internalOperations
Array<Operation>?nftOperations
Array<Operation>?transactionRaw
TransactionCommonRaw?
OperationRaw
Type: {id: string, hash: string, type: OperationType, value: string, fee: string, senders: Array<string>, recipients: Array<string>, blockHeight: (number | null | undefined), blockHash: (string | null | undefined), transactionSequenceNumber: number?, accountId: string, hasFailed: boolean?, standard: (NFTStandard | string)?, operator: string?, contract: string?, tokenId: string?, date: string, extra: Record<string, any>, subOperations: Array<OperationRaw>?, internalOperations: Array<OperationRaw>?, nftOperations: Array<OperationRaw>?, transactionRaw: TransactionCommonRaw?}
Properties
id
stringhash
stringtype
OperationTypevalue
stringfee
stringsenders
Array<string>recipients
Array<string>blockHeight
(number | null | undefined)blockHash
(string | null | undefined)transactionSequenceNumber
number?accountId
stringhasFailed
boolean?standard
(NFTStandard | string)?operator
string?contract
string?tokenId
string?date
stringextra
Record<string, any>subOperations
Array<OperationRaw>?internalOperations
Array<OperationRaw>?nftOperations
Array<OperationRaw>?transactionRaw
TransactionCommonRaw?
DailyOperationsSection
Type: {day: Date, data: Array<Operation>}
Properties
DailyOperations
Type: {sections: Array<DailyOperationsSection>, completed: boolean}
Properties
sections
Array<DailyOperationsSection>completed
boolean
PaginationConfig
A pagination config holds the user's pagination state this is a state that usually should leave during the app lifecycle, but is not persisted it drives the number of operations to poll in accounts when a user paginate more, the number should accordingly be incremented The UI should manage scrolling ahead of time (e.g. if 30 ops is displayed and UI have pages of 20 ops, the UI can already request to poll 70 ops so it have 2 pages in advance) The UI must always do max() to keep the increasing the counter and not going back to lower value: that optim the sync to not recompute things too much
Type: {operationsPerAccountId: Record<string, number>?, operations: number?}
Properties
SyncConfig
Type: {paginationConfig: PaginationConfig, withoutSynchronize: boolean?, blacklistedTokenIds: Array<string>?}
Properties
paginationConfig
PaginationConfigwithoutSynchronize
boolean?blacklistedTokenIds
Array<string>?
BalanceHistoryData
Type: {date: Date, value: number}
Properties
BalanceHistory
Type: Array<BalanceHistoryData>
BalanceHistoryRaw
BalanceHistoryWithCountervalue
Type: Array<any>
ValueChange
Type: {percentage: (number | null | undefined), value: number}
Properties
AccountPortfolio
Type: {history: BalanceHistoryWithCountervalue, countervalueAvailable: boolean, countervalueReceiveSum: number, countervalueSendSum: number, cryptoChange: ValueChange, countervalueChange: ValueChange}
Properties
history
BalanceHistoryWithCountervaluecountervalueAvailable
booleancountervalueReceiveSum
numbercountervalueSendSum
numbercryptoChange
ValueChangecountervalueChange
ValueChange
CurrencyPortfolio
Type: {history: BalanceHistoryWithCountervalue, countervalueAvailable: boolean, histories: Array<BalanceHistoryWithCountervalue>, accounts: AccountLikeArray, cryptoChange: ValueChange, range: PortfolioRange, countervalueChange: ValueChange}
Properties
history
BalanceHistoryWithCountervaluecountervalueAvailable
booleanhistories
Array<BalanceHistoryWithCountervalue>accounts
AccountLikeArraycryptoChange
ValueChangerange
PortfolioRangecountervalueChange
ValueChange
Portfolio
Type: {balanceHistory: BalanceHistory, balanceAvailable: boolean, availableAccounts: Array<AccountLike>, unavailableCurrencies: Array<(CryptoCurrency | TokenCurrency)>, accounts: Array<AccountLike>, range: PortfolioRange, histories: Array<BalanceHistoryWithCountervalue>, countervalueReceiveSum: number, countervalueSendSum: number, countervalueChange: ValueChange}
Properties
balanceHistory
BalanceHistorybalanceAvailable
booleanavailableAccounts
Array<AccountLike>unavailableCurrencies
Array<(CryptoCurrency | TokenCurrency)>accounts
Array<AccountLike>range
PortfolioRangehistories
Array<BalanceHistoryWithCountervalue>countervalueReceiveSum
numbercountervalueSendSum
numbercountervalueChange
ValueChange
PortfolioRangeConfig
Type: {count: number?, granularityId: GranularityId, startOf: function (arg0: Date): Date, increment: number}
Properties
PortfolioRange
Type: ("all"
| "year"
| "month"
| "week"
| "day"
)
AssetsDistribution
Type: {isAvailable: boolean, list: Array<DistributionItem>, showFirst: number, sum: number}
Properties
PostOnboardingActionId
Unique identifier of a post onboarding action.
navigationParams
Navigation params when the user presses the button for this action
- In LLM, this will be used like this:
navigation.navigate(...navigationParams)
- In LLD, this will be used like this:
history.push(...navigationParams)
Type: Array<any>
startAction
The function to call when the user presses the button for this action
Type: function (): void
PostOnboardingAction
All necessary information for complete integration of a post onboarding action.
Type: any
disabled
Allow to display the action without letting the user access its flow
Type: boolean
featureFlagId
If this action is linked to a feature that is enabled by a feature flag, use this property to identify the feature flag.
Type: FeatureId
Icon
Icon displayed for this action in the post onboarding hub.
Type: function (props: {size: number, color: string}): any
title
Title displayed for this action in the post onboarding hub.
Type: string
titleCompleted
Title displayed for this action in the post onboarding hub when the action is completed.
Type: string
description
Description displayed for this action in the post onboarding hub.
Type: string
tagLabel
Tag displayed for this action in the post onboarding hub.
Type: string
actionCompletedPopupLabel
Will appear in an success alert at the bottom of the post-onboarding hub after completing this action.
Type: string
buttonLabelForAnalyticsEvent
Value to use in the "button" property of the event sent when the user triggers the action by pressing the button in the post onboarding hub.
Type: string
PostOnboardingActionState
State of a post onboarding action.
Type: {completed: boolean}
Properties
completed
boolean
completed
Whether the user has completed this action. This will be reflected in the UI of the post onboarding hub.
Type: boolean
PostOnboardingState
To be used for a redux reducer. Keeps all necessary information about the state of the post onboarding hub and can be persisted in storage.
Type: {deviceModelId: (DeviceModelId | null), walletEntryPointDismissed: boolean, actionsToComplete: Array<PostOnboardingActionId>, actionsCompleted: any, lastActionCompleted: (PostOnboardingActionId | null)}
Properties
deviceModelId
(DeviceModelId | null)walletEntryPointDismissed
booleanactionsToComplete
Array<PostOnboardingActionId>actionsCompleted
anylastActionCompleted
(PostOnboardingActionId | null)
deviceModelId
Model Id of the device for which the post onboarding was started.
Type: (DeviceModelId | null)
walletEntryPointDismissed
Did the user dismiss the post onboarding entry point on the wallet page.
Type: boolean
actionsToComplete
List of all actions that have to be completed in this post onboarding (whether they are completed or). This is used to populate the list of actions in the post onboarding hub UI.
Type: Array<PostOnboardingActionId>
actionsCompleted
"completed" state for each action.
Type: any
lastActionCompleted
Last action that the user has completed.
This is used to display potentially different content in the post onboarding hub UI depending on the last action that was completed.
Type: (PostOnboardingActionId | null)
PostOnboardingHubState
Digest of the store & list of actions into something directly consumable by UI. (All UI data will be in there).
Type: {deviceModelId: (DeviceModelId | null), lastActionCompleted: (PostOnboardingAction | null), actionsState: Array<any>}
Properties
deviceModelId
(DeviceModelId | null)lastActionCompleted
(PostOnboardingAction | null)actionsState
Array<any>
SwapOperation
Type: {provider: string, swapId: string, status: string, receiverAccountId: string, tokenId: string?, operationId: string, fromAmount: BigNumber, toAmount: BigNumber}
Properties
provider
stringswapId
stringstatus
stringreceiverAccountId
stringtokenId
string?operationId
stringfromAmount
BigNumbertoAmount
BigNumber
SwapOperationRaw
Type: {provider: string, swapId: string, status: string, receiverAccountId: string, tokenId: string?, operationId: string, fromAmount: string, toAmount: string}
Properties
provider
stringswapId
stringstatus
stringreceiverAccountId
stringtokenId
string?operationId
stringfromAmount
stringtoAmount
string
SignedOperation
Type: {operation: Operation, signature: string, signatureRaw: Record<string, any>?, expirationDate: (Date | null | undefined)}
Properties
operation
Operationsignature
stringsignatureRaw
Record<string, any>?expirationDate
(Date | null | undefined)
SignedOperationRaw
Type: {operation: OperationRaw, signature: string, signatureRaw: Record<string, any>?, expirationDate: (string | null | undefined)}
Properties
operation
OperationRawsignature
stringsignatureRaw
Record<string, any>?expirationDate
(string | null | undefined)
SignOperationEvent
Type: ({type: "device-streaming"
, progress: number, index: number, total: number} | {type: "device-signature-requested"
} | {type: "device-signature-granted"
} | {type: "signed"
, signedOperation: SignedOperation})
SignOperationEventRaw
Type: ({type: "device-streaming"
, progress: number, index: number, total: number} | {type: "device-signature-requested"
} | {type: "device-signature-granted"
} | {type: "signed"
, signedOperation: SignedOperationRaw})
TransactionCommon
Transaction is a generic object that holds all state for all transactions there are generic fields and coin specific fields. That's why almost all fields are optionals
Type: {amount: BigNumber, recipient: string, recipientDomain: DomainServiceResolution?, useAllAmount: boolean?, subAccountId: (string | null | undefined)?, feesStrategy: ("slow"
| "medium"
| "fast"
| "custom"
| null)?}
Properties
amount
BigNumberrecipient
stringrecipientDomain
DomainServiceResolution?useAllAmount
boolean?subAccountId
(string | null | undefined)?feesStrategy
("slow"
|"medium"
|"fast"
|"custom"
| null)?
TransactionCommonRaw
Type: {amount: string, recipient: string, recipientDomain: DomainServiceResolution?, useAllAmount: boolean?, subAccountId: (string | null | undefined)?, feesStrategy: ("slow"
| "medium"
| "fast"
| "custom"
| null)?}
Properties
amount
stringrecipient
stringrecipientDomain
DomainServiceResolution?useAllAmount
boolean?subAccountId
(string | null | undefined)?feesStrategy
("slow"
|"medium"
|"fast"
|"custom"
| null)?
FeeStrategy
User can have 3 differents choice for their fee Most of the time mid is low * 1.25 and high is low * 1.5 They are some exception as eth that got his own meter
Type: {amount: BigNumber, displayedAmount: BigNumber?, txParameters: FeeStrategyTxParameters?, label: string, unit: Unit?, disabled: boolean?, extra: Record<string, BigNumber>?}
Properties
amount
BigNumberdisplayedAmount
BigNumber?txParameters
FeeStrategyTxParameters?label
stringunit
Unit?disabled
boolean?extra
Record<string, BigNumber>?
TransactionStatusCommon
TransactionStatus is a view of Transaction with general info to be used on the UI and status info.
Type: {errors: Record<string, Error>, warnings: Record<string, Error>, estimatedFees: BigNumber, amount: BigNumber, totalSpent: BigNumber, recipientIsReadOnly: boolean?}
Properties
errors
Record<string, Error>warnings
Record<string, Error>estimatedFees
BigNumberamount
BigNumbertotalSpent
BigNumberrecipientIsReadOnly
boolean?
TransactionStatusCommonRaw
Type: {errors: Record<string, string>, warnings: Record<string, string>, estimatedFees: string, amount: string, totalSpent: string, useAllAmount: boolean?, recipientIsReadOnly: boolean?}