Open
Description
Here is a suggestion for structuring the main readme.md file. From what I gathered at events the largest number of questions raise from how to do the following:
deroll
Minimal example
Deroll is a TypeScript framework for developing Cartesi applications.
The code below is a minimal application which just loops forever fetching inputs, but with no input handlers. In that case any input is rejected
.
import { createApp } from "@deroll/app";
const app = createApp({ url: "http://127.0.0.1:5004" });
// TODO: add input handlers here
app.start().catch((e) => process.exit(1));
Frequently used
Routing
Explain the routing system.
Examples
- Basic Routing Example
// Example code for basic routing
- Dynamic Routing Example
// Example code for dynamic routing
Handling Data
Examples
- Data Decoding Example
// Example code for data decoding
- Data Encoding Example
// Example code for data encoding
Outputs
Examples
- Vouchers Example
// Example code for generating vouchers
- Notices Example
// Example code for generating notices
- Reports Example
// Example code for generating reports
Wallets
Examples
- Deposit Function Example
// Example code for deposit function
- Transfer Function Example
// Example code for transfer function
- Withdraw Function Example
// Example code for withdraw function
Metadata
Assignees
Labels
No labels