Replies: 7 comments 8 replies
This comment has been hidden.
This comment has been hidden.
-
sequenceDiagram
actor User
participant Client
participant ArenaService
participant Blockchain
participant DB
Note over User,DB: Arena Registration
User->>Client: Request Arena Registration (Previous season participants are auto-registered)
Client->>ArenaService: Send Registration Request
ArenaService->>DB: Check Registration Status
DB-->>ArenaService: Return Registration Status
ArenaService->>DB: Save New Registration (if needed)
ArenaService-->>Client: Respond with Registration Complete
Client-->>User: Display Registration Result
Note over User,DB: Update Opponent List
User->>Client: Request List Update
Client->>ArenaService: Send Update Request
ArenaService->>ArenaService: Verify Costs
ArenaService->>DB: Fetch Current Ranking
DB-->>ArenaService: Return Ranking Info
ArenaService->>ArenaService: Generate New List
ArenaService->>DB: Save New List
ArenaService-->>Client: Provide Updated Opponent List
Client-->>User: Display Updated UI
Note over User,DB: Conduct Battle
User->>Client: Start Battle
Client->>ArenaService: Validate Battle Request
ArenaService->>ArenaService: Check Conditions (Tickets/Opponent Availability)
ArenaService->>ArenaService: Sign Battle Token
ArenaService-->>Client: Provide Validation Result and Token
Client->>Blockchain: Send Arena Battle TX (with Token)
Blockchain-->>ArenaService: Battle Result Event (including TX ID)
ArenaService->>ArenaService: Poll TX and Verify Result
ArenaService->>ArenaService: Calculate Scores and Generate Result
ArenaService->>DB: Save Battle Result/Scores
ArenaService-->>Client: Provide Updated Information
Client-->>User: Display Battle Result
|
Beta Was this translation helpful? Give feedback.
-
test infra planetarium/9c-infra#2262 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
we need an auth system, i'll talk about this discussion |
Beta Was this translation helpful? Give feedback.
-
NCIP 24 published! https://github.com/planetarium/NCIPs/blob/ncip-24/NCIP/ncip-24.md https://discord.com/channels/539405872346955788/1323178979984670821/1323179523138912317 |
Beta Was this translation helpful? Give feedback.
-
After this conversation, I labeled all the issues I created with |
Beta Was this translation helpful? Give feedback.
-
We are planning a rework of the Arena Service, which will be documented as an NCIP, though it hasn’t been published yet. Development will start in advance.
Updates will be made to the README on the ncip-24 branch as we work.
Once the NCIP is finalized and published, we’ll update the README with details on the process and progress.
Beta Was this translation helpful? Give feedback.
All reactions