SERVICE_PROVIDER_REGISTRY
constSERVICE_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.
Type Declaration
Section titled “Type Declaration”MAX_CAPABILITIES
Section titled “MAX_CAPABILITIES”
readonlyMAX_CAPABILITIES:24=24
Maximum number of capability key/value pairs per product.
MAX_CAPABILITY_KEY_LENGTH
Section titled “MAX_CAPABILITY_KEY_LENGTH”
readonlyMAX_CAPABILITY_KEY_LENGTH:32=32
Maximum UTF-8 byte length for each capability key.
MAX_CAPABILITY_VALUE_LENGTH
Section titled “MAX_CAPABILITY_VALUE_LENGTH”
readonlyMAX_CAPABILITY_VALUE_LENGTH:128=128
Maximum byte length for each capability value (raw bytes, not hex chars).
MAX_DESCRIPTION_LENGTH
Section titled “MAX_DESCRIPTION_LENGTH”
readonlyMAX_DESCRIPTION_LENGTH:256=256
Maximum UTF-8 byte length for ServiceProviderInfo.description.
MAX_LOCATION_LENGTH
Section titled “MAX_LOCATION_LENGTH”
readonlyMAX_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.
MAX_NAME_LENGTH
Section titled “MAX_NAME_LENGTH”
readonlyMAX_NAME_LENGTH:128=128
Maximum UTF-8 byte length for ServiceProviderInfo.name.
REGISTRATION_FEE
Section titled “REGISTRATION_FEE”
readonlyREGISTRATION_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.