PHP WebShell

Текущая директория: /opt/BitGoJS/modules/abstract-lightning/dist/src/wallet

Просмотр файла: selfCustodialLightning.d.ts

import * as sdkcore from '@bitgo/sdk-core';
import { BackupResponse, UpdateLightningWalletClientRequest } from '../codecs';
import { ILightningWallet, LightningWallet } from './lightning';
/**
 * Updates the coin-specific configuration for a Lightning Wallet.
 *
 * @param {Wallet} wallet - Wallet.
 * @param {UpdateLightningWalletClientRequest} params - The parameters containing the updated wallet-specific details.
 *   - `encryptedSignerMacaroon` (optional): This macaroon is used by the watch-only node to ask the signer node to sign transactions.
 *     Encrypted with ECDH secret key from private key of wallet's user auth key and public key of lightning service.
 *   - `encryptedSignerAdminMacaroon` (optional): Generated when initializing the wallet of the signer node.
 *     Encrypted with client's wallet passphrase.
 *   - `signerHost` (optional): The host address of the Lightning signer node.
 *   - `encryptedSignerTlsKey` (optional): The wallet passphrase encrypted TLS key of the signer.
 *   - `passphrase` (required): The wallet passphrase.
 *   - `signerTlsCert` (optional): The TLS certificate of the signer.
 *   - `watchOnlyAccounts` (optional): These are the accounts used to initialize the watch-only wallet.
 * @returns {Promise<unknown>} A promise resolving to the updated wallet response or throwing an error if the update fails.
 */
export declare function updateWalletCoinSpecific(wallet: sdkcore.IWallet, params: UpdateLightningWalletClientRequest): Promise<unknown>;
export interface ISelfCustodialLightningWallet extends ILightningWallet {
    /**
     * Get the channel backup for the given wallet.
     * @returns {Promise<BackupResponse>} A promise resolving to the channel backup
     */
    getChannelBackup(): Promise<BackupResponse>;
}
export declare class SelfCustodialLightningWallet extends LightningWallet implements ISelfCustodialLightningWallet {
    constructor(wallet: sdkcore.IWallet);
    getChannelBackup(): Promise<BackupResponse>;
}
//# sourceMappingURL=selfCustodialLightning.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!