Skip to main content

Tools for interacting with Tellor Protocol smart contracts.

Project description

Background

Reporting tools and datafeeds for Tellor oracles.

The package telliot-feeds version 0.1.14 forked from:
https://github.com/tellor-io/telliot-feeds

Initial Setup

Prerequisites

The following tools are expected to be installed on your system to run this project:

  • Python 3.9.x
  • Pip 23.3.x
  • Git

Setup

python3.9 -m venv tenv
source tenv/bin/activate
pip3.9 install .

Test

Install development requirements:

pip3.9 install -r requirements-dev.txt

Run automated testing in all environments:

tox

Run py39 testing:

tox -e py39

Run style testing:

tox -e style

Run typing typing:

tox -e typing

Publish

  1. Create the $HOME/.pypirc file:
[pypi]
  username = __token__
  password = pypi-AgEIcHlw... (your PyPI token)
  1. Build distribution:
python3.9 -m build
  1. Deploy distribution to PyPI repository:
twine upload dist/*

Usage

Using Docker

  1. Create & start container in the background:
docker compose up -d
  1. Execute commands in a running Docker container:
docker exec -it telliot sh

Configuration

  1. Create the default configuration files:
telliot config init

The default configuration files are created in a folder called telliot in the user's home folder.

  1. View your current configuration:
telliot config show

Using Telliot

  1. Add Reporting account:
telliot account add fantomacct1 5d18c4aabe8f0ee841e2e0ee504c7d9ec98d2aa9edb2e44d5e8825ec0670f896 4002
  1. Check Reporting account:
telliot account find
  1. Using StakingToken smart contract address provided below, mint 1000 TTRB tokens to the fantomacct1 account:
    0x8e4E5eDab27Df5a93B25AC3a62b80beec1CfEBd0

  2. Report data with the fantomacct1 account to the Tellor Oracle:

telliot report -a fantomacct1 -ncr -qt trb-usd-spot

Contributing

Bug reports and pull requests are welcome on GitHub at:
https://github.com/BCTSAG/tellor

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

bctsag_telliotfeeds-1.0.1.tar.gz (226.6 kB view details)

Uploaded Source

Built Distribution

bctsag_telliotfeeds-1.0.1-py3-none-any.whl (227.3 kB view details)

Uploaded Python 3

File details

Details for the file bctsag_telliotfeeds-1.0.1.tar.gz.

File metadata

  • Download URL: bctsag_telliotfeeds-1.0.1.tar.gz
  • Upload date:
  • Size: 226.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for bctsag_telliotfeeds-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cc04a667e726aa771f0289a957f5379cdd3b71e0d422d4ab93ebeb5c4f02e74c
MD5 90cbc8b68990f20521c5ee2f604226e1
BLAKE2b-256 bc4c1762b59e6ba586499cbd08c9accbd162111f5c90dbd566482fff7d995a70

See more details on using hashes here.

File details

Details for the file bctsag_telliotfeeds-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bctsag_telliotfeeds-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce4cc0a531bcb43a2b8a5b6ac616a5c6e78df3290e852a69c83222abbeb0a35
MD5 5886056fb7a4a6f01be0e5acbc10d78f
BLAKE2b-256 f700740f42a473c0ec1f1ad970c213a0bd03d1bdc4699f0b29ad4ef6412d4781

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