Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.88 KB

README.md

File metadata and controls

68 lines (47 loc) · 1.88 KB

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