@calibur/skr-template
Advanced tools
Comparing version 0.0.32-alpha.0 to 0.0.33-alpha.0
@@ -13,3 +13,3 @@ import * as dotenv from 'dotenv' | ||
const config: HardhatUserConfig = { | ||
solidity: '<%= solc %>', | ||
solidity: '0.8.4', | ||
gasReporter: { | ||
@@ -16,0 +16,0 @@ currency: 'USD', |
@@ -9,21 +9,23 @@ import fs from 'fs' | ||
.addOptionalParam('name', 'the token name', 'echo') | ||
.setAction(async (TaskArguments, { artifacts, config, ethers, network, run }) => { | ||
const [deployer] = await ethers.getSigners() | ||
.setAction( | ||
async (TaskArguments, { artifacts, config, ethers, network, run }) => { | ||
const [deployer] = await ethers.getSigners() | ||
console.log('Deploying contracts with the account:', deployer.address) | ||
console.log('Account balance:', (await deployer.getBalance()).toString()) | ||
const Token: Token__factory = await ethers.getContractFactory('Token') | ||
const token: Token = <Token>await Token.deploy(TaskArguments.name) | ||
console.log('Deploying contracts with the account:', deployer.address) | ||
console.log('Account balance:', (await deployer.getBalance()).toString()) | ||
const Token: Token__factory = await ethers.getContractFactory('Token') | ||
const token: Token = <Token>await Token.deploy(TaskArguments.name) | ||
await token.deployed() | ||
console.log('Token deployed to: ', token.address) | ||
await saveFrontendFiles(token, artifacts) | ||
await token.deployed() | ||
console.log('Token deployed to: ', token.address) | ||
await saveFrontendFiles(token, artifacts) | ||
if (network.name !== 'hardhat' && config.etherscan.apiKey) { | ||
await run('verify:verify', { | ||
address: token.address, | ||
constructorArguments: [TaskArguments.name] | ||
}) | ||
if (network.name !== 'hardhat' && config.etherscan.apiKey) { | ||
await run('verify:verify', { | ||
address: token.address, | ||
constructorArguments: [TaskArguments.greeting] | ||
}) | ||
} | ||
} | ||
}) | ||
) | ||
@@ -30,0 +32,0 @@ const saveFrontendFiles = async (token: Token, artifacts: Artifacts) => { |
{ | ||
"name": "@calibur/skr-template", | ||
"version": "0.0.32-alpha.0", | ||
"version": "0.0.33-alpha.0", | ||
"author": "falstack <icesilt@outlook.com>", | ||
"license": "MIT", | ||
"gitHead": "b55fda3bdd07a55502a57b2fbd9be4d3219d5e12" | ||
"gitHead": "be2dbbf60ce150e379f1485fff08606ffdfe40c3" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47521
847