open-index/open-npm huggingface dataset:
npm package: @spooky-swap-dex/v3-sdk
Description: ⚒️ An SDK for building applications on top of Spookyswap V3
Latest version: 2.0.1-nsdk001

# 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/@uniswap/v3-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v3-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v3-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v3-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://docs.uniswap.org/).
npm package: @spookyspacekook/eslint-config
Description: Eslint config
Author: spookyspacekook
Latest version: 1.0.0

# eslint-config

Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @spookyspacekook/eslint-config
```

Add `"extends": "@spookyspacekook/eslint-config"` to your eslint config file.
npm package: @spookyswaptest-er/sdk-core
Description: An SDK for building applications on top of V3
Latest version: 2.0.2

# Uniswap SDK Core

[![Unit Tests](https://github.com/Uniswap/uniswap-sdk-core/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-sdk-core/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3ALint)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk-core/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @spookyswaptest-er/v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap V2
Latest version: 1.0.3

# Uniswap V2 SDK

[![Unit Tests](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3ALint)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @spookyswaptest/sdk-core
Description: An SDK for building applications on top of V3
Latest version: 1.0.26-sonic001

# Uniswap SDK Core

[![Unit Tests](https://github.com/Uniswap/uniswap-sdk-core/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-sdk-core/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3ALint)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk-core/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @spookyswaptest/spookyswap-sdk
Description: 🛠 An SDK for building applications on top of spookyswap.
Latest version: 2.0.0

# SpookySwap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## 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/SpookySwapswap/SpookySwap-sdk.git
```

Move into the SpookySwap-sdk working directory

```sh
cd SpookySwap-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: @spookyswaptest/v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap V2
Latest version: 1.0.3

# Uniswap V2 SDK

[![Unit Tests](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3ALint)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @spookyswaptestnet/sdk-core
Description: An SDK for building applications on top of V3
Latest version: 1.0.48

# Uniswap SDK Core

[![Unit Tests](https://github.com/Uniswap/uniswap-sdk-core/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-sdk-core/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3ALint)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk-core/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @spookyswaptestnet/v2-sdk
Description: 🛠 An SDK for building applications on top of Spookyswap V2
Latest version: 2.0.2-nsdk000

# Uniswap V2 SDK

[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @spookyswaptestnet/v3-sdk
Description: ⚒️ An SDK for building applications on top of Uniswap V3
Latest version: 3.11.1

# @uniswap/v3-sdk - Now at `Uniswap/sdks`

All versions after 3.11.0 of this SDK can be found in the [SDK monorepo](https://github.com/Uniswap/sdks/tree/main/sdks/v3-sdk)! Please file all future issues, PR’s, and discussions there.

### Old Issues and PR’s

If you have an issue or open PR that is still active on this SDK in this repository, please recreate it in the new repository. Some existing issues and PR’s may be automatically migrated by the Uniswap Labs team.
npm package: @spool.fi/spool-sdk
Description: Spool-SDK is a stateless npm package written in TypeScript. It is a facade that wraps RPC calls from and to the Spool smart contracts as well as API calls to subgraph and the Spool analytics server.
Author: Spool
Latest version: 0.5.13

# Spool SDK 
Spool SDK is a stateless npm package written in TypeScript.  
It is a facade that wraps RPC calls from and to the Spool smart contracts as well as API calls to subgraph and the Spool analytics server.  

## Production Mode  

To use this package, import it as follows:  

```ts
import {SpoolSdk, SpoolSdkParameters} from '@spool.fi/spool-sdk';
```

It needs to be initialized with correct parameters before it can be used.  
Also, a web3 Provider object (or Signer) needs to be passed! [provider = read-only]
```ts
import type {BaseProvider} from '@ethersproject/providers';

const sdk = new SpoolSdk(
    providerOrSigner: BaseProvider | Signer,
    params: SpoolSdkParameters
)
```

The default config parameters can be found [here](src/default_config.ts).  
Please make sure to pass only LOWER CASE addresses.  

Once initialized, the SDK can be used to retrieve data like this:  
```ts
sdk.spools.getAllSpools()

sdk.fees.getEstimatedFeesEarned(...)
```

## Development

To install and use this npm package from source, run the following command (it generates types from smart contract ABIs) 
```
npm i
npm run build:prod
```
npm package: @spoonconsulting/cordova-plugin-extra-events
Description: Cordova Plugin Extra Events
Author: Daniel Stone & Spoon Consulting Ltd
Latest version: 1.0.0


## Installation
    cordova plugin add @spoonconsulting/cordova-plugin-extra-events
Tested platforms: Android 8+, iOS 11+
    
## Usage
This plugin provides access to extra lifecycle events that are useful for saving data before your app quits. This allows you to mostly work around the following issues with cordova:
- iOS: The `onPause` event is never fired if the user activates the app switcher, then swipes up to kill the app.
- Android: The `onPause` event is never fired if the user actives the "recent apps" switcher, then swipes to kill the app.

```
constructor() {
    this.unregister = window.plugins.ExtraEvents.registerForEvents(this.onPluginEvent, (err) => {
        console.error(err);
    });
}

private onPluginEvent(e: CdvExtraEvent) {
    // Save our state when the app starts to go to the background.
    switch (e.eventName) {
        case 'android_onWindowFocusChanged':
            if (!e.hasFocus) {
                this.saveState();
            }
            break;
        case 'iOS_appWillResignActive':
            this.saveState();
            break;
    }
}
```

## API and Events
    
### window.plugins.ExtraEvents.registerForEvents(eventCallback, error?)
Registers a callback function to receive events. Returns an unregister function. Can be called with the following events:

#### android_onWindowFocusChanged (Android only)
Emitted when the main activity gains or loses focus. This happens when your app launches, goes into the background, is interrupted by a dialog or alert, when the user opens the system UI, etc. See the android docs for more info: https://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean).

**Warning** If the user actives the app switcher quickly and immediately kills your app, this event might not have time to fire. Also, if the user kills the app and your callback is taking a long time to run, Android might kill it, the same way that this happens with the native `onStop` and `onDestroy` methods.
```
{
    eventName: 'android_onWindowFocusChanged',
    hasFocus: boolean,
}
```

#### iOS_appWillResignActive (iOS only)
Emitted when the app starts going to the background or when the app switcher is triggered. See the native docs for more info: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622950-applicationwillresignactive?language=objc.

```
{
    eventName: 'iOS_appWillResignActive',
}
```

#### iOS_appWillEnterForeground (iOS only)
Emitted as the app transitions from background to foreground. See the native docs for more info: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623076-applicationwillenterforeground?language=objc.

```
{
    eventName: 'iOS_appWillEnterForeground',
}
```