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.
- Node (>= v18)
- NPM / Yarn
mkdir your-project-name
cd your-project-name
npm init -y
npm install typescript --save-dev
npx tsc --init
npm install @versatus/versatus-javascript
npx lasrctl init hello-lasr
npx lasrctl build example-program.ts
npx lasrctl test --build example-program --inputJson example-program-inputs
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
- Complete steps above.
- Go to https://playground.versatus.io
- 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'
- Reload the faucet and start interacting with the network.