You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@versatus/versatus-javascript

Package Overview
Dependencies
Maintainers
2
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@versatus/versatus-javascript

### Overview This repository provides some essential tools and interfaces for developing **Programs** for the **LASR** network using Typescript. It provides a number of helpful types, classes, examples, and functions to aid in the building of LASR progra

0.1.172
latest
npmnpm
Version published
Maintainers
2
Created
Source

LASR: TypeScript SDK

Overview

This repository provides some essential tools and interfaces for developing Programs for the LASR network using Typescript. It provides a number of helpful types, classes, examples, and functions to aid in the building of LASR programs. Along with some helper functions The CLI is used to initialize, build, deploy, and call programs in the network from the terminal.

Learn more about LASR

  • Versatus Website

Getting started

Dependencies

  • Node (>= v18)
  • NPM / Yarn

1) Create New TypeScript Project

mkdir your-project-name
cd your-project-name
npm init -y
npm install typescript --save-dev
npx tsc --init

2) Install @versatus/versatus-javascript

npm install @versatus/versatus-javascript

3) Initialize Project with lasrctl

npx lasrctl init hello-lasr

4) Build Your Program

npx lasrctl build example-program.ts

5) Test Your Program

npx lasrctl test --build example-program --inputJson example-program-inputs 

6) Create Account and Deploy Program

npx lasrctl deploy --build example-program --symbol MYTOKEN --programName "My first token on LASR"

Note: the program deploy may fail on it's first attempt. If so, try it once more

Interact with LASR Online

cat .lasr/wallet/keypair.json | jq -r '.[0].secret_key' 
  • Reload the faucet and start interacting with the network.

FAQs

Package last updated on 15 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts