RedStone / redstone-oracle
RedStone is a blockchain Oracle protocol, which proposes a completely new modular design, where data is first put into a data availability layer and then fetched on-chain. This allows us to broadcast a large number of assets at high frequency to a cheaper layer and put it on chain only when required by the protocol.
The @redstone-finance/fuel-connector module implements an alternative design of providing oracle data to smart contracts. Instead of constantly persisting data on the Fuel network storage (by data providers), the information is brought on-chain only when needed (by end users). Until that moment data remains in the DDL (decetrnalized data layer), which is powered by RedStone light data gateways and streamr data broadcasting protocol. Data is transferred to the Fuel network by end users. The information integrity is verified on-chain through signature checking.
https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/fuel-connector
Prize distribution and scoring
-
Total Prize Pool: $40,000
-
The prize distribution has 2 possible triggers:
- If one or more valid medium severity findings are found, the total pot size is $20,000
- If one or more valid high severity findings are found, the total pot size is $40,000
-
Scoring described in the competition scoring page.
-
Findings Severities described in detail on our docs page.
Documentation
Link to the library/contracts documentation:
- https://github.com/redstone-finance/redstone-oracles-monorepo/blob/main/packages/fuel-connector/sway/contract_adapter/README.md
- https://github.com/redstone-finance/redstone-fuel-sdk/blob/main/README.md
Scope
-
Repository: https://github.com/redstone-finance/redstone-fuel-sdk/
-
Commit:
dedce33b2f23db3aef701fc15f3a2d62f5ea3dc3
-
nSLOC: 1266
-
Files: src/**/*.sw
-
Repository: https://github.com/redstone-finance/redstone-oracles-monorepo
-
Commit:
ff0f3dcb085f28bd80ddc096825701db6e14d0af
-
nSLOC: 256
-
Files:
- packages/fuel-connector/sway/contract_core/src/**/*.sw
- packages/fuel-connector/sway/contract_adapter/src/**/*.sw
Build Instructions
Inside https://github.com/redstone-finance/redstone-fuel-sdk/
Run make build
Inside https://github.com/redstone-finance/redstone-fuel-sdk/packages/fuel-connector/sway
In Makefile define suffix “_adapter” or “_core”:
SUFFIX=_adapter*#_core*
Run make build
Provide any and all instructions needed for how to compile and build the project.
Basic POC Test
-
For the library https://github.com/redstone-finance/redstone-fuel-sdk/:
-
For the contracts:
Out of scope
Inside *.sw files:
- do not audit doc/comment messages
- do not audit functions marked as #[test]/#[test(should_revert)] and functions below any #[test]/#[test(should_revert)] in the file (these are helper test functions)
- do not audit lines like:
- use* (with all contained dependencies),
- const*/pub const*,
- empty line,
- single line containing only reserved sway words (like library, where)
- do not audit files like lib.sw,
- other library headers (like: src/core.sw /src/crypto.sw /src/lib.sw /src/protocol /src/utils.sw)
- use* (with all contained dependencies),
Contact Us
For any issues or concerns regarding this competition, please reach out to the Cantina core team through the Cantina Discord.
Summary
Status
CompletedTotal reward:
$40,000
Findings submitted:
265
Start date:
24 Sep 2024 12:30pm (local time)
End date:
4 Oct 2024 8:00pm (local time)