open-index/open-npm huggingface dataset:
npm package: @somnia-react/autonomous-contracts
Description: Solidity smart contracts for Somnia on-chain reactive logic
Latest version: 0.1.1

## Foundry

**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**

Foundry consists of:

- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.

## Documentation

https://book.getfoundry.sh/

## Usage

### Build

```shell
$ forge build
```

### Test

```shell
$ forge test
```

### Format

```shell
$ forge fmt
```

### Gas Snapshots

```shell
$ forge snapshot
```

### Anvil

```shell
$ anvil
```

### Deploy

```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
```

### Cast

```shell
$ cast <subcommand>
```

### Help

```shell
$ forge --help
$ anvil --help
$ cast --help
```
npm package: @somnolence/cli
Description: Somnolence CLI generates type-safe clients from any server running Somnolence. You don't ened access to the server's source code to get its TypeScript types. Just point the CLI at any Somnolence Server and get one generated automatically!
Latest version: 0.0.3

# 💤 Somnolence CLI — Generate type-safe clients from _any_ Somnolence Server and rest easy

Somnolence CLI generates type-safe clients from any server running Somnolence. You don't ened access to the server's source code to get its TypeScript types. Just point the CLI at any Somnolence Server and get one generated automatically!

## Install
```bash
# NPM
$ npm install -g @somnolence/cli

# PNPM
$ pnpm add -g @somnolence/cli

# Yarn
$ yarn global add @somnolence/cli

# Bun
$ bun add -g @somnolence/cli
```

## Usage
### Generate the client:
```bash
# path/to/your/client
$ somnolence-ts --endpoint https://my-cool-app.com/path/to/my-somnolence-server
# 💤 Generated Somnolence Client at node_modules/@somnolence/client
```

### Use the type-safe client:
```typescript
import somnolence from '@somnolence/client'

somnolence
  .hello({ query: { name: 'world' } })
  .then(response => console.log(response.body)) // 'Hello, world!'
```

### The client infers the inputs and outputs of each route:
_The client automatically knows what inputs are required_<br />
![The client automatically knows what inputs are required](../../.images/inference3.png)

_The client automatically knows the response is a string_<br />
![The client automatically knows the response is a string](../../.images/inference4.png)

## CLI Options
```
$ somnolence-ts --help

  Usage
    $ somnolence-ts

  Options
    --endpoint  Endpoint for your Somnolence Server (default: http://localhost:3000)
    --outdir    Output directory for the generated, type-safe client (default: node_modules/@somnolence/client)

  Examples
    $ somnolence-ts --endpoint=https://backend.my-app.com
    💤 Generated Somnolence Client at node_modules/@somnolence/client
```