open-index/open-npm huggingface dataset:
npm package: @fuseio/bnc-onboard
Description: Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.
Author: Aaron Barnard
Latest version: 1.35.6

# Onboard

JavaScript library to easily onboard users to ethereum apps by enabling wallet selection, connection, wallet checks and real time state updates.

## Install

`npm install bnc-onboard`

## Quick Start

```javascript
import Onboard from 'bnc-onboard'
import Web3 from 'web3'

// set a variable to store instantiated web3
let web3

// head to blocknative.com to create a key
const BLOCKNATIVE_KEY = 'blocknative-api-key'

// the network id that your dapp runs on
const NETWORK_ID = 1

// initialize onboard
const onboard = Onboard({
  dappId: BLOCKNATIVE_KEY,
  networkId: NETWORK_ID,
  subscriptions: {
    wallet: wallet => {
      // instantiate web3 when the user has selected a wallet
      web3 = new Web3(wallet.provider)
      console.log(`${wallet.name} connected!`)
    }
  }
})

// Prompt user to select a wallet
await onboard.walletSelect()

// Run wallet checks to make sure that user is ready to transact
await onboard.walletCheck()
```

## Documentation

For detailed documentation head to [docs.blocknative.com](https://docs.blocknative.com/onboard)
npm package: @fuseio/fuse-swap-sdk
Description: 🛠 An SDK for building applications on top of Fuseswap.
Latest version: 3.1.1

# Fusewap SDK, Uniswap SDK fork

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

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## 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/fuseio/fuseswap-sdk.git
```

Move into the fuseswap-sdk working directory

```sh
cd fuseswap-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: @fuselab/ui-adal
Description: azure login ui
Author: hailiu@microsoft.com
Latest version: 1.5.4

# ADAL for getting ARM token

## Get Started

```bash
npm install @fuselab/ui-adal
```

or

```bash
lerna add @fuselab/ui-adal
```

## Provision app in Azure active directory

1. Login to https://portal.azure.com
1. Go to "Azure Active Directory", select "app registrations", click on "New application registration"

   ![AzureAD App Registrations](./assets/azure_ad_app_reg.jpg)

1. Create a new native app registration

   ![New native app](./assets/azure_ad_new_app_reg.jpg)

   for RedirectUri fill in your dev-server localhost address (you will add redirect uris for your other environment later)

1. Add additional RedirectUri for different environments

   ![add redirect uri](./assets/azure_ad_edit_redirect_uri.jpg)

1. Request access to ARM API

   ![add access to ARM](./assets/azure_ad_access_arm.jpg)

   and set scope to delegated

   ![ARM permission](./assets/azure_ad_access_scope.jpg)

1. Verify/update app manifest

   ![App Manifest](./assets/azure_ad_app_manifest.jpg)

   * make sure that <kbd>oauth2AllowImplicitFlow</kbd> is set to <kbd>true</kbd>
   * make sure that resourceId <kbd>797f4846-ba00-4fd7-ba43-dac1f8f63013</kbd> (for ARM) is present
npm package: @fusengine/berserk-engine
Description: Berserk engine run start application
Author: Bruno Azoulay
Latest version: 1.8.5

![alt Berserk](https://cdn.fusengine.ch/logo/berserk.png "Berserk Engine")

Berserk-engine use [express](https://github.com/expressjs/express) to create simple framework.

## engine()
To use berserk-engine use **`engine()`** which will contain the functions to read the configuration files, routes and your module array customize for your own application.

## Exemple

```js
const {engine} = require('@fusengine/berserk-engine')

/** exemple */
engine(
    require(myConfig),
    require('Api'),
    require('Web'),
    [
        require('./myConfig'),
        require('./myModule'),
        require('./myModule')
    ]
)

engine(configFile, apiFile, webFile, [array require('')] )
```

---
## berserkUtils()
use customized `console.log()`.

`infoMessage('my message' or my var)     Define info messages`<br>
`successMessage('my message' or my var)  Define success messages`<br>
`errorMessage('my message' or my var)    Define error messages`

## Exemple
```js
const berserkEngine = require('@fusengine/berserk-engine')
// or
const {
    infoMessage,
    successMessage,
    errorMessage
    } = require('@fusengine/berserk-engine')

infoMessage(myVar or 'my message')
successMessage(myVar or 'my message')
errorMessage(myVar or 'my message')
```

If you want use [berserk framework](https://github.com/fusengine/berserk).