GithubHelp home page GithubHelp logo

parzivalishan / versatus-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from versatus/versatus-javascript

0.0 0.0 0.0 24.4 MB

Shell 12.20% JavaScript 2.72% TypeScript 83.55% Makefile 1.52%

versatus-javascript's Introduction

LASR: JavaScript & 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.

Links To More In-Depth Information

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

For a more detailed guide on getting started with your LASR project, including setting up your environment, initializing your project with lasrctl, building, testing, and deploying your program, please refer to our Getting Started Guide.


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-token, or faucet

4) Build Your Program

npx lasrctl build example-program.ts

5) Test Your Program

npx lasrctl test inputs

6) Create Account and Deploy Program

npx lasrctl deploy --author my-name --name my-token --programName MY_TOKEN --symbol MY_TOKEN --initializedSupply 100 --totalSupply 100

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.

versatus-javascript's People

Contributors

hathbanger avatar ghlee433 avatar mikehostetler avatar nopestack avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.