@maplelabs/hardhat-scripts
v1.2.1
Published
Hardhat Ethereum Scripts used at Maple Labs
Downloads
37
Readme
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);
});