Skip to content

Commit

Permalink
update readme to reflect hashed conversation id
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Dec 25, 2024
1 parent 1b7fcbf commit b5bedde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/fungibletoken/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ sequenceDiagram
participant Contract
participant AIService
User->>Contract: call_js_func(start_ai_conversation)
Contract->>Contract: Generate conversation_id
User->>Contract: call_js_func(start_ai_conversation, conversation_id_hash)
Contract->>Contract: ft_transfer_internal(user, AIService, amount)
Contract->>User: Return conversation_id
Contract->>User: conversation_id_hash and deposit registered
User->>AIService: Initiate AI request with conversation_id
AIService->>Contract: Check deposit for conversation_id
Contract->>AIService: Confirm deposited tokens
AIService->>User: Provide AI-generated content
AIService->>AIService: Track spent AI tokens
User->>AIService: Initiate refund for conversation_id
AIService->>User: Sign message with unspent tokens
User->>Contract: call_js_func(refund_unspent, {signature, refund_message})
Expand Down

0 comments on commit b5bedde

Please sign in to comment.