Classic RedStone model

RedStone Classic is an oracle model in which price data is transmitted to the blockchain by an off-chain service called a relay. This approach provides a greater level of control over how and when prices are updated than with traditional push oracles.

Advantages of RedStone Classic

Greater level of control: RedStone Classic relays are configured using environment variables, allowing the protocol to define the conditions under which prices should be updated. This gives the protocol a greater level of control over how and when prices are updated. Scalability: RedStone Classic can be used on all EVM-compatible blockchains, including Ethereum, Polygon, Avalanche and others. This makes it more scalable than traditional push oracles, which are often limited to a single blockchain. Security: RedStone Classic uses an on-chain data verification system to ensure accurate and reliable prices. This makes it more secure than traditional push oracles, which do not have such a verification system. How RedStone Classic works

RedStone Classic consists of two main parts:

A relay is an off-chain service that periodically checks a specific set of conditions and transmits prices to the chain when they are satisfied. Contracts are on-chain contracts that store prices and provide an interface for retrieving them. The RedStone Classic repeater is configured using environment variables. These variables determine how often prices should be updated, what conditions must be met for prices to be updated, etc.

When the relay determines that prices need to be updated, it transmits them to the chain as a signed data packet. Contracts on the chain check this data and, if correct, write it to the database.

Installation of RedStone Classic

To install RedStone Classic you must complete the following steps:

Install dependencies. Set up a repeater. Expand contracts. Conclusion

RedStone Classic is a robust and scalable oracle model that provides a high level of control over how and when prices are updated. It is suitable for protocols that want a more flexible and secure way to obtain price data.