Maple labs uses these deployment scripts for hardhat ethereum packages. These scripts were inspired by and made for Scaffold Eth!
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);
});
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);
});