Skip to content

SERVICE_PROVIDER_REGISTRY

const SERVICE_PROVIDER_REGISTRY: object

Defined in: packages/synapse-core/src/utils/constants.ts:150

Limits mirrored from ServiceProviderRegistry.sol. Sync with VERSION in that contract (currently 1.1.0) when upgrading.

readonly MAX_CAPABILITIES: 24 = 24

Maximum number of capability key/value pairs per product.

readonly MAX_CAPABILITY_KEY_LENGTH: 32 = 32

Maximum UTF-8 byte length for each capability key.

readonly MAX_CAPABILITY_VALUE_LENGTH: 128 = 128

Maximum byte length for each capability value (raw bytes, not hex chars).

readonly MAX_DESCRIPTION_LENGTH: 256 = 256

Maximum UTF-8 byte length for ServiceProviderInfo.description.

readonly MAX_LOCATION_LENGTH: 128 = 128

Maximum UTF-8 byte length for the location capability value.

Declared on-chain but not currently enforced in a dedicated require — the stricter MAX_CAPABILITY_VALUE_LENGTH already covers it.

readonly MAX_NAME_LENGTH: 128 = 128

Maximum UTF-8 byte length for ServiceProviderInfo.name.

readonly REGISTRATION_FEE: 5000000000000000000n = 5_000_000_000_000_000_000n

Registration fee in attoFIL (5 FIL) required by registerProvider.

Callers that pass value explicitly are validated against this value. Callers that omit value fetch the live REGISTRATION_FEE() from the contract.