3.1.2 • Published 2 years ago

@solar-network/platform-sdk v3.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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