open-index/open-npm huggingface dataset:
npm package: @hop-protocol/core
Description: Hop Protocol networks config
Author: Authereum Labs, Inc.
Latest version: 0.0.1-beta.236
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @hop-protocol/core

> Hop Protocol config and metadata

## Addresses

```js
import * as addresses from '@hop-protocol/core/addresses'

console.log(addresses.goerli.USDC.ethereum.l1Bridge)) // 0x123...
```

See the following files for list of available addresses

- [./src/addresses/mainnet.ts](./src/addresses/mainnet.ts)
- [./src/addresses/goerli.ts](./src/addresses/goerli.ts)

## Networks

```js
import * as networks from '@hop-protocol/core/networks'

console.log(networks.mainnet.gnosis.rpcUrls[0]) // "https://rpc.gnosischain.com/"
```

See the following files for available configuration info

- [./src/networks/mainnet.ts](./src/networks/mainnet.ts)
- [./src/networks/goerli.ts](./src/networks/goerli.ts)

## ABIs

```js
import { L1BridgeAbi } from '@hop-protocol/core/abi'

console.log(L1BridgeAbi)) // [...]
```

See [src/abi/index.ts](./src/abi/index.ts) for list of available ABIs

## Metadata

```js
import * as metadata from '@hop-protocol/core/metadata'

console.log(metadata.mainnet.tokens.USDC.decimals)) // 6
```

- See [src/metadata/tokens.ts](./src/metadata/tokens.ts) for available token metadata
- See [src/metadata/chains.ts](./src/metadata/chains.ts) for available chain metadata

## Development

Install dependencies

```sh
npm install
```

Watch

```sh
npm run dev
```

Build

```sh
npm run build
```

