open-index/open-npm huggingface dataset:
npm package: @pyra-chain/cp-amm-sdk
Description: SDK for DAMM v2
Author: PyraDev
Latest version: 1.0.1

# Pyra Constant Product AMM SDK (DAMM V2 SDK)

A TypeScript SDK for interacting with the DAMM V2 on Pyra

## Overview

This SDK provides a set of tools and methods to interact with the [Pyra DAMM-V2](https://github.com/Pyra-Chain/damm-v2). It simplifies common operations like creating pools, managing positions, adding/removing liquidity, swapping tokens, and claiming rewards.

For detailed technical documentation, please refer to the [DAMM-V2 SDK Documentation](https://github.com/Pyra-Chain/damm-v2-sdk/blob/main/docs.md).

## Installation

```bash
pnpm install @pyra-chain/cp-amm-sdk
# or
yarn add @pyra-chain/cp-amm-sdk
```

### Initialization

```typescript
import { Connection } from "@solana/web3.js";
import { CpAmm } from "@pyra-chain/cp-amm-sdk";

// Initialize a connection to the Solana network
const connection = new Connection("https://api.mainnet-beta.solana.com");

// Create a new instance of the CpAmm SDK
const cpAmm = new CpAmm(connection);
```

### Test

```
pnpm install
pnpm test
```

## Deployments

- Mainnet-beta: 94jkbjHAz6oVCsbsDKpeBRZZYvhm2Hg2epNDihLmb4nN
- Devnet: 94jkbjHAz6oVCsbsDKpeBRZZYvhm2Hg2epNDihLmb4nN

## Faucets

https://faucet.raccoons.dev/