tellor-io / tellor-pallet

GNU General Public License v3.0
7 stars 3 forks source link

Tellor Pallet

Check Set-Up & Build Run Tests Discord Chat Twitter Follow

Overview

This pallet introduces Tellor oracle functionality to parachains, controlled by Tellor staking and governance smart contracts on another EVM smart contract enabled parachain.

A parachain first registers itself with the controller contracts. After that, anyone can request oracle data to be reported to the parachain by either creating a 'tip' for a onetime report, or by creating and funding a feed for recurring reports. Reporters are required to first stake Tellor Tributes (TRB) into the Tellor parachain staking contract before they can begin reporting directly to the parachain.

Anyone can then dispute a reported value, provided they lock a dispute fee. Votes are collated and sent to the Tellor parachain governance contract for tallying and execution. A successful dispute results in a disputed reporter being slashed and the slash amount being awarded to the dispute initiator. The dispute fee is awarded to the disputed reporter if the dispute is unsuccessful, but given back to initiator if tallied and executed as an invalid dispute.

Terminology

Interface

Dispatchable Functions

For Users

For Reporters

For Controller Contracts

Root Calls

Setup Environment & Run Tests

Option 1: Run tests using local environment

Sample

A sample showing how a parachain might use the tellor pallet within a runtime can be found at using-tellor.

License: GPL-3.0