fury02 / ic-js

Libraries for interfacing with the Internet Computer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ic-js

A collection of library for interfacing with the Internet Computer

The libraries are still in active development, and new features will incrementally be available.

Libraries

  • nns: interfacing with the ledger and governance canisters of the IC
  • sns: interacting with a Service Nervous System (SNS) project
  • cmc: interfacing with the cmc canister of the IC
  • utils: a collection of utilities and constants for NNS/SNS projects.

Installation

Install any library of this repo in your project from npm:

npm i @dfinity/nns
npm i @dfinity/sns
npm i @dfinity/cmc

You may be using all libraries in your project - as we do in NNS-dapp. That is s why, to help tree-shaking and avoid duplication of code, the libraries of this project are referencing agent-js and utils as peer dependencies.

Therefore, be sure that the needed agent-js and utils dependencies are available in your project or install these as following:

npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils

Links

Here are some useful links:

  • See the HACKING document for some information about local development

About

Libraries for interfacing with the Internet Computer.

License:Apache License 2.0


Languages

Language:JavaScript 66.7%Language:TypeScript 32.5%Language:Shell 0.8%