open-index/open-npm huggingface dataset:
npm package: @infusion-dev/router-sdk
Description: An sdk for routing swaps using Uniswap v2 and Uniswap v3.
Latest version: 1.22.5

# Alpha software

The latest version of the SDK is used in production in the Uniswap Interface,
but it is considered Alpha software and may contain bugs or change significantly between patch versions.
If you have questions about how to use the SDK, please reach out in the `#dev-chat` channel of the Discord.
Pull requests welcome!

# Uniswap Swap Router SDK

This SDK is meant to facilitate interactions with the contracts in [swap-router-contracts](https://github.com/Uniswap/swap-router-contracts).
npm package: @infusion-dev/sdk-core
Description: ⚒️ An SDK for building applications on top of Uniswap V3
Latest version: 7.5.6

# Uniswap SDK Core

[![npm version](https://img.shields.io/npm/v/@infusion-dev/sdk-core/latest.svg)](https://www.npmjs.com/package/@infusion-dev/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@infusion-dev/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@infusion-dev/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @infusion-dev/universal-router-sdk
Description: sdk for integrating with the Universal Router contracts
Latest version: 4.17.5

# universal-router-sdk

This SDK facilitates interactions with the contracts in [Universal Router](https://github.com/Uniswap/universal-router)

## Usage

Install latest version of universal-router-sdk. Then import the corresponding Trade class and Data object for each protocol you'd like to interact with.

### Trading on Uniswap

warning: `swapERC20CallParameters()` to be deprecated in favor of `swapCallParameters()`

```typescript
import { TradeType } from '@infusion-dev/sdk-core'
import { Trade as V2TradeSDK } from '@infusion-dev/v2-sdk'
import { Trade as V3TradeSDK } from '@infusion-dev/v3-sdk'
import { MixedRouteTrade, MixedRouteSDK, Trade as RouterTrade } from '@infusion-dev/router-sdk'

const options = { slippageTolerance, recipient }
const routerTrade = new RouterTrade({ v2Routes, v3Routes, mixedRoutes, tradeType: TradeType.EXACT_INPUT })
// Use the raw calldata and value returned to call into Universal Swap Router contracts
const { calldata, value } = SwapRouter.swapCallParameters(routerTrade, options)
```

## Running this package

Make sure you are running `node v18`
Install dependencies and run typescript unit tests

```bash
yarn install
yarn test:hardhat
```

Run forge integration tests

```bash
forge install
yarn test:forge
```
npm package: @infusion-dev/v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap V2
Latest version: 4.13.4

# Uniswap V2 SDK

[![npm version](https://img.shields.io/npm/v/@infusion-dev/v2-sdk/latest.svg)](https://www.npmjs.com/package/@infusion-dev/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@infusion-dev/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@infusion-dev/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @infusion-dev/v3-sdk
Description: ⚒️ An SDK for building applications on top of Uniswap V3
Latest version: 3.24.4

# Alpha software

The latest version of the SDK is used in production in the Uniswap Interface,
but it is considered Alpha software and may contain bugs or change significantly between patch versions.
If you have questions about how to use the SDK, please reach out in the `#dev-chat` channel of the Discord.
Pull requests welcome!

# Uniswap V3 SDK

[![npm version](https://img.shields.io/npm/v/@infusion-dev/v3-sdk/latest.svg)](https://www.npmjs.com/package/@infusion-dev/v3-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@infusion-dev/v3-sdk/latest.svg)](https://bundlephobia.com/result?p=@infusion-dev/v3-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://docs.uniswap.org/).
npm package: @infxios/dynamic-loader
Description: `dynamic-loader` helps you run desired `Typescript` or `Javascript` after loading the specified `npm` packages.
Author: Ferhat Dündar
Latest version: 0.1.4

`dynamic-loader` helps you run desired `Typescript` or `Javascript` after loading the specified `npm` packages.

- executeJavascript
- executeTypescript

```typescript
import { executeTypescript } from "dynamic-loader"
const packageContent = fs.readFileSync("test-package-0.1.0.tgz");
executeTypescript("test-app", [
  {
    packageName: "test-package",
    packageContent: packageContent
  }
], `
      import { testOperation } from "test-package";
      testOperation().then(() => {
        console.log("completed");
      }).catch((error) => {
        console.error(error);
      });
    `);
```
npm package: @infynno/eslint-config-nextjs
Description: Custom eslint config for nextjs projects at Infynno Solutions
Author: Krunal Shah
Latest version: 1.0.4

# Eslint Config Nextjs

This is a custom package used to configure eslint for projects at Infynno Solutions. Feel free to use it for your projects.

## How to use

1. Install the package

```
npm install --save-dev @infynno/eslint-config-nextjs

or

yarn add -D @infynno/eslint-config-nextjs

or

pnpm add -D @infynno/eslint-config-nextjs
```

2. Extend your eslint config and add `@infynno/eslint-config-nextjs`.

```
{
  "extends": ["@infynno/eslint-config-nextjs"]
}
```

## Why use this config?

- Includes all Nextjs's recommended config guide (next/core-web-vitals)
- Integrates prettier for code formatting using `eslint-config-prettier` and `eslint-plugin-prettier`
- Automatically sorts your imports using `react/jsx-sort-props`
- Automatically configures orders for your imports using `import/order`
- Removes unused imports automatically using `unused-imports`
npm package: @ing3kth/core
Description: @ing3kth Core for node package
Author: ing3kth
Latest version: 3.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @ing3kth NPM Core

<!-- Main -->
<div align="center">

[![NPM](https://nodei.co/npm/@ing3kth/core.png)](https://nodei.co/npm/@ing3kth/core)

[![Downloads](https://badgen.net/npm/dt/@ing3kth/core?icon=npm)](https://www.npmjs.com/package/@ing3kth/core)
[![install size](https://packagephobia.com/badge?p=@ing3kth/core)](https://packagephobia.com/result?p=@ing3kth/core)
[![LICENSE](https://badgen.net/badge/license/MIT/blue)](https://github.com/KTNG-3/npm-core/blob/main/LICENSE)
[![Known Vulnerabilities](https://snyk.io/test/npm/@ing3kth/core/badge.svg)](https://snyk.io/test/npm/@ing3kth/core)

[![Github](https://badgen.net/badge/icon/github?icon=github&label)](https://github.com/KTNG-3/npm-core)
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/pbyWbUYjyt)

</div>

### Installation

NPM:

```bash
    npm install @ing3kth/core
```

Yarn:

```bash
    yarn add @ing3kth/core
```

### Usage

```javascript
const IngCore = require("@ing3kth/core");
```

```typescript
import * as IngCore from "@ing3kth/core";
```

# Epilogue

-   _Report Bug_
    -   [Github](https://github.com/KTNG-3/npm-core/issues)
    -   [Discord](https://discord.gg/pbyWbUYjyt)
        -   INg3\_#9509
-   _Legal_
    -   [MIT License](https://github.com/KTNG-3/npm-core/blob/main/LICENSE)
npm package: @ingaia/ingaia-ui
Description: react-ingaia React component
Author: conradoramalho
Latest version: 1.3.2

# @ingaia/ingaia-ui

This repository is a package of components created with React keeping the Gaia style guide.

>

[![NPM](https://img.shields.io/npm/v/ingaia-ui.svg)](https://www.npmjs.com/package/@ingaia/ingaia-ui) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Docs:

[inGaia React Components](https://ingaia.github.io/react.npm)

## Install

```bash
yarn add @ingaia/ingaia-ui
```

## Usage

```jsx
import React, { Component } from 'react';

import { Button } from '@ingaia/ingaia-ui';

class Example extends Component {
  render() {
    return <Button text="Save" />;
  }
}
```

## Contributing

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

- Clone the project:

  ```sh
  $ git clone https://github.com/ingaia/react.npm.git
  ```

- Install dependencies:

  ```sh
  $ yarn install
  ```

- Create components:

  - Create your component
  - Create a documentation for your component: \*.mdx
  - Starter guide: [Docz](https://www.docz.site/)
    >

- View components:

  ```sh
  $ yarn start
  ```

- Change the version:

  ```sh
  $ package.json "version": "x.x.x"
  ```

- Build the project:

  ```sh
  $ yarn build
  ```

- Publishing NPM

  ```sh
  $ npm publish
  ```

- Publishing Doc

  ```sh
  $ yarn deploy
  ```

- Create a new branch for this commit and start a pull request

##### Prerequisites

> [Node.js](http://nodejs.org/) \
> [Docz](https://www.docz.site/)\
> [Yarn](https://yarnpkg.com/pt-BR/) or [NPM](https://www.npmjs.com/)

## Built With

> [React](https://reactjs.org/)\
> [Styled-Components](https://www.styled-components.com/) \
> [Docz](https://www.docz.site/)

## Authors

> [Conrado Ramalho](https://github.com/conradoramalho)\
> [Daniel Henrique](https://github.com/dhfuzari) \
> [Jefferson Santos](https://github.com/JeffersonxD) \
> [Ricardo Teixeira](https://github.com/ricardo-teixeira)

See also the list of [contributors](https://github.com/ingaia/react.npm/graphs/contributors) who participated in this project.
npm package: @ingameltd/pay-now
Description: A simple library for connecting pay-now service
Author: Kasun Vithanage
Latest version: 1.1.1

# PayNow for NodeJS

![Build](https://github.com/ingameltd/pay-now/workflows/Build/badge.svg) ![License](https://img.shields.io/github/license/ingameltd/pay-now) ![Package Version](https://img.shields.io/npm/v/@ingameltd/pay-now) ![Last Commit](https://img.shields.io/github/last-commit/ingameltd/pay-now)

NodeJS library for [PayNow](https://paynow.pl) payment service. This library is written in Typescript to provide
best typesafety.

Official REST API docs can be found [here](https://docs.paynow.pl/).

## Documentation

Documentation can be in read [here](https://ingameltd.github.io/pay-now).

## Installation

```bash
npm install --save @ingameltd/pay-now
```

## Typescript

### Importing

```typescript
import {
  PayNow,
  Payment,
  PaymentCreatedResponse
} from "@ingameltd/pay-now";
```

### Initialization

- **apiKey** - API Key from PayNow panel
- **signatureKey** - Signature Key from PayNow panel

```typescript
const payNow = new PayNow(
  apiKey, 
  signatureKey, 
  { 
    sandbox: false // enable or disable sandbox
  }
);
```

### Create payment

```typescript
const payment: Payment = {
    amount: 1000, // 10,00 PLN
    externalId: '9fea23c7-cd5c-4884-9842-6f8592be65df', // unique id from merchant system
    description: "Test transaction",
    buyer: {
        email: "jhondoe@example.com"
    }
}

const result: PaymentCreatedResponse = await payNow.createPayment(payment)

console.log(result)
```

### Get payment status

```typescript
// payment id from paynow
const result: PaymentStatusResponse = payNow.paymentStatus(paymentId)
console.log(result)
```

### Check integrity of incoming message

To verify a notification you must check integrity of an incoming message and compare it with `Signature` header field(you can set Notification endpoint in panel)

#### Example with Express

```typescript
const calculatedSignature = paynow.calculateSignature(req.body)
console.log(calculatedSignature === req.header('Signature'))
```
npm package: @ingameltd/paysafecard
Description: Paysafecard client for NodeJS
Author: Kasun Vithanage
Latest version: 1.0.4

# Paysafecard client for NodeJS

![](https://img.shields.io/github/workflow/status/ingameltd/paysafecard/Build) ![](https://img.shields.io/github/license/ingameltd/paysafecard) ![](https://img.shields.io/npm/v/@ingameltd/paysafecard) ![](https://img.shields.io/github/last-commit/ingameltd/paysafecard)

A type safe paysafecard client for NodeJS written in Typescript

Read the documentation [here](https://ingameltd.github.io/paysafecard/).

## Installation

```bash
npm install --save @ingameltd/paysafecard
```

## Usage

### Importing

```typescript
import {
  Paysafecard,
  Payment
  Currency,
} from "@ingameltd/paysafecard";
```

### Initialization

- **key** : Key from the Paysafecard merchant panel (PSC_XXX_XXXXXXXXXXXXXXXXXXXXXX)

```typescript
const paysafecard = new Paysafecard(key);
```

### Create an order

```typescript
const result = await psc.initiatePayment({
  amount: 0.2,
  currency: Currency.EUR,
  customer: {
    id: "b4e7fa08-1dde-4f45-b3dd-3e5e99a2177d",
  },
  notification_url: " https://notification.com/payment?payment_id={payment_id}",
  redirect: {
    success_url: "https://mystore.com/order?orderId={payment_id}",
    failure_url: "https://mystore.com/order?orderId={payment_id}&error=true",
  },
});
```

### Retrive order

When the notification arrives, merchant should retrive the payment from the Paysafecard.

```typescript
const result = await paysafecard.retrievePayment(
  "id of the paysafecard transaction"
);
```

### Capture order

After retrive order, if it is in `Authorized` state, merchant should capture order with the following API call
to transfer funds from customer to the merchant.

```typescript
const result = await paysafecard.captureOrder(
  "id of the paysafecard transaction"
);
```
npm package: @ingameltd/payu
Description: PayU client for NodeJS
Author: Kasun Vithanage
Latest version: 1.0.5

# PayU for NodeJS

![Build](https://github.com/ingameltd/payu/workflows/Build/badge.svg) ![](https://img.shields.io/npm/v/@ingameltd/payu) ![](https://img.shields.io/github/last-commit/ingameltd/payu)

A type safe PayU client for NodeJS written in Typescript

## Installation

```bash
npm install --save @ingameltd/payu
```

## Usage

### Importing

```typescript
import { PayU, Order, Buyer, Product, Currency } from "@ingameltd/payu";
```

### Initialization

- **clientId** : Client ID from PayU
- **clientSecret** : client secret from panel
- **merchantPosId** : pos id from panel
- **secondKey** : second key from panel

```typescript
const payU = new PayU(clientId, clientSecret, merchantPosId, secondKey, {
  sandbox: false,
});
```

### Create an order

```typescript
const result = await payU.createOrder({
  notifyUrl: "https://my.shop.notify.com/notify",
  customerIp: "127.0.0.1",
  continueUrl: "https://myshop.com/order?id=abc",
  description: "My order",
  currencyCode: Currency.PLN,
  totalAmount: 2000,
  buyer: {
    email: "buyer@email.com",
  },
  products: [
    { name: "mobile phone #1", quantity: 1, unitPrice: 1000 },
    { name: "mobile phone #2", quantity: 1, unitPrice: 1000 },
  ],
});
```

### Capture order

If your shop does not approve payments automatically, you need to capture them and confirm.

```typescript
const result = await payU.captureOrder("payU order Id from notification");
```

### Cancel order

To cancel an order before completed call this method.

```typescript
const result = await payU.cancelOrder("payU order Id from notification");
```

### Refund order

To refund an order after completed call this method.

```typescript
const result = await payU.refundOrder("payU order Id from notification", "reason");
```

### Verify notification

To verify notification are valid cryptogrpically this method can be used.

```typescript
const headers = req.headers;

const isValid = payU.verifyNotification(
  headers["OpenPayu-Signature"],
  JSON.stringify(req.body)
);

console.log(isValid);
```

### Validate IPs

To validate IPs are correct, use following method. It will automatically adjust to match
your environment(production or sandbox)

```typescript
const isIpValid = payU.isIpValid("127.0.0.1");
```
npm package: @ingeek/point
Description: buried point of span end
Author: gaojunfeng
Latest version: 1.4.6

# @ingeek/point

## 使用

    import { createPoint } from '@ingeek/point';

    const { updataBasePointInfo, sendPoint } = createPoint({
        basePointInfo: {
            brand: 1,
            channel: 0,
            version: 'v1.6',
            appId: '2088931366476511'
        },
        requestConfig: {
            url: 'http://192.168.13.30:39002/track/v1/trackUpload',
            isDecrypt: false, // 不加密，默认加密
            isCurrentPositionFromWeb: false, // 不上报web位置
        }
    });

    updataBasePointInfo(basePointInfo); // 更新埋点数据
    sendPoint(pointInfo); // 触发埋点

## 支持
    支付宝
    微信
    web

### web 平台
    <script src="https://cdn.jsdelivr.net/npm/@ingeek/point@1.4.6/browser/point.min.js"></script> 
    是否上报用户位置，不上报浏览器不提示获取位置提醒


## 开发

    npm i

    npm start

## 发布

    npm whoami  检查是否登陆
    npm adduser 创建账号
    npm login   登陆账号
    npm publish/npm publish --access public  发布包