@maplelabs/hardhat-scripts

1.2.1 • Public • Published

Hardhat Scripts

Maple labs uses these deployment scripts for hardhat ethereum packages. These scripts were inspired by and made for Scaffold Eth!

scripts/deploy.js

const { deploy } = require("@maplelabs/hardhat-scripts");

async function main() {
  const bCreator = await deploy("MyContract", [param1, param2]);
}

main()
  .then(() => process.exit(0))
  .catch((error) => {
    console.error(error);
    process.exit(1);
  });

scripts/publish.js

const { publish } = require("@maplelabs/hardhat-scripts");

async function main() {
  const directories = [
    "../web-app/src/contracts",
    "../contracts/src/contracts",
  ];
  publish(directories);
}

main()
  .then(() => process.exit(0))
  .catch((error) => {
    console.error(error);
    process.exit(1);
  });

Package Sidebar

Install

npm i @maplelabs/hardhat-scripts

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

6.59 kB

Total Files

5

Last publish

Collaborators

  • jgcarv
  • 0xfarhaan
  • michaelmaple
  • callum-maple
  • maplematt
  • joemaple