Hubble common NPM packages.
Package | Description | Docs | Version |
---|---|---|---|
@hubbleprotocol/hubble-config |
Hubble Solana config (public keys) | README | |
@hubbleprotocol/hubble-idl |
Hubble IDL for Anchor | README | |
@hubbleprotocol/hubble-sdk |
Hubble Protocol client SDK | README | |
@hubbleprotocol/hubble-db |
Hubble Protocol database schema | README | |
@hubbleprotocol/scope-sdk |
Scope Oracle SDK | README | |
@hubbleprotocol/kamino-sdk |
Kamino SDK | README |
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
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)
- 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';
npm install
npm run bootstrap
npm run test