Skip to content

gilles-hemmerle/alephium-js

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.1%
  • Other 0.9%