open-index/open-npm huggingface dataset:
npm package: @foundry-rs/hardhat
Description: Foundry's hardhat plugin
Latest version: 0.1.8

# hardhat

Aggregated foundry hardhat plugin

## Installation

See in each plugin

- [anvil](../hardhat-anvil/README.md)
- [forge](../hardhat-forge/README.md)
- [foundryup](../easy-foundryup/README.md)

## LICENSE

- MIT license ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT)
npm package: @foundry-rs/hardhat-anvil
Description: Hardhat plugin for managing Anvil
Latest version: 0.1.7

# hardhat-anvil

This Hardhat plugin automatically starts and stops [Anvil](https://github.com/foundry-rs/foundry/tree/master/anvil) when running tests or scripts.

## What

This plugin creates a network named `anvil`. When this network is used, it can either connect to a running `anvil` instance or launch a new server automatically before running tests and scripts.

## Installation

### Anvil binary

See [anvil installation](https://github.com/foundry-rs/foundry/tree/master/anvil#installation)

### Plugin

```bash
npm install --save-dev @foundry-rs/hardhat-anvil
```

And add the following statement to your `hardhat.config.js`:

```js
require("@foundry-rs/hardhat-anvil");
```

Or, if you are using TypeScript, add this to your `hardhat.config.ts`:

```js
import "@foundry-rs/hardhat-anvil";
```

## Tasks

This plugin hooks into the `test`.

## Environment extensions

This plugin adds a `waffle` object to the Hardhat Runtime Environment. This object has all the Waffle functionality, already adapted to work with Hardhat.

This is a slightly modified, `anvil` compatible version of [`@nomiclabs/hardhat-waffle`](https://github.com/NomicFoundation/hardhat/tree/master/packages/hardhat-waffle).

## Usage

Once `anvil` is installed you can simply run it and configure it via the CLI.

Once installed, you can build your tests almost like in Waffle.

Instead of importing things from `ethereum-waffle`, you access them from the `waffle` property of the Hardhat Runtime Environment.

## Configuration

You can set any of the [Anvil's options](https://github.com/foundry-rs/foundry/tree/master/anvil) (or `anvil --help`) through the `anvil` network config.

**Note: currently only default settings are used if `launch: true`. All other configs are currently ignored**

It's recommend to spawn `anvil` manually in a separate shell, see also [Foundry repo](https://github.com/foundry-rs/foundry/tree/master/anvil)

This example sets a larger block gas limit and the default balance of Anvil's accounts.

```js
module.exports = {
  defaultNetwork: "anvil",
    anvil: {
      url: "http://127.0.0.1:8545/",
      launch: false, // if set to `true`, it will spawn a new instance if the plugin is initialized, if set to `false` it expects an already running anvil instance
    }
  }
};
```

By default, the `anvil` object will be configured as

```js
{
  hdPath: "m/44'/60'/0'/0/",
  mnemonic: 'test test test test test test test test test test test junk',
  url: 'http://127.0.0.1:8545/',
  launch: true,
  accounts: {
    mnemonic: 'test test test test test test test test test test test junk',
    path: "m/44'/60'/0'/0/"
  }
}
```

## LICENSE

- MIT license ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT)
npm package: @foundry-rs/hardhat-forge
Description: Hardhat plugin for foundry's forge
Latest version: 0.1.17

# hardhat-forge

This Hardhat plugin is for [forge](https://github.com/foundry-rs/foundry/tree/master/forge).

## What

This plugin provides bindings for `forge` commands as hardhat tasks.

## Installation

```bash
npm install --save-dev @foundry-rs/hardhat-forge
```

And add the following statement to your `hardhat.config.js`:

```js
require("@foundry-rs/hardhat-forge");
```

Or, if you are using TypeScript, add this to your `hardhat.config.ts`:

```js
import "@foundry-rs/hardhat-forge";
```

## Tasks

This plugin provides the following tasks:

- "forge::build" for "`forge build`
- "forge::test" for "`forge test`

## Configuration

See [Foundry](https://github.com/foundry-rs/foundry).

## LICENSE

- MIT license ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT)
npm package: @foundryapp/accessibility-node
Description: `yarn add @foundryapp/accessibility-node`
Latest version: 1.0.14

## Installation & usage
`yarn add @foundryapp/accessibility-node`

### Initialization
```javascript
const ax = require('@foundryapp/accessibility-node'); // ax means accessibility
```

## Methods

### `isProcessTrusted() => boolean`
```javascript
// isProcessTrusted() returns boolean indicating whether a process has accessibility permissions.
// If the process isn't trusted, the method will also prompt user to give this process accessibility permissions.
const isTrusted = ax.isProcessTrusted();
```

### `isAppRunning(bundleID: boolean) => boolean`
```javascript
const isRunning = ax.isAppRunning('com.apple.Terminal');
```

### `launchApp(bundleID: string, (err) => void)`
```javascript
// The exact behavior of the launch depends on a target app but usually it means
// that also a new window of that app is launched. So there's no need to call
// createNewWindow().
ax.launchApp('com.apple.Terminal', (err) => {
  if (!err) {
    console.log('App successfully launched');
  } else {
    console.error(err);
  }
});
```

### `createNewWindow(bundleID: string, (err) => void)`
```javascript
// App must be running, otherwise error is passed to a callback.
// This might take a few seconds to complete.
ax.createNewWindow('com.apple.Terminal', (err) => {
  if (!err) {
    console.log('Window created');
  } else {
    console.error(err);
  }
});
```




## TODO
- Add Typescript typings