Skip to content

marinade-finance/hubble-common

 
 

Repository files navigation

Hubble Common 🛰

Hubble common NPM packages.

Packages

Release packages

Package Description Docs Version
@hubbleprotocol/hubble-config Hubble Solana config (public keys) README npm
@hubbleprotocol/hubble-idl Hubble IDL for Anchor README npm
@hubbleprotocol/hubble-sdk Hubble Protocol client SDK README npm
@hubbleprotocol/hubble-db Hubble Protocol database schema README npm
@hubbleprotocol/scope-sdk Scope Oracle SDK README npm
@hubbleprotocol/kamino-sdk Kamino SDK README npm

Deployment

lerna

We use lernajs for monorepo package management and publishing. Versioning and publishing is done automatically (detects changes if any) by Lerna.

Currently, deployment is done manually by using a GitHub Action called Release NPM packages. You can only deploy from the master branch and can either specify a specific new version number or increase it by specifying patch (default), minor or major to the action input. You may run the action from here

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  • git clone git@github.com:hubbleprotocol/hubble-common.git
  • cd hubble-common/
  • npm install
  • cd packages/kamino-sdk/
  • npm install
  • cd ../../
  • npx ts-mocha packages/kamino-sdk/tests/calculateAmounts.test.ts
  • Put in your RPC (see below)

Create a free mainnet RPC:

  • go to https://www.hellomoon.io/dashboard
  • get a mainnet rpc
  • paste it where it says const clusterUrl: string = 'https://api.mainnet-beta.solana.com';

License

Apache 2.0

Installing hubble common

npm install
npm run bootstrap

Testing hubble common packages

npm run test

About

🛰 Hubble Protocol common npm packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%