PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-lib/dist/test/fixtures_thirdparty
Просмотр файла: fixtures.d.ts
import { Network } from '../../src/networks';
export type FixtureInfo = {
projectPath: string;
tag: string;
};
export declare function getArchiveUrl(fixtureInfo: FixtureInfo): string;
export declare function getArchiveRoot(fixtureInfo: FixtureInfo): string;
export declare function getFixtureInfo(network: Network): FixtureInfo;
export declare function readFile(network: Network, path: string): Promise<string>;
export declare function readJSON<T>(network: Network, path: string): Promise<T>;
export declare const sigHashTestFile = "sighash.json";
export type SigHashTestVector = [
rawTransaction: string,
script: string,
inputIndex: number,
hashType: number,
signatureHash: string
];
export type ZcashSigHashTestVector = [
rawTransaction: string,
script: string,
inputIndex: number,
hashType: number,
branchId: number,
signatureHash: string
];
export declare const txValidTestFile = "tx_valid.json";
export type TxValidVector = [
inputData: [prevoutHash: string, prevoutIndex: string, prevoutScriptPubKey: string][],
serializedTransaction: string,
verifyFlags: string
];
export declare function testFixture<T>(ctx: Mocha.Suite, network: Network, filename: string, callback: (this: Mocha.Context, data: T) => void): void;
export declare function testFixtureArray<T>(ctx: Mocha.Suite, network: Network, filename: string, callback: (this: Mocha.Context, data: T[]) => void): void;
//# sourceMappingURL=fixtures.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!