PHP WebShell

Текущая директория: /opt/BitGoJS/modules/sdk-coin-xtz/dist/src

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

import { BaseCoin, BitGoBase, ParsedTransaction, ParseTransactionOptions, KeyPair as SdkCoreKeyPair, SignedTransaction, TransactionExplanation, VerifyAddressOptions, VerifyTransactionOptions, MultisigType } from '@bitgo/sdk-core';
import { CoinFamily, BaseCoin as StaticsBaseCoin } from '@bitgo/statics';
import { Interface } from './lib';
export declare class Xtz extends BaseCoin {
    protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
    constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
    static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
    getChain(): string;
    getFamily(): CoinFamily;
    getFullName(): string;
    getBaseFactor(): number;
    /** {@inheritDoc } **/
    supportsMultisig(): boolean;
    /** inherited doc */
    getDefaultMultisigType(): MultisigType;
    /**
     * Flag for sending value of 0
     * @returns {boolean} True if okay to send 0 value, false otherwise
     */
    valuelessTransferAllowed(): boolean;
    /**
     * Xtz supports transfers to consolidate balance from receive address to the wallet contract
     */
    allowsAccountConsolidations(): boolean;
    /**
     * Checks if this is a valid base58 or hex address
     * @param address
     */
    isValidAddress(address: string): boolean;
    /**
     * Generate Tezos key pair - BitGo xpub format
     *
     * @param seed
     * @returns {Object} object with generated xpub, xprv
     */
    generateKeyPair(seed?: Buffer): SdkCoreKeyPair;
    parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction>;
    isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
    verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
    /**
     * Derive a user key using the chain path of the address
     * @param key
     * @param path
     * @returns {string} derived private key
     */
    deriveKeyWithPath({ key, path }: {
        key: string;
        path: string;
    }): string;
    /**
     * Assemble keychain and half-sign prebuilt transaction
     *
     * @param params
     * @param params.txPrebuild {Object} prebuild object returned by platform
     * @param params.prv {String} user prv
     * @returns Bluebird<SignedTransaction>
     */
    signTransaction(params: Interface.XtzSignTransactionOptions): Promise<SignedTransaction>;
    /**
     * Sign message with private key
     *
     * @param key
     * @param message
     */
    signMessage(key: SdkCoreKeyPair, message: string | Buffer): Promise<Buffer>;
    /**
     * Builds a funds recovery transaction without BitGo.
     * We need to do three queries during this:
     * 1) Node query - how much money is in the account
     * 2) Build transaction - build our transaction for the amount
     * 3) Send signed build - send our signed build to a public node
     * @param params
     */
    recover(params: any): Promise<any>;
    /**
     * Explain a Tezos transaction from txHex
     * @param params
     */
    explainTransaction(params: Interface.ExplainTransactionOptions): Promise<TransactionExplanation>;
    isValidPub(pub: string): boolean;
}
//# sourceMappingURL=xtz.d.ts.map

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


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