# hardhat-gasless-deployer

> Hardhat Plugin for deploying contracts using GSN

Latest version **0.0.6** (published 2023-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install hardhat-gasless-deployer
pnpm add hardhat-gasless-deployer
yarn add hardhat-gasless-deployer
bun add hardhat-gasless-deployer
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-08-02 |
| First published | 2023-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 1 |
| Unpacked size | 122 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ahmed Ali |
| Maintainers | aabdulwahed |
| Keywords | ethereum, smart-contracts, hardhat, hardhat-plugin, GSN, Deployment, Gasless |

## Links

- npm: https://www.npmjs.com/package/hardhat-gasless-deployer
- Repository: https://github.com/0x3bfc/hardhat-gasless-deployer
- Homepage: https://github.com/0x3bfc/hardhat-gasless-deployer#readme
- Issues: https://github.com/0x3bfc/hardhat-gasless-deployer/issues
- npm.io page: https://npm.io/package/hardhat-gasless-deployer

## Dependencies (1)

- [tslint](https://npm.io/package/tslint.md) ^6.1.3

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.6 (latest) — 2023-08-02
- 0.0.5 — 2023-08-02
- 0.0.4 — 2023-08-02
- 0.0.3 — 2023-08-02
- 0.0.2 — 2023-08-02
- 0.0.1 — 2023-08-01

## README

# hardhat-gasless-deployer

This hardhat plugin allows developers to execute gasless contracts deployments using a [GSN](https://opengsn.org/) provider.

## Installation

```bash
yarn add hardhat-gasless-deployer
```

## Usage

- update the `hardhat.config.js`:

For javascript:
```javascript
require('hardhat-gasless-deployer');
```

Or if you are using TypeScript:

```typescript
import 'hardhat-gasless-deployer';
```

## Configurations
The minimal configuration that must be added before using this plugin is as follows:

```javascript
module.exports = {
  networks: {
    mainnet: { ... }
  },
  hHGaslessDeployer: {
    contract:"THE_CONTRACT_NAME_TO_BE_DEPLOYED",
    initArgsPath: "PATH_TO_CONSTRUCTOR_ARGS_IN_TS_OR_JS",
    salt: "SALT_FOR_CREATE2_DEPLOYMENT", // Optional
    value: "VALUE_IN_ETH_PASSED_TO_THE_DEPLOYED_CONTRACT", // Optional
    network: "gsn", // ie. local gsn network
    rpcUrls: new ethers.JsonRpcProvider("http://127.0.0.1:8545") as unknown as JsonRpcProvider,
    paymaster: "GET_THIS_ADDRESS_FROM_YOUR_GSN_PROVIDER",
    relayerHub: "GET_THIS_ADDRESS_FROM_YOUR_GSN_PROVIDER",
    forwarder: "GET_THIS_ADDRESS_FROM_YOUR_GSN_PROVIDER",
  },
};
```

For more details about integrating this plugin into your project, please refer to this [working example](https://github.com/0x3bfc/hh-gasless-deployer-example/tree/main).

---
_Source: https://npm.io/package/hardhat-gasless-deployer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
