Skip to main content

Core package for Pontis oracle on Starknet

Project description

Pontis Oracle

About

For more information, see the project's repository here.

Usage

Publishing a Price Feed

First, please register with the Pontis team. Currently being a data publisher is permissioned, while we build out the safeguards that will allow us to enable anyone to be a data publisher in the future. Reach out to @JonasNelle on Telegram to inquire about becoming a data publisher.

Once you have chosen your publisher_id and have a public/private key pair that is registered, you can start publishing prices!

Simply install this package and run:

from pontis.core.entry import construct_entry
from pontis.publisher.client import PontisPublisherClient

client = PontisPublisherClient(private_key, publisher_address)
entry = construct_entry(key, value, timestamp, publisher)
client.publish(entry)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pontis-0.5.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

pontis-0.5.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pontis-0.5.1.tar.gz.

File metadata

  • Download URL: pontis-0.5.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for pontis-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6e4b91be78b6913e6b37fbadc8f3135233a230a99a0801d3b75b4d37e8e08cdc
MD5 cae5f46390ac6e010b7615b3eccc1c10
BLAKE2b-256 08e6331dec138e4baf8569e159a3acc7ac7147bc84e752180467cd88158e495d

See more details on using hashes here.

File details

Details for the file pontis-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: pontis-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for pontis-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2042c50b9db0c3da92d5f598b7baa62c2e415f1356f657fcefc3f096e8056548
MD5 68e88a0ef90b614b93653edd8ec0aa94
BLAKE2b-256 62c66bc248f2cdfe36dc56ec6cea2822a15366192acbc922227de89a0fb1258a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page