The Oracle pallet provides functionality for setting up and maintaining an Apollo Oracle and submitting prices.
The Oracle pallet provides functions to:
- Add assets and their respective data, and submit prices for those assets
- Set a signer to ensure proper calls for transactional functions
- Manage stake associated with signer for operating an Oracle
- Adjust reward configuration for Oracles
Setting up an Oracle for operation requires three steps:
add_asset_and_info
to configure the asset to get prices forset_signer
to uniquely identify the operator of an Oracle requires a call toadd_stake
to run it.adjust_rewards
to configure rewards for Oracles
After successfully setting up the Oracle, you can submit prices using the submit_price
extrinsic.
For more information refer to the Oracle Set-Up Guide
The Oracle pallet provides basic functionalities to manage the stake needed to run an Oracle:
add_stake
to add more stakeremove_stake
claim to remove stake immediatelyreclaim_stake
reclaim stake after proper time has passed