-
Notifications
You must be signed in to change notification settings - Fork 1
Proposal of kuai project #4
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
Comments
1 BackgroundEthereum itself is a server, because it can not only change state, but also store state. Developers only need to implement client. In contrast to CKB, it can only store state. Moreover, the storage on CKB is expensive, so the data should be stored in off-chain as much as possible. 2 What is KuaiKuai is not a server, but a development framework. Kuai will provide developers with a more friendly API for off-chain development. It helps developers change and store state in off-chain more conveniently, while only one proof of many state changes is stored in on-chain. 3 ComponentKuai includes kuai-runner, kuai-convention, kuai-runtime, and kuai-testing. 3.1 kuai-runnerAt present, it is cumbersome to set up a CKB development environment locally, and developers need to know a lot of details, such as the configuration files of indexer and CKB. kuai-runner will provide a one-click launch method to help developers to set up a development environment easily, such as:
3.2 kuai-convention(maybe kuai-protocol)As a framework, Kuai should provide clear boundaries and development standards, and provide a list of best practice tips for developers to follow. kuai-convention is a convention document for the implementation reference of kuai-runtime and the usage guide of kuai-runtime, such as:
3.3 kuai-runtimekuai-runtime implements the interface defined by kuai-convention, shielding implementation details for developers and provides easy-to-use APIs. kuai-runtime provides friendly libraries/modules for building, sending, and managing transactions. Developers can build services quickly by kuai-runtime. The composition of kuai-runtime is as follows.
3.4 kuai-testingTesting is an important part of the software development process. And Kuai should provide modules that integrate with common testing frameworks on the market to help developers perform integration testing of the entire business process (dapp → service → CKB → assertion). kuai-testing will provide a friendly integration testing environment, such as:
3.5 kuai-websiteAs an open source project, Kuai needs to provide good documentation and examples to attract and guide developers. kuai-website provides friendly development documentation, such as:
4 Roadmap
|
Is it means to use a deployed contract? Like for cheque contract, send a cheque, claim, or withdraw?
Is it means to get cell data from chain? And we can use data to deploy contracts, call contracts, or get information. |
I thought of two ways for
I prefer the second method, we can accumulate many useful plugins to improve development efficiency. |
You are right, but kuai-convention focuses on off-chain services, rather than on-chain contracts. |
Yes,
Say DApp_A has Once the rule is omnipresent, all DApps are connected to each other. Back to question 2
Yes, |
The proposal has been drafted by #5 |
Uh oh!
There was an error while loading. Please reload this page.
Data storage
Data manipulation
Reactive Lazy Evaluation
Struct {
value
actions: Action[]
}
The text was updated successfully, but these errors were encountered: