open-index/open-npm huggingface dataset:
npm package: @kyberswap/aggregator-sdk
Description: In order to integrate KyberSwap's DEX Aggregator Swap into your website, you will be using the `@kyberswap/aggregator-sdk`. The goal of the SDK is to help you get the data you need to supply to KyberSwap smart contract's Swap function, which is invoked wh
Author: nguyenhuudungz
Latest version: 0.1.22

# KyberSwap Aggregator SDK

In order to integrate KyberSwap's DEX Aggregator Swap into your website, you will be using the `@kyberswap/aggregator-sdk`. The goal of the SDK is to help you get the data you need to supply to KyberSwap smart contract's Swap function, which is invoked when users swap on your website.

For more information, please check this [documentation](https://docs.kyberswap.com/developer-guides/aggregator-sdk/overview).
npm package: @kyberswap/ks-sdk-classic
Description: 🛠 An SDK for building applications on top of Dynamic AMM.
Latest version: 1.0.3

# Dynamic AMM SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
![Travis (.org)](https://img.shields.io/travis/dynamic-amm/dmm-sdk)
[![npm version](https://img.shields.io/npm/v/@dynamic-amm/sdk/latest.svg)](https://www.npmjs.com/package/@dynamic-amm/sdk/v/latest)
[![install size](https://img.shields.io/bundlephobia/minzip/@dynamic-amm/sdk/latest.svg)](https://bundlephobia.com/result?p=@dynamic-amm/sdk@latest)

In-depth documentation on this SDK is available at [https://docs.dmm.exchange/](https://docs.dmm.exchange/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/dynamic-amm/dmm-sdk.git
```

Move into the dmm-sdk working directory

```sh
cd dmm-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @kyberswap/ks-sdk-core
Description: 🛠 An CORE SDK for building DMM Classic SDK, Elastic SDK
Latest version: 1.1.16

# KyberSwap Core SDK
The KyberSwap Core SDK enables the safe handling of various data types (assets, math, etc.) when interacting with [Elastic](https://docs.kyberswap.com/liquidity-solutions/kyberswap-elastic/contracts/elastic-contract-addresses) and [Classic](https://docs.kyberswap.com/liquidity-solutions/kyberswap-classic/contracts/classic-contract-addresses) smart contracts in a TypeScript environment. It is meant to be used in conjunction with the [Elastic SDK](https://www.npmjs.com/package/@kyberswap/ks-sdk-elastic) and [Classic SDK](https://www.npmjs.com/package/@kyberswap/ks-sdk-classic).

```
npm i @kyberswap/ks-sdk-core
```

**Documentation**: [Core SDK Docs](https://docs.kyberswap.com/liquidity-solutions/core-sdk)

**Technical Reference**: [Core Classes](https://docs.kyberswap.com/liquidity-solutions/core-sdk/classes)
npm package: @kyberswap/ks-sdk-elastic
Description: 🛠 An SDK for building Kyberswap Elastic
Author: tien7668
Latest version: 1.1.3

# KyberSwap Elastic SDK

Effortlessly interact with our [Elastic smart contracts](https://docs.kyberswap.com/liquidity-solutions/kyberswap-elastic/contracts/elastic-contract-addresses) in a TypeScript environment via the KyberSwap Elastic SDK!

```
npm i @kyberswap/ks-sdk-elastic
```

**Documentation**: [Elastic SDK Docs](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk)

**Developer Guides**:
* [Get A Quote](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/developer-guides/get-a-quote)
* [Execute A Trade](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/developer-guides/execute-a-trade)
* [Create A New Position](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/developer-guides/create-a-new-position)
* [Increase Liquidity](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/developer-guides/increase-liquidity)
* [Remove Liquidity](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/developer-guides/remove-liquidity)

**Technical Reference**: [Elastic Classes](https://docs.kyberswap.com/liquidity-solutions/elastic-sdk/classes)

**Code Examples**: [KyberSwap Elastic SDK Demo](https://github.com/KyberNetwork/ks-sdk-elastic-demo)
npm package: @kyberswap/oauth2
Description: 🛠 An SDK for authentication with Oauth2
Author: nguyenhoaidanh
Latest version: 1.0.2

# Sdk authentication
- Support sign in with google, email, ethereum, anonymous
- Provide functions (KyberOauth2Api) to call API, auto attach access token, refresh token if expired

# How to install local
- Create file `.npmrc` in root folder, with content:
```
@kybernetwork:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=your_token
```
- Visit https://github.com/settings/tokens to create Classic Token if you don't have (at least has role `read:packages`)
- Ping admin to add to whitelist https://github.com/orgs/KyberNetwork/packages/npm/oauth2/settings
- Run `npm install @kybernetwork/oauth2`


# Install via git workflow
- Add `registry-url`,`scope` and `NODE_AUTH_TOKEN`

```
   ...
   - name: Set up Node.js 14.x
        uses: actions/setup-node@v1
        with:
          node-version: 14.x
          registry-url: 'https://npm.pkg.github.com'
          scope: '@kybernetwork'
   ...

   - name: Install dependencies
      uses: bahmutov/npm-install@HEAD
      env:
         NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ### authen npm
   ...

```
- Add your repo to `Manage Actions access` in this link https://github.com/orgs/KyberNetwork/packages/npm/oauth2/settings
   
# How to use
#### Initialize SDK
- Make sure call these lines once
```javascript
import KyberOauth2 from '@kybernetwork/oauth2'

const clientConfig = {
  clientId:'b6f36b76-77b3-4f67-b756-1e49df71fda3', // register with our admin to have an id
  redirectUri: `http://127.0.0.1:5004/callback` // redirect to this url after successful sign-in. (optional)
}

KyberOauth2.initialize(clientConfig)

try {
  const data = await KyberOauth2.getSession()
  console.log(data.userInfo)  // user already login
} catch (error) {
  KyberOauth2.authenticate() // it will redirect you to login gateway to sign in with google/ethereum/email/...

  // or sign in anonymous
  const data = await KyberOauth2.loginAnonymous()
  console.log(data.userInfo) // this is anonymous user info
}


```

#### Call protected API with SDK
- Make sure to Initialize SDK first
- Use `KyberOauth2Api.get(...)`, `KyberOauth2Api.post(...)` and `KyberOauth2Api.call(...)`  instead of cal `axios` or `fetch`
- KyberOauth2Api will attach access token and it will auto refresh token if token expired.

# How to publish this package
- Create file `.npmrc` in root folder, with content same as above
- Update version in package.json
- Run `npm publish`
- Check here https://github.com/KyberNetwork/kyber-oauth2-sdk/pkgs/npm/oauth2

# Development Mode
- `KyberOauth2.initialize({ mode: DEVELOPMENT_MODE, ... })` 
- Please set `mode` to `development` or `staging` if you want to test, if not provided, mode will be `production`
npm package: @kyberswap/zap-migration-widgets
Description: Kyber Zap Migration Widgets
Latest version: 1.0.12

# Kyber Liquidity Widgets

The `@kyberswap/pancake-liquidity-widgets` package is an npm package of React components used to provide subsets of the Zap Protocol functionality in a small and configurable user interface element.
Demo: https://pancake-liq-widget-demo.vercel.app/

## Installation
Install the widgets library via npm or yarn.

```
yarn add @kyberswap/pancake-liquidity-widgets
```

```
npm i --save @kyberswap/pancake-liquidity-widgets
```

## Usage
Example usage: https://github.com/KyberNetwork/kyberswap-widgets/blob/main/examples/pancake-demo/src/App.tsx#L116-L137

### Params

Property | Description | Type | Default Value
--- | --- | --- | --- |
source | To identify the dapp that integrating with liquidity widget | string | 
account | Current connected wallet | string | "" 
networkChainId | Current network chainId | number | Required
chainId | network of selected pool | number | Required 
poolAddress | address of pool to zap | string | Required 
positionId | Optional, in case “Increasing Liquidity into an existing position”, pass the position id. The position should belong to the poolAddress. Otherwise, it considers as “Adding Liquidity into a new position” | number | undefined 
initTickLower | init tick lower in case add liquidity into a new position | number | undefined 
initTickUpper | init tick upper in case add liquidity into a new position | number | undefined 
initDepositToken | init deposit token in. Use `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` in case it's native token | string | undefined 
initAmount | init amount in | number | undefined 
theme | matching with pancake theme. accept 'dark' or 'light' | string | dark
feeAddress | Wallet Address if you want to charge zap fee | string | undefined 
feePcm | fee percentage in per cent mille (0.001% or 1 in 100,000). Ignored if feeAddress is empty. From 0 to 100,000 inclusively. Example: 1 for 0.001%. | number | undefined 
includedSources | List of liquidty sources you want to include from your zap, separate by comma | [KyberSwap Aggregator Dex Ids](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/dex-ids) | 
excludedSources | List of liquidty sources you want to exclude from your zap, separate by comma | [KyberSwap Aggregator Dex Ids](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/dex-ids) | 
onDismiss | Callback function when click cancel or close widget | () => void | 
onTxSubmit | Callback function when tx was submited  | (txHash: string) => void | 
onConnectWallet | function when user click connect wallet  | () => void |
npm package: @kybetter/lernarepo1
Description: #### 这个项目测试了如何编写一个基于 Vue 的 UI 组件库
Author: zhaoliang
Latest version: 2.0.3

# 测试 Vue 组件

#### 这个项目测试了如何编写一个基于 Vue 的 UI 组件库

只要按照我的配置就可以完成这个架子的搭建，

安装：`yarn add @kybetter/lernarepo1`

在Vue项目中使用：
```
// main.js
import Vue from 'vue';
import ZlUi from '@kybetter/lernarepo1';

Vue.use(ZlUi);
// ...
```
```
// App.vue

<zl-title>我是一个标题组件</zl-title>

```
npm package: @kybetter/node-fy
Description: 一款命令行翻译工具。
Latest version: 1.1.2

#### 介绍
一款命令行翻译工具。

#### 使用方法

#### 1、全局安装

```
$ npm i -g @kybetter/node-fy
或
$ yarn add global @kybetter/node-fy
```

#### 2、使用

```
$ fy love

"love" 的翻译结果：
---------------------------------
音标： 英[lʌv]  美[lʌv]
---------------------------------
基本解释：
n. 爱；爱情；喜好；（昵称）亲爱的；爱你的；心爱的人；钟爱之物；零分
v. 爱恋（某人）；关爱；喜欢（某物或某事）；忠于
n. (Love) （英、菲、瑞、美）洛夫（人名）
---------------------------------
过去式：loved；过去分词：loved；现在分词：loving；复数：loves；第三人称单数：loves；
---------------------------------
相关翻译：
love: 爱，爱情，爱心，恋爱
Endless Love: 无尽的爱，蓝色生死恋，不了情，新不了情
puppy love: 早恋，青春期恋爱，初恋，少男少女间短暂的爱情
```