-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from chronicleprotocol/diagramPush
Add PUSH Oracle diagram in Mermaid
- Loading branch information
Showing
5 changed files
with
881 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
|
||
# PUSH Oracles | ||
|
||
**Chronicle uses a PUSH model for its Oracles.** | ||
|
||
## How do PUSH Oracles Work? | ||
PUSH oracles actively deliver data to smart contracts without needing an explicit request. Upon the occurrence of a specific event or condition, the PUSH oracle automatically triggers the smart contract with the relevant data. For example, a PUSH Oracle might send price data to a smart contract every X minutes/hours, or whenever the price deviates by a certain percentage from its previous value. | ||
|
||
|
||
```mermaid | ||
sequenceDiagram | ||
participant DS as Data Source<br />(offchain) | ||
participant PO as PUSH Oracle<br />(offchain) | ||
participant OC as Oracle Smart Contract<br />(onchain) | ||
participant SC as Smart Contract | ||
DS->>PO: Event or condition occurs | ||
PO->>OC: Push data to Oracle Smart Contract | ||
OC->>OC: Process data and update the state | ||
SC->>OC: Request data from Oracle | ||
OC->>SC: Deliver data to Smart Contract | ||
SC->>SC: Process and use data | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.