open-index/open-npm huggingface dataset:
npm package: @rsksmart/rlogin-trezor-provider
Description: rLogin - Trezor EIP-1193 provider
Latest version: 1.0.6

<p align="middle">
  <img src="https://user-images.githubusercontent.com/766679/236442723-004fc7a5-edb2-4477-86da-0b687d62702f.svg" alt="logo" height="100" >
</p>
<h3 align="middle"><code>@rsksmart/rlogin-trezor-provider</code></h3>
<p align="middle">
  rLogin Trezor Provider
</p>
<p align="middle">
  <a href="https://github.com/rsksmart/rlogin-trezor-provider/actions/workflows/ci.yml" alt="ci">
    <img src="https://github.com/rsksmart/rlogin-trezor-provider/actions/workflows/ci.yml/badge.svg" alt="ci" />
  </a>
  <a href="https://developers.rsk.co/rif/templates/">
    <img src="https://img.shields.io/badge/-docs-brightgreen" alt="docs" />
  </a>
  <a href="https://lgtm.com/projects/g/rsksmart/rlogin-trezor-provider/context:javascript">
    <img src="https://img.shields.io/lgtm/grade/javascript/github/rsksmart/rlogin-trezor-provider" />
  </a>
  <a href='https://coveralls.io/github/rsksmart/rlogin-trezor-provider?branch=main'>
    <img src='https://coveralls.io/repos/github/rsksmart/rlogin-trezor-provider/badge.svg?branch=main' alt='Coverage Status' />
  </a>
</p>

A Trezor provider connection for rLogin. Still in beta and tested manually for now.

## Features

Allow users to connect to your dapp using a Trezor device. Currently works with USB and returns an EIP1193 provider.

## Implementation

The implementation is a bit different for Trezor because it is not a Web3Modal supported provider. 

Add the dependecy to your project

```
yarn add @rsksmart/rlogin-trezor-provider --save
```

In your dapp, your rLogin implementation should be similar to this:

```
import RLogin from '@rsksmart/rlogin'
import { trezorProviderOptions } from '@rsksmart/rlogin-trezor-provider'

// ...

const rLogin = new RLogin({
  cacheProvider: false,
  providerOptions: {
    // ... other providers, i.e. WalletConnect or Portis, etc
   'custom-trezor': {
      ...trezorProviderOptions,
      options: {
        rpcUrl: 'https://public-node.testnet.rsk.co',
        chainId: 31
      }
    }
  },
  supportedChains: [30, 31]
})
```

### Implementation notes

- Similar to the Portis connector, you can only specify a single chainId to connect to.
- The `custom-` needs to be added because Trezor is not a Web3Modal supported provider. The `...trezorProviderOptions` contains the Trezor's text and image and connects rLogin to the provider.
- Trezor has two apps that work with RSK.
  - The RSK App will only work with RSK Mainnet as it uses the correct derivation path of `44'/137'/0'/0/0`
  - To use RSK Testnet, you must use the Ethereum App on the Trezor. It will use the standard Ethereum derivation path of `44'/60'/0'/0/0`. As of writing, there is no Trezor app that will accept the RSK Testnet path.

## Run for development

Install dependencies:

```
yarn i
```

### Run unit tests

```
yarn test
```

Coverage report with:

```
yarn run test:coverage
```

### Run linter

```
yarn run lint
```

Auto-fix:

```
yarn run lint:fix
```

### Build for production

```
yarn run build
```
npm package: @rsksmart/rlogin-walletconnect2-provider
Description: rLogin - WalletConnect2 Adapter as a Provider
Latest version: 1.0.1

<p align="middle">
  <img src="https://user-images.githubusercontent.com/766679/236442723-004fc7a5-edb2-4477-86da-0b687d62702f.svg" alt="logo" height="100" >
</p>
<h3 align="middle"><code>@rsksmart/rlogin-walletconnect2-provider</code></h3>
<p align="middle">
  rLogin WalletConnect 2 Provider
