From: Chris Duncan Date: Fri, 28 Mar 2025 05:51:29 +0000 (-0700) Subject: Remove deprecated methods from types. X-Git-Tag: v4.0.10~2 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=20dac589b609b04aca712a840c5dbb63ca08ffdf;p=nano-pow.git Remove deprecated methods from types. --- diff --git a/src/types.d.ts b/src/types.d.ts index 2b81a71..1f7bcc8 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -127,13 +127,6 @@ export declare class NanoPowGl { * Finds a nonce that satisfies the Nano proof-of-work requirements. * * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts - * @param {NanoPowOptions} options - Used to configure search execution - */ - static search (hash: string, options?: NanoPowOptions): Promise - /** - * Finds a nonce that satisfies the Nano proof-of-work requirements. - * - * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts * @param {NanoPowOptions} options - Options used to configure search execution */ static work_generate (hash: string, options?: NanoPowOptions): Promise @@ -144,14 +137,6 @@ export declare class NanoPowGl { * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts * @param {NanoPowOptions} options - Options used to configure search execution */ - static validate (work: string, hash: string, options?: NanoPowOptions): Promise - /** - * Validates that a nonce satisfies Nano proof-of-work requirements. - * - * @param {string} work - Hexadecimal proof-of-work value to validate - * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts - * @param {NanoPowOptions} options - Options used to configure search execution - */ static work_validate (work: string, hash: string, options?: NanoPowOptions): Promise } @@ -170,13 +155,6 @@ export declare class NanoPowGpu { * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts * @param {NanoPowOptions} options - Used to configure search execution */ - static search (hash: string, options?: NanoPowOptions): Promise - /** - * Finds a nonce that satisfies the Nano proof-of-work requirements. - * - * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts - * @param {NanoPowOptions} options - Used to configure search execution - */ static work_generate (hash: string, options?: NanoPowOptions): Promise /** * Validates that a nonce satisfies Nano proof-of-work requirements. @@ -185,13 +163,5 @@ export declare class NanoPowGpu { * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts * @param {NanoPowOptions} options - Options used to configure search execution */ - static validate (work: string, hash: string, options?: NanoPowOptions): Promise - /** - * Validates that a nonce satisfies Nano proof-of-work requirements. - * - * @param {string} work - Hexadecimal proof-of-work value to validate - * @param {string} hash - Hexadecimal hash of previous block, or public key for new accounts - * @param {NanoPowOptions} options - Options used to configure search execution - */ static work_validate (work: string, hash: string, options?: NanoPowOptions): Promise }