open-index/open-npm huggingface dataset:
npm package: @livcare/livcare-js
Description: javascript library to connect with the smart contracts
Latest version: 1.0.5

# LiVCare-js

[![banner](./assets/images/logo.png)](https://livis.one/)

This library contains all the functions necessary to interact with LivCare smart contracts.
The package gives developers access to methods for reading data and executing transactions on the LivCare contracts.

- [LiVCare-js](#livcare-js)
  - [Installing](#installing)
  - [Sample Usage](#sample-usage)
- [View Methods](#view-methods)
  - [Token list](#token-list)
  - [Get beneficiary](#get-beneficiary)
- [Transaction Methods](#transaction-methods)
  - [Approve](#approve)
  - [Deposit](#deposit)
  - [Borrow](#borrow)
  - [Repay](#repay)
  - [Set Beneficiary](#set-beneficiary)
- [Test](#test)
- [Build](#build)


## Installing

```bash
npm install --save @livcare/livcare-js
```

## Sample Usage

```bash
import LivMananger from ' @livcare/livcare-js'
```

# View Methods

## Token list

Retrieves the list of available tokens with the current deposit and borrow yields

```bash
const reserves = await livManager.singleAsset.getTokenlist()
```

## Get beneficiary

Returns the beneficiary address specified by the investor

```bash
const reserves = await livManager.singleAsset.getBeneficiary()
```

# Transaction Methods

## Approve

Approves to LivManager contract to use the specified amount of sender funds in the specified token.
@param tokenAddress
@param amount


```bash
const reserves = await livManager.singleAsset.approve(tokenAddress, amount)
```

## Deposit

Deposits into LivManager contract the specified amount of sender funds in the specified token.
@param tokenAddress
@param amount


```bash
await livManager.singleAsset.deposit(tokenAddress, amount)
```

## Borrow

Borrow from LivManager contract the specified amount of tokens.
@param tokenAddress
@param amount

```bash
await livManager.singleAsset.borrow(tokenAddress, amount)
```

## Repay

Repays to LivManager contract the specified amount of tokens in the specified token.
@param tokenAddress
@param amount


```bash
await livManager.singleAsset.repay(tokenAddress, amount)
```

## Set Beneficiary

Sets the address of the beneficiary that will be able to withdrawn investor funds.
@param tokenAddress
@param amount


```bash
await livManager.singleAsset.setBeneficiary(beneficiaryAddress)
```

# Test 

```bash
npm run test
```

# Build 

```bash
npm run build
```
npm package: @live-cache/core
Description: Core data structures and controller APIs for live-cache
Latest version: 0.0.2

# @live-cache/core

Core data structures and controller APIs for live-cache.

> **Disclaimer:** This project is under initial development. Breaking changes are made every week.

## Install

```bash
bun add @live-cache/core
```

## What it includes

- `Collection`, `Document`, and `Controller`
- `ObjectStore` utilities
- `join()` helper
- `StorageManager` and `Invalidator` base types
- `Transactions` utilities
- `withMutation` – method decorator for Controller async methods; adds `.loading` and `.error` on the method (TC39 decorator)
- `WithMutationState` – type for the decorated method shape

## Usage

```ts
import { Controller, createObjectStore, withMutation } from "@live-cache/core";
```
npm package: @live-cache/invalidator
Description: Invalidator implementations for live-cache
Latest version: 0.0.2

# @live-cache/invalidator

Invalidator implementations for live-cache.

> **Disclaimer:** This project is under initial development. Breaking changes are made every week.

## Install

```bash
bun add @live-cache/invalidator @live-cache/core
```

## What it includes

- `TimeoutInvalidator`
- `WebsocketInvalidator`

## Usage

```ts
import { TimeoutInvalidator } from "@live-cache/invalidator";
```
npm package: @live-cache/react
Description: React bindings for live-cache
Latest version: 0.0.2

# @live-cache/react

React bindings for live-cache controllers and stores.

> **Disclaimer:** This project is under initial development. Breaking changes are made every week.

## Install

```bash
bun add @live-cache/react @live-cache/core
```

## What it includes

- `ContextProvider` and `useRegister`
- `useController` and `useJoinController`
- `useModify` – hook that wraps an async function and returns `{ mutate, loading, error }` for UI feedback (e.g. create/update mutations)

## Usage

```tsx
import { ContextProvider, useController, useModify } from "@live-cache/react";
```
npm package: @live-cache/storage-manager
Description: StorageManager implementations for live-cache
Latest version: 0.0.2

# @live-cache/storage-manager

StorageManager implementations for live-cache.

> **Disclaimer:** This project is under initial development. Breaking changes are made every week.

## Install

```bash
bun add @live-cache/storage-manager @live-cache/core
```

## What it includes

- `IndexDbStorageManager`
- `LocalStorageStorageManager`

## Usage

```ts
import { LocalStorageStorageManager } from "@live-cache/storage-manager";
```
npm package: @live-casino-games/chat
Description: React live-casino-chat-games App
Latest version: 0.5.70

React live-casino-chat-games App.

Below you will find some information on how to perform common tasks.<br>

## Table of Contents

- [Getting Start](#installation)
- [Usage](#usage)
- [Props](#props)

# Installation

### `npm i -S @live-casino-games/chat`

# Usage

`import ChatGames from "@live-casino-games/chat";`

## Props

```jsx
import ChatGames from "@live-casino-games/chat";

export default () => (
  <ChatGames
    variables={{
      lang: "en",
      token: "A9-06-6F-39-48-E5-DA-F1-20-09-86-C0-2A-8C-17-5E",
      chatURL: "https://chat.xpgtesting.com/",
      isFullScreen: true,
      removeFocus: false,
      mobile: true,
      dealerName: "Dealer",
      takeMsg: 40,
      isBanned: false,
      isChatEnable: false
    }}
    onCloseTab={() => {}}
    onFocusChat={(focus: boolean) => {}}
    onEnableChat={(enable: boolean) => {}}
  />
);
```

# Theme configuration

```javascript
const theme = {
  dealerTopBar: {},
  container: {},
  form: {
    active: {},
    disable: {},
    sendBtn: {},
    emojiBtn: {}
  },
  list: {
    msg: {
      currentUser: {},
      otherUsers: {},
      dealer: {}
    }
  },
  btnEnableChat: {},
  notifMsg: {},
  systemMsg: {}
};
```
npm package: @live-codes/browser-compilers
Description: Compilers that run in the browser, for use in livecodes.io
Author: Hatem Hosny
Latest version: 0.22.10

# Browser Compilers

Compilers that run in the browser.

This repo includes compilers (not available as such on CDNs) built for in-browser use in [LiveCodes](https://github.com/live-codes/livecodes).

## License

The code for building and bundling the packages is licensed under [MIT License](./LICENSE).
Third party licenses are [listed here](./vendor-licenses.md).
npm package: @live-codes/browser-jest
Description: Run Jest in the browser
Author: Hatem Hosny
Latest version: 0.0.3

# Jest in Browser

This project aims to make Jest work in the browser. As used in [LiveCodes](https://github.com/live-codes/livecodes).

## Usage

ESM:

```js
import {
  afterAll,
  afterEach,
  beforeAll,
  beforeEach,
  describe,
  fdescribe,
  xdescribe,
  it,
  test,
  fit,
  xtest,
  xit,
  expect,
  jest,
  run,
} from 'https://unpkg.com/@live-codes/browser-jest';

test.each([
  [1, 1, 2],
  [1, 2, 3],
  [2, 1, 3],
])('.add(%i, %i)', (a, b, expected) => {
  expect(a + b).toBe(expected);
});

test('adds 1 + 2 to equal 3', () => {
  expect(1 + 2).toBe(3);
});

run().then((results) => {
  console.log(results);
});
```

UMD:

```html
<script src="https://unpkg.com/@live-codes/browser-jest/dist/browser-jest.umd.js"></script>
<script>
  const {
    afterAll,
    afterEach,
    beforeAll,
    beforeEach,
    describe,
    fdescribe,
    xdescribe,
    it,
    test,
    fit,
    xtest,
    xit,
    expect,
    jest,
    run,
  } = window.browserJest;
</script>
```
npm package: @live-codes/codemirror
Description: A custom build of CodeMirror6 for use in LiveCodes
Author: Hatem Hosny
Latest version: 0.3.5

# @live-codes/codemirror

This is a custom build of CodeMirror6.

This was built for use in [LiveCodes](https://livecodes.io/).

## Usage

The editor is bundled as ESM. It can be used like this:

```html
<div id="container"></div>

<script type="module">
  import { basicSetup, lineNumbers, EditorView, javascript } from 'https://cdn.jsdelivr.net/npm/@live-codes/codemirror';

  let view = new EditorView({
    doc: "console.log('hello world');",
    extensions: [
      basicSetup, 
      lineNumbers(),
      javascript(),
    ],
    parent: document.querySelector('#container'),
  })
</script>
```

## Build

```bash
npm run build
```

## License

MIT
npm package: @live-codes/gleam-precompiled
Description: Gleam wasm compiler and precompiled Gleam standard library and some packages for use in LiveCodes.
Author: Hatem Hosny
Latest version: 0.5.0

# Gleam Precompiled

This repo hosts the [Gleam](https://gleam.run) wasm compiler and precompiled Gleam standard library and some packages for use in [LiveCodes](https://github.com/live-codes/livecodes) (the client-side code playground).

https://livecodes.io/?template=gleam

See docs for details:
https://livecodes.io/docs/languages/gleam/

## License

MIT License