open-index/open-npm huggingface dataset:
npm package: @lucaslvy/proto-signing
Description: Fork of @cosmjs/proto-signing
Latest version: 1.0.1

# @cosmjs/proto-signing

[![npm version](https://img.shields.io/npm/v/@cosmjs/proto-signing.svg)](https://www.npmjs.com/package/@cosmjs/proto-signing)

Utilities for protobuf based signing (for Cosmos SDK 0.40+) as documented in
[ADR-020](https://github.com/cosmos/cosmos-sdk/blob/66c5798cec/docs/architecture/adr-020-protobuf-transaction-encoding.md)
and
[The 3 levels of proto encoding](https://warta.it/blog/cosmos-sdk-protobuf-signing).

## License

This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).
npm package: @lucaslvy/stargate
Description: Fork of cosmjs/stargate
Latest version: 1.0.3

# @cosmjs/stargate

[![npm version](https://img.shields.io/npm/v/@cosmjs/stargate.svg)](https://www.npmjs.com/package/@cosmjs/stargate)

A client library for the Cosmos SDK 0.40.

## Supported Cosmos SDK versions

| CosmJS version                  | Supported Cosmos SDK version(s) |
| ------------------------------- | ------------------------------- |
| ^0.24.0                         | 0.40.x, 0.41.x, 0.42.x          |
| ^0.24.0-alpha.14                | 0.40.0                          |
| ^0.24.0-alpha.8                 | 0.40.0-rc3                      |
| 0.24.0-alpha.2 – 0.24.0-alpha.7 | 0.40.0-rc2                      |
| 0.24.0-alpha.1                  | 0.40.0-rc1                      |

## License

This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).
npm package: @lucasmazza/state
Description: Manage element states through CSS.
Author: Lucas Mazza
Latest version: 1.2.0

# State

[![Greenkeeper badge](https://badges.greenkeeper.io/lucasmazza/state.svg)](https://greenkeeper.io/)

**state** is a small library to manage an element state by adding/removing
CSS classes, while maintaining a single class on the element whenever you change
the state of the element.

## Setup

```
bower install lucasmazza/state --save
```

Or you can [download a zip](https://github.com/lucasmazza/state/releases) file.

## Usage

state adds a small API to every DOM element to add/remove states.

```js
import State from 'state';

const el = document.getElementById('container');
const state = new State(el);

// Sets the 'is-loading' class on the element.
state.set('loading');
// Sets the 'is-done' class, and remove the 'is-loading' class.
state.set('done');

// 'State#get' returns the state of the element.
state.get(); // 'done'.

// Sets the 'is-loading' class back, removing the 'is-done'.
state.set('loading');

// Bind callbacks fore entering and leaving a specific state:
state.leave('loading', () => console.log('Not "loading" anymore.'));
state.enter('loaded', () => console.log('Loaded!'));

state.set('loaded');
// log will 'Not "loading" anymore.' and 'Loaded!'.

// Removes all 'is-*' classes from the element.
state.clear();
```

## License

Copyright (c) 2014 Lucas Mazza. See LICENSE file.