/verax-starter

A minimal implementation of the verax SDK to get started

Primary LanguageTypeScript

Verax Starter

This is a starter project for Verax, a JavaScript runtime. It includes scripts for creating and reading schemas, modules, portals, and attestations.

Installation

To install the project dependencies, run the following command: bash bun install

Usage

The project includes several scripts that you can run. Here are some examples:

Before running the scripts go to ./src/index.ts and chose your chain configuration, then add your privateKey to a .env file.

  • To build the project, run:

bash bun run build

  • To read a schema, run:

    bun run read-schema
  • To create a schema, run:

    bun run create-schema
  • To read an attestation, run:

    bun run read-attestation
  • To create an attestation, run:

    bun run create-attestation
  • To read a module, run:

    bun run read-module
  • To create a portal, run:

    bun run create-portal
  • To read a portal, run:

    bun run read-portal

Please note that these scripts will prompt you for necessary input in the command line.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.