PHP WebShell

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

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

import { BaseUtils } from '@bitgo/sdk-core';
import { Nep141Token } from '@bitgo/statics';
export declare class Utils implements BaseUtils {
    /** @inheritdoc */
    isValidAddress(address: string): boolean;
    /** @inheritdoc */
    isValidBlockId(hash: string): boolean;
    /** @inheritdoc */
    isValidPrivateKey(key: string): boolean;
    /** @inheritdoc */
    isValidPublicKey(pubKey: string): boolean;
    /**
     * Check if the key have the correct format
     *
     * @param {string} key - string to be checked
     * @return {boolean} true if the string have the correct format otherwise return false
     */
    isValidKey(key: string): boolean;
    /**
     * Check if the account have the correct format
     *
     * @param {string} accountId - string to be checked
     * @return {boolean} if the string can have the correct format and match the expected length
     * or can create a new keyPair
     */
    isValidAccountId(accountId: string): boolean;
    /** @inheritdoc */
    isValidSignature(signature: string): boolean;
    /** @inheritdoc */
    isValidTransactionId(txId: string): boolean;
    base58Encode(value: Uint8Array): string;
    /**
     * Check if base58 decoded string is equal to length
     *
     * @param {string} value - string to be checked
     * @param {number} length - expected decoded length
     * @return {boolean} if the string can be decoded as base58 and match the expected length
     */
    isBase58(value: string, length: number): boolean;
    /**
     * Find the bitgo token name using contract address
     *
     * @param {String} contractAddress the token contract address
     * @returns {String} token name
     */
    findTokenNameFromContractAddress(contractAddress: string): string | undefined;
    /**
     * Find the token instance using the bitgo token name
     *
     * @param {String} tokenName the bitgo name of the token
     * @returns {Nep141Token|undefined} token instance if found
     */
    getTokenInstanceFromTokenName(tokenName: string): Nep141Token | undefined;
    /**
     * Convert from raw gas units to yocto Near value
     *
     * @param {String} gasUnits - raw gas units (e.g. "30000000000000" = 30TGas)
     * @returns {String} value in yoctoNear as a string
     */
    convertGasUnitsToYoctoNear(gasUnits: string): string;
    /**
     * Convert the given record into base64 string
     *
     * @param {Record<String, String>} data the input in the form of a map
     * @returns {String} base64 encoded string
     */
    convertToBase64(data: Record<string, string>): string;
}
declare const utils: Utils;
export default utils;
//# sourceMappingURL=utils.d.ts.map

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


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