From 827e57ed831a32a04718e1766ddaa66ff3fdecad Mon Sep 17 00:00:00 2001 From: imollov Date: Tue, 24 Oct 2023 18:00:17 +0300 Subject: [PATCH] docs(readme): add code references to flow --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6928a29..4850a8d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,17 @@ Navigate to each directory and follow the instructions in their respective READM ## Solution Overview -Solution +Solution
+ +Code references: + +1. Predict game result: [PredictionGame.sol#L116](./contracts/contracts/SportsPredictionGame.sol#L116) +2. Check for finished games: [PredictionGame.sol#379](./contracts/contracts/SportsPredictionGame.sol#L379) +3. Request game result: [ResultsConsumer.sol#L65](./contracts/contracts/ResultsConsumer.sol#L65) +4. Fetch game result: [sports-api.js#L63](./contracts/sports-api.js#L63) +5. Fulfill game result request [ResultsConsumer.sol#L105](./contracts/contracts/ResultsConsumer.sol#L105) +6. Claim winnings [SportsPredictionGame.sol#L151](./contracts/contracts/SportsPredictionGame.sol#L151)
+ 6.1 Transfer winnings [NativeTokenSender.sol#L66](./contracts/contracts/ccip/NativeTokenSender.sol#L66) ## Resources