open-index/open-npm huggingface dataset:
npm package: @sokolabs/wid
Description: Unique-identifier generator
Author: Bowdie Mercieca
Latest version: 2.1.3

@sokolabs/wid

    Generates a unique identifier - 88 bits 18-base32-encoded-alphanumeric-characters 
    in the browser.
    

This has browser specific codes that does not work on the serverside of NodeJS.

Include this in the script tag of the html file.

```
<script src="../js/index.js"></script>
</head>
<body>
  <button id="generate" onclick="wid()">Generate</button>
</body>
```
npm package: @soku-dex/sdk
Description: TON DEX SDK
Author: Soku
Latest version: 0.0.12

# Soku Dex

A decentralized exchange (DEX) built on TON blockchain.

## How to use

<!-- ### SDK Reference

For complete SDK documentation, see [docs/SDK.md](docs/SDK.md).


### Local Development

### Build

`npx blueprint build` or `yarn blueprint build`

### Test

`npx blueprint test` or `yarn blueprint test`

### Deploy or run another script

`npx blueprint run` or `yarn blueprint run`

### Add a new contract

`npx blueprint create ContractName` or `yarn blueprint create ContractName` -->

# Soku Dex SDK Reference

The Soku Dex SDK provides an interface for interacting with decentralized exchange contracts on the TON blockchain. This document covers all exported classes, types, and utilities.

## Table of Contents

- [Overview](#overview)
- [Installation](#installation)
- [API Docs](#api-docs)
- [Quick Examples](#quick-examples)


## Installation


```typescript
npm i --save @soku-dex/sdk
```

# API Docs

You can check latest API docs [here](https://soku-docs.netlify.app/)

## Quick Examples

### Creating a Liquidity Pool

```typescript
import { LiquidityPool } from '../sdk';
import { TonClient } from '@ton/ton';

const client = new TonClient({ endpoint: 'https://toncenter.com/api/v2/jsonRPC' });

const pool = await LiquidityPool.create({
  network: 'testnet',
  client,
  sender: yourSender,
  curve: 'balanced',
  tokenType0: 'jetton',
  tokenType1: 'jetton',
  tokenMaster0: jettonMaster0,
  tokenMaster1: jettonMaster1,
  dryRun: false
});

console.log('Pool deployed at:', pool.address);
```

### Performing a Swap

```typescript
import { Dex } from '../sdk';

const dex = new Dex(client, dexAddress);

// Simulate the swap first
const simulation = await dex.simulateDexSwap(1000, true);
console.log('Expected output:', simulation.amountOut);
console.log('Fees:', simulation.fees);

// Build the swap payload
const swapPayload = Dex.buildJettonSwap(
  simulation.amountOut,
  destinationAddress,
  toNano('0.1') // forward TON amount
);
```

### Querying Pool State

```typescript
import { LiquidityPool } from '../sdk';

const pool = new LiquidityPool(client, poolAddress);
const state = await pool.getLatest();

console.log('Pool balance:', state.balance);
console.log('Pool data:', state.data);
```

### Working with Different Token Types

```typescript
import { LiquidityPool, TOKEN_TYPES } from '../sdk';

// Create a TON/Jetton pool
const pool = await LiquidityPool.create({
  network: 'mainnet',
  client,
  sender,
  curve: 'unbalanced',
  tokenType0: 'ton',        // Native TON
  tokenType1: 'jetton',     // Jetton token
  tokenMaster1: jettonMaster, // Only needed for jetton
  dryRun: false
});
```
npm package: @soku-games/cli
Description: The cli for Soku-Game
Author: SokuRitszZ
Latest version: 1.0.1

# @soku-games/cli

The `CLI` that help you create `soku-game` templates.

## Usage
```sh
pnpm i @soku-games/cli
soku-cli # and then input your project name
cd soku-game-$your_project_name$
pnpm i
```

![20230820020724_rec_](https://github.com/Board-Game-Bot/soku-games/assets/84608230/4e1ef0ea-062a-4ea4-a11d-85c4fc158ccb)