open-index/open-npm huggingface dataset:
npm package: @perp/use-ethereum
Description: >
Author: Yuren Ju
Latest version: 0.1.8

# use-ethereum

>

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

## Install

```bash
npm install --save use-ethereum
```

## Usage

```tsx
import * as React from 'react'

import { useMyHook } from 'use-ethereum'

const Example = () => {
  const example = useMyHook()
  return (
    <div>
      {example}
    </div>
  )
}
```

## License

MIT © [Perpetual Protocol](https://github.com/perpetual-protocol)

---

This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).
npm package: @perp/voting-escrow
Description: Perpetual Protocol voting escrow contracts
Author: Perpetual Protocol
Latest version: 1.3.0

# perp-ve

## Local Development and Testing

### Requirements

You should have Node 12 installed. Use [nvm](https://github.com/nvm-sh/nvm) to install it.

### Development

Clone this repository, install NodeJS dependencies, and build the source code:

```bash
git clone git@github.com:perpetual-protocol/perp-voting-escrow.git
npm i
npm run build
```

Since there are some runtime environment dependencies, if the installation failed on your machine, please try a vanilla install instead:

```bash
npm run clean
rm -rf node_modules/
rm package-lock.json
npm install
npm run build
```

### Testing

To run all the test cases:

```bash
npm run test
```

---

> If any features/functionalities described in the Perpetual Protocol documentation, code comments, marketing, community discussion or announcements, pre-production or testing code, or other non-production-code sources, vary or differ from the code used in production, in case of any dispute, the code used in production shall prevail.

### Coverage
- Coverage simple version
```bash
npm run coverage
```

- Coverage html version
```bash
brew install lcov

npm run coverage:report

open coverage-out/index.html
```


### Snapshot

To query the latest snapshot info
```bash
npm run snapshot
```

To query specific timestamp(in sec) info (eg. `1661990400` is `2021-09-01 00:00:00` UTC)
```bash
npm run snapshot 1661990400
```
npm package: @perpetualdev/dai-storybook-library
Description: StoryBook Components Library For DAI
Author: perpetualdev
Latest version: 0.2.1

## 🤝 Contributing

We welcome contributions to InMarketUI!

Read our [contributing guide](https://github.com/InMarketltd/anv-ui-components/blob/development/CONTRIBUTING.md) and help us build or improve our components.

## 📝 License

This project is offered under [MIT License](https://github.com/InMarketltd/anv-ui-components/blob/development/LICENSE).
npm package: @perpetualdev/pfm-storybook-library
Description: Storybook design systems tutorial for PFM application
Author: perpetualdev
Latest version: 0.2.2

# Storybook design system tutorial

The Storybook design system tutorial is a subset of the full [Storybook design system](https://github.com/storybookjs/design-system/), created as a learning resource for those interested in learning how to write and publish a design system using best in practice techniques.

Learn more in [Storybook tutorials](https://storybook.js.org/tutorials/).
npm package: @perpetualnydev/dai-storybook-lib
Description: StoryBook Components Library For DAI
Author: perpetualdev
Latest version: 0.7.42

## 🤝 Contributing

We welcome contributions to InMarketUI!

Read our [contributing guide](https://github.com/InMarketltd/anv-ui-components/blob/development/CONTRIBUTING.md) and help us build or improve our components.

## 📝 License

This project is offered under [MIT License](https://github.com/InMarketltd/anv-ui-components/blob/development/LICENSE).
npm package: @perpetualnydev/pfm-storybook-lib
Description: Storybook design systems tutorial for PFM application
Author: perpetualdev
Latest version: 0.3.30

# Storybook design system tutorial

The Storybook design system tutorial is a subset of the full [Storybook design system](https://github.com/storybookjs/design-system/), created as a learning resource for those interested in learning how to write and publish a design system using best in practice techniques.

Learn more in [Storybook tutorials](https://storybook.js.org/tutorials/).
npm package: @perpgame/toolkit
Description: CLI toolkit for Hyperliquid DEX trading — wallet setup, builder fee approval, balances, trading, and transfers
Author: perpgame.xyz
Latest version: 1.0.2

# @perpgame/toolkit

CLI toolkit for agentic perpetual futures trading on [perpgame.xyz](https://perpgame.xyz/) — powered by [Hyperliquid](https://hyperliquid.xyz/).

Built for AI agents and automation. All commands output structured JSON for easy integration.

## Install

```bash
npm install -g @perpgame/toolkit
```

Or run directly:

```bash
npx @perpgame/toolkit <command>
```

## Commands

### Wallet

| Command | Description |
|---------|-------------|
| `create-wallet` | Generate a new encrypted wallet |
| `import-wallet --private-key <hex>` | Import an existing wallet |

### Trading

| Command | Description |
|---------|-------------|
| `trade --side <long\|short> --coin <COIN> --usd <amount>` | Place a market or limit order |
| `close-position --coin <COIN> [--pct <percent>]` | Close a position (fully or partially) |
| `set-tpsl --coin <COIN> [--tp <price>] [--sl <price>]` | Set take-profit and/or stop-loss |

### Account

| Command | Description |
|---------|-------------|
| `balances` | View balances on Arbitrum and Hyperliquid |
| `approve-builder-fee --builder <address>` | Approve a builder fee for trades |
| `sign-message --message <text>` | Sign a message with the wallet's private key |

### Transfers

| Command | Description |
|---------|-------------|
| `deposit-to-hl [--amount <usdc>]` | Deposit USDC from Arbitrum to Hyperliquid |
| `withdraw-from-hl --amount <usdc>` | Withdraw USDC from Hyperliquid |
| `send --to <address> --amount <amount>` | Send ETH or USDC on Arbitrum |
| `onramp-url` | Generate a fiat on-ramp URL |

## Examples

```bash
# Create a wallet
perpgame-toolkit create-wallet

# Deposit USDC to Hyperliquid
perpgame-toolkit deposit-to-hl --amount 100

# Open a 5x leveraged long on ETH with $50 margin
perpgame-toolkit trade --side long --coin ETH --usd 50 --leverage 5

# Set a take-profit and stop-loss
perpgame-toolkit set-tpsl --coin ETH --tp 4000 --sl 3200

# Close 50% of a position
perpgame-toolkit close-position --coin ETH --pct 50

# Check balances and open positions
perpgame-toolkit balances
```

## License

MIT