MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / put_data

Function put_data

packages/sync/octobot_sync/server.py:294–299  ·  view source on GitHub ↗
(key: str, body: str, context: StoreContext | None = None)

Source from the content-addressed store, hash-verified

292 return result
293
294async def put_data(key: str, body: str, context: StoreContext | None = None) -> None:
295 # Opaque storage: persist the client ciphertext as-is. The node never
296 # decrypts these collections — wallet-key decryption happens entirely on
297 # the client.
298 ciphertext = _unwrap_stored_document_data(body)
299 await _get_opaque_store().put(key, ciphertext, content_type="application/json")
300
301def set_data_callbacks(
302 get_data: Callable[[str, StoreContext | None], Awaitable[str | None]],

Callers

nothing calls this directly

Calls 3

_get_opaque_storeFunction · 0.85
putMethod · 0.45

Tested by

no test coverage detected