Ares Wikipedia

Ares Wikipedia

  • Docs
  • Contribute
  • Languages iconEnglish
    • 中文

›Oracle

General

  • Overview
  • Supplementary
  • Glossary

WhitePaper

  • Introduction
  • Technical Architecture
  • Data market
  • Economic Model

Learn

    Stake Mining

    • Trojan Stake Mining
    • Iliad Stake Mining
    • Asset cross-chain bridge
  • Liquidity mining
  • Gladios

    • Account
    • Claim Test Coins
    • Transfer
    • Set Online Identity

    Oracle

    • Ares Oracle
    • Ares Oracle Provider Support
    • Oracle Finance
    • Staking Extend

    Slot Auction

    • Kusama
    • Dot
  • Get Price
  • Get Symbol Fraction

Build

    Basic

    • Obtain Price Through Cross-Chain

    Gladios Guide

    • Set Up the Verifier Node
    • Quotation node rpc tools

Node

  • Hardware environment
  • Run Node
  • Run Validator Node
  • Run Validator Node Q&A
  • Start the Oracle Service
  • Start The Warehouse Service
  • Warehouse Api

Mainnet

    Validator Tutorial

    • Account
    • Map ERC20/BEP20 ARES
    • How to bond stash & controller account
    • Validator node program upgrade/deployment
    • Set Session Keys
    • Validator node verification
    • Punishment verification & Extraction of assets

    Nominator Tutorial

    • Create Odyssey Account & Stake
    • Nominate for any one or more nodes
    • Check penalties & withdraw assets

Ares Oracle Provider Support

Methods

has_pre_check_task

fn has_pre_check_task (stash: AccountId) -> bool

Determine whether there is a pre-check task for the validator through a stash account.

get_pre_task_by_authority_set

fn get_pre_task_by_authority_set(
    auth_list: Vec<AuthorityId>
) -> Option<(AccountId, AuthorityId, BlockNumber)>

Get pre-check task information associated with a certain ares-authority collection.

check_and_clean_obsolete_task

fn check_and_clean_obsolete_task(maximum_due: BlockNumber) -> Weight

Trigger this method on a specific cycle to clean up too old and passed tasks

take_price_for_pre_check

fn take_price_for_pre_check(check_config: PreCheckTaskConfig) -> PreCheckList

Obtain PreCheckList result data according to Trading pairs specified by check_config

save_pre_check_result

fn save_pre_check_result(
    stash: AccountId,
    bn: BlockNumber,
    pre_check_list: PreCheckList
) -> PreCheckStatus

Will verify the data on-chain based on the result of PreCheckList and return PreCheckStatus as the result

get_pre_check_status

fn get_pre_check_status(
    stash: AccountId
) -> Option<(BlockNumber, PreCheckStatus)>

Get the pre-check status that a validator has stored, this status will affect whether it will be added to the validator list.

clean_pre_check_status

fn clean_pre_check_status(stash: AccountId)

Remove pre-check status stored by a validator

create_pre_check_task

fn create_pre_check_task(
    stash: AccountId,
    auth: AuthorityId,
    bn: BlockNumber
) -> bool

Create a pre-check task, return true if the creation is successful else return false

Workflow

KeyTypeId of Ares

  1. Configure the definition of the sr25519 AuthorityId provided by the scrypto module into ares-oracle::AuthorityAres.
  2. If session is enabled, ares-oracle needs to be configured into SessionKey.

Pre-review task flow

  1. Use has_pre_check_task to determine whether a validator has a pre-check task.
  2. If there is a pre-review task, get the corresponding price response through take_price_for_pre_check.
  3. Check and save the result data through save_pre_check_result, the returned results include PreCheckStatus::Prohibit and PreCheckStatus::Pass.
  4. Pass the block height to the check_and_clean_obsolete_task function to remove obsolete pre-review tasks and pre-check result to prevent overbloating.
← Ares OracleOracle Finance →
  • Methods
    • has_pre_check_task
    • get_pre_task_by_authority_set
    • check_and_clean_obsolete_task
    • take_price_for_pre_check
    • save_pre_check_result
    • get_pre_check_status
    • clean_pre_check_status
    • create_pre_check_task
  • Workflow
    • KeyTypeId of Ares
    • Pre-review task flow
About Us

Ares is an on-chain-verified oracle platform that provides secure and reliable data services for the Polkadot DeFi ecosystem.

Email   info@aresprotocol.io
Quick links
WebsiteBlogTokenomicsBuy TokenFarms
Resources
DocumentationGithubBlockchain Explorer
Social Media
Copyright © 2023 The Ares Protocol All rights reserved