Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fireblocks/hardhat-fireblocks
Hardhat plugin for integrating with Fireblocks
https://github.com/fireblocks/hardhat-fireblocks
ethereum ethereum-contract hardhat hardhat-plugin solidity
Last synced: 3 months ago
JSON representation
Hardhat plugin for integrating with Fireblocks
- Host: GitHub
- URL: https://github.com/fireblocks/hardhat-fireblocks
- Owner: fireblocks
- License: mit
- Created: 2022-08-06T11:43:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T12:56:47.000Z (3 months ago)
- Last Synced: 2024-11-12T13:35:09.336Z (3 months ago)
- Topics: ethereum, ethereum-contract, hardhat, hardhat-plugin, solidity
- Language: TypeScript
- Homepage:
- Size: 722 KB
- Stars: 12
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm version](https://badge.fury.io/js/@fireblocks%2Fhardhat-fireblocks.svg)](https://badge.fury.io/js/@fireblocks%2Fhardhat-fireblocks)
# Fireblocks Hardhat Plugin
This is a [Hardhat](https://hardhat.org/) plugin for integrating with [Fireblocks](https://www.fireblocks.com/).
This plugin will help you to seamlessly integrate Fireblocks into your Hardhat development stack.
You can use it to deploy contracts and sign transactions and messages.
## Installation
```bash
npm install @fireblocks/hardhat-fireblocks
```Import the plugin in your `hardhat.config.js`:
```js
require("@fireblocks/hardhat-fireblocks");
const { ApiBaseUrl } = require("@fireblocks/fireblocks-web3-provider");
```Or if you are using TypeScript, in your `hardhat.config.ts`:
```ts
import "@fireblocks/hardhat-fireblocks";
import { ApiBaseUrl } from "@fireblocks/fireblocks-web3-provider";
```## Configuration
This plugin extends the `HttpNetworkUserConfig` object with an optional
`fireblocks` field.This is an example of how to set it:
```js
module.exports = {
solidity: "0.8.17",
networks: {
goerli: {
url: "https://rpc.ankr.com/eth_goerli",
fireblocks: {
// apiBaseUrl: ApiBaseUrl.Sandbox // If using a sandbox workspace
privateKey: process.env.FIREBLOCKS_API_PRIVATE_KEY_PATH,
apiKey: process.env.FIREBLOCKS_API_KEY,
vaultAccountIds: process.env.FIREBLOCKS_VAULT_ACCOUNT_IDS,
}
},
},
};
```