open-index/open-npm huggingface dataset:
npm package: @oigabrielteodoro/eslint-config
Description: eslint-config used by Gabriel Teodoro.
Author: Gabriel Teodoro
Latest version: 1.2.1

## What is included?

- Standard config base;
- React hooks plugin;
- React plugin;
- Prettier;
- JSX a11y plugin;

## How to use

1. Install dependency

```bash
yarn add eslint @oigabrielteodoro/eslint-config -D
```

2. Add `extends` in your file eslint config (Ex: `.eslintrc.json`)

```json
{
  "extends": "@oigabrielteodoro/eslint-config/react"
}
```
npm package: @oigroup/babel-plugin-lightscript
Description: Compile LightScript to JavaScript.
Latest version: 3.1.1

# @oigroup/babel-plugin-lightscript

> @oigroup/lightscript is a futuristic fork of the [LightScript](http://lightscript.org) language with additional features, fixes, and tools.

Compiles [LightScript](http://wcjohnson.github.io/lightscript) to JavaScript when used with [Babel](http://babeljs.io).

It converts a "LightScript AST" produced by [@oigroup/babylon-lightscript](https://github.com/wcjohnson/babylon-lightscript/tree/oigroup)
into a conventional "Babel AST".

### Usage

Please consult the documentation at [the @oigroup/LightScript website](http://wcjohnson.github.io/lightscript).

We recommend using the Babel preset. However, if you decide to use the plugin as a standalone Babel module, please note that the code generated is ES2017+ and will not yet run in many browsers. When using the preset, this is taken care of for you via `babel-preset-env`

### Contributing

Issues: https://github.com/wcjohnson/lightscript/issues

If you want to hack on LightScript, the best way to get started is the `lightscript` monorepo: https://github.com/wcjohnson/lightscript. Check out the `oigroup` branch, run `npm install`, and then `npm setup`. You will have a live playground in which to hack the language.

When you're ready to PR against upstream, fork this repo, add your fork as a remote within the appropriate git submodule of the devkit, then branch and PR.
npm package: @oigroup/babel-plugin-lightscript-self-host
Description: Babel plugin for self-hosting the LightScript compiler in LightScript.
Author: Alex Rattray
Latest version: 3.0.0

# @oigroup/babel-plugin-lightscript-self-host

# WARNING: NOT FOR GENERAL USE

This plugin is intended for self-hosting the LightScript toolchain in LightScript. It should only be deployed if you are working on LightScript core tooling. Please do not deploy for general use.

See [LightScript.org](http://lightscript.org) for instructions on how to use LightScript in your code.
npm package: @oigroup/babel-preset-lightscript
Description: Compile LightScript with ES7 features to ES6.
Latest version: 3.1.1

# @oigroup/babel-preset-lightscript

The best way to get up and running with [LightScript](http://wcjohnson.github.io/lightscript)

## Usage

```
$ npm install --save-dev @oigroup/babel-preset-lightscript
```

```js
// .babelrc
{
  "presets": [
    [
      "@oigroup/babel-preset-lightscript",
      {
        "env": { "targets": { "ie": 10 } }
      }
    ]
  ]
}
```
> `babel-preset-lightscript` includes `babel-preset-env` and options can be
> passed in the `env` key!
npm package: @oigroup/babylon-lightscript
Description: A LightScript parser, based on babylon (a JavaScript parser)
Latest version: 3.1.1

# @oigroup/babylon-lightscript

## If you are looking to get started with the LightScript language, this is the wrong place -- [check out the docs here!](http://wcjohnson.github.io/lightscript)

@oigroup/lightscript is a futuristic fork of the [LightScript](http://lightscript.org) language with additional features, fixes, and tools. This is the parser for [@oigroup/LightScript](http://wcjohnson.github.io/lightscript).
To be used with [@oigroup/babel-plugin-lightscript](https://github.com/wcjohnson/babel-plugin-lightscript).

Unless you are working on tooling or hacking the language itself, you don't need this -- get the [Babel preset](http://wcjohnson.github.io/lightscript) instead.

A fork of [Babylon](https://github.com/babel/babylon).

### Contributing

To get up and running:

    npm install
    npm run build
    npm test

Issues: https://github.com/wcjohnson/lightscript/issues
npm package: @oigroup/babylon-lightscript-self-host
Description: LightScript parser for use in self-hosting environments
Author: Alex Rattray
Latest version: 3.0.0

# @oigroup/babylon-lightscript-self-host

# WARNING: NOT FOR GENERAL USE

This parser is intended for self-hosting the LightScript toolchain in LightScript. It should only be deployed if you are working on LightScript core tooling. Please do not deploy for general use.

See [LightScript.org](http://lightscript.org) for instructions on how to use LightScript in your code.
npm package: @oigroup/lightscript-eslint
Description: LightScript parser for ESLint, based on babel-eslint
Latest version: 3.1.1

# @oigroup/lightscript-eslint

> `@oigroup/lightscript-eslint` is most frequently tested with `eslint@^4.0.0`.
> It SHOULD be backwards-compatible with `eslint@^3.0.0` as well.

`@oigroup/lightscript-eslint` is a fork of `babel-eslint` that parses code with
`@oigroup/babylon-lightscript` and `@oigroup/babel-plugin-lightscript`.

Any file that includes `.lsc` or `.lsx` in the filename (including, eg, `.lsc.js`)
will be processed with the LightScript compiler;
all others will be processed exactly as in `babel-eslint`.

To use, just `npm install --save-dev @oigroup/lightscript-eslint`
and add `parser: "@oigroup/lightscript-eslint"` to your `.eslintrc`.

Example configuration (with React):

```json
{
  "parser": "@oigroup/lightscript-eslint",
  "plugins": [
    "react"
  ],
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended"
  ],
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  }
}
```

When running `eslint` from the CLI, you must tell it to process LightScript file extensions:

```
$ eslint --ext .js,.lsc src
```

### Live Linting

#### Visual Studio Code

- Set up eslint for your project as above. Verify that eslint lints correctly from the CLI.
- Install the `ESLint` extension for VSCode: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
- Tell VSCode to live-lint LightScript files by adding the following entry to your VSCode options (workspace or global):
  ```
  "eslint.validate": ["javascript", "javascriptreact", "lightscript"]
  ```

### Broken Rules

The following lint rules are either buggy, broken, or do not make sense in the context of LightScript. They are disabled at the code level and will not run even if you enable them in your configuration.

- `no-unexpected-multiline`
- `no-else-return`

### Contributing

Issues: https://github.com/wcjohnson/lightscript/issues
npm package: @oigroup/lightscript-eslint-self-host
Description: LightScript-ESLint for self-hosting the LightScript toolchain
Latest version: 3.0.0

# @oigroup/lightscript-eslint-self-host

# WARNING: NOT FOR GENERAL USE

This linter plugin is intended for self-hosting the LightScript toolchain in LightScript. It should only be deployed if you are working on LightScript core tooling. Please do not deploy for general use.

See [LightScript.org](http://lightscript.org) for instructions on how to use LightScript in your code.
npm package: @oiij/unocss-preset
Description: Features:
Author: oiij
Latest version: 0.0.1

# library-starter

Features:

- Bundle with [tsup](https://github.com/egoist/tsup)
- Test with [vitest](https://vitest.dev)

## Usage

```bash
pnpm add @oiij/unocss-preset -D
```

```ts
import { oiijPreset } from '@oiij/unocss-preset'
import { defineConfig, presetUno } from 'unocss'
export default defineConfig({
  presets: [
    presetUno(),
    oiijPreset()
  ]
})
```

## Shortcuts

```ts
const shortcuts = {
  'wh-full': 'w-full h-full',
  'flex-center': 'flex justify-center items-center',
  'flex-col': 'flex flex-col',
  'flex-col-center': 'flex-col flex-center',
  'flex-col-stretch': 'flex-col items-stretch',
  'flex-x-center': 'flex justify-center',
  'flex-y-center': 'flex items-center',
  'i-flex-center': 'inline-flex justify-center items-center',
  'i-flex-x-center': 'inline-flex justify-center',
  'i-flex-y-center': 'inline-flex items-center',
  'i-flex-col': 'inline-flex flex-col',
  'i-flex-col-stretch': 'i-flex-col items-stretch',
  'flex-1-hidden': 'flex-1 overflow-hidden',
  'absolute-lt': 'absolute left-0 top-0',
  'absolute-lb': 'absolute left-0 bottom-0',
  'absolute-rt': 'absolute right-0 top-0',
  'absolute-rb': 'absolute right-0 bottom-0',
  'absolute-tl': 'absolute-lt',
  'absolute-tr': 'absolute-rt',
  'absolute-bl': 'absolute-lb',
  'absolute-br': 'absolute-rb',
  'absolute-center': 'absolute-lt flex-center wh-full',
  'absolute-full': 'absolute inset-0',
  'fixed-lt': 'fixed left-0 top-0',
  'fixed-lb': 'fixed left-0 bottom-0',
  'fixed-rt': 'fixed right-0 top-0',
  'fixed-rb': 'fixed right-0 bottom-0',
  'fixed-tl': 'fixed-lt',
  'fixed-tr': 'fixed-rt',
  'fixed-bl': 'fixed-lb',
  'fixed-br': 'fixed-rb',
  'fixed-center': 'fixed-lt flex-center wh-full',
  'fixed-full': 'fixed inset-0',
  'transition-base': 'transition-all duration-300 ease-in-out',
}
```

## License

MIT
npm package: @oiij/utils
Description:  A collection of utility functions for JavaScript and TypeScript.
Author: oiij
Latest version: 0.0.8

# Utils

[![NPM version](https://img.shields.io/npm/v/@oiij/utils)](https://www.npmjs.com/package/@oiij/utils)
[![MIT-license](https://img.shields.io/npm/l/@oiij/utils)](https://github.com/Eiog/@oiij/utils/blob/main/LICENSE)

## Usage

```bash
pnpm add @oiij/utils
```

[在线文档](https://oiij-use.vercel.app/examples/utils/started)
npm package: @oiij/web-rtc
Description: Features:
Author: oiij
Latest version: 0.0.1

# library-starter

Features:

- Bundle with [tsup](https://github.com/egoist/tsup)
- Test with [vitest](https://vitest.dev)

# Usage

### 本地包测试

当前目录下执行：

```bash
pnpm link --global --dir=./
```

目标目录：

```bash
pnpm link --global <package name>
```

## License

MIT
npm package: @oikos/js
Description: A library for interacting with Synthetix smart contracts
Author: Synthetix
Latest version: 1.0.0

# Synthetix JS

[![Synthetixio](https://circleci.com/gh/Synthetixio/js.svg?style=svg)](https://github.com/Synthetixio/js)

:warning: This library is still under construction and in BETA, please use with caution.

### The official Javascript library for interacting with Synthetix protocol contracts.

This library can be used in 2 different environments:

1. Common-js module for node environments
2. UMD module for browser environments

#### Installation

```

// For node environments:
const { synthetix } = require('@synthetixio/js');

// For single page applications:
import { synthetix } from '@synthetixio/js';

// For browser environments:
// after running npm build take the index.browser.js file and put it in a script tag
// then you can access synthetix on the window object:
const { synthetix } = window;


const snxjs = synthetix({ network: 'mainnet' });


// Note for typescript applications:
import { synthetix, Network } from '@synthetixio/js';
const snxjs = synthetix({ network: Network.Mainnet });
```

#### Usage

```
// this instance exposes props for the given network: synths, sources, targets, users, etc... as well as helper function toBytes32 - as per synthetix: https://github.com/Synthetixio/synthetix/blob/develop/index.js#L199.
const snxjs = synthetix({ network: 'mainnet' });

// If you want to interact with a contract, simply follow the convention:
// await snxjs[contractName].methodName(arguments)
// many arguments require being formatted toBytes32, which we also provide with the library
// Note can optionally pass in a { blockTag: someBlockNumber } to get data from a specific block instead of {}
E.g:
const unformattedSnxPrice = await snxjs.contracts.ExchangeRates.rateForCurrency(snxjs.toBytes32('SNX'), {});
const unformattedTotalSupply = await snxjs.contracts.SynthsUSD.totalSupply({});

// We also expose ethers utils which provides handy methods for formatting responses to queries.
const { formatEther } = snxjs.utils;

const snxPrice = formatEther(unformattedSnxPrice);
const totalSupply = formatEther(unformattedTotalSupply);

```

See the examples folder for more usage details
npm package: @oikos/oikos-js
Description: Oikos JS Library - access Oikos smart contracts from browser  and Node.js
Author: Oikos
Latest version: 0.6.26

# OikosJs library

[![npm version](https://badge.fury.io/js/%40oikos%2Foikos-js.svg)](https://badge.fury.io/js/%40oikos%2Foikos-js)
[![Twitter Follow](https://img.shields.io/twitter/follow/oikos_cash.svg?label=oikos_cash&style=social)](https://twitter.com/oikos_cash)

The Oikos-JS library provides a simple pre-packaged API to communicate
with [Oikos](https://oikos.cash) on Tron. You can use it to contribute
to DeFi's growing synthetic asset ecosystem.

This is particularly useful for hackathon teams to quickly `npm install @oikos/oikos-js` and start building in just a few minutes.

## Install via npm

`npm install @oikos/oikos-js`

## Example for getting the total sUSD stablecoin in circulation

```javascript
const { SynthetixJs } = require('@oikos/oikos-js');
const snxjs = new SynthetixJs();
(async function() {
  const totalSUSD = await snxjs.sUSD.totalSupply();
  const totalSUSDSupply = snxjs.utils.formatEther(totalSUSD);
  console.log('sUSDTotalSupply', totalSUSDSupply);
})();
```

## Got any questions?

support@oikos.cash
npm package: @oikos/swap
Description: Oikos Swap Contracts
Latest version: 0.7.7

# Uniswap contracts for the Tron blockchain

Install dependencies:

```bash
npm install
```

Private key to use for deployment:

```bash
export TRON_NETWORK=shasta
# export DEPLOY_PRIVATE_KEY_MAINNET=privatekey_for_mainnet
export PRIVATE_KEY=yourprivatekey
```

Compile contracts:

```bash
npm run compile
```

Deploy:

```bash
npm run deploy:mainnet
npm run deploy:shasta
```

## Deploying Exchange through Tronscan

1. Go to https://tronscan.org/#/contracts/contract-compiler and drag &
   drop files from `./tronscan-contracts` directory.

2. Click compile
   - Solidity version: 0.5.8_Odyssey_v3.6.0
   - Optimization: enabled
   - Runs: 200
3. Set `Contact Name` to `UniswapExchange.sol` and click deploy (keep other parameters to their default values).
4. Note contract address (e.g. `TSpoeVoxnZHdnLopfMd5YPJyFEE2zPjb8v`)
5. Add entry to `./src/other-tokens.js` with token information (token
   address, code and decimals). For
   example:

   ```json
   {
     "address": "TNo59Khpq46FGf4sD7XSWYFNfYfbc8CqNK",
     "code": "BNKR",
     "decimals": 6
   }
   ```

6. Add entry to `./addresses.json` with token information (addresses in
   tron hex format). `address` is the address of the exchange previously
   created at step 4 and `tokenAddress` is the token address in tron hex
   format. You can use `tronWeb.address.toHex('...')` in browser console
   to convert from Tron address format to tron hex address format. The
   `setup` field should be false (meaning the exchange is not setup
   yet).

   For example:

   ```json
      "BNKR": {
        "address": "41b8e350b56e26fdc2a8cbc0700657b88587043609",
        "tokenAddress": "418caeea9c7ebb8840ee4b49d10542b99cec6ffbc6",
        "decimals": 6,
        "setup": false
      }
   ```

7. Run `npm run deploy:mainnet` to setup the exchange.
npm package: @oikos/swap-sdk
Description: 🛠 An SDK for building applications on top of Oikos Swap.
Latest version: 3.0.36

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

Port of Uniswap SDK for Tron.

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Install

```bash
npm install @oikos/swap-sdk
```

## Adding a pair

Add liquidity to the pair using [https://swap2.oikos.cash](https://swap2.oikos.cash) (ignore the alert message). Add the pair here, see [this commit](https://github.com/oikos-cash/swap-sdk/commit/baab851d85c8ba5ee488925a7dd7a7383d5071d5).

## Running tests

To run the tests, follow these steps. You must have at least node v10 installed.

First clone the repository:

```sh
git clone https://github.com/oikos-cash/swap-sdk.git
```

Move into the swap-sdk working directory

```sh
cd swap-sdk/
```

Install dependencies

```sh
npm install
```

Run tests

```sh
npm test
```

You should see output like the following:

```sh
$ 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.
```