From ffb5a1078817097956d2adc82301d08792cd7cb5 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 26 Apr 2023 14:31:54 +0200 Subject: [PATCH] Adding docs/redis-channels.md --- docs/redis-channels.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/redis-channels.md diff --git a/docs/redis-channels.md b/docs/redis-channels.md new file mode 100644 index 0000000..0a1316b --- /dev/null +++ b/docs/redis-channels.md @@ -0,0 +1,39 @@ + +# Redis channels + +This document describes the redis channels used by thalos to deliver messages. + +## Namespace + +First. all channels have a namespace attached to them. this is done to prevent other application to clash with the keys. + +The namespace have the following format: `::` + +* `prefix` is per default `ship` but can be configured to be something else. +* `chain_id` is the chain's id and is used to separate transactions if multiple chains are setup in the same redis database. + +## Transactions + +All transactions are posted to the following channel: + +`::transactions` + +## Actions + +there is 4 types of channels for actions. + +The channel where all actions are posted is: + +`::actions` + +Channel where only specific actions are posted: + +`::actions/name/` + +Channel where only actions on a specific `` is posted: + +`::actions/contract/` + +Channel where only `` on a specific `` is posted: + +`::actions/contract//name/`