open-index/open-npm huggingface dataset:
npm package: @logic0612/dex-sdk
Description: dex
Latest version: 2.0.15

## Install:

```
npm i @cremafinance/crema-sdk
```

## Build:

```
npm run build
```

## Instructions:

```
import { TokenSwap } from '@cremafinance/crema-sdk'
const swap = await new TokenSwap(conn, swapProgramId, swapKey, null).load()
const amountOut: any = await swap.preSwapA(amountIn) // a->b
const amountOut: any = await swap.preSwapB(amountIn) // b->a
```

## Parameters Description：

```
amountIn: Decimal (using decimal.js repo)
```


## Liquidity Calculation Formula

Assuming the current price is $P_{c}$，the price range that users add liquidity in is $[P_{a},P_{b}]$

$
\LARGE
L = \begin {cases}
    ¦   {Δx} \over {1 \over {\sqrt{P_{a}}}} -  {1 \over {\sqrt{P_{b}}}} &, \text P_{c} < P_{a} \\    \
    ¦   {Δy} \over {\sqrt{P_{b}} - \sqrt{P_{a}}} &, \text P_{c} > P_{b}\\
    ¦   {{Δx} \over {1 \over {\sqrt{P_{c}}}} -  {1 \over {\sqrt{P_{b}}}}} = {{Δy} \over {\sqrt{P_{c}} - \sqrt{P_{a}}}} &, \text P_{c} \in [P_{a},P_{b}]  \\    \
    \end {cases}
$
npm package: @logicalclocks/quartz
Description: Logical Clocks Design System Library
Author: logicalclocks
Latest version: 2.13.0

# quartz-design-system

> Logical Clocks Design System Library

