diff --git a/docs/api/messages.md b/docs/api/messages.md index f37cb2d..e85e548 100644 --- a/docs/api/messages.md +++ b/docs/api/messages.md @@ -59,4 +59,29 @@ Heartbeat messages are posted to the heartbeat channel periodically. | Field | Datatype | Description | | -------- | -------- | ------------ | | account | string | Account name | -| sequence | int | Sequence | \ No newline at end of file +| sequence | int | Sequence | + +### RollbackMessage + +| Field | Datatype | Description | +| --------- | -------- | ------------------------------------ | +| new_block | int | The current block number | +| old_block | int | Last block number that was received. | + +### TableDelta + +| Field | Datatype | Description | +| -------------- | --------------- | ----------------- | +| blocknum | int | Block number | +| blocktimestamp | time | Block timestamp | +| name | string | Table name | +| rows | TableDeltaRow[] | Rows in the delta | + + +### TableDeltaRow + +| Field | Datatype | Description | +| -------- | ------------- | --------------------------------- | +| present | bool | - | +| data | any | Decoded data | +| raw_data | base64_string | Raw data in base64 encoded string | \ No newline at end of file diff --git a/docs/api/redis-channels.md b/docs/api/redis-channels.md index 34c70c0..b66ba0c 100644 --- a/docs/api/redis-channels.md +++ b/docs/api/redis-channels.md @@ -35,4 +35,31 @@ Channel where only actions on a specific `` is posted: Channel where only `` on a specific `` is posted: -`::actions/contract//name/` \ No newline at end of file +`::actions/contract//name/` + +## Rollback + +Rollback mesages are posted to this channel. + +`::rollback` + +## Table delta + +Table deltas are posted to the following channels + +All deltas: + +`::tabledeltas` + +Only deltas for a specific type. + +`::tabledeltas/name/` + +`` can be one of + +* `account_metadata` +* `contract_table` +* `contract_row` +* `contract_index64` +* `resource_usage` +* `resource_limits_state` \ No newline at end of file