open-index/open-npm huggingface dataset:
npm package: @renec-foundation/nemoswap-sdk
Description: Typescript SDK to interact with NemoSwap program.
Author: dev@renec.foundation
Latest version: 0.9.5

# Whirlpools

Whirpools is an open-source concentrated liquidity AMM contract on the Solana blockchain.
The Whirlpools Typescript SDK (`@orca-so/whirlpools-sdk`) allows for easy interaction with a deployed Whirlpools program.

The contract has been audited by Kudelski and Neodyme.

# Whirlpool SDK

Use the SDK to interact with a deployed Whirlpools program via Typescript.

## Installation

In your package, run:

```
yarn add `@orca-so/whirlpools-sdk`
yarn add "@project-serum/anchor"
yarn add "decimal.js"
```

## Usage

Read instructions on how to use the SDK on the [Orca Developer Portal](https://orca-so.gitbook.io/orca-developer-portal/orca/welcome).

## Tests

To run tests for the SDK, follow steps below:


1. Make sure your solana-cli version from 1.9 and above. You can replace v1.9.29 by another version in the future.

```
sh -c "$(curl -sSfL https://release.solana.com/v1.9.29/install)"
```

2. Run `anchor keys list` to retrieve the `declared_id` and replace it to `Anchor.toml`, also replace in `whirlpool/src/lib.rs`

```
[programs.localnet]
whirlpool = "<declared_id>"
```
3. Run `solana config set --url localhost`

4. Open new terminal and run `solana-test-validator`

5. Run

```
cd sdk
yarn install
anchor test 
```

# License

[Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)
npm package: @renec-foundation/oracle-sdk
Description: Typescript SDK to interact with Oracle program.
Author: tunghoang@remitano.com
Latest version: 0.1.13

# oracle-sdk

## How to use
```javascript
import {
  PublicKey,
  Connection,
  Keypair,
  Commitment,
} from "@solana/web3.js";
import { AnchorProvider, Wallet, BN, Address } from "@project-serum/anchor";
import { Context, ProductClient, 
  ORACLE_PROGRAM_ID, REUSD, REVND, VERSION 
} from "@renec-foundation/oracle-sdk";


...
// yourKey = Keypair.fromSecretKey(Uint8Array.from([124, 149, 222, 31, 236, 142, 29, 95...]));

const commitment: Commitment = "confirmed";
const connection = new Connection(consts.RPC_ENDPOINT_URL, { commitment });
const wallet = new Wallet(yourKey);
const provider = new AnchorProvider(connection, wallet, { commitment });

const ctx = Context.withProvider(provider, ORACLE_PROGRAM_ID);


const base = REUSD;
const quote = REVND;
const newPrice = 24500.35;

const productClient = await ProductClient.getProduct(ctx, quote, base, VERSION);
const tx = await productClient.postPrice(
    newPrice,
    productClient.ctx.wallet.publicKey
);

await tx.buildAndExecute();
await productClient.refresh();

const price = await productClient.getPrice();
console.log("price", price);
```

+ Output
```json
price {
  "price": 25000,
  "symbol": "VND/USD",
  "timestamp": 1686731721,
  "numberPublishers": 1
}
```
npm package: @renec-foundation/pegged-fiat-sdk
Description: Typescript SDK to interact with Pegged Fiat program.
Author: tunghoang@remitano.com
Latest version: 0.3.3

# pegged-fiat-sdk


## How to use
```javascript
import {
  PublicKey,
  Connection,
  Keypair,
  Commitment,
} from "@solana/web3.js";
import { AnchorProvider, Wallet, BN, Address } from "@project-serum/anchor";
import { Context, PairClient, PEGGED_FIAT_PROGRAM_TESTNET, REVND_TESTNET, REUSD_TESTNET } from "@renec-foundation/pegged-fiat-sdk";
...

// yourKey = Keypair.fromSecretKey(Uint8Array.from([124, 149, 222, 31, 236, 142, 29, 95...]));

const commitment: Commitment = "confirmed";
const connection = new Connection(consts.RPC_ENDPOINT_URL, { commitment });
const wallet = new Wallet(yourKey);
const provider = new AnchorProvider(connection, wallet, { commitment });

const version = 4;
const ctx = Context.withProvider(provider, new PublicKey(PEGGED_FIAT_PROGRAM_TESTNET));


const pair = await PairClient.getPair(ctx, REUSD_TESTNET, REVND_TESTNET, version);

const lockAmount = new anchor.BN("100000000");
const tx = await pair.lockNMint(wallet.publicKey, lockAmount);
const txid = await tx.buildAndExecute();

console.log("txid", txid);
```

+ Output
```json
```
npm package: @renec-foundation/propeasy-sdk
Description: Typescript SDK to interact with Propeasy program.
Author: loins@remitano.com
Latest version: 0.0.13

# propeasy-sdk

## How to use

### Get PropertyClient

```javascript
import {
  PublicKey,
  Connection,
  Keypair,
  Commitment,
} from "@solana/web3.js";
import { AnchorProvider, Wallet, BN, Address } from "@project-serum/anchor";
import { Context, PropertyClient,
  PROPEASY_PROGRAM, PROP
} from "@renec-foundation/propeasy-sdk";


...
// yourKey = Keypair.fromSecretKey(Uint8Array.from([124, 149, 222, 31, 236, 142, 29, 95...]));

const commitment: Commitment = "confirmed";
const connection = new Connection(RPC_ENDPOINT_URL, { commitment });
const wallet = new Wallet(yourKey);
const provider = new AnchorProvider(connection, wallet, { commitment });

const ctx = Context.withProvider(provider, PROPEASY_PROGRAM);

const propertyMintAccount = new PublicKey('');

let propertyClient = await PropertyClient.getProperty(ctx, propertyMintAccount);

console.log("property", propertyClient)

const purchaseTx = await propertyClient.purchasePropertyToken(new BigNumber(10));
const purchaseTxSig = await purchaseTx.buildAndExecute();

propertyClient = await propertyClient.refresh();
const locker = await propertyClient.getLocker();

console.log("locker", locker);

const individualCommission = propertyClient.getCommissionAmount(new BigNumber(10))
```

### Initialize platform

- update .wallet/owner.js

```bash
yarn build:sdk
yarn cli initialize -n mainnet
```

### Create new property

- update .wallet/owner.js
- update data/property.ts

```bash
yarn build:sdk
yarn cli createProperty -n mainnet
```
npm package: @renec-foundation/redex-sdk
Description: Typescript SDK to interact with Orca's Whirlpool program.
Author: team@orca.so
Latest version: 0.8.1-beta

# Whirlpools

Whirpools is an open-source concentrated liquidity AMM contract on the Solana blockchain.
The Whirlpools Typescript SDK (`@orca-so/whirlpools-sdk`) allows for easy interaction with a deployed Whirlpools program.

The contract has been audited by Kudelski and Neodyme.

# Whirlpool SDK

Use the SDK to interact with a deployed Whirlpools program via Typescript.

## Installation

In your package, run:

```
yarn add `@orca-so/whirlpools-sdk`
yarn add "@project-serum/anchor"
yarn add "decimal.js"
```

## Usage

Read instructions on how to use the SDK on the [Orca Developer Portal](https://orca-so.gitbook.io/orca-developer-portal/orca/welcome).

## Tests

To run tests for the SDK, follow steps below:


1. Make sure your solana-cli version from 1.9 and above. You can replace v1.9.29 by another version in the future.

```
sh -c "$(curl -sSfL https://release.solana.com/v1.9.29/install)"
```

2. Run `anchor keys list` to retrieve the `declared_id` and replace it to `Anchor.toml`, also replace in `whirlpool/src/lib.rs`

```
[programs.localnet]
whirlpool = "<declared_id>"
```
3. Run `solana config set --url localhost`

4. Open new terminal and run `solana-test-validator`

5. Run

```
cd sdk
yarn install
anchor test 
```

# License

[Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)