Skip to content

Charli3-Official/datum-demo-v3

Repository files navigation

Charli3 Network Feed Interaction Framework

Interact with Charli3 Network Feeds

Table of Contents

  1. Charli3 Network Feed Interaction Framework

The following demo was tested with cardano-node v8.9.3, Ogmios v6.4.0, and Kupo v2.8.0.

Dependencies

Install dependencies using Poetry:

poetry install

Setup

Ensure you have a config.json containing the Blockfrost or Ogmios and Kupo configuration.

Commands

To interact with this demo, use:

usage: python charli3 [-h] [--action {feed,configuration}] [--service {blockfrost,ogmios}] [token_pair] [{preprod,mainnet}]

Charli3 Network feed reader

positional arguments:
  token_pair            Token pair for the data feed
  {preprod,mainnet}     Environment to use

options:
  -h, --help            show this help message and exit
  --action {feed,configuration}
                        Retrieve the oracle feed for the specified token pair
  --service {blockfrost,ogmios}
                        External service to read blockhain information

Copyright: (c) 2020 - 2024 Charli3

For your convenience, the configuration file includes lives oracle networks under mainnet-c3-networkds.yaml and preprod-c3-networks

For example:

poetry run charli3 --action feed --service blockfrost ADA-CHARLI3 mainnet

Or

poetry run charli3 --action feed --service ogmios ADA-CHARLI3 preprod

Additional Details

Datums Implementation

The provided code includes implementations for:

  • Oracle price information using PriceData and GenericData classes.
  • Network configurations with classes like OraclePlatform, PriceRewards, and OracleSettings.

External Resources

To gain a better understanding of the Datum Standard structure, we recommend visiting:

  1. Datum Standard Lib (PlutusTx).
  2. Datum Standard Documentation.

About

Oracle Feed Reader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages