Skip to content

0xPellNetwork/dvs-template

Repository files navigation

dvs-template Setup and Usage Guide

In this template, we demonstrate how to build a square number calculation as an example to guide you through the development process. This example is representative of most Layer 2 applications, featuring off-chain computation and writing the results back to the blockchain.

1. Install Go Environment

First, ensure that the Go programming language is installed on your system. You can follow the official installation guide here: Go Official Installation Guide

2. Clone the Repository and Install Dependencies

Use the following commands to clone the project repository and install the necessary Go dependencies:

git clone https://github.com/0xPellNetwork/dvs-template.git
cd dvs-template && go mod tidy

3. Modify and Generate Proto Files

Proto File Definitions

After modifying the proto files, generate the Go files using the following command:

make proto

4. Modify DVS Module

1. Customize Result Handler Interface Implementation

2. Customize DVS Server Handler Interface Implementation

3. Modify DVS Module Types

5. Run Tests

Unit Tests

Run unit tests using the following command:

make test

Integration Tests

Run integration tests using the following commands:

make docker-build && make docker-test

6. Build Executable

Build the project's executable using the following command:

make build

About

Pell dvs application template which based on pellapp-sdk

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors