PHP WebShell

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

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

import 'should';
import 'should-http';
import { CoinConstructor, Wallet } from '@bitgo/sdk-core';
import { BitGoAPIOptions, BitGoAPI } from '@bitgo/sdk-api';
export interface TestableBG {
    new (args: BitGoAPIOptions): BitGoAPI;
    initializeTestVars: () => void;
    testUserOTP: () => string;
    authenticateTestUser: (otp: string) => Promise<void>;
    authenticateSharingTestUser: (otp: string) => Promise<void>;
    authenticateKnownBalanceTestUser: (otp: string) => Promise<void>;
    authenticateEnterpriseCreatorTestUser: (otp: string) => Promise<void>;
    authenticateChangePWTestUser: (otp: string) => Promise<{
        password: string;
        alternatePassword: string;
    }>;
    authenticateOfcTestUser: (otp: string) => Promise<void>;
    checkFunded: () => Promise<void>;
    nockEthWallet: () => Wallet;
    safeRegister: (coin: string, coinConstructor: CoinConstructor) => void;
}
export type TestBitGoAPI = TestableBG & BitGoAPI;
export declare class TestBitGo {
    static TEST_ACCESSTOKEN: string;
    static TEST_ACCESSTOKEN_SHAREDUSER: string;
    static TEST_AUTHCODE: string;
    static TEST_CLIENTID: string;
    static TEST_CLIENTSECRET: string;
    static TEST_ENTERPRISE: string;
    static TEST_ENTERPRISE_2: string;
    static TEST_ENTERPRISE_CREATION_PASSWORD: string;
    static TEST_ENTERPRISE_CREATION_USER: string;
    static TEST_ENTERPRISE_PENDING_APPROVAL_ID: string;
    static TEST_FEE_SINGLE_KEY_ADDRESS: string;
    static TEST_FEE_SINGLE_KEY_WIF: string;
    static TEST_KNOWN_BALANCE: number;
    static TEST_KNOWN_BALANCE_PASSWORD: string;
    static TEST_KNOWN_BALANCE_USER: string;
    static TEST_PASSWORD: string;
    static TEST_REFRESHTOKEN: string;
    static TEST_SHARED_KEY_PASSWORD: string;
    static TEST_SHARED_KEY_USER: string;
    static TEST_SHARED_KEY_USERID: string;
    static TEST_SHARED_WALLET_ADDRESS: string;
    static TEST_SHARED_WALLET_CHANGE_ADDRESS: string;
    static TEST_THIRD_PASSWORD: string;
    static TEST_THIRD_USER: string;
    static TEST_THIRD_USERID: string;
    static TEST_USER: string;
    static TEST_USER_ECDH_XPUB: string;
    static TEST_USERID: string;
    static TEST_WALLET_PENDING_APPROVAL_ID: string;
    static TEST_WALLET_REGROUP_ADDRESS: string;
    static TEST_WALLET_REGROUP_PASSCODE: string;
    static TEST_WALLET1_ADDRESS: string;
    static TEST_WALLET1_ADDRESS2: string;
    static TEST_WALLET1_PASSCODE: string;
    static TEST_WALLET1_XPUB: string;
    static TEST_WALLET2_ADDRESS: string;
    static TEST_WALLET2_PASSCODE: string;
    static TEST_WALLET3_ADDRESS: string;
    static TEST_WALLET3_ADDRESS2: string;
    static TEST_WALLET3_ADDRESS3: string;
    static TEST_WALLET3_PASSCODE: string;
    static TEST_WALLETMULTAPPROVERS_ADDRESS: string;
    static TEST_WALLETMULTAPPROVERS_PASSCODE: string;
    static TEST_WEBHOOK_PENDING_APPROVAL_SIMULATION_ID: string;
    static TEST_WEBHOOK_TRANSACTION_SIMULATION_ID: string;
    static OFC_TEST_USER: string;
    static OFC_TEST_PASSWORD: string;
    static TRAVEL_RULE_TXID: string;
    static V2: Partial<{
        OFC_TEST_WALLET_ID: string;
        TEST_ALGO_WALLET_ID: string;
        TEST_BCH_WALLET_CASH_ADDRESS: string;
        TEST_BCH_WALLET_ID: string;
        TEST_BCH_WALLET_PASSPHRASE: string;
        TEST_ERC20_TOKEN_ADDRESS: string;
        TEST_ERC20_TOKEN_RECIPIENT: string;
        TEST_ETH_WALLET_FIRST_ADDRESS: string;
        TEST_ETH_WALLET_ID: string;
        TEST_ETH_WALLET_PASSPHRASE: string;
        TEST_ETH2_WALLET_ID: string;
        TEST_ETH2_WALLET_PASSPHRASE: string;
        TEST_KEYCHAIN_CHANGE_PW_PASSWORD: string;
        TEST_KEYCHAIN_CHANGE_PW_USER: string;
        TEST_RECOVERY_PASSCODE: string;
        TEST_SWEEP1_ADDRESS: string;
        TEST_SWEEP1_ID: string;
        TEST_SWEEP1_LABEL: string;
        TEST_SWEEP1_PASSCODE: string;
        TEST_SWEEP1_XPUB: string;
        TEST_SWEEP2_ADDRESS: string;
        TEST_SWEEP2_ID: string;
        TEST_SWEEP2_LABEL: string;
        TEST_SWEEP2_PASSCODE: string;
        TEST_SWEEP2_XPUB: string;
        TEST_TDAI_TOKEN_ADDRESS: string;
        TEST_USERID: string;
        TEST_WALLET1_ADDRESS: string;
        TEST_WALLET1_ID: string;
        TEST_WALLET1_PASSCODE: string;
        TEST_WALLET1_XPUB: string;
        TEST_WALLET2_UNSPENTS_ID: string;
        TEST_WALLET2_UNSPENTS_LABEL: string;
        TEST_WALLET2_UNSPENTS_PASSCODE: string;
        TEST_WALLET2_UNSPENTS_XPUB: string;
        TEST_WEBHOOK_TRANSFER_SIMULATION_ID: string;
    }>;
    static decorate<T extends {
        new (...args: any[]): InstanceType<T>;
    }, U extends TestableBG & InstanceType<T>>(_bitgo: T, args?: BitGoAPIOptions): U;
}
//# sourceMappingURL=test_bitgo.d.ts.map

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


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