Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hot_or_not_flow.md #444

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ flowchart
PostCreatorCanister[Post creator canister]
UserOwnCanister[User own canister]

UserClient -- 1. Query post detail --> PostCreatorCanister
PostCreatorCanister -- 2. Respond with post details --> UserClient
UserClient -- 3. Try to bet --> UserOwnCanister
UserOwnCanister -- 4. Check eligibility <br>and forward details --> PostCreatorCanister
PostCreatorCanister -- 5. Add bet details<br> and respond --> UserOwnCanister
UserOwnCanister -- 6. Update internally <br> and send acknowledgement --> UserClient
PostCreatorCanister -- 7. Tabulate results --> PostCreatorCanister
PostCreatorCanister -- 8. Credit creator's <br>wallet --> PostCreatorCanister
PostCreatorCanister -- 9. Update user's canister <br> with outcome --> UserOwnCanister
UserOwnCanister -- 10. Credit/debit <br>user wallet --> UserOwnCanister
UserClient -- 11. Query outcome --> UserOwnCanister
UserClient -- 12. Query wallet --> UserOwnCanister
UserClient -- 1.Query post detail --> PostCreatorCanister
PostCreatorCanister -- 2.Respond with post details --> UserClient
UserClient -- 3.Try to bet --> UserOwnCanister
UserOwnCanister -- 4.Check eligibility <br>and forward details --> PostCreatorCanister
PostCreatorCanister -- 5.Add bet details<br> and respond --> UserOwnCanister
UserOwnCanister -- 6.Update internally <br> and send acknowledgement --> UserClient
PostCreatorCanister -- 7.Tabulate results --> PostCreatorCanister
PostCreatorCanister -- 8.Credit creator's <br>wallet --> PostCreatorCanister
PostCreatorCanister -- 9.Update user's canister <br> with outcome --> UserOwnCanister
UserOwnCanister -- 10.Credit/debit <br>user wallet --> UserOwnCanister
UserClient -- 11.Query outcome --> UserOwnCanister
UserClient -- 12.Query wallet --> UserOwnCanister
```

## Query post details
Expand Down