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

Staking Extend

Methods

current_staking_era

fn current_staking_era() -> u32

Get the Era of the current Staking pallet.

near_era_change

fn near_era_change(period_multiple: BlockNumber) -> bool

Used to determine whether era changes are about to occur.

period_multiple: session-multi indicates the trigger pre-check session period before the era.

calculate_near_era_change

fn calculate_near_era_change(
    period_multiple: BlockNumber,
    current_bn: BlockNumber,
    session_length: BlockNumber,
    per_era: BlockNumber
) -> bool

old_npos

fn old_npos() -> Vec<Self::StashId>

Get the list of validators before the election.

pending_npos

fn pending_npos() -> Vec<(Self::StashId, Option<AuthorityId>)>

Get the list of new validators after the current election, excluding validators from the previous session.

Workflow

Adapter execution

  1. ElectionProvider of Staking Config is set to staking_extend::elect::OnChainSequentialPhragmen, GenesisElectionProvider is set to staking_extend::elect::OnChainSequentialPhragmenGenesis
  2. DataProvider of frame_election_provider_support::onchain::Config is set to staking_extend::data::DataProvider
  3. DataProvider of pallet_election_provider_multi_phase::Config is set to staking_extend::data::DataProvider<Self>
  4. After that, the staking election request will be sent to staking_extend, and then the Election module will also obtain the candidate list from staking_extend, and the adapter connection is successful.
  5. Call the pending_npos method to obtain a list of the new elected list, and then cooperate with the implementation of the IAresOraclePreCheck::get_pre_check_status trait to block the newly selected validator.
← Oracle FinanceKusama →
  • Methods
    • current_staking_era
    • near_era_change
    • calculate_near_era_change
    • old_npos
    • pending_npos
  • Workflow
    • Adapter execution
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