open-index/open-npm huggingface dataset:
npm package: @galacticcouncil/math-ema
Description: Ema math
Author: GalacticCouncil
Latest version: 1.3.0

# EMA math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-ema.svg)](https://www.npmjs.com/package/@galacticcouncil/math-ema)

Exponential moving average wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-ema`
npm package: @galacticcouncil/math-hsm
Description: HSM pool math
Author: GalacticCouncil
Latest version: 1.2.0

# LBP math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-hsm.svg)](https://www.npmjs.com/package/@galacticcouncil/math-hsm)

HSM pool wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-hsm`
npm package: @galacticcouncil/math-lbp
Description: LBP pool math
Author: GalacticCouncil
Latest version: 1.3.0

# LBP math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-lbp.svg)](https://www.npmjs.com/package/@galacticcouncil/math-lbp)

Liquidity bootstrapping pool wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-lbp`
npm package: @galacticcouncil/math-liquidity-mining
Description: Liquidity mining math
Author: GalacticCouncil
Latest version: 1.3.0

# Liquidity mining math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-liquidity-mining.svg)](https://www.npmjs.com/package/@galacticcouncil/math-liquidity-mining)

Liquidity mining wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-liquidity-mining`
npm package: @galacticcouncil/math-omnipool
Description: Omnipool math
Author: GalacticCouncil
Latest version: 1.4.0

# Omnipool math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-omnipool.svg)](https://www.npmjs.com/package/@galacticcouncil/math-omnipool)

Omnipool wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-omnipool`
npm package: @galacticcouncil/math-stableswap
Description: Stableswap pool math
Author: GalacticCouncil
Latest version: 2.5.0

# Stableswap math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-stableswap.svg)](https://www.npmjs.com/package/@galacticcouncil/math-stableswap)

Stableswap wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-stableswap`
npm package: @galacticcouncil/math-staking
Description: Staking math
Author: GalacticCouncil
Latest version: 1.3.0

# Staking math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-staking.svg)](https://www.npmjs.com/package/@galacticcouncil/math-staking)

Staking wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-staking`
npm package: @galacticcouncil/math-xyk
Description: XYK pool math
Author: GalacticCouncil
Latest version: 1.3.0

# XYK math

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/math-xyk.svg)](https://www.npmjs.com/package/@galacticcouncil/math-xyk)

XYK wasm utils.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/math-xyk`
npm package: @galacticcouncil/ui
Description: Galactic UI Kit
Author: GalacticCouncil
Latest version: 5.7.0