![header image](https://uploads-ssl.webflow.com/5e6f7cd3ee7f51d539a4da0b/5f58c6619b7b20b02e88b0d9_quartz.jpg)

[![NPM](https://img.shields.io/npm/v/@logicalclocks/quartz.svg)](https://www.npmjs.com/package/@logicalclocks/quartz) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

The current repo is the implementation of the library of the design system of Logical Clocks, so called Quartz.

- NPM package of React components TS
- use storybook as documentation
- use Rebass as a base CSS frame and Emotion for overwriting style

The DS is first experimented on Figma before being implemented:
[https://www.figma.com/file/mvY1f3xMXUEd6szvT82FxB/Feature-Store?node-id=327%3A0](https://www.figma.com/file/mvY1f3xMXUEd6szvT82FxB/Feature-Store?node-id=327%3A0)

## Github Pages

An online version of the Storybook can be found here: [Quartz Storybook](https://logicalclocks.github.io/quartz).

The version deployed corresponds to the `dev` branch and is updated on every new commit.

## How to use the package?

### Installation

NPM

```bash
npm install --save @logicalclocks/quartz
```

Yarn

```bash
yarn add @logicalclocks/quartz
```

### Usage

```tsx
import { ThemeProvider, Button } from '@logicalclocks/quartz';

const App = () => (
  <ThemeProvider>
    <Button>My button</Button>
  </ThemeProvider>
);
```

Since components are built on `rebass`, those have extended props from `Box` or `Flex' components.
It means that you can add some extra styles if they needed.

For example:

```tsx
<Button p="30px 40px 10px 0px" m="10px" width="auto">
  Button
</Button>
```

Put ThemeProvider Context on the top of components tree to provide the default theme.

The library has peer dependencies which need to be installed in a main project:

```json
{
  "react": "^16.13.1",
  "react-dom": "^16.13.1"
}
```

## How to develop components for the package?

Run `yarn storybook`

Put new component in

## How to build?

Run `yan build`

## License

AGPL-3.0 Licence © [logicalclocks](https://github.com/logicalclocks)

## Run locally

Run `yarn storybook`

## Build locally

Run `yarn build-dev`

## Troubleshooting

Delete `node_modules` and `dist` folders then follow **Build locally** or **Run locally** instruction

## On repo update

Follow **Build locally** or **Run locally** instruction

## Using locally

You can use the library locally with the help of [yalc](https://github.com/wclr/yalc).
Just run `yarn publish-local` here and then do a `yalc link @logicalclocks/quartz` wherever you wanna use it.

To publish changes you can do `yarn dlx yalc push`. After that, the changes will be "published" to the local registry.
npm package: @logicalcommander/lc-common
Description: A Node.js module for Logical Commander common
Author: Logical Commander LTD
Latest version: 1.0.88

# lc-common-utils

A Node.js module for Logical Commander common utils


## Installation 
```sh
npm install @logicalcommander/lc-common --save
yarn add @logicalcommander/lc-common
```


## Usage

### Javascript
```javascript
var utils = require('@logicalcommander/lc-common');
```

### TypeScript
```typescript
import { My Specific interfaces } from '@logicalcommander/lc-common';
```
### publish
```javascript
Change the package.json version
npm run build
npm publish
```
npm package: @logicalcommander/lc-common-utils
Description: A Node.js module for Logical Commander common utils
Author: Logical Commander LTD
Latest version: 1.0.10

# lc-common-utils

A Node.js module for Logical Commander common utils


## Installation 
```sh
npm install lc-common-utils --save
yarn add lc-common-utils
bower install lc-common-utils --save
```


## Usage

### Javascript
```javascript
var utils = require('lc-common-utils');
```

### TypeScript
```typescript
import { LCUtils } from 'lc-common-utils';
```

### AMD
```javascript
define(function(require,exports,module){
  var utils = require('lc-common-utils');
});
```


## Test 
```sh
npm run test
```


## NPM Information
npm set init.author.name "Logical Commander LTD"
npm set init.author.email "admin@logicalcommander.com"
npm set init.author.url "http://www.logicalcommander.com"
npm package: @logicalhq/commitlint-config
Description: The shareable commitlint config we use at Logical.
Author: Logical
Latest version: 1.5.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<h1 align="center">commitlint-config</h1>
<br>
<p align="center">
  <img src="https://commitlint.js.org/assets/icon.svg" width="150" alt=""/>
</p>

<p align="center">
  The shareable commitlint config we use at <a href="https://logical.work">Logical</a>.
</p>

<p align="center">
  <a href="https://logical.work">
    <img src="https://logicalhq.s3.ca-central-1.amazonaws.com/badges/logical-badge.svg" alt="Logical"/>
  </a>
  <img src="https://flat.badgen.net/npm/v/@logicalhq/commitlint-config" alt="Version"/>
  <a href="https://circleci.com/gh/logicalhq/commitlint-config">
    <img src="https://flat.badgen.net/github/status/logicalhq/commitlint-config/main/ci/circleci" alt="CircleCI Status"/>
  </a>
</p>

<hr>

## Table of Contents

- [Convention](#convention)
- [Getting Started](#getting-started)
- [Examples](#examples)
- [Extending the rules](#extending-the-rules)
- [License](#license)

## Convention

- A commit type is always **lowercased** and must be provided at all-time.
- We use [Gitmojis](https://github.com/carloscuesta/gitmoji) as commit types.
- The scope is optional but must be **lowercased** if used.
- Like a sentence: a commit subject must be **capitalized** and ends with a **period**.
- The message body and footer should start with a leading blank line.
- A line can't exceed 100 characters.

## Getting Started

Install the development dependency:

```bash
yarn add -D @logicalhq/commitlint-config
```

And simply add a `.commitlintrc.js` file at the project root:

```js
module.exports = {
  extends: ['@logicalhq/commitlint-config']
};
```

## Examples

```bash
git commit -m ":tada: Initial commit." # passes
git commit -m ":sparkles:(ci) Set-up GitHub actions." # passes
git commit -m ":bento: Fix assets (logo). [#123]" # passes
git commit -m "Initial commit." # fails: no commit type.
git commit -m ":tada: Initial commit" # fails: no full-stop.
git commit -m ":unkown: Initial commit." # fails: that gitmoji doesn't exists.
```

## Extending the rules

This convention can be extended to fit a project needs (i.e: specifying scopes):

```js
// .commitlintrc.js
module.exports = {
  extends: ['@logicalhq/commitlint-config'],
  rules: {
    'scope-enum': [
      2,
      'always',
      [
        'ci',
        'security',
        'auth',
        'billing'
        // ...
      ]
    ]
  }
};
```

## License

This project and Carlos Cuesta's Gitmojis are licensed under [MIT](https://spdx.org/licenses/MIT.html).