open-index/open-npm huggingface dataset:
npm package: @nexuslayer/sdk
Description: 🛠 An SDK for building applications on top of Opus.
Latest version: 0.1.2

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

Move into the opus-sdk working directory

```sh
cd opus-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: @nexusmed/react-components
Description: React components for working with the Nexus Med APIs
Latest version: 0.7.4

[![build](https://github.com/NexusMed/react-components/actions/workflows/build.yml/badge.svg)](https://github.com/NexusMed/react-components/actions/workflows/build.yml)
# react-components
React components for working with the Nexus Med APIs
npm package: @nexusmed/react-nexusmed-js
Description: React components for the Nexusmed API
Latest version: 0.1.13

[![build](https://github.com/NexusMed/react-nexusmed-js/actions/workflows/build.yml/badge.svg)](https://github.com/NexusMed/react-nexusmed-js/actions/workflows/build.yml)
[![codecov](https://codecov.io/gh/NexusMed/react-nexusmed-js/branch/main/graph/badge.svg?token=Q7REMJJKL6)](https://codecov.io/gh/NexusMed/react-nexusmed-js)

# react-nexusmed-js
npm package: @nexusmutual/ethers-v5-aws-kms-signer
Description: Ethers v5 AWS KMS Signer
Author: Nexus Mutual
Latest version: 0.0.1

# Ethers v5 AWS KMS signer

AwsKmsSigner is an [Ethers v5 signer](https://docs.ethers.org/v5/api/signer/) implementation that utilizes [AWS Key Management Service](https://aws.amazon.com/kms/) (KMS) for secure EVM transaction and message signing. 

## Install

```bash
npm install @nexusmutual/ethers-v5-aws-kms-signer
```

## Usage

AwsKmsSigner instance:
* `AWS_REGION` - The AWS region where the KMS key is located
* `AWS_KMS_KEY_ID` - The ID of the AWS KMS key or 'alias/<key-alias>'
* provider - [Ethers provider](https://docs.ethers.org/v5/api/providers/) instance
```javascript
const awsKmsSigner = new AwsKmsSigner(AWS_REGION, AWS_KMS_KEY_ID, provider);
```

getAddress:
```javascript
await awsKmsSigner.getAddress();
```

signTransaction
```javascript
await awsKmsSigner.signTransaction(tx);
```

signMessage
```javascript
await awsKmsSigner.signMessage(message);
```

Connect to a new provider
```javascript
awsKmsSigner.connect(newProvider);
```

## AWS Requirements

### AWS KMS managed key:

In order to work properly AWS KMS managed key must be:
* asymmetric
* able to sign and verify
* ECC_SECG_P256K1 or ECC_NIST_P256 specified

### AWS IAM permissions
Client using the library should have the following IAM permissions to the key that it uses:

```yaml
  - Effect: Allow
    Action:
      - 'kms:Sign'
      - 'kms:GetPublicKey'
    Resource: !Ref KMSKeyArn
```

### AWS Credentials

The AWS Credentials should be set properly to access the given AWS KMS key, see [here](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html)

## Tests

```
npm test
```

To run end to end test set the following env vars:
* `TEST_KMS_REGION_ID` - The AWS region where the KMS key is located
* `TEST_KMS_KEY_ID` - The ID of the AWS KMS key
npm package: @nexusmutual/ethers-v6-aws-kms-signer
Description: Ethers v6 AWS KMS Signer
Author: Nexus Mutual
Latest version: 0.0.3

# Ethers v6 AWS KMS signer

AwsKmsSigner is an [Ethers v6 signer](https://docs.ethers.org/v6/api/signer/) implementation that utilizes [AWS Key Management Service](https://aws.amazon.com/kms/) (KMS) for secure EVM transaction and message signing. 

## Install

```bash
npm install @nexusmutual/ethers-v6-aws-kms-signer
```

## Usage

AwsKmsSigner instance:
* AWS_REGION - The AWS region where the KMS key is located
* AWS_KMS_KEY_ID - The UUID of the AWS KMS key or 'alias/\<key-alias>'
* provider - [Ethers provider](https://docs.ethers.org/v6/api/providers/) instance
```javascript
const awsKmsSigner = new AwsKmsSigner(AWS_REGION, AWS_KMS_KEY_ID, provider);
```

getAddress:
```javascript
await awsKmsSigner.getAddress();
```

signTransaction
```javascript
await awsKmsSigner.signTransaction(tx);
```

signMessage
```javascript
await awsKmsSigner.signMessage(message);
```

Connect to a new provider
```javascript
awsKmsSigner.connect(newProvider);
```

## AWS Requirements

### AWS KMS managed key:

In order to work properly AWS KMS managed key must be:
* asymmetric
* able to sign and verify
* ECC_SECG_P256K1 or ECC_NIST_P256 specified

### AWS IAM permissions
Client using the library should have the following IAM permissions to the key that it uses:

```yaml
  - Effect: Allow
    Action:
      - 'kms:Sign'
      - 'kms:GetPublicKey'
    Resource: !Ref KMSKeyArn
```

### AWS Credentials

The AWS Credentials should be set properly to access the given AWS KMS key, see [here](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html)

Set env vars:
* `AWS_ACCESS_KEY_ID` - The AWS credentials key ID
* `AWS_SECRET_ACCESS_KEY` - The AWS credentials secret access key

## Tests

```
npm test
```

To run end to end test set the following env vars:
* `TEST_KMS_REGION_ID` - The AWS region where the KMS key is located
* `TEST_KMS_KEY_ID` - The ID of the AWS KMS key