open-index/open-npm huggingface dataset:
npm package: @snowballtools/auth
Description: snowballtools auth
Author: Snowball Tools Inc.
Latest version: 0.3.1

# @snowballtools/auth

## Description

This package is responsible for handling user authentication (who you are) and authorization (what you can do).

## Installation

```zsh
# NPM
npm install @snowballtools/auth

# Yarn
yarn add @snowballtools/auth

# PNPM
pnpm add @snowballtools/auth

# Bun
bun install @snowballtools/auth
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/auth-embedded
Description: snowballtools auth-passkey
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/auth-embedded

## Description

This package is Snowball's embedded wallets SDK

## Installation

```zsh
# NPM
npm install @snowballtools/auth-embedded

# Yarn
yarn add @snowballtools/auth-embedded

# PNPM
pnpm add @snowballtools/auth-embedded

# Bun
bun install @snowballtools/auth-embedded
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/auth-lit
Description: snowballtools auth-passkey
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/auth-lit

## Description

This package is responsible for handling snowballtool sdk auth lit

## Features

- [Lit Protocol](https://www.litprotocol.com/) Passkeys

## Installation

```zsh
# NPM
npm install @snowballtools/auth-lit

# Yarn
yarn add @snowballtools/auth-lit

# PNPM
pnpm add @snowballtools/auth-lit

# Bun
bun install @snowballtools/auth-lit
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/js-sdk
Description: snowballtools sdk
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/js-sdk

## Installation

```zsh
# NPM
npm install @snowballtools/js-sdk

# Yarn
yarn add @snowballtools/js-sdk

# PNPM
pnpm add @snowballtools/js-sdk

# Bun
bun install @snowballtools/js-sdk
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/link-lit-alchemy-light
Description: aa
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/smartwallet-alchemy

- [Alchemy Light Accounts](https://www.alchemy.com/)

## Installation

```zsh
# NPM
npm install @snowballtools/smartwallet-alchemy

# Yarn
yarn add @snowballtools/smartwallet-alchemy

# PNPM
pnpm add @snowballtools/smartwallet-alchemy

# Bun
bun install @snowballtools/smartwallet-alchemy
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/react-native-base64
Description: A polyfill used to add btoa() and atob() to the global scope.
Latest version: 1.0.0

# @react-native-anywhere/polyfill-base64
A polyfill used to add btoa and atob to the global scope.

## 🚀 Getting Started

Using [`yarn`](https://yarnpkg.com):

```bash
yarn add @react-native-anywhere/polyfill-base64
```

## ✍️ Usage

```javascript
import "@react-native-anywhere/polyfill-base64";

// btoa, atob...
```

## Native Usage
This can be used with expo/eas & react-native-quick-base64. It will automatically prefer the native implementation if it finds it.

```
npx expo install react-native-quick-base64
```

## ✌️ License
[**MIT**](./LICENSE)
npm package: @snowballtools/smartwallet-alchemy-light
Description: aa
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/smartwallet-alchemy

## Description

This package is responsible for handling Smart Wallets ([ERC-4337](https://eips.ethereum.org/EIPS/eip-4337), AA).

## Features

- [Alchemy Light Accounts](https://www.alchemy.com/)

## Installation

```zsh
# NPM
npm install @snowballtools/smartwallet-alchemy

# Yarn
yarn add @snowballtools/smartwallet-alchemy

# PNPM
pnpm add @snowballtools/smartwallet-alchemy

# Bun
bun install @snowballtools/smartwallet-alchemy
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/types
Description: snowballtools types
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/types

This package is responsible for providing types and interfaces for the Snowball SDK.

## Installation

```zsh
# NPM
npm install @snowballtools/types

# Yarn
yarn add @snowballtools/types

# PNPM
pnpm add @snowballtools/types

# Bun
bun install @snowballtools/types
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowballtools/utils
Description: aa
Author: Snowball Tools Inc.
Latest version: 0.6.0

# @snowballtools/utils

## Description

This package is responsible for handling snowballtools sdk utils

## Installation

```zsh
# NPM
npm install @snowballtools/utils

# Yarn
yarn add @snowballtools/utils

# PNPM
pnpm add @snowballtools/utils

# Bun
bun install @snowballtools/utils
```

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
npm package: @snowbeam/prettier
Description: 📦 This is an prettier package for snowbeam.
Author: Md Irshad
Latest version: 0.0.1

# @snowbeam/prettier

📦 This is a prettier package for snowbeam. It includes import sorting plugin for prettier `@ianvs/prettier-plugin-sort-imports`

The default config is my own styling format for the TypeScript, JavaScript codebase

```js
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
module.exports = {
  singleQuote: true,
  bracketSameLine: true,
  bracketSpacing: true,
  endOfLine: "lf",
  jsxSingleQuote: true,
  useTabs: false,
  semi: true,
  tabWidth: 2,
  trailingComma: "none",
  arrowParens: "avoid",
  embeddedLanguageFormatting: "auto",
  plugins: ["@ianvs/prettier-plugin-sort-imports"],
};

```

# Installation

- npm

```
npm install @snowbeam/prettier
```

- yarn

```
yarn add @snowbeam/prettier
```

- pnpm

```
pnpm add @snowbeam/prettier
```

# How to setup

Crete a .prettierrc.js or .prettierrc.cjs when using type module then add the extension on the file as .cjs and for type common .js and define the `importOrder` with the regular expression now the prettier format will take care

```ts
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
const prettierConfig = {
  ...require('@snowbeam/prettier'),
  importOrderParserPlugins: ['typescript', 'decorators'],
  importOrder: [
    '<TYPES>',
    '<TYPES>^[./]',
    '',
    '<THIRD_PARTY_MODULES>',
    '',
    '<THIRD_PARTY_MODULES>(/.*)?$',
    '',
    '^src(/.*)$',
    '',
    '^[./]'
  ]
};

module.exports = prettierConfig;
```

```tsx
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
const prettierConfig = {
  ...require('@snowbeam/prettier'),
  importOrderParserPlugins: ['typescript', 'jsx', 'decorators'],
  importOrder: [
    '<TYPES>',
    '<TYPES>^[./]',
    '',
    '<THIRD_PARTY_MODULES>',
    '',
    '<THIRD_PARTY_MODULES>(/.*)?$',
    '',
    '^src(/.*)$',
    '',
    '^[./]'
  ]
};

module.exports = prettierConfig;
```
npm package: @snowbeard/blockfrost-adapter
Description: Query Minswap data from Blockfrost
Author: Minswap Labs
Latest version: 0.0.7

# Minswap Blockfrost Adapter

## Features

- [x] Get current pair price
- [x] Get historical pair price
- [x] Calculate trade price
- [x] Calculate price impact
- [ ] Create orders and submit to Blockfrost

## Install

- NPM: `npm install @minswap/blockfrost-adapter`
- Yarn: `yarn add @minswap/blockfrost-adapter`

## Examples

### Example 1: Get current price of MIN/ADA pool

```ts
import { BlockfrostAdapter, NetworkId } from "@minswap/blockfrost-adapter";

const api = new BlockfrostAdapter({
  projectId: "<your_project_id>",
  networkId: NetworkId.MAINNET,
});
for (let i = 1; ; i++) {
  const pools = await api.getPools({ page: i });
  if (pools.length === 0) {
    // last page
    break;
  }
  const minADAPool = pools.find(
    (p) =>
      p.assetA === "lovelace" &&
      p.assetB ===
        "29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e"
  );
  if (minADAPool) {
    const [a, b] = await api.getPoolPrice({ pool: minADAPool });
    console.log(
      `ADA/MIN price: ${a.toString()}; MIN/ADA price: ${b.toString()}`
    );
    // we can later use this ID to call getPoolById
    console.log(`ADA/MIN pool ID: ${minADAPool.id}`);
    break;
  }
}
```

### Example 2: Get historical prices of MIN/ADA pool

```ts
import { BlockfrostAdapter, NetworkId } from "@minswap/blockfrost-adapter";

const MIN_ADA_POOL_ID =
  "6aa2153e1ae896a95539c9d62f76cedcdabdcdf144e564b8955f609d660cf6a2";

const api = new BlockfrostAdapter({
  projectId: "<your_project_id>",
  networkId: NetworkId.MAINNET,
});
const history = await api.getPoolHistory({ id: MIN_ADA_POOL_ID });
for (const historyPoint of history) {
  const pool = await api.getPoolInTx({ txHash: historyPoint.txHash });
  if (!pool) {
    throw new Error("pool not found");
  }
  const [price0, price1] = await api.getPoolPrice({
    pool,
    decimalsA: 6,
    decimalsB: 6,
  });
  console.log(`${historyPoint.time}: ${price0} ADA/MIN, ${price1} MIN/ADA`);
}
```