ckb-js / kuai

A protocol and framework for building universal dapps on Nervos CKB
MIT License
22 stars 11 forks source link

Technical breakdown of sudt demo #434

Open Keith-CY opened 1 year ago

Keith-CY commented 1 year ago

This issue is a complement to the sudt demo, user stories can be found at https://github.com/ckb-js/kuai/blob/52925123c49dd45de682a5291a9ae2c0637a8221/docs/PRD/user_story.md

Flowchat of service end and client end: https://github.com/ckb-js/kuai/issues/250#issuecomment-1565973140

Keith-CY commented 1 year ago

Server

Platform

Services

APIs

[appended]

Keith-CY commented 1 year ago

Frontend

Platform

Pages

Keith-CY commented 1 year ago

I've done a technical breakdown roughly, please have a review and add more details if possible. @Daryl-L @PainterPuppets @yanguoyu

And we may need support from designer cc @Sven-TBD

yanguoyu commented 1 year ago

Server

Add a api to get network type.

Frontend

CKB Balance: from CKB Explorer

Does this means the CKB Balance will get from explorer API, but not from get assets list or demo's server?

Keith-CY commented 1 year ago

Server

Add a api to get network type.

A api to get network type can be added for api users/frontend developers to check if their projects are connected to the correct service. I'll append it to the list

Frontend

CKB Balance: from CKB Explorer

Does this means the CKB Balance will get from explorer API, but not from get assets list or demo's server?

I thought it could be fetched from the CKB Explorer, but after a double thought I found it's infeasible because the CKB Explorer doesn't support getting balance of a set of addresses. So a batch of requests will be made. We may have to add an API for getting the balance

Keith-CY commented 1 year ago

I've done a technical breakdown roughly, please have a review and add more details if possible. @Daryl-L @PainterPuppets @yanguoyu

And we may need support from designer cc @Sven-TBD

We will push the work if no more feedback to the technical breakdown

And how is the design going @Sven-TBD

Sven-TBD commented 1 year ago

api to get network type can be added for api users/frontend developers to check if their projects are connected to the correct service. I'll append it to the list

The UI design will be done this week. Last week I did some adjustment to prototype to make Kuai support WalletConnect and multiple addresses within the History function and so on. The PRD link is here , should we include this to the UI as well , or discuss it on next meeting first? @Keith-CY

Keith-CY commented 1 year ago

api to get network type can be added for api users/frontend developers to check if their projects are connected to the correct service. I'll append it to the list

The UI design will be done this week. Last week I did some adjustment to prototype to make Kuai support WalletConnect and multiple addresses within the History function and so on. The PRD link is here , should we include this to the UI as well , or discuss it on next meeting first? @Keith-CY

I have a question about the account id

image

So we can have a talk on the next meeting

Keith-CY commented 1 year ago

Design draft has been updated at https://github.com/Magickbase/visual-style-guide/issues/33 please have a review @Sven-TBD @PainterPuppets @Daryl-L @yanguoyu

Daryl-L commented 1 year ago

image What are the differences between Asset and Token, I could still not get it after thinking for a while.

Keith-CY commented 1 year ago

image What are the differences between Asset and Token, I could still not get it after thinking for a while.

Assets is what I own. Tokens is the list of tokens issued by this service.