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

Uploaded Source

Built Distribution

pontis-0.4.12-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pontis-0.4.12.tar.gz
Algorithm Hash digest
SHA256 b6d0eb57f1c92566ab7568f3d376c7516b5288de930853ff69e078620e69ce0e
MD5 a063670edad2ca89c508f620f649d698
BLAKE2b-256 ce744f404309f1cbf2fc7a414a36b9b2d802c01553470839984cc3e674a11892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pontis-0.4.12-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.4.12-py3-none-any.whl
Algorithm Hash digest
SHA256 03b2242d602d7d38744ca572babb9680d3c0a57e5da67a0726cc687c33a3465b
MD5 7bb8f016ffb4f71b9918b25c39689d4d
BLAKE2b-256 6bd42d9f6ceae08aa3a3b22f2e8b35f60d587c8f846358b2bed028b06ba730a9

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