open-index/open-npm huggingface dataset:
npm package: @mercurial-finance/apricot-sdk
Description: TS SDK for Apricot on Solana
Latest version: 0.17.6

# Apricot's Typescript SDK

For building transactions, see `src/utils/TransactionBuilder.ts`

For directly firing transactions, see `src/utils/ActionWrapper.ts` and `src/tools/doTrans.ts`

# setup
```
yarn install
yarn build
```

# doTrans.js script

After setup, you can invoke the tool scripts, for example:
```
# first deposit uses "new-and-deposit"
node dist/tools/doTrans.ts public your_wallet_key.json new-and-deposit SOL 1
# second deposit onwards uses just "deposit"
node dist/tools/doTrans.ts public your_wallet_key.json deposit USDC 10
```

Similar commands for withdraw, borrow, and repay also exist. Please refer to doTrans.ts for details.
npm package: @mercurial-finance/cypher-client
Description: TypeScript SDK for cypher protocol v3
Latest version: 4.1.4

<div align="center">
  </br>
  <p>
    <img height="50" src="https://cypher.trade/svgs/logo.svg" />
  </p>
  <p>
    <strong>cypher v3 TypeScript Clients</strong>
  </p>
  <p>
    <a href="https://discord.gg/jr9Mu4Uz25">
      <img alt="Discord Chat" src="https://img.shields.io/discord/880917405356945449?color=blue&style=flat-square" />
    </a>
  </p>
  <h4>
    <a href="https://cypher.trade/">cypher.trade</a>
    <span> | </span>
    <a href="https://github.com/chugach-foundation/cypher-client-ts-v3">Rust Client</a>
  </h4>
</div>

#

## Program Deployments

| Program | Devnet | Mainnet Beta |
| --------|--------|------------- |
| cypher | `E2hQJAedG6bX2w3rbPQ5XrBnPvC7u3mAorKLvU6XPxwe` | `CYPH3o83JX6jY6NkbproSpdmQ5VWJtxjfJ5P8veyYVu3` |
| faucet | `2gCkR5aaUiTVRiKDB79EWXm5PAVDWtNTnp9mGuu4ZKdY` |  |

## Notes

* **cypher is in active development so all APIs are subject to change.**
npm package: @mercurial-finance/frakt-sdk
Description: Frakt SDK for interacting with frakt.xyz protocols
Author: Vedamir Efanov
Latest version: 0.0.2

# frakt-sdk
[![npm version](https://badge.fury.io/js/@frakt-protocol%2Ffrakt-sdk.svg)](https://badge.fury.io/js/@frakt-protocol%2Ffrakt-sdk)

Library to interact with frakt.xyz protocols on Solana.

## Install
```bash
npm install @frakt-protocol/frakt-sdk --save
```

## Usage
```typescript
import { utils, loans, pools } from '@frakt-protocol/frakt-sdk';
```
Also `frakt-sdk` exports [AnchorProvider](https://github.com/project-serum/anchor), [BN.js](https://github.com/indutny/bn.js), [@raydium-io/raydium-sdk](https://sdk.raydium.io/) and [@solana/web3.js](https://solana-labs.github.io/solana-web3.js/).
```typescript
import { AnchorProvider, BN, web3 } from '@frakt-protocol/frakt-sdk';
```
### Current versions in dependencies
| Library                 | Version       |
|-------------------------|---------------|
| @project-serum/anchor   | 0.24.2        |
| @raydium-io/raydium-sdk | 1.0.1-beta.46 |
| @solana/web3.js         | ^1.36.0       |
| BN.js                   | ^5.1.2        |


## Examples
```typescript
import { utils, web3 } from '@frakt-protocol/frakt-sdk';

const { accountInfo } = await utils.getTokenAccount({
    tokenMint: new web3.PublicKey('...'),
    owner: new web3.PublicKey('...'),
    connection: new web3.Connection('ENDPOINT'),
});
```
```typescript
import { pools, web3, TokenInfo } from '@frakt-protocol/frakt-sdk';

const poolDataByMint = await pools.fetchPoolDataByMint({
    connection: web3.Connection('ENDPOINT'),
    tokensMap: new Map<string, TokenInfo>(),
});
```

## Docs
All methods and interfaces of `frakt-sdk` are available in [documentation](https://frakt-solana.github.io/frakt-sdk/).