open-index/open-npm huggingface dataset:
npm package: @gamutexchange-sdk/sdk
Description: An SDK for building applications on top of Gamutexchange.
Latest version: 0.1.0


> **Notice**
>

## 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/gamut-exchange/Gamut-DEX.git
```

```

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: @gamv/uikit-gamv
Description: Pattern Lab UI Kit for gamv
Author: A McIlwraith
Latest version: 0.0.6

![license](https://img.shields.io/github/license/pattern-lab/patternlab-node.svg)
![current release](https://img.shields.io/npm/v/@pattern-lab/uikit-workshop.svg)
[![Gitter](https://img.shields.io/gitter/room/pattern-lab/frontend-viewer.svg)](https://gitter.im/pattern-lab/frontend-viewer)

# UIKit Default

Front-end assets and templates for the default Pattern Lab [workshop](https://bradfrost.com/blog/post/the-workshop-and-the-storefront/) view.

This code is responsible for creating Pattern Lab's default workshop UI look, feel, and functionality.

## Installation

### Node

Pattern Lab Node uses [npm](https://www.npmjs.com/) to manage project dependencies. To install the default static assets run:

    npm install @gamv/uikit-gamv

## Development Requirements

In order to modify these assets you need to install the following:

* [Node.js](https://nodejs.org/) and NPM
* [Bower](https://bower.io/)
* [Ruby Sass](https://sass-lang.com/install)

## Development Set-up

Read the [contribution guidelines](https://github.com/pattern-lab/patternlab-node/blob/master/packages/uikit-workshop/.github/CONTRIBUTING.md)


## Working on Pattern Lab's UI Locally

### Step 1: Install Dependencies
Run the following in the root of the Pattern Lab repo:

```
yarn run setup
```

### Step 2 (Optional)
If you want to build using a fuller set of examples than what comes with the default Handlebars demo, run `yarn run preview:hbs`. Otherwise skip to step 3.

### Step 3
Finally, go into the `packages/development-edition-engine-handlebars` or `packages/edition-twig` folder and start up the local dev server which watches UIKit and the local Pattern Lab instance for changes, live reloads, etc by running `yarn dev`

```
cd packages/development-edition-engine-handlebars
yarn dev
```

## Update the package version 

[Creating a package](https://medium.com/@davidagood/how-to-create-and-publish-a-scoped-npm-package-you-package-from-scratch-30c5802b2df0)

    npm version {new version number}
    npm publish
npm package: @ganache/colors
Description: Truffle's colors, hex encoded
Author: David Murdoch
Latest version: 0.4.2

# `@ganache/colors`

Truffle's colors, hex encoded.

Usage:

```bash
npm install @ganache/truffle-colors
```

```typescript
import { TruffleColors } from "@ganache/truffle-colors";

console.log(TruffleColors.porsche); // #e4a663
console.log(TruffleColors.turquoise); // #3fe0c5
```
npm package: @ganache/console.log
Description: A Solidity library and EVM hooks for using console.log from Solidity contracts
Author: David Murdoch
Latest version: 0.4.2

# `@ganache/console.log`

A Solidity library and EVM hooks for using `console.log` from Solidity
contracts.

## Usage:

`@ganache/console.log` was designed to be used with the [`@ethereumjs/vm` npm
package](https://www.npmjs.com/package/@ethereumjs/vm).

Install `@ganache/console.log`:

```console
> npm install @ganache/console.log --save-exact
```

`@ganache/console.log` has two parts, a `console.sol` Solidity library file, and
a method to capture logs generated by the use of the `console.sol` library.

### `console.sol` Solidity Library

The `console.sol` library is available at `@ganache/console.log/console.sol`.
There are various ways to make this file available to your contracts and
Solidity build pipelines, so this part is left up to the user.

Use it in Solidity just like any other library, e.g.,

```solidity
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

import "console.sol";

contract MyContract {
    constructor() {
        console.log("got here");
    }
}
```

### `console.log` parser (`maybeGetLogs`):

To use `@ganache/console.log` directly within an instance of the
`@ethereumjs/vm` VM:

```typescript
import { ConsoleLogs, maybeGetLogs } from "@ganache/console.log";

// ... initialize vm ...

// vm should be an instance of @ethereumjs/vm
vm.evm.events.on("step", event => {
  const logs: ConsoleLogs | null = maybeGetLogs(event); // (string | bigint | boolean)[] | null
  // do something with `logs`
});
```

Note: Ganache CLI, as well as `Ganache.server` and `Ganache.provider`, already
implement the logger parser and will automatically log calls to `console.sol` to
standard output just like JavaScript's `console.log`.
npm package: @ganache/filecoin-options
Description: This package defines the available NodeJS and CLI options for `@ganache/filecoin`
Author: Tim Coulter
Latest version: 0.9.2

# `@ganache/filecoin-options`

This package defines the available NodeJS and CLI options for `@ganache/filecoin`

## CLI Usage

Run `ganache filecoin --help` to see your versions CLI usage.

## NodeJS Usage

See the [web documentation](#todo) for more details on the available NodeJS options.

These options are provided alongside the `flavor` options. For example:

```json5
{
  "flavor": "filecoin",
  "chain": {
    /* ... */
  },
  "database": {
    /* ... */
  },
  "logging": {
    /* ... */
  },
  "miner": {
    /* ... */
  },
  "wallet": {
    /* ... */
  }
}
```

See a usage example [in the `@ganache/filecoin` README](../filecoin/README.md#usage).
npm package: @ganache/rlp
Description: Recursive Length Prefix Encoding Module
Author: David Murdoch
Latest version: 0.9.2

# `@ganache/rlp`

[Recursive Length](https://github.com/ethereum/wiki/wiki/RLP) Prefix Encoding
for Node.js.

Based on https://github.com/ethereumjs/rlp, with some additional optimizations
for encoding:

```typescript
function encodeRange<
  T extends EncodingInput | Readonly<EncodingInput>,
  Start extends RangeOf<T["length"]>
>(
  items: T,
  start: Start,
  length: Exclude<Remainders<T["length"], Start>, 0>
): { length: number; output: Buffer[] } {
  //...;
}
```

Begin RLP encoding of `items`, from `start` until `length`. Call `RLP.digest` to
finish encoding.

Returns an object containing the total `length` of all data in the encoded parts,
and `output`, an array of encoded Buffers.

```typescript
function digest(ranges: Readonly<Buffer[]>[], length: number) {
  // ...
}
```

Finishes encoding started by `encodeRange`.

Returns a Buffer of encoded data.

Additional changes:

- minor optimisations to `encode`
- `encode` only accepts buffers or nested buffer arrays, strings, number, bigint,
  and BN support have been removed.

---

These changes enable encoding data in chunks, avoiding processing the same
inputs multiple times in common scenarios withing Ganache. Example:

```typescript
type EthereumRawTx = [
  nonce: Buffer,
  gasPrice: Buffer,
  gas: Buffer,
  to: Buffer,
  value: Buffer,
  data: Buffer,
  v: Buffer,
  r: Buffer,
  s: Buffer
];
// encode the first 6 entries
const partialRlp = encodeRange(raw, 0, 6);
// encode the last 3 entires
const signature = encodeRange(raw, 6, 3);
// combine all entries
const serialized = digest(
  [partialRlp.output, signature.output],
  partialRlp.length + signature.length
);
return {
  // computing the `from` address requires entries 0-6
  from: computeFromAddress(partialRlp, v.toNumber(), raw, chainId),
  // hash requires entries 0-9
  hash: Data.from(keccak(serialized), 32),
  // serialized uses all entries for storage/transmission
  serialized
};
```