Socket
Socket
Sign inDemoInstall

@versatus/versatus-javascript

Package Overview
Dependencies
22
Maintainers
2
Versions
304
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @versatus/versatus-javascript

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 wi


Version published
Weekly downloads
302
increased by83.03%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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 programs. Along with some helper functions The CLI is used to initialize, build, deploy, and call programs in the network from the terminal.

CLICK HERE TO LEARN MORE ABOUT LASR

CLICK HERE FOR A MORE IN-DEPTH GETTING STARTED GUIDE

CLICK HERE TO LEARN MORE ABOUT LASRCTL CLI

CLICK HERE TO LEARN MORE ABOUT PROGRAMS ON LASR

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 # Choose blank, fungible, non-fungible, or faucet
4) Build Your Program
npx lasrctl build burd.ts
5) Test Your Program
npx lasrctl test --build example-program --inputJson inputs
6) Create Account and Deploy Program
npx lasrctl deploy --build example-program --author you --name myToken --symbol MYTOKEN --programName "My first token on LASR" --initializedSupply 10000000 --totalSupply 10000000 --txInputs '{"imgUrl":"https://pbs.twimg.com/profile_images/1704511091236020224/aOByHnoK_400x400.jpg","conversionRate":"1","paymentProgramAddress":"0xa60c7238d98c7ecef8659a18c2e8c6265327f280"}' --network stable

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

Interact with LASR Online

  1. Complete steps above.
  2. Go to https://faucet.versatus.io
  3. Import Secret Key into the wallet from the initialized secret_key in the .lasr folder.
cat .lasr/wallet/keypair.json | jq -r '.[0].secret_key' 
  1. Reload the faucet and start interacting with the network.

FAQs

Last updated on 25 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc