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.6.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

pontis-0.6.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pontis-0.6.2.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.6.2.tar.gz
Algorithm Hash digest
SHA256 624de96944a735fa302843fe08eeb9f02db1029836536ce660dbb15d9ce3b254
MD5 b809bc66c3b7c5f46348f601d282fe97
BLAKE2b-256 2b494f61e7f6838cf98b4f52a4651070245a23139ea789018707c616e9ea70ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pontis-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 17.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.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82914fc6a93881abeab9ba73a8f51881dc232ec718ac8ee3b2e5a160fd2bb8a1
MD5 80f16ada918bf523134b9adbd1c753da
BLAKE2b-256 c6cb244dc9b7da27a2bffc4317a0a52bcb2c52b7cb14ca04fa49e8d227135319

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