# UIGC Web Components

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/ui.svg)](https://www.npmjs.com/package/@galacticcouncil/ui)

## What are [UIGC Web Components]?

- Collection of **reusable UI elements** crafted to ease Basilisk & Hydration chains integration driven by a **lit framework** (~400kb unpacked size).
- Usable with any current or future **web development framework**.
- Created and maintained by [Galactic Council](https://galacticcouncil.io/).

## Why web components?

- **Future-proof**: _web standards_, compatible with any web development framework.
- **Encapsulated**: Stable in any environment and suitable not only for apps, but also for _libraries and micro-frontends_.
- **Elegant**: _custom HTML elements_, hide implementation complexity behind a single HTML tag, easy to use with the standard DOM APIs.

## Demo & Preview

```sh
  npm run dev
```

## How to Use

1. Install the NPM module

   ```sh
   npm install @galacticcouncil/ui
   ```

2. Import the component ui to your app:

   ```js
   import '@galacticcouncil/ui';
   ```

3. Use the UIGC Web Component

   ```html
   <uigc-alert variant="success"></uigc-alert>
   ```

### Customization

For framework customization please see following sections:

- [Font](https://github.com/galacticcouncil/apps/packages/ui/blob/master/doc/font.md)
- [Base](https://github.com/galacticcouncil/apps/packages/ui/blob/master/doc/base.md)

## Browser Support

UIGC Web Components are supported by all major modern browsers.

| Browser | Supported versions |
| ------- | ------------------ |
| Chrome  | Latest             |
| Firefox | Latest             |
| Safari  | Latest             |
| Edge    | Latest             |
npm package: @galacticcouncil/xc
Description: Cross-chain ctx
Author: GalacticCouncil
Latest version: 0.5.0

# Galactic XC

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/xc.svg)](https://www.npmjs.com/package/@galacticcouncil/xc)

The easiest way to get started with cross-chain transfers. Provides a context factory that wires together `xc-sdk`, `xc-cfg`, and `xc-core`.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/xc`

## Usage

Use `createXcContext` to quickly set up all components — config, wallet, and bridge integrations — in a single call.

```typescript
import { createXcContext } from '@galacticcouncil/xc';

const ctx = await createXcContext();
const { config, wallet } = ctx;
```

It handles all necessary setup under the hood. Just call the factory and you're ready to build transfers, subscribe balances, and more.

## Transfer

```typescript
// Define transfer
const srcChain = config.getChain('ethereum');
const destChain = config.getChain('hydration');
const asset = config.getAsset('eth');

const srcAddr = 'INSERT_ADDRESS';
const destAddr = 'INSERT_ADDRESS';

// Get transfer data
const transfer = await wallet.transfer(
  asset,
  srcAddr,
  srcChain,
  destAddr,
  destChain
);

// Validate transfer
const status = await transfer.validate();

// Estimate fee & construct calldata with transfer amount (1 ETH)
const fee = await transfer.estimateFee('1');
const call = await transfer.buildCall('1');

console.log(transfer);
console.log(status);
console.log(call);
```
npm package: @galacticcouncil/xc-scan
Description: Cross-chain scan
Author: GalacticCouncil
Latest version: 0.4.0

# Galactic XC Scan

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/xc-scan.svg)](https://www.npmjs.com/package/@galacticcouncil/xc-scan)

Transaction scanning and monitoring for cross-chain transfers. Track transfer status across chains.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/xc-scan`
npm package: @galacticcouncil/xcm-cfg
Description: Cross-chain hydradx & basilisk dapp configuration
Author: GalacticCouncil
Latest version: 10.26.0

# Galactic XCM config

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/xcm-cfg.svg)](https://www.npmjs.com/package/@galacticcouncil/xcm-cfg)

Pre-configured routes for Hydration and Basilisk dApps. Maps assets and chains to transfer strategies.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/xcm-cfg`

## Supported protocols

- **XCM**
- **Wormhole** (via MRL)
- **Snowbridge**
npm package: @galacticcouncil/xcm-core
Description: Cross-chain sdk core
Author: GalacticCouncil
Latest version: 8.11.0

# Galactic XCM core

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/xcm-core.svg)](https://www.npmjs.com/package/@galacticcouncil/xcm-core)

Cross-chain core definitions & types. Backbone for sdk & config module.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/xcm-core`
npm package: @galacticcouncil/xcm-sdk
Description: Cross-chain sdk
Author: GalacticCouncil
Latest version: 10.11.1

# Galactic XCM SDK

[![npm version](https://img.shields.io/npm/v/@galacticcouncil/xcm-sdk.svg)](https://www.npmjs.com/package/@galacticcouncil/xcm-sdk)

Wallet interface for asset multi-platform transfer supporting fee swaps & bridging.

Wallet does not perform any signing rather provide transfer data to maintain loose coupling & interoperability with 3rd party code.

## Installation

Install with [npm](https://www.npmjs.com/):

`npm install @galacticcouncil/xcm-sdk`

## API

```typescript
transfer(
    asset: string | Asset,
    srcAddr: string,
    srcChain: string | AnyChain,
    dstAddr: string,
    dstChain: string | AnyChain
  ): Promise<Transfer>
subscribeBalance(
    address: string,
    chain: string | AnyChain,
    observer: (balances: AssetAmount[]) => void
  )
```

## Usage

```typescript
// Import
import {
  assetsMap,
  chainsMap,
  routesMap,
  dex,
  validations,
} from '@galacticcouncil/xcm-cfg';
import { ConfigService, EvmParachain } from '@galacticcouncil/xcm-core';
import { Wallet, Call } from '@galacticcouncil/xcm-sdk';

// Initialize config service
const configService = new ConfigService({
  assets: assetsMap,
  chains: chainsMap,
  routes: routesMap,
});

// Initialize wallet
const wallet = new Wallet({
  configService: configService,
  transferValidations: validations,
});

// Register dex-es
const hydration = configService.getChain('hydration');
const assethub = configService.getChain('assethub');

wallet.registerDex(
  new dex.HydrationDex(hydration),
  new dex.AssethubDex(assethub)
);

// Define transfer
const srcChain = configService.getChain('ethereum');
const destChain = configService.getChain('hydration');
const asset = configService.getAsset('eth');

// Define source & dest accounts
const srcAddr = 'INSERT_ADDRESS';
const destAddr = 'INSERT_ADDRESS';

// Subscribe source chain token balance
const balanceObserver = (balances: AssetAmount[]) => console.log(balances);
const balanceSubscription = await wallet.subscribeBalance(
  srcAddr,
  srcChain,
  balanceObserver
);

// Get transfer data
const transfer = await wallet.transfer(
  asset,
  srcAddr,
  srcChain,
  destAddr,
  destChain
);

// Validate transfer
const status = await transfer.validate();

// Estimate fee & construct calldata with transfer amount (1 ETH)
const fee: AssetAmount = await transfer.estimateFee('1');
const feeInfo = [
  'Estimated fee:',
  fee.toDecimal(fee.decimals),
  fee.originSymbol,
].join(' ');
const call: Call = await transfer.buildCall('1');

// Dump transfer info
console.log(transfer);
console.log(status);
console.log(feeInfo);
console.log(call);

// Unsubscribe source chain balance
balanceSubscription.unsubscribe();
```