RedStone Oracles on Soroban
SCF #22 Activation Award Oracle $400,000 View in SCF
RedStone is the fastest growing, modular Oracle infrastructure offering 3 data consumption models to suit all DeFi use cases.
Team

Filip | RedStone#4943

Technical Architecture Doc

https://docs.redstone.finance/docs/smart-contract-devs/how-it-works

Deliverables List

The scope of work and total Expected Roadmap is presented below, for the first $50k Activation Award we plan to find the best way to introduce our data feeds, and start the development of the Soroban-connector.
 

We will provide access to our Soroban-connector codebase and conclusions to verify completed milestones.

This phase should take around ~1 month from the grant approval.

Section

read

Product & Architecture

RedStone is a modular Oracle infrastructure that keeps data off-chain in the RedStone Data Distribution Layer (DDL) and pushes it on EVM chains (and some non-EVMs i.e. Starknet, Fuel, Ton, Near, Stacks) via attaching signed data packages to user transactions call-data (more details on the flow in the Docs).

 

RedStone offers 3 dedicated data consumption models:

  1. RedStone Classic - relayer pushes prices to storage using an interface known to popular protocols based on specific heartbeat & deviation thresholds,
  2. RedStone Core - Every dApp user fetches the price feeds automatically injected into a transaction,
  3. RedStone X (under development) - Front-running proof model, designed for Perpetuals.
  

It’s not certain that all models will be achievable on Soroban, but our team will perform all the necessary research and steps to make them so. Based on our initial look into your infrastructure we will first explore Core model implementation then Classic and X after. These should answer DeFi data feeds needs of Soroban ecosystem projects, offering them customizability and tailor-made solutions for their dApps. (You can read more about our models here.)

Project URL

https://redstone.finance/

Code URL

https://github.com/redstone-finance

Video URL

https://youtu.be/SpVQdwVOt7c

Pitch Deck URL

Project Categories

Product Type [If Services that make the chain more functional]

Other Chain Description

We're currently available on 40+ chains, most of them are EVMs as that's our main focus. We did a few custom implementations for non-EVM chains i.e. StarkNet, TON, Fuel.

Section

read

Requested Budget in USD ($)

400000

Total Expected Roadmap

SCOPE

We’ve researched Soroban and we can adjust our “EVM-connector” to be compatible with Soroban, which requires some custom development on our end. Based on our look into it’s code we could prepare integration of our Data Feeds for a $400k integration grant, structured as follows:

- Activation Grant: $50k for 1 month

- Community Grant 1: $100k for 2 months

- Community Grant 2: $100k for 2 months 

- Community Grant 3: $100k for 2 months

- Community Grant 4: $50k for 1 month

 

Below you can find a more detailed scope of work we’d envision in two stages:

STAGE 1 - Research & necessary infrastructure [3 months]

 

Deliverable after first month

1. Prepare an in-depth analysis of the Soroban chain:

  • Check available cryptography functions
  • Check available timestamp details in the context of the transaction
  • Analyse the gas costs structure, compare computing and storage costs
  • Find the best way of providing RedStone data feeds to Soroban  (Redstone Core vs RedStone Classic)
 

2. Start an implementation of the Soroban-connector

  • Implement the logic of RedStone payload parsing, signature and timestamp verification and value aggregation
  • Prepare a way to configure authorised signers' public keys, minimal signers count threshold, timestamp validation rules and aggregation logic

Deliverable after 3rd month

Finish the implementation of the Soroban-connector

  • Implement a front-end side SDK for getting the RedStone feeds and providing them to Soroban on-chain environment
  • Implement unit & integration testing
  • Prepare unit tests for
    • Signature verification
    • Timestamp validation
    • Value aggregation
    • Checking the sufficiency of unique signers count
    • Getting oracle value for the specified identifiers
  • Prepare integration tests, checking
    • End-to-end oracle value consumption with the valid RedStone payload
    • Failures for invalid or missing RedStone payload
    • Failures for the insufficient number of unique signers, invalid signers, outdated data, or missing data feeds
 

STAGE 2 - Testnet integration, Support, Dev resources, Mainnet integration, Boosting ecosystem  [5 months]

 

Deliverable after first 2 months

1. Integrate with Soroban testnet, create relayers and monitoring infrastructure

  • Implement a relayer that will automatically publish prices according to the protocol needs (RedStone Classic model)
  • Deploy a set of relayers to assure continuity of service
  • Implement basic monitoring infrastructure to watch relayer activity
 

Deliverable after 4th month

2. Implement a few simple examples of Soroban smart contracts using Soroban-connector.

  • Implement basic consumer smart contract examples, which use the RedStone numeric values
  • Prepare smart contract tests for the sample contracts using mock signers and mock data packages
  • Prepare integration testing scripts with the real RedStone oracle data
 

Deliverable after 5th month

3.  After your mainnet launch we will run tests & benchmarks to make sure our Soroban-connector is compatible and we can support mainnet with reliable feeds.

 

4. Ongoing support of teams building on Soroban

  • Help teams to understand the RedStone oracle technology and use it on the Soroban chain
  • Help to review the correctness of the integration with the RedStone-Soroban-connector
  • Continuous documentation and Soroban-connector improvement based on the developers' feedback
 

6. After the integration we’re ready to work shoulder to shoulder with dApps wanting to expand to the Soroban ecosystem, and willing to prepare the necessary co-marketing with you.

Section

read

Public Entity Name

RedStone Distributed Data Association

Entity Description

RedStone Distributed Data Association is an entity behind RedStone Oracles, it's main focus is delivering data on-chain for it to be used by web3 protocols and ecosystems.

Team bio

Marcin Kazmierczak, COO and Co-Founder - in the blockchain space since 2017, quick learner with deep understanding of Web3 infrastructure and integrations aspects, ex-Google Cloud PM, attended 30+ hackathons and conferences, winner of ETHBogota 2022, Co-Founder of ETHWarsaw hackathon & conference. LinkedIn Twitter

Jakub Wojciechowski, CEO and Founder- Software engineer with 15 years experience in FinTech, including 6 years in blockchain; ex-CTO of Alice.si, blockchain impact investment platform. In 2019 leading Etheroscope project - Ethereum analytics platform funded by the UK Gov. Winner of ethLondon, ethNYC, ethOnline hackathons. Former smart contracts auditor (Zeppelin Solutions) and freelance blockchain architect. LinkedIn Twitter
 

Alex Suvorov, Lead engineer and Co-Founder - Alex has over 7 years of experience as a full-stack developer (incl. 4 years of blockchain-related experience) in both startup and corporate environments. Natural hacker, master of cracking hard problems and effective management of the RedStone engineering team, true technical leader. LinkedIn Twitter


 

Filip Rogalski, BD and DeFi degen at RedStone - experienced in the DeFi space with a hands-on understanding of user's expectations, needs, and trading strategies expectations. He started his journey with crypto in 2019 and went full-time into Web3 in 2020. He previously lead his Web2 company, dropped out of medicine to focus on the future of finance. LinkedIn Twitter