Run github action build locally with [act](https://github.com/nektos/act):

```sh
(cd ../../ && act --job publish-core --workflows .github/workflows/npm_publish_core.yml --secret-file=.secrets --verbose)
```

## License

[MIT](LICENSE)
npm package: @hop-protocol/fee-refund
Description: Fee refund logic
Author: Hop Team
Latest version: 1.1.87

# Fee Refund
A tool to calculate the amount of tokens to refund to users.

## Getting Started

Seed data and calculate rewards

## Development

```
const feeRefund = new FeeRefund({
  dbDir,
  rpcUrls,
  merkleRewardsContractAddress,
  startTimestamp,
  refundPercentage,
  refundChain,
  refundTokenSymbol
})

await feeRefund.seed()
await feeRefund.calculateFees()
```

Example output from `calculateFees()`:

```json
{
  "0x0000000000000000000000000000000000000000": "2235844954569473400",
  "0x0000000000000000000000000000000000000001": "1805976165462823000",
  "0x0000000000000000000000000000000000000002": "957778160370229000"
}
```

## Test

```shell
npm run test
```

## Lint

eslint
```shell
npm run eslint
```
npm package: @hop-protocol/metadata
Description: Hop Protocol metadata
Latest version: 0.0.1-beta.15
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @hop-protocol/metadata

> Hop Protocol token and chain metadata

## Getting started

```js
import * as metadata from '@hop-protocol/metadata'

console.log(metadata.mainnet.tokens.USDC.decimals)) // 6
```

- See [src/tokens.ts](./src/tokens.ts) for available token metadata
- See [src/chains.ts](./src/chains.ts) for available chain metadata
npm package: @hop-protocol/sdk
Description: The v1 Hop Protocol TypeScript SDK
Author: Authereum Labs, Inc.
Latest version: 0.0.41

# Hop v1 SDK

> The Hop Protocol v1 TypeScript SDK

[![Documentation](https://img.shields.io/badge/documentation-available-green.svg?style=flat)](https://docs.hop.exchange/v/developer-docs/js-sdk/js-sdk)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/@hop-protocol/sdk/master/LICENSE)
[![NPM version](https://badge.fury.io/js/%40hop-protocol%2Fsdk.svg)](https://badge.fury.io/js/%40hop-protocol%2Fsdk)

## Demo

[https://sdk-demo.hop.exchange/](https://sdk-demo.hop.exchange/)

## Install

```bash
pnpm --filter @hop-protocol/sdk... install
```

## CDN

[jsDelivr CDN](https://cdn.jsdelivr.net/npm/@hop-protocol/sdk@latest/hop.js)

```html
<script src="https://cdn.jsdelivr.net/npm/@hop-protocol/sdk@latest/hop.js"></script>
```

[unpkg CDN](https://unpkg.com/@hop-protocol/sdk@latest/hop.js)

```html
<script src="https://unpkg.com/@hop-protocol/sdk@latest/hop.js"></script>
```

## Documentation

For getting started and examples, see [docs.hop.exchange/v/developer-docs/js-sdk/js-sdk](https://docs.hop.exchange/v/developer-docs/js-sdk/js-sdk)

For sdk API reference, see [sdk-docs.hop.exchange](https://sdk-docs.hop.exchange/)

## Development

Install dependencies

```bash
pnpm install
```

Run build watcher

```bash
pnpm run dev
```

Build sdk

```bash
pnpm run build
```

Generate documentation

```bash
pnpm run docs
```

The markdown API reference docs are generated in `docs/`. There's is also a generated website for the API reference the docs at `docs-ui/`.

## Test

```bash
pnpm test
```

## License

[MIT](LICENSE)
npm package: @hop-protocol/v2-core
Description: Hop Protocol v2 core config
Latest version: 0.0.0-beta.5
Deprecated: This package is deprecated and should no longer be used.

# @hop-protocol/v2-core

> Hop Protocol v2 config and metadata

## Addresses

```js
import { goerliAddresses } from '@hop-protocol/v2-core/addresses'

console.log(goerliAddresses))
```

## License

[MIT](LICENSE)
npm package: @hop-protocol/v2-sdk
Description: The Hop Protocol v2 TypeScript SDK
Latest version: 0.0.0-beta.21

# @hop-protocol/v2-sdk

> The Hop Protocol v2 TypesScript SDK

[![Documentation](https://img.shields.io/badge/documentation-available-green.svg?style=flat)](https://docs-v2.hop.exchange/js-sdk/)
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/@hop-protocol/v2-sdk/master/LICENSE)
[![dependencies Status](https://david-dm.org/@hop-protocol/v2-sdk/status.svg)](https://david-dm.org/@hop-protocol/v2-sdk)
[![NPM version](https://badge.fury.io/js/%40hop-protocol%2Fv2-sdk.svg)](https://badge.fury.io/js/%40hop-protocol%2Fv2-sdk)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@hop-protocol/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@hop-protocol/v2-sdk@latest)

## Demo

[https://v2-sdk-demo.hop.exchange/](https://v2-sdk-demo.hop.exchange/)

## Install

```bash
npm install @hop-protocol/v2-sdk
```

## CDN

[https://cdn.jsdelivr.net/npm/@hop-protocol/v2-sdk@latest/hop.js](jsDelivr CDN)

```html
<script src="https://cdn.jsdelivr.net/npm/@hop-protocol/v2-sdk@latest/hop.js"></script>
```

[https://unpkg.com/@hop-protocol/v2-sdk@latest/hop.js](unpkg CDN)

```html
<script src="https://unpkg.com/@hop-protocol/v2-sdk@latest/hop.js"></script>
```

## Documentation

See [docs-v2.hop.protocol/js-sdk](https://docs-v2.hop.exchange/js-sdk)

## Development

Install dependencies

```bash
npm install
```

Run watcher

```bash
npm run dev
```

Generate documentation

```bash
npm run docs
```

## Test

```bash
npm test
```

## License

[MIT](LICENSE)
npm package: @hop-tran/rrvideo-fix-puppeteer
Description: transform rrweb session into video
Author: yanzhen@smartx.com
Latest version: 0.2.8

# rrvideo

[中文文档](./README.zh_CN.md)

rrvideo is a tool for transforming the session recorded by [rrweb](https://github.com/rrweb-io/rrweb) into a video.

## Install rrvideo

1. Install [ffmpeg](https://ffmpeg.org/download.html)。
2. Install [Node.JS](https://nodejs.org/en/download/)。
3. Run `npm i -g rrvideo` to install the rrvideo CLI。

## Use rrvideo

### Transform a rrweb session(in JSON format) into a video.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE
```

Running this command will output a `rrvideo-output.mp4` file in the current working directory.

### Config the output path

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE --output OUTPUT_PATH
```

### Config the replay

You can prepare a rrvideo config file and pass it to CLI.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_JSON_FILE --config PATH_TO_YOUR_RRVIDEO_CONFIG_FILE
```

You can find an example of the rrvideo config file [here](./rrvideo.config.example.json).
npm package: @hopae/hconnect-expo
Description: hConnect for Expo
Author: hopae
Latest version: 0.5.5

# @hopae/hconnect-expo

![npm](https://img.shields.io/npm/v/@hopae/hconnect-expo.svg) ![npm](https://img.shields.io/npm/dm/@hopae/hconnect-expo.svg)

> [한국어 문서](./README.ko.md)

hConnect SDK for Expo applications.

## Installation

```bash
npx expo install @hopae/hconnect-expo
```

## Quick Start

Add the plugin to your `app.json`:

```json
{
  "expo": {
    "plugins": [
      [
        "@hopae/hconnect-expo",
        {
          "clientId": "your-client-id"
        }
      ]
    ]
  }
}
```

Use in your app:

```typescript
import React, { useState } from 'react';
import { Modal } from 'react-native';
import { VerificationView } from '@hopae/hconnect-expo';

function App() {
  const [showModal, setShowModal] = useState(false);

  const handleSuccess = (result) => {
    // Code-only flow (default behavior)
    console.log('Authorization code:', result.code);
    // Send code to your backend for token exchange
    setShowModal(false);
  };

  const handleError = (error) => {
    console.log('Error:', error.error);
    setShowModal(false);
  };

  return (
    <Modal visible={showModal}>
      <VerificationView
        onSuccess={handleSuccess}
        onError={handleError}
        onCancel={() => setShowModal(false)}
      />
    </Modal>
  );
}
```

## Token Exchange Options

By default, the SDK only returns the authorization `code`. You have two options:

### Option 1: Code-only flow (Recommended)

```typescript
<VerificationView
  onSuccess={(result) => {
    // Only result.code is available
    // Send to your backend for business logic processing
    fetch('/api/signup', {
      method: 'POST',
      body: JSON.stringify({ code: result.code })
    });
  }}
/>
```

### Option 2: Automatic token exchange with PKCE

```typescript
<VerificationView
  onSuccess={(result) => {
    // result.code, result.tokenData, and result.claims available
    console.log('User claims:', result.claims);
  }}
/>
```

That's it! 🎉

## Need Customization?

Want to customize UI colors, skip intro screens, or use different environments? Check out the [advanced configuration guide](./docs/advanced.md).

## Example

Check out the complete example:

```bash
cd example && npx expo start
```

## Requirements

- Expo SDK 49+
- React Native 0.68+

## License

MIT
npm package: @hopara/eslint-config
Description: Hopara's ESLint config
Latest version: 3.0.16

# @hopara/eslint-config

This package provides Hopara's .eslintrc as an extensible shared config.

## Usage

Our default export contains all of our ESLint rules. It requires:
* `eslint`
* `@typescript-eslint/eslint-plugin`
* `@typescript-eslint/parser`
* `eslint-config-google"`
* `eslint-plugin-import`
* `eslint-plugin-jsx-a11y`
* `eslint-plugin-react`
* `eslint-plugin-react-hooks`

1. Install the correct versions of each package, which are listed by the command:

```sh
npx install-peerdeps --dev git+ssh://git@bitbucket.org:kyrix/eslint-config
```

2. Extends your .eslintrc with:
* If your project does not use React: `"extends": "@hopara/eslint-config"`
* If your project uses React: `"extends": "@hopara/eslint-config/react"`

## Improving this config

Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?

You can run tests with `npm test`.

You can make sure this module lints with itself using `npm run lint`.