@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
126 lines • 9.15 kB
TypeScript
declare const _default: {
algorand: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-algorand/lib-es/types").AlgorandTransaction, any>;
};
bitcoin: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-bitcoin/lib-es/types").Transaction>;
};
canton: {
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-canton/lib-es/index").Transaction, import("@ledgerhq/coin-canton/lib-es/index").CantonAccount>;
currencyBridge: {
preload: () => Promise<{}>;
hydrate: () => void;
scanAccounts: () => any;
};
};
cardano: {
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-cardano/lib-es/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-es/types/common").Transaction>;
};
cosmos: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-cosmos/lib-es/types/index").Transaction>;
};
evm: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-evm/lib-es/types/transaction").Transaction>;
loadCoinConfig: () => void;
};
icon: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-icon/lib-es/types/index").Transaction>;
};
multiversx: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-multiversx/lib-es/types").Transaction, any>;
};
polkadot: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-polkadot/lib-es/index").Transaction>;
};
solana: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-solana/lib-es/types").Transaction, import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount, import("@ledgerhq/coin-solana/lib-es/types").TransactionStatus>;
} | {
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-es/types").SolanaAccount, arg1: {
verify?: boolean;
deviceId: string;
subAccountId?: string;
freshAddressIndex?: number;
path?: string;
}): import("rxjs").Observable<{
address: string;
path: string;
publicKey: string;
chainCode?: string;
}>;
createTransaction(account: import("@ledgerhq/types-live").AccountLike<import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount>): import("@ledgerhq/coin-solana/lib-es/types").Transaction;
updateTransaction(t: import("@ledgerhq/coin-solana/lib-es/types").Transaction, patch: Partial<import("@ledgerhq/coin-solana/lib-es/types").Transaction>): import("@ledgerhq/coin-solana/lib-es/types").Transaction;
prepareTransaction(account: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount, transaction: import("@ledgerhq/coin-solana/lib-es/types").Transaction): Promise<import("@ledgerhq/coin-solana/lib-es/types").Transaction>;
getTransactionStatus(account: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount, transaction: import("@ledgerhq/coin-solana/lib-es/types").Transaction): Promise<import("@ledgerhq/types-live").TransactionStatusCommon>;
estimateMaxSpendable(arg0: {
account: import("@ledgerhq/types-live").AccountLike<import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount>;
parentAccount?: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount | null | undefined;
transaction?: import("@ledgerhq/coin-solana/lib-es/types").Transaction | null | undefined;
}): Promise<import("bignumber.js").BigNumber>;
initAccount?: ((account: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount) => void) | undefined;
signOperation: import("@ledgerhq/types-live").SignOperationFnSignature<import("@ledgerhq/coin-solana/lib-es/types").Transaction, import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount>;
signRawOperation: import("@ledgerhq/types-live").SignRawOperationFnSignature<import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount>;
broadcast: import("@ledgerhq/types-live").BroadcastFnSignature<import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount>;
validateAddress: (address: string, parameters: Partial<import("@ledgerhq/types-live").AddressValidationCurrencyParameters>) => Promise<boolean>;
getSerializedAddressParameters: (account: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount, addressFormat?: string) => Buffer;
assignToAccountRaw?: ((account: import("@ledgerhq/coin-solana/lib-es/types").SolanaAccount, accountRaw: import("@ledgerhq/types-live").AccountRaw) => void) | undefined;
assignFromAccountRaw?: ((accountRaw: import("@ledgerhq/types-live").AccountRaw, account: import("@ledgerhq/coin-solana/lib-es/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: import("@ledgerhq/types-live").OperationExtraRaw) => import("@ledgerhq/types-live").OperationExtra) | undefined;
toOperationExtraRaw?: ((extra: import("@ledgerhq/types-live").OperationExtra) => import("@ledgerhq/types-live").OperationExtraRaw) | undefined;
formatAccountSpecifics?: ((account: import("@ledgerhq/coin-solana/lib-es/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) => import("@ledgerhq/types-live").PreloadStrategy;
getDescriptor?: (currency: import("@ledgerhq/types-cryptoassets").CryptoCurrency) => Record<string, unknown>;
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>;
};
};
};
stellar: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("../../families/stellar/types").Transaction>;
};
tezos: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-tezos/lib-es/types/bridge").Transaction>;
};
tron: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("@ledgerhq/coin-tron/lib-es/index").Transaction>;
};
xrp: {
currencyBridge: import("@ledgerhq/types-live").CurrencyBridge;
accountBridge: import("@ledgerhq/types-live").AccountBridge<import("../../families/xrp/types").Transaction>;
};
};
export default _default;
//# sourceMappingURL=mock.d.ts.map