open-index/open-npm huggingface dataset:
npm package: @oraichain/oraimargin-common
Description: This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.
Latest version: 0.0.3

# Deployment and Scenario Scripts

This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.

```
yarn
yarn deploy
```
npm package: @oraichain/oraimargin-engine
Description: This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.
Latest version: 0.0.2

# Deployment and Scenario Scripts

This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.

```
yarn
yarn deploy
```
npm package: @oraichain/oraiscan-widget
Description: OraiScan widget
Author: Alisa | Side Protocol
Latest version: 0.2.22

# Ping Widget

## install

- npm

```
npm install ping-widget
```

- cdn

```
https://unpkg.com/ping-widget@0.0.2/dist/ping-widget.js
```

## Usage

```js
import pingWidget from '../dist/ping-widget.js';

// web components
<ping-hello />;
```

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

## Recommended IDE Setup

- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support For `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
   1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
   2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
npm package: @oraichain/oraitrading-common
Description: This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.
Latest version: 2.0.2

# Deployment and Scenario Scripts

This directory contains a number of scripts that enable the deployment of Margined Protocol contracts to both local and external networks. Additionally, included are a number of scripts that run scenarios on the deployed smart contracts.

```
yarn
yarn deploy
```
npm package: @oraichain/p-defer
Description: Create a deferred promise
Author: Sindre Sorhus
Latest version: 4.0.1

# p-defer

> Create a deferred promise

[Don't use this unless you know what you're doing.](https://github.com/petkaantonov/bluebird/wiki/Promise-anti-patterns#the-deferred-anti-pattern) Prefer the `Promise` constructor.

## Install

```
$ npm install p-defer
```

## Usage

```js
import pDefer from 'p-defer';

function delay(milliseconds) {
	const deferred = pDefer();
	setTimeout(deferred.resolve, milliseconds, '🦄');
	return deferred.promise;
}

console.log(await delay(100));
//=> '🦄'
```

*The above is just an example. Use [`delay`](https://github.com/sindresorhus/delay) if you need to delay a promise.*

## API

### pDefer()

Returns an `object` with a `promise` property and functions to `resolve()` and `reject()`.

## Related

- [p-lazy](https://github.com/sindresorhus/p-lazy) - Create a lazy promise that defers execution until `.then()` or `.catch()` is called
- [More…](https://github.com/sindresorhus/promise-fun)

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-p-defer?utm_source=npm-p-defer&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>
npm package: @oraichain/pm2-watchdog
Description: Watches the processes's health.
Author: tu@orai.io
Latest version: 1.0.1

# PM2 module: Process Watchdog

Module is continuously checking the health of PM2 NodeJS processes by passing the out log and err log to checking script. If the checking script exit with code is not 0, the PM2 process will be restarted.

## Installation

```bash
pm2 install @oraichain/pm2-watchdog
```

## Basic configuration

```bash
# Enable watching for PM2_PROCESS_NAME. Module will continuously checks the validity of logs.
pm2 set pm2-watchdog:PM2_PROCESS_NAME SCRIPT.js

```

Example:

```bash
# start a pm2 process with name test
pm2 start examples/test.js --name test

# assign watch dog checking script
pm2 set pm2-watchdog:test $PWD/examples/check.js
```

## Optional advanced configuration

```bash
# Set the checking for every NUMBER seconds.
# Default is 3 seconds (if no value is specified).
pm2 set pm2-watchdog:PM2_PROCESS_NAME/checking_interval NUMBER

# Set the app restart when NUMBER checks had failed in a row.
# Default is 3 times (if no value is specified).
pm2 set pm2-watchdog:PM2_PROCESS_NAME/fails_to_restart NUMBER

# Enable message output level.
# Note: Log files are `~/.pm2/logs/pm2-watchdog-out.log`
#                 and `~/.pm2/logs/pm2-watchdog-error.log`
# Default is `info` (if no value is specified).
# Possible values (levels):
#   `info`  - info messages only (default)
#   `debug` - info + debug messages
#   `trace` - info + debug + trace messages
pm2 set pm2-watchdog:debug LEVEL
```

## Logging

The processes restarts are logged to error log file (to error output).
Therefore if you are tracking errors of your applications, you can redirect the error messages to get complete overview what is happening in your server.
The log output is buffering and pass to checking script every checking_interval, including both err log file and out log file.
npm package: @oraichain/service-provider-torus
Description: TKey Torus Service Provider Module
Author: Torus Labs
Latest version: 1.3.1-beta.0

# tKey Torus Service Provider

[![npm version](https://img.shields.io/npm/v/@oraichain/service-provider-torus?label=%22%22)](https://www.npmjs.com/package/@oraichain/service-provider-torus/v/latest) [![minzip](https://img.shields.io/bundlephobia/minzip/@oraichain/service-provider-torus?label=%22%22)](https://bundlephobia.com/result?p=@oraichain/service-provider-torus@latest)

Service Provider in `tKey` is used for generating a social login share of the private key share managed by a wallet service provider via
their own authentication flows. 

## Installation

```shell
npm install --save @oraichain/service-provider-torus
```

### See the full [SDK Reference](https://web3auth.io/docs/sdk/self-host/service-provider) on the Web3Auth Documentation

## Example

``` js
import TorusServiceProvider from "@oraichain/service-provider-torus";

const customAuthParams = {
  baseUrl: `${window.location.origin}/serviceworker`,
  enableLogging: true,
  network: "testnet" as any,
};
const serviceProvider = new TorusServiceProvider({ customAuthParams });
```
npm package: @oraichain/storage-layer-torus
Description: TKey Torus Storage Layer Module
Author: Torus Labs
Latest version: 1.3.1-beta.0

# tKey Torus Storage Layer

[![npm version](https://img.shields.io/npm/v/@oraichain/storage-layer-torus?label=%22%22)](https://www.npmjs.com/package/@oraichain/storage-layer-torus/v/latest)       [![minzip](https://img.shields.io/bundlephobia/minzip/@oraichain/storage-layer-torus?label=%22%22)](https://bundlephobia.com/result?p=@oraichain/storage-layer-torus@latest)

A storage layer is needed to store and recall the metadata information of the shares generated so as to be able to recover the private key from the
tKeys generated. This SDK gives you the ability to get and set the Metadata for the various shares generated.

## Installation

```shell
npm install --save @oraichain/storage-layer-torus
```

## Instantiation

#### Import the `TorusStorageLayer` class from `@oraichain/storage-layer-torus`

```javascript
import TorusStorageLayer from "@oraichain/storage-layer-torus";
```

#### Assign the `TorusStorageLayer` class to a variable

```javascript
const storageLayer = new TorusStorageLayer(TorusStorageLayerArgs);
```

### Parameters

```ts
declare type TorusStorageLayerArgs = {
  enableLogging?: boolean;
  hostUrl?: string; // use `https://metadata.social-login.orai.io` for connecting to the Torus Metadata Server
  serverTimeOffset?: number;
};
```

## Example

```js
import TorusStorageLayer from "@oraichain/storage-layer-torus";

const storageLayer = new TorusStorageLayer({ hostUrl: "https://metadata.social-login.orai.io" });
```