Skip to content

Harbinger lib is a toolbox of components used to build tooling and components for the Harbinger Price Oracle ecosystem on the Tezos network.

License

Notifications You must be signed in to change notification settings

tacoinfra/harbinger-lib

Repository files navigation

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.

About

Harbinger lib is a toolbox of components used to build tooling and components for the Harbinger Price Oracle ecosystem on the Tezos network.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published