open-index/open-npm huggingface dataset:
npm package: @kav-khalsa/ngrx-signal-store
Description: An Nx generator for creating NgRx Signal Stores with TypeScript support.
Author: Kav Khalsa
Latest version: 0.0.6

# NgRx Signal Store Generator

An Nx generator for creating NgRx Signal Stores with TypeScript support.

## Installation

```bash
npm install @kav-khalsa/ngrx-signal-store --save-dev
```

## Usage

```bash
nx generate @kav-khalsa/ngrx-signal-store:signals-store
```

You will be prompted for:
- Store name
- Target project
- Path for the store
- Prefix (default: "app")
- Angular Service to integrate with
- Method in Angular service to retrieve data from
- Whether to skip tests
- State properties with their types

Example:
```bash
nx generate @kav-khalsa/ngrx-signal-store:signals-store todo --path=libs/todo-feature --stateProperties="selectedId:string"
```

This will generate a `todo.store.ts` file with:
- Typed state interface
- Initial state
- Computed properties
- Methods for state updates



## License

MIT
npm package: @kava-labs/cosmos-ledger
Description: provide simple Ledger tooling for the Kava Ledger App with user friendly errors
Author: Fabian Weber
Latest version: 0.1.0-beta.0

# Kava Ledger

Kava Ledger is a fork of Lunie's library for interacting with the Cosmos Ledger Nano App. It provides a developer-friendly interface and user friendly error messages for an improved Ledger Nano development experience.

This library is based on [ledger-cosmos-js](https://github.com/ZondaX/ledger-cosmos-js) by [Juan Leni](https://github.com/jleni) who also implemented the [official Cosmos Ledger Nano App](https://github.com/cosmos/ledger-cosmos). 

*Thank you Juan!* 🙌

## Installation

```bash
yarn add @lunie/cosmos-ledger
```

## Usage

### Signing with the Ledger Nano

```js
import Ledger from "@lunie/cosmos-ledger"

// generate messages with "@lunie/cosmos-api"
const signMessage = {} || ``
const ledger = await Ledger().connect()
const signature = await ledger.sign(signMessage)
```

### Using with cosmos-api

```js
import Ledger from "@lunie/cosmos-ledger"
import Cosmos from "@lunie/cosmos-api"

const privateKey = Buffer.from(...)
const publicKey = Buffer.from(...)

// init cosmos API object
const cosmos = Cosmos(API_URL, ADDRESS)

// create a message
const msg = cosmos
  .MsgSend({
    toAddress: 'cosmos1abcd09876', 
    amounts: [{ denom: 'stake', amount: 10 }]
  })

// create a signer
const ledgerSigner = async (signMessage) => {
  const ledger = new Ledger()
  await ledger.connect()
  const publicKey = await ledger.getPubKey()
  const signature = await ledger.sign(signMessage)

  return {
    signature,
    publicKey
  }
}

// send the transaction
const { included } = await msg.send({ gas: 200000 }, ledgerSigner)

// wait for the transaction to be included in a block
await included()
```

### Constructor options
```
Ledger(
  { testModeAllowed = false },
  hdPath = [44, 118, 0, 0, 0], // HDPATH
  hrp = 'cosmos', // BECH32PREFIX
);
```