Skip to content

mocks

Mocks for testing

import * as Mocks from '@filoz/synapse-core/mocks'
Namespace Description
pdp -
Interface Description
EndorsementsOptions -
ERC20Options -
JSONRPCHooks Hooks for the mock JSONRPC server.
JSONRPCOptions Options for the JSONRPC server
PaymentsOptions -
PDPVerifierOptions -
PingMockOptions -
ProviderDecoded -
ServiceRegistryOptions -
SessionKeyRegistryOptions -
WarmStorageOptions -
WarmStorageViewOptions -
Type Alias Description
AbiToType Alias for AbiParametersToPrimitiveTypes
activeProviderCount -
addProduct -
ErrorResult Error result
getProvider -
getProviderByAddress -
getProviderCount -
getProviderIdByAddress -
getProvidersByProductType -
getProviderWithProduct -
isProviderActive -
isRegisteredProvider -
LandedTransaction How an SP-submitted transaction landed.
ProviderWithProduct -
registerProvider -
removeProduct -
removeProvider -
RpcLog -
RpcRequest RPC request
RpcResponse RPC response
Subscription Subscription
SuccessResult Success result
updateProduct -
updateProviderInfo -
Variable Description
ADDRESSES -
presets -
PRIVATE_KEYS -
PROVIDERS -
SP_SENDER Curio’s sending wallet in mocked SP transactions.
Function Description
dataSetCreatedLog An FWSS DataSetCreated log.
JSONRPC Mock JSONRPC server for testing
landedLogs The FWSS logs of a landed transaction.
landedTransactions JSON-RPC handlers for transactions an SP submitted. Spread them into JSONRPC options. Unknown hashes have no transaction or receipt, so a receipt wait keeps polling.
mockServiceProviderRegistry -
pieceAddedLog An FWSS PieceAdded log.
PING -
serviceProviderRegistryCallHandler Handle service provider registry calls