@fairyfromalfeya/locklift-deploy
Version:
Locklift plugin for replicable deployments and easy testing
19 lines (18 loc) • 754 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
const locklift_1 = require("locklift");
class Logger {
printLog = (info) => {
if (info.type === "Contract") {
console.log(`Contract ${info.contractName} deployed, address: ${info.address}, deploymentName: ${info.deploymentName}`);
}
if (info.type === "Account") {
const walletType = info.createAccountParams?.type ?
locklift_1.WalletTypes[info.createAccountParams.type] :
'UnrecognizedWallet';
console.log(`Account type ${walletType} deployed, address: ${info.address}, deploymentName: ${info.deploymentName}`);
}
};
}
exports.Logger = Logger;