@solar-network/platform-sdk
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

Solar Platform SDK

Warning

This package is currently still under early development and subject to breaking changes.

Installation

yarn add @solar-network/platform-sdk

Usage

Client

import { ClientFactory } from "@solar-network/platform-sdk";

ClientFactory.make("sxp");
ClientFactory.make("ark");
ClientFactory.make("btc");
ClientFactory.make("eth");

Crypto

import { CryptoFactory } from "@solar-network/platform-sdk";

ClientFactory.make("sxp");
CryptoFactory.make("ark");
CryptoFactory.make("btc");
CryptoFactory.make("eth");

Price Trackers

import { PriceTrackerFactory, PriceTrackerService } from "@solar-network/platform-sdk";

// Instantiation of a service that abstract the adapters behaviour.
PriceTrackerService.make("coincap");
PriceTrackerService.make("coingecko");
PriceTrackerService.make("cryptocompare");

// Instantiation of an adapter itself.
PriceTrackerFactory.make("coincap");
PriceTrackerFactory.make("coingecko");
PriceTrackerFactory.make("cryptocompare");

Credits

This project exists thanks to all the people who contribute.

License

MIT © ARK Ecosystem

Readme

Keywords

none

Package Sidebar

Install

npm i @solar-network/platform-sdk

Weekly Downloads

1

Version

3.1.2

License

MIT

Unpacked Size

105 kB

Total Files

138

Last publish

Collaborators

  • alessiodf
  • hodler