@astrolabs/hardhat
TypeScript icon, indicating that this package has built-in type declarations

1.0.95 • Public • Published

Hardhat+Tenderly Stack

by Astrolab

License Discord Chat Astrolab Docs

This repository serves as Astrolab's foundational setup for smart contract development. It embeds Hardhat, Astrolab's blockchains metadata supplemented by Tenderly's Hardhat plugin (cf. hardhat base configuration). Importing this stack as below enables easy bootstraping of any web3 back-end and/or smart contract development project by minimizing the necessity for boilerplate code, often redundant across repositories.

Astrolab utilizes this setup across most its contract and blockchain SDK repositories.

Example TS Usage:

import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@tenderly/hardhat-tenderly";
import { config, tenderly } from "@astrolabs/hardhat/dist/hardhat.config";

tenderly.setup({ automaticVerifications: false });
config.paths = {
    artifacts: "./artifacts",
    cache: "./cache",
    sources: "./contracts",
    tests: "./test/integration"
};

export default config;

Example JS Usage:

require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@tenderly/hardhat-tenderly");
const { config, tenderly } = require("@astrolabs/hardhat/dist/hardhat.config");

tenderly.setup({ automaticVerifications: false });
config.paths = {
    artifacts: "./artifacts",
    cache: "./cache",
    sources: "./contracts",
    tests: "./test/integration"
};

module.exports = config;

Contributions

Contributions to improve this setup are highly welcomed. Feel free to submit issues or pull requests to enhance the functionality and usability of this repository.

Package Sidebar

Install

npm i @astrolabs/hardhat

Weekly Downloads

1

Version

1.0.95

License

MIT

Unpacked Size

76.9 kB

Total Files

24

Last publish

Collaborators

  • astrolabs