mocks
Mocks for testing
Example
Section titled “Example”import * as Mocks from '@filoz/synapse-core/mocks'Namespaces
Section titled “Namespaces”| Namespace | Description |
|---|---|
| pdp | - |
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| EndorsementsOptions | - |
| ERC20Options | - |
| JSONRPCOptions | Options for the JSONRPC server |
| PaymentsOptions | - |
| PDPVerifierOptions | - |
| PingMockOptions | - |
| ProviderDecoded | - |
| ServiceRegistryOptions | - |
| SessionKeyRegistryOptions | - |
| WarmStorageOptions | - |
| WarmStorageViewOptions | - |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| AbiToType | Alias for AbiParametersToPrimitiveTypes |
| activeProviderCount | - |
| addProduct | - |
| ErrorResult | Error result |
| getAllActiveProviders | - |
| getProvider | - |
| getProviderByAddress | - |
| getProviderCount | - |
| getProviderIdByAddress | - |
| getProvidersByProductType | - |
| getProviderWithProduct | - |
| isProviderActive | - |
| isRegisteredProvider | - |
| ProviderWithProduct | - |
| registerProvider | - |
| removeProduct | - |
| removeProvider | - |
| RpcRequest | RPC request |
| RpcResponse | RPC response |
| Subscription | Subscription |
| SuccessResult | Success result |
| updateProduct | - |
| updateProviderInfo | - |
Variables
Section titled “Variables”| Variable | Description |
|---|---|
| ADDRESSES | - |
| presets | - |
| PRIVATE_KEYS | - |
| PROVIDERS | - |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| JSONRPC | Mock JSONRPC server for testing |
| mockServiceProviderRegistry | - |
| PING | - |
| serviceProviderRegistryCallHandler | Handle service provider registry calls |