PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-xtz/dist/src

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

import { BaseCoin, BitGoBase, ParsedTransaction, ParseTransactionOptions, KeyPair as SdkCoreKeyPair, SignedTransaction, TransactionExplanation, VerifyAddressOptions, VerifyTransactionOptions, MultisigType, AuditDecryptedKeyParams } from '@bitgo/sdk-core';
import { CoinFamily, BaseCoin as StaticsBaseCoin } from '@bitgo/statics';
import { Interface } from './lib';
import { RecoverOptions } from './lib/iface';
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;
    /** 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>;
    /**
     * Method to validate recovery params
     * @param {RecoverOptions} params
     * @returns {void}
     */
    validateRecoveryParams(params: RecoverOptions): void;
    /**
     * Make a query to blockchain explorer for information such as balance, token balance, solidity calls
     * @param query {Object} key-value pairs of parameters to append after /api
     * @param apiKey {string} optional API key to use instead of the one from the environment
     * @returns {Object} response from the blockchain explorer
     */
    recoveryBlockchainExplorerQuery(params: {
        actionPath: string;
        address?: string;
        action?: string;
    }, apiKey?: string): Promise<unknown>;
    /**
     * Queries public block explorer to get the next XTZ address details
     * @param {string} address
     * @param {string} apiKey - optional API key to use instead of the one from the environment
     * @returns {Promise<any>}
     */
    getAddressDetails(address: string, apiKey?: string): Promise<any>;
    /**
     * Query explorer for the balance of an address
     * @param {String} address - the XTZ base/receive address
     * @param {String} apiKey - optional API key to use instead of the one from the environment
     * @returns {BigNumber} address balance
     */
    queryAddressBalance(address: string, apiKey?: string): Promise<any>;
    /**
     * Generate and pack the data to sign for each transfer.
     *
     * @param {String} contractAddress Wallet address to withdraw funds from
     * @param {String} contractCounter Wallet internal counter
     * @param {String} destination Tezos address to send the funds to
     * @param {String} amount Number of mutez to move
     * @param {IMSClient} imsClient Existing IMS client connection to reuse
     * @return {String} data to sign in hex format
     */
    packDataToSign(contractAddress: any, contractCounter: any, destination: any, amount: any): Promise<any>;
    /**
     * 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: RecoverOptions): Promise<unknown>;
    /**
     * Explain a Tezos transaction from txHex
     * @param params
     */
    explainTransaction(params: Interface.ExplainTransactionOptions): Promise<TransactionExplanation>;
    isValidPub(pub: string): boolean;
    /** @inheritDoc */
    auditDecryptedKey(params: AuditDecryptedKeyParams): void;
}
//# sourceMappingURL=xtz.d.ts.map

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


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