diff --git a/src/canister/individual_user_template/src/api/hot_or_not_bet/hot_or_not_flow.md b/src/canister/individual_user_template/src/api/hot_or_not_bet/hot_or_not_flow.md index 38074f42..42e8253a 100644 --- a/src/canister/individual_user_template/src/api/hot_or_not_bet/hot_or_not_flow.md +++ b/src/canister/individual_user_template/src/api/hot_or_not_bet/hot_or_not_flow.md @@ -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
and forward details --> PostCreatorCanister - PostCreatorCanister -- 5. Add bet details
and respond --> UserOwnCanister - UserOwnCanister -- 6. Update internally
and send acknowledgement --> UserClient - PostCreatorCanister -- 7. Tabulate results --> PostCreatorCanister - PostCreatorCanister -- 8. Credit creator's
wallet --> PostCreatorCanister - PostCreatorCanister -- 9. Update user's canister
with outcome --> UserOwnCanister - UserOwnCanister -- 10. Credit/debit
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
and forward details --> PostCreatorCanister + PostCreatorCanister -- 5.Add bet details
and respond --> UserOwnCanister + UserOwnCanister -- 6.Update internally
and send acknowledgement --> UserClient + PostCreatorCanister -- 7.Tabulate results --> PostCreatorCanister + PostCreatorCanister -- 8.Credit creator's
wallet --> PostCreatorCanister + PostCreatorCanister -- 9.Update user's canister
with outcome --> UserOwnCanister + UserOwnCanister -- 10.Credit/debit
user wallet --> UserOwnCanister + UserClient -- 11.Query outcome --> UserOwnCanister + UserClient -- 12.Query wallet --> UserOwnCanister ``` ## Query post details