</p>
<p align="middle">
  <a href="https://github.com/rsksmart/rlogin-ledger-connector/actions/workflows/ci.yml" alt="ci">
    <img src="https://github.com/rsksmart/rlogin-ledger-connector/actions/workflows/ci.yml/badge.svg" alt="ci" />
  </a>
  <a href="https://developers.rsk.co/rif/templates/">
    <img src="https://img.shields.io/badge/-docs-brightgreen" alt="docs" />
  </a>
  <a href="https://lgtm.com/projects/g/rsksmart/rlogin-ledger-connector/context:javascript">
    <img src="https://img.shields.io/lgtm/grade/javascript/github/rsksmart/rlogin-ledger-connector" />
  </a>
  <a href='https://coveralls.io/github/rsksmart/rlogin-ledger-connector?branch=main'>
    <img src='https://coveralls.io/repos/github/rsksmart/rlogin-ledger-connector/badge.svg?branch=main' alt='Coverage Status' />
  </a>
  <!--
  <a href="https://hits.seeyoufarm.com">
    <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Frsksmart%2Frlogin-ledger-connector&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"/>
  </a>
    <a href="https://badge.fury.io/js/%40rsksmart%2Frlogin-ledger-connector">
      <img src="https://badge.fury.io/js/%40rsksmart%2Frlogin-ledger-connector.svg" alt="npm" />
    </a>
  -->
</p>

A WalletConnect 2 provider connection for rLogin. Still in beta and tested manually for now.

## Features

Allow you to connect to WalletConnect 2 by using rLogin

## Implementation

Add the dependecy to your project

```
yarn add @rsksmart/rlogin-walletconnect2-provider
```

In your dapp, your rLogin implementation should be similar to this:

```ts
import RLogin from '@rsksmart/rlogin'
import { WalletConnect2Provider } from '@rsksmart/rlogin-walletconnect2-provider'

const rLogin = new RLogin({
  cacheProvider: false,
  providerOptions: {
    walletconnect: {
      package: WalletConnect2Provider,
      options: {
        projectId: 'PROJECTID',
        chains: [30, 31],
        showQrModal: true,
        //methods, // OPTIONAL ethereum methods
        //events, // OPTIONAL ethereum events
        rpcMap: rpcUrls, // OPTIONAL rpc urls for each chain
        //metadata, // OPTIONAL metadata of your app
        //qrModalOptions, // OPTIONAL - `undefined` by default
      }
    },
  },
  supportedChains: [30, 31]
})
```

### Implementation notes

## Run for development

Install dependencies:

```
yarn
```

### Run unit tests

TBD

### Run linter

TBD

Auto-fix:

```
yarn run lint:fix
```

### Build for production

```
yarn run build
```
npm package: @rsksmart/rns-artifacts
Description: RNS library for smart contract development.
Latest version: 1.1.0
Deprecated: Working to find more suitable artifacts.

<img src="/logo.png" alt="logo" height="200" />

# `rns-artifacts`

