Skip to content

Commit

Permalink
docs: edit typos and language fixes in the 'Chainhooks' doc (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-chaitanya-piratla authored Aug 11, 2023
1 parent f23a405 commit 5115a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/feature-guides/chainhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Chainhooks

## Overview

Chainhooks are a powerful feature that enables you to automatically trigger an action based upon a predicate event occurring. Adhering to an event-based architecture, chainhooks allow you to pre-determine an underlying set of events that, when triggered, set into motion a logical series of follow-on steps and actions to address the specific event that was triggered.
Chainhooks are a powerful feature that enables you to trigger an action based upon a predicate event occurring automatically. Adhering to an event-based architecture, chainhooks allow you to pre-determine an underlying set of events that, when triggered, set into motion a logical series of follow-on steps and actions to address the specific event that was triggered.

*Topics covered in this guide*:

Expand All @@ -14,15 +14,15 @@ Chainhooks are a powerful feature that enables you to automatically trigger an a

## Design

Chainhooks were designed with a very specific set of requirements and limitations to make them easy to work with in a development environment. These constraints include portability and performance.
Chainhooks were designed with a very specific set of requirements and limitations to make them easy to work within a development environment. These constraints include portability and performance.

- portability and performance

Hiro designed the event observer as a library, choosing to embed the library in Clarinet so you can run it on your local machine. You may also execute the library on the server side and then propagate these HTTP events to your other components.

- correctness

Due to the fact that blockchains can be forkedand some period of uncertainty may arise as to which chain tip asserts itself as the canonical chainthere are challenges to guaranteeing the validity of a triggered predicate. There are many different ways you can end up with a state slightly differing from the canonical state, which is why correctness is an inherent limitation of chainhooks.
Since blockchains can be forked and since some period of uncertainty may arise as to which chain tip asserts itself as the canonical chain, there are challenges to guaranteeing the validity of a triggered predicate. There are many different ways you can end up with a state slightly differing from the canonical state, which is why correctness is an inherent limitation of chainhooks.

## Using chainhooks

Expand Down

0 comments on commit 5115a85

Please sign in to comment.