• A different provider stub for testing, supports delay to simulate network requests.

    Returns

    ChainHistoryProvider that returns data that is slightly different to mockChainHistoryProvider.

    Parameters

    • delayMs: number

    Returns {
        blocksByHashes: Mock<any, any>;
        healthCheck: Mock<any, any>;
        transactionsByAddresses: Mock<any, any>;
        transactionsByHashes: Mock<any, any>;
    }

    • blocksByHashes: Mock<any, any>
    • healthCheck: Mock<any, any>
    • transactionsByAddresses: Mock<any, any>
    • transactionsByHashes: Mock<any, any>

Generated using TypeDoc