gilles-hemmerle / alephium-js

A JS/TS library for Alephium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alephium-js

Github CI Code Coverage NPM code style: prettier

A JavaScript/TypeScript library for building decentralized applications on the Alephium platform.

Install

npm ci

Development

Update schemas

Typings can automatically be fetched and built from the node and explorer-backend OpenAPIs using the following commands:

npm run fetch-schema:alephium -- -p <alephium-swagger-openapi-file-url>
npm run fetch-schema:explorer -- -p <explorer-swagger-openapi-file-url>

Examples

Fetching the latest schema of the testnet explorer-backend:

npm run fetch-schema:explorer -- -p https://testnet-backend.alephium.org/docs/explorer-backend-openapi.json

Fetching the latest schema of the locally running explorer-backend:

npm run fetch-schema:explorer -- -p http://localhost:9090/docs/explorer-backend-openapi.json

Fetch the latest schema of the locally running Alephium node:

npm run fetch-schema:alephium -- -p http://localhost:12973/docs/openapi.json

Compile

Compile the TypeScript files into JavaScript:

npm run compile

Testing

npm test

or, to watch for changes:

npm run test:watch

About

A JS/TS library for Alephium

License:GNU Lesser General Public License v3.0


Languages

Language:TypeScript 99.1%Language:JavaScript 0.8%Language:Nix 0.1%