Trisolaris is a fictional extraterrestrial civilization from the science fiction novel "The Three-Body Problem" by Liu Cixin. The purpose of Trisolaris is to survive in a chaotic planetary system with unpredictable orbits. It was founded by an advanced alien race and serves as the antagonist in the novel. Trisolaris was created by Liu Cixin in 2006, and its name originates from the three stars around which the civilization orbits.
Trisolaris offers several benefits compared to its direct competitors in the blockchain oracle space. Here are some key advantages:
1. Security and Reliability: Trisolaris prioritizes security and reliability by ensuring data integrity through a robust verification process. This helps to prevent tampering or manipulation of external data, providing greater trust and confidence for smart contract developers.
2. Decentralization: Trisolaris leverages the power of decentralized networks, reducing the risk of a single point of failure. By sourcing data from multiple independent sources and utilizing a decentralized consensus mechanism, Trisolaris mitigates the potential impact of erroneous or malicious data.
3. Flexibility and Customization: Trisolaris offers a flexible framework that allows developers to access and integrate various data sources into their smart contracts. This flexibility enables customization based on specific use cases and requirements, providing developers with more options and control.
4. Scalability: Trisolaris is designed with scalability in mind, allowing for the processing of a large number of data requests simultaneously. This capability ensures that smart contracts can operate efficiently even in high-demand scenarios.
5. Cost-efficiency: Trisolaris aims to provide cost-efficient solutions by optimizing data aggregation and verification processes. By minimizing unnecessary or redundant data requests, Trisolaris helps developers reduce costs associated with accessing external data.
It's important to note that Trisolaris's competitors also offer similar features and benefits. It is advisable for technology-savvy individuals to evaluate the specific requirements of their projects and compare the offerings of different blockchain oracles before making a decision.
Trisolaris is a blockchain oracle that utilizes state-of-the-art technology to provide verified external data to smart contracts on a blockchain. The underlying technology behind Trisolaris is a combination of blockchain technology and decentralized oracles.
Trisolaris operates on the Ethereum blockchain, one of the most widely adopted and secure blockchains in the world. By leveraging the Ethereum network, Trisolaris ensures the immutability and trustworthiness of the data it provides.
The functioning of Trisolaris involves three main steps. First, external data is collected from various reliable sources, such as APIs, data feeds, and trusted third-party providers. This data can be related to cryptocurrencies, market prices, or any other relevant information.
Next, the collected data undergoes a verification process to ensure its accuracy and reliability. Trisolaris employs cutting-edge algorithms and consensus mechanisms to validate the data before it is added to the blockchain.
Finally, the verified data is made available to smart contracts on the blockchain. Smart contracts can access and utilize this data for various purposes, such as executing conditional transactions, triggering events, or making autonomous decisions.
By integrating Trisolaris as an oracle, blockchain applications can securely interact with real-world data without compromising the decentralization and security principles of the underlying blockchain. This opens up a wide range of possibilities for decentralized finance, supply chain management, identity verification, and other applications that require trusted external information.
Overall, Trisolaris plays a crucial role in bridging the gap between blockchain technology and the real world by providing reliable and verified data to smart contracts, enhancing the functionality and versatility of decentralized applications.
DIA fetches trade data from Trisolaris by employing a comprehensive data management strategy that covers various types of exchanges, including DeFi and NFT exchanges.
For centralized exchanges such as Coinbase, Kraken, and Binance, DIA utilizes scrapers that directly collect trades from the exchange databases. This is accomplished using Rest APIs or WebSocket APIs. The frequency at which data is collected varies depending on the exchange, ranging from 1 to 7 seconds.
In the case of decentralized exchanges, DIA retrieves data from different blockchains by subscribing to swap events in liquidity pools. By accessing the blockchain directly, DIA ensures the accuracy of the trading data. Popular decentralized exchanges that serve as sources for DIA include Uniswap, curve.finance, and PancakeSwap.
When it comes to NFT marketplaces, DIA captures live trading data by retrieving information from the smart contracts of integrated marketplaces. This allows for real-time monitoring of NFT transactions. The retrieval period for NFT data ranges from 20 seconds to 1 minute. Notable integrated NFT exchange sources for DIA include Blur, X2Y2, OpenSea, and TofuNFT.
By leveraging this comprehensive approach to data management, DIA can provide highly accurate and customizable price feeds. The collection of granular trade data from over 80 exchanges, combined with direct access to blockchain information, ensures the precision and reliability of the trade data provided by DIA.
DIA utilizes a systematic process to compute trade data from Trisolaris and build price feed oracles, tailored for different types of exchanges, whether it be DeFi or NFT.
For DeFi exchanges, DIA employs a two-step approach. Firstly, data cleaning and outlier detection are crucial to ensuring that the price estimation is resilient against irregular trades diverging from the current market price. To achieve this, DIA applies an Interquartile Range (IR) filter, which identifies and excludes data points and sets lying outside an acceptable range relative to the interquartile range. Trades falling into the "middle" quartiles proceed for further processing while outliers are filtered out.
Next, DIA applies trade-based price determination methodologies to derive a single USD price value for each asset. One example is the Volume Weighted Average Price (VWAP), which considers trade volumes and weights each trade by its volume. Another methodology is the Moving Average with Interquartile Range Filter (MAIR), where trades are ordered by timestamp and aggregated in blocks for each second. The weighted average price of each block is computed to determine the final price.
In the case of NFT exchanges, the process differs. To determine the floor price of an NFT collection, the on-chain trade data undergoes two steps. Firstly, the data is subjected to cleansing filters that exclude market outliers and manipulation techniques. Subsequently, a pricing methodology is applied to determine the final price point.
One methodology for NFT collections is the Floor Price, which provides the lowest sale price recorded on the blockchain within a specified time window. However, to address potential manipulation, DIA offers advanced methodologies such as the Moving Average of Floor Price, which calculates the moving average of the collection's floor price. Additionally, an interquartile range outlier detection filter is applied to filter out manipulative behavior.
These methodologies ensure that DIA's price oracles provide realistic and reliable price data for various use cases, protecting against market manipulation and supplying accurate information for decentralized applications.
Instead of distributing pre-calculated data feeds, DIA covers the whole data journey from individual trade collection, and computation to the last mile of the feed delivery.