]> zoso.dev Git - nano-pow.git/commitdiff
Remove deprecated methods from types.
authorChris Duncan <chris@zoso.dev>
Fri, 28 Mar 2025 05:51:29 +0000 (22:51 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 28 Mar 2025 05:51:29 +0000 (22:51 -0700)
src/types.d.ts

index 2b81a7162b109106c7e95f47e4effd92f3d00b53..1f7bcc80f94709f7d305402e15cf7292c8bbfcb3 100644 (file)
@@ -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<string>
-       /**
-       * 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<WorkGenerateResponse>
@@ -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<boolean>
-       /**
-       * 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<WorkValidateResponse>
 }
 
@@ -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<string>
-       /**
-       * 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<WorkGenerateResponse>
        /**
        * 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<boolean>
-       /**
-       * 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<WorkValidateResponse>
 }