@tacoinfra/harbinger-lib
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

harbinger-lib

About

harbinger-lib is a self contained npm package written in typescript that contains functionality for working with the Harbinger Price Oracle. To get started with Harbinger, visit the main documentation.

This library provides base functionality for the Harbinger CLI, Harbinger Poster and Harbinger Signer. This library is also useful for developers who want to interact with Harbinger functionality. Posters, signers, and users of Harbinger likely want to use one of the preceding higher level components.

Functionality

harbinger-lib contains the following set of functionality:

  • Programatically update an oracle contract from Coinbase or another provider
  • Programatically deploy oracle or normalizer contracts
  • Programatically push data from an oracle to a normalizer contract.
  • Programatically perform account reveals if required
  • Programatically revoke an oracle contract
  • Retrieve pretty printed oracle data
  • Utilities for working with bytes, common crypto functions (base58 encoding, hashing), encoding / decoding ASN1 payloads, and key manipulations
  • Utilities for signing bytes from an AWS KMS HSM.

Working with the Library

Before using functionality, clients will need to initialize the library with the following call:

import { initOracleLib } from 'harbinger-lib'

initOracleLib()

Building the Library

$ npm i
$ npm run build

Credits

Harbinger is written and maintained by Luke Youngblood and Keefer Taylor.

Package Sidebar

Install

npm i @tacoinfra/harbinger-lib

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

479 kB

Total Files

35

Last publish

Collaborators

  • craigtezos
  • chrispinnocktf