@tacoinfra/harbinger-lib
v2.0.2
Published
Common typescript code which powers the CLI and Serverless updaters.
Downloads
12
Readme
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.