- Preparing search index...
- The search index is not available
cardano-sdk
Function mockNetworkInfoProvider2
- mockNetworkInfoProvider2(delayMs: number): {
eraSummaries: Mock<any, any>;
genesisParameters: Mock<any, any>;
healthCheck: Mock<any, any>;
ledgerTip: Mock<any, any>;
lovelaceSupply: Mock<any, any>;
protocolParameters: Mock<any, any>;
stake: Mock<any, any>;
}
-
Returns {
eraSummaries: Mock<any, any>;
genesisParameters: Mock<any, any>;
healthCheck: Mock<any, any>;
ledgerTip: Mock<any, any>;
lovelaceSupply: Mock<any, any>;
protocolParameters: Mock<any, any>;
stake: Mock<any, any>;
}
-
eraSummaries: Mock<any, any>
-
genesisParameters: Mock<any, any>
-
healthCheck: Mock<any, any>
-
ledgerTip: Mock<any, any>
-
lovelaceSupply: Mock<any, any>
-
protocolParameters: Mock<any, any>
-
stake: Mock<any, any>
A different provider stub for testing, supports delay to simulate network requests.
Returns
NetworkInfoProvider that returns data that is slightly different to mockNetworkInfoProvider.