[![npm @RSKSmart/rns-artifacts](https://badge.fury.io/js/%40rsksmart%2Frns-artifacts.svg)](https://badge.fury.io/js/%40rsksmart%2Frns-artifacts)

RNS library for smart contract development.

It provides implementations of RNS Registry, Registrars, and Resolvers which you can deploy as-is or extend to suit your needs, as well as Solidity components to build custom contracts and more complex decentralized systems.

## Install

```
npm install rns-artifacts
```

## Usage

To write your custom contracts, import ours and extend them through inheritance.

```solidity
pragma solidity ^0.5.2;

import 'rns-artifacts/contracts/registry/AbstractRNS.sol';
import 'rns-artifacts/contracts/resolver/AbstractResolver.sol';

contract MyResolver is AbstractResolver {
    AbstractRNS public rns;

    constructor(AbstractRNS _rns) public {
        rns = _rns;
    }

    function supportsInterface(bytes4) public pure returns (bool) {
        return false;
    }
}
```

To test your custom contracts in Truffle, import ours and deploy them through `truffle-contract`.

```js
const assert = require('assert');
const truffleContract = require('truffle-contract');

const RNS = truffleContract(
  require('rns-artifacts/build/contracts/RNS.json')
);
RNS.setProvider(web3.currentProvider);

const MyResolver = artifacts.require('MyResolver');

contract('RNS', async accounts => {
  it('should create MyResolver', async () => {
    const rns = await RNS.new({ from: accounts[0] });
    const resolver = await MyResolver.new(rns.address);

    const rnsAddress = await resolver.rns();

    assert.equal(rnsAddress, rns.address);
  });
});
```

---

## Related links

- [RSK](https://rsk.co)
    - [Docs](https://github.com/rsksmart/rskj/wiki)
- [RIF](https://rifos.org)
    - [Docs](https://www.rifos.org/documentation/)
    - [Whitepaper](https://docs.rifos.org/rif-whitepaper-en.pdf)
    - [Testnet faucet](https://faucet.rifos.org)
- RNS
    - [Docs](https://docs.rns.rifos.org)
    - [Manager](https://rns.rifos.org)
    - [Testnet registrar](https://testnet.rns.rifos.org)
npm package: @rsksmart/rsk-contract-verifier
Description: Smart contract source code verifier
Author: emi
Latest version: 1.0.6

# Rsk contract verifier

> Smart contract source code verifier.

## Requisites

- node >= 10.16.0

## Install

- Install dependecies

``` shell
    npm install
  ```

## Configuration file

(optional)

``` shell
    cp config-example.json config.json
  ```

## Server start

``` shell
  node dist/contract-verifier-api.js
```

## Cache solc compilers

To improve the speed of verification process you can download all the compiler versions
before run the server:

``` shell
  npm run cache-solc
```

## Configuration
  
  **config.json**
  See defaults on: **lib/defaultConfig**
  *(config.json overrides this values)*

  Use:
  
  ```shell
  node dist/tools/showConfig.js
  ```

  to check current configuration
  
**Configurarion Example:**

``` javascript
{
  address: '127.0.0.1', // binding address
  port: 3008, // binding port
  solcCache: '/tmp', // solc compiler versions cache
  log: {
    level: 'debug', // log level
    file: '/var/log/rsk-contract-verifier/contract-verifier.log' // (optional) log file
  },
  timeout: 10000 // verification timeout
}

  ```

## CLI tools

- **rsk-cv-create-payload**: creates JSON payload for verifier.

- **rsk-cv-verify**: verifies a contract payload.
npm package: @rsksmart/rsk-utils
Description: A collection of JS utility functions for Rootstock
Latest version: 2.0.5

# rsk-utils

A collection of JavaScript utility functions for Rootstock.

`@rsksmart/rsk-utils` is a library of utility functions designed to simplify working with the Rootstock blockchain ecosystem. It supports both CommonJS and ECMAScript Module (ESM) environments, making it versatile and easy to integrate into various projects.

## Features

- Supports CommonJS and ESM module systems.
- Utility functions for working with addresses, bytes, and blockchain-specific operations.
- TypeScript definitions included for better type safety.
- Lightweight and easy to use.

## Installation

Install the library via npm:

```bash
npm install @rsksmart/rsk-utils
```

## Usage

### CommonJS

For CommonJS environments:

```javascript
const rskUtils = require('@rsksmart/rsk-utils');

// Example usage
const { toChecksumAddress } = rskUtils;
console.log(toChecksumAddress('0x27b1FdB04752bBc536007a920D24ACB045561c26', 30));
```

### ESM

For ECMAScript Module (ESM) environments:

```javascript
import { toChecksumAddress } from '@rsksmart/rsk-utils';

console.log(toChecksumAddress('0x27b1FdB04752bBc536007a920D24ACB045561c26', 30));
```

## API Reference

### Functions

#### `toChecksumAddress(address: string, chainId: number | string): string`

Generates a checksummed address according to EIP-1191.

- **Parameters:**
    - `address` (string): The address to checksum.
    - `chainId` (number | string): The chain ID for the network.
- **Returns:** A string representing the checksummed address.

#### `isValidChecksumAddress(address: string, chainId: number | string): boolean`

Validates whether an address has a correct checksum for a specific chain ID.

- **Parameters:**
    - `address` (string): The address to validate.
    - `chainId` (number | string): The chain ID used for checksum validation.
- **Returns:** `true` if the checksum is valid, `false` otherwise.

#### `isAddress(address: string): boolean`

Checks if a given string is a valid address.

- **Parameters:**
    - `address` (string): The address to validate.
- **Returns:** true if valid, false otherwise.

## Testing

Run the test suite to ensure the library works as expected:

```bash
npm run test
```

This will execute unit tests and display the results.

## Contributing

We welcome contributions to improve this library. Please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Write clear commit messages and add tests for any changes.
4. Submit a pull request with a detailed explanation of your changes.

## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.

## Support
If you encounter any issues or have questions, feel free to open an issue on GitHub.
npm package: @rsksmart/rsk-verify-tools
Description: A set of tools to manage smart contract verifications.
Author: emi
Latest version: 1.0.0

# rsk-verify-tools

> A set of tools to manage smart contract verifications.

**Get** verification's payloads from multiple rsk-explorer-api instances.
**Verify** rsk-contract-verifier payloads files.
**Publish** verifications to rsk-explorer-api instances.

## Requisites

- node >= 12.18.2

**get and publish** require a connection to a rsk-explroer-api instance.
**verify**, requires access to JSON/RPC interface of a rskj node.

### Rskj nodes

The rskj nodes must have these modules enabled:

- eth
- trace

When a contract was deployed by an internal transaction the verifier uses the rskj trace module to get the contract's bytecode. if the trace module is disabled the verifier uses an explorer to get the bytecode, logging a warning message.

### Explorers

To publish contracts, the explorers should be running **rsk-explorer-api v1.2.1^**

## Install

```shell
npm install @rsksmart/rsk-verify-tools
cd rsk-verify-tools
npm install
npm run setup
```

## Configuration

The default configuration uses rsk-explorer and rskj nodes public instances.

### Show current configuration

```shell
  npm run config
```

### Create a configuration file

``` shell
    cp config-example.json config.json
  ```

### Configuration file

#### Example

see: [config-example.json](config-example.json).

- **explorers:** Array of explorer's urls.
- **nodes:** List of rskj nodes
- **repository:** WIP Git contract's repository.
- **log:** Log configuration.
- **out:** Directory to store the contracts payloads.

## Tasks

### Get

Gets verification payloads from explorers.

```shell
npm run get
```

or

```shell
node src/get.js --help
```

### Verify

Verify contracts.

```shell
npm run verify
```

or

```shell
node src/verify.js --help
```

### Publish

Publish verifications to explorers.

```shell
npm run publish
```

or

```shell
node src/publish.js --help
```
npm package: @rskvp93/claude-sheets-shared
Description: Shared utilities for Claude Sheets
Latest version: 1.0.0

# @rskvp93/claude-sheets-shared

Shared utilities for Claude Sheets applications.

## Installation

```bash
npm install @rskvp93/claude-sheets-shared
```

## Usage

```javascript
const { hello, version } = require('@rskvp93/claude-sheets-shared');

console.log(hello('Claude')); // Output: Hello, Claude from @claude-sheets/shared!
console.log(version); // Output: 1.0.0
```

## License

MIT
npm package: @rslemos/http-load
Description: Dynamically access http resources directly from angular templates.
Latest version: 2.0.1

# @rslemos/http-load

Dynamically access http resources directly from angular templates.

## Installation

#### Install the npm module:

```sh
npm install @rslemos/http-load --save
```

or

```sh
yarn add @rslemos/http-load
```

#### Import the `HttpLoadModule`:

```ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpLoadModule } from '@rslemos/http-load';

@NgModule({
    imports: [
        BrowserModule,
        HttpLoadModule,
    ],
    bootstrap: [AppComponent],
})
export class AppModule { }
```

## Text Example

Here is a minimal example for loading text:

(in any angular template, such as `app.component.html`)
```html
<div *rlHttpLoad.text="let loadedText from 'https://tools.ietf.org/rfc/rfc2616.txt'">
  RFC2616 content is {{loadedText}}
</div>
```


## Json Example

Here is a minimal example for loading a json object:

(in any angular template, such as `app.component.html`)
```html
<pre *rlHttpLoad.json="let loadedObject from 'https://raw.githubusercontent.com/rslemos/http-load/master/package.json'">
  {{loadedObject | json}}
</pre>
```

## ArrayBuffer Example

Here is a minimal example for loading an ArrayBuffer:

(in any angular template, such as `app.component.html`)
```html
<div *rlHttpLoad.arraybuffer="let loadedArrayBuffer from 'https://raw.githubusercontent.com/rslemos/http-load/master/projects/demo-app/src/assets/sample.bin'">
{{loadedArrayBuffer.byteLength}} bytes loaded
</div>
```

## Other features

### Error handling

For both text and json loading you can handle network and server errors, directing the `rlHttpLoad` directive to show an alternative angular template in case of error:

```html
<div *rlHttpLoad.text="let loadedText from 'https://tools.ietf.org/rfc/rfc2616.txt'; onError: useThisTemplateInCaseOfHttpError">
  RFC2616 content is {{loadedText}}
</div>

<ng-template #useThisTemplateInCaseOfHttpError let-errorObject let-url="rlHttpLoadFrom">
  An error occurred when trying to download from {{url}}. Please try again later.
  <pre>{{errorObject | json}}</pre>
</ng-template>
```

### Throbber

Though `rlHttpLoad` does not implement a throbber itself, it provides means to show one, by allowing you to provide another angular template to be shown right before dispatching the http request until the request resolves (either successfully, or after some error):


```html
<div *rlHttpLoad.text="let loadedText from 'https://tools.ietf.org/rfc/rfc2616.txt'; loading: throbber">
  RFC2616 content is {{loadedText}}
</div>

<ng-template #throbber let-url>
  <ngx-some-fancy-throbber></ngx-some-fancy-throbber> loading {{url}}...
</ng-template>
```
npm package: @rslib/core
Description: The Rsbuild-based library development tool.
Latest version: 0.21.0

<picture>
  <img alt="Rslib Banner" src="https://assets.rspack.rs/rslib/rslib-banner.png">
</picture>

# Rslib

Rslib is a library development tool powered by [Rsbuild](https://rsbuild.rs). It allows library developers to leverage the knowledge and ecosystem of webpack and Rspack.

## Documentation

https://rslib.rs/

## Contributing

Please read the [Contributing Guide](https://github.com/web-infra-dev/rslib/blob/main/CONTRIBUTING.md).

## License

Rslib is [MIT licensed](https://github.com/web-infra-dev/rslib/blob/main/LICENSE).
npm package: @rslint/core
Description: rslint core library
Latest version: 0.4.1

# Rslint

🚀 Rocket Speed Linter - A high-performance TypeScript/JavaScript linter written in Go.

## Features

- ⚡ **Ultra-fast**: 10x+ faster than ESLint through Go-powered parallel processing
- 🎯 **Typed linting first**: Enables typed linting by default for advanced semantic analysis
- 🔧 **Easy migration**: Compatible with ESLint and TypeScript-ESLint rule configurations
- 🏗️ **Project-level analysis**: Performs cross-module analysis for better linting results
- 📦 **Monorepo support**: First-class support for large-scale TypeScript monorepos
- 🔋 **Batteries included**: Ships with all TypeScript-ESLint rules out of the box

## Installation

```bash
npm install -D @rslint/core
```

## Quick Start

```bash

# Lint your project
npx rslint

# See available options
npx rslint --help
```

## Documentation

See the [main repository](https://github.com/web-infra-dev/rslint) for complete documentation and examples.
npm package: @rslna/npm-registry-test
Description: npm test purposes
Author: rslna
Latest version: 0.0.5

TEST PURPOSES

## package.json exports field test

```
import sss, { EventEmitter } from '@rslna/npm-registry-test';
import { EventEmitter as xxx } from '@rslna/npm-registry-test/EventEmitter';
import ll from '@rslna/npm-registry-test/lib';
import { libFirst } from '@rslna/npm-registry-test/lib/lib';

console.log(sss);
console.log(xxx);
console.log({ ll });
console.log({ libFirst });
```
npm package: @rsm-hcd/javascript-core
Description: Common patterns, functions, etc... used when building any JavaScript or TypeScript application
Latest version: 3.0.2

# HCD JavaScript Core

Common patterns, functions, etc... used when building javascript applications

## Getting started

This package is installed via npm, pnpm or yarn

```shell
# npm
npm install --save-dev @rsm-hcd/javascript-core

# pnpm
pnpm install --save-dev @rsm-hcd/javascript-core

# yarn
yarn add @rsm-hcd/javascript-core --dev
```

From there you can import the variety of modules.

```typescript
import { CollectionUtils, CoreUtils } from "@rsm-hcd/javascript-core";
```

## Peer dependencies

This package wraps several external packages for our own configuration and ease of use, such as `axios`, `i18next`, `lodash`, etc. If you are using the standard distribution of this package, these will need to be installed alongside this package, even if you do not plan on leveraging features that rely on them.

## Internationalization

This package offers a variety of functions for localizing an application, wrapping [`i18next`](https://github.com/i18next/i18next) and [`i18next-browser-languagedetector`](https://github.com/i18next/i18next-browser-languageDetector). A complete setup guide can be found in the wiki [here](<https://github.com/AndcultureCode/AndcultureCode.JavaScript.Core/wiki/Internationalization-(i18n)>).

If developing in VS Code, the [`kazoo`](https://marketplace.visualstudio.com/items?itemName=brandongregoryscott.kazoo) extension can be used to quickly insert typed keys and placeholder translations from Google Translate. ([source](https://github.com/brandongregoryscott/kazoo) | [install](https://marketplace.visualstudio.com/items?itemName=brandongregoryscott.kazoo))
npm package: @rsm-hcd/javascript-react
Description: Common patterns, functions, etc... used when building react applications
Latest version: 3.3.0

# HCD JavaScript React

Common patterns, functions, etc... used when building react applications

## Getting started

This package is installed via npm, pnpm or yarn

```shell
# npm
npm install --save-dev @rsm-hcd/javascript-react

# pnpm
pnpm install --save-dev @rsm-hcd/javascript-react

# yarn
yarn add @rsm-hcd/javascript-react --dev
```

From there you can import the variety of modules.

```typescript
import {
    AuthenticatedRoute,
    NestedRoute,
    NestedRoutes,
} from "@rsm-hcd/javascript-react";
```

## Documentation

[Full API documentation](docs/README.md)

## Peer dependencies

This package wraps several external packages for our own configuration and ease of use, such as `axios`, `i18next`, etc. These will need to be installed alongside this package, even if you do not plan on leveraging features that rely on them.
npm package: @rsm-hcd/javascript-testing
Description: Commonly used actors for automated testing javascript applications
Latest version: 3.0.1

# HCD JavaScript Testing

Commonly used actors for automated testing javascript applications

## Getting started

This package is installed via npm, yarn, pnpm

```shell
# npm
npm install --save-dev @rsm-hcd/javascript-testing

# yarn
yarn add @rsm-hcd/javascript-testing --dev

# pnpm
pnpm install --save-dev @rsm-hcd/javascript-testing
```

From there you can import the variety of modules.

```typescript
import { AxiosResponseFactory, MockAxios } from "@rsm-hcd/javascript-testing";
```