UNPKG

@broxus/locklift-deploy

Version:

Locklift plugin for replicable deployments and easy testing

22 lines (21 loc) 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Logger = void 0; const locklift_1 = require("locklift"); class Logger { printDeployLog = (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}`); } }; printRetrievedLog = (info) => { console.log(`${info.type} retrieved, address: ${info.address}, deploymentName: ${info.deploymentName}`); }; } exports.Logger = Logger;