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

Uploaded Source

Built Distribution

pontis-0.5.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pontis-0.5.0.tar.gz
  • Upload date:
  • Size: 10.5 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.0.tar.gz
Algorithm Hash digest
SHA256 6459d63ab62fee820032ce99d8124f3f6575a155109c648ff0e0948de90a3168
MD5 f5ca095a6e267cb49603b78d6bdd30aa
BLAKE2b-256 a441574d021de313affe0f49c551ea4f858871197687e0dc578d1ae768ac80c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pontis-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a259c6888da198a174c2ed766163117d54a43a52eaf0336fd56751f0c23240cc
MD5 eca0883677908902aa7580e1e715a615
BLAKE2b-256 cb32b880b20e03d3a0837ebd8b151f45175bec259f59ccbf72483f74a5bb9201

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