UNPKG

@ledgerhq/live-common

Version:
127 lines • 8.7 kB
/// <reference types="node" /> /// <reference types="node" /> declare const _default: { algorand: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-algorand/lib/types").AlgorandTransaction, any>; }; bitcoin: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-bitcoin/lib/types").Transaction>; }; canton: { accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-canton/lib/index").Transaction>; currencyBridge: { preload: () => Promise<{}>; hydrate: () => void; scanAccounts: () => any; }; }; cardano: { accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-cardano/lib/types").Transaction>; currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; }; casper: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-casper/lib/types/common").Transaction>; }; cosmos: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-cosmos/lib/types/index").Transaction>; }; evm: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-evm/lib/types/transaction").Transaction>; }; icon: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-icon/lib/types/index").Transaction>; }; multiversx: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-multiversx/lib/types").Transaction, any>; }; polkadot: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-polkadot/lib/index").Transaction>; }; solana: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-solana/lib/types").Transaction, import("@ledgerhq/coin-solana/lib/types").SolanaAccount, import("@ledgerhq/types-live").TransactionStatusCommon>; } | { accountBridge: { sync: (initialAccount: import("@ledgerhq/types-live").Account, syncConfig: import("@ledgerhq/types-live").SyncConfig) => import("rxjs").Observable<(arg0: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").Account>; receive(account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount, arg1: { verify?: boolean | undefined; deviceId: string; subAccountId?: string | undefined; freshAddressIndex?: number | undefined; path?: string | undefined; }): import("rxjs").Observable<{ address: string; path: string; publicKey: string; chainCode?: string | undefined; }>; createTransaction(account: import("@ledgerhq/types-live").AccountLike<import("@ledgerhq/coin-solana/lib/types").SolanaAccount>): import("@ledgerhq/coin-solana/lib/types").Transaction; updateTransaction(t: import("@ledgerhq/coin-solana/lib/types").Transaction, patch: Partial<import("@ledgerhq/coin-solana/lib/types").Transaction>): import("@ledgerhq/coin-solana/lib/types").Transaction; prepareTransaction(account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount, transaction: import("@ledgerhq/coin-solana/lib/types").Transaction): Promise<import("@ledgerhq/coin-solana/lib/types").Transaction>; getTransactionStatus(account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount, transaction: import("@ledgerhq/coin-solana/lib/types").Transaction): Promise<import("@ledgerhq/types-live").TransactionStatusCommon>; estimateMaxSpendable(arg0: { account: import("@ledgerhq/types-live").AccountLike<import("@ledgerhq/coin-solana/lib/types").SolanaAccount>; parentAccount?: import("@ledgerhq/coin-solana/lib/types").SolanaAccount | null | undefined; transaction?: import("@ledgerhq/coin-solana/lib/types").Transaction | null | undefined; }): Promise<import("bignumber.js").BigNumber>; initAccount?: ((account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount) => void) | undefined; signOperation: import("@ledgerhq/types-live").SignOperationFnSignature<import("@ledgerhq/coin-solana/lib/types").Transaction, import("@ledgerhq/coin-solana/lib/types").SolanaAccount>; signRawOperation: import("@ledgerhq/types-live").SignRawOperationFnSignature<import("@ledgerhq/coin-solana/lib/types").SolanaAccount>; broadcast: import("@ledgerhq/types-live").BroadcastFnSignature<import("@ledgerhq/coin-solana/lib/types").SolanaAccount>; getSerializedAddressParameters: (account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount, addressFormat?: string | undefined) => Buffer; assignToAccountRaw?: ((account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount, accountRaw: import("@ledgerhq/types-live").AccountRaw) => void) | undefined; assignFromAccountRaw?: ((accountRaw: import("@ledgerhq/types-live").AccountRaw, account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount) => void) | undefined; assignToTokenAccountRaw?: ((tokenAccount: import("@ledgerhq/types-live").TokenAccount, tokenAccountRaw: import("@ledgerhq/types-live").TokenAccountRaw) => void) | undefined; assignFromTokenAccountRaw?: ((tokenAccountRaw: import("@ledgerhq/types-live").TokenAccountRaw, tokenAccount: import("@ledgerhq/types-live").TokenAccount) => void) | undefined; fromOperationExtraRaw?: ((extraRaw: unknown) => unknown) | undefined; toOperationExtraRaw?: ((extra: unknown) => unknown) | undefined; formatAccountSpecifics?: ((account: import("@ledgerhq/coin-solana/lib/types").SolanaAccount) => string) | undefined; formatOperationSpecifics?: ((operation: import("@ledgerhq/types-live").Operation, unit: import("@ledgerhq/types-cryptoassets").Unit | null | undefined) => string) | undefined; }; currencyBridge: { preload: () => Promise<{}>; hydrate: () => void; scanAccounts: (info: import("@ledgerhq/types-live").ScanInfo) => import("rxjs").Observable<import("@ledgerhq/types-live").ScanAccountEvent>; getPreloadStrategy?: ((currency: import("@ledgerhq/types-cryptoassets").CryptoCurrency) => Partial<{ preloadMaxAge: number; }>) | undefined; nftResolvers?: { nftMetadata: (arg: { contract: string; tokenId: string; currencyId: string; }) => Promise<import("@ledgerhq/types-live").NFTMetadataResponse>; collectionMetadata: (arg: { contract: string; currencyId: string; }) => Promise<import("@ledgerhq/types-live").NFTCollectionMetadataResponse>; } | undefined; }; }; stellar: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-stellar/lib/types/bridge").Transaction>; }; tezos: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-tezos/lib/types/bridge").Transaction>; }; tron: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-tron/lib/index").Transaction>; }; xrp: { currencyBridge: import("@ledgerhq/types-live").CurrencyBridge; accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-xrp/lib/types/bridge").Transaction>; }; }; export default _default; //# sourceMappingURL=mock.d.ts.map