-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed11c46
commit 559f08e
Showing
10 changed files
with
620 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ACCOUNT_PRIVATE_KEYS = ['<PRIVATE_KEY>'] | ||
ACCOUNT_PRIVATE_KEYS=["<PRIVATE_KEY>"] | ||
ETHERSCAN_API_KEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
node_modules | ||
yarn-error.log | ||
typechain | ||
typechain-types | ||
coverage/ | ||
coverage.json | ||
cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { HardhatRuntimeEnvironment } from 'hardhat/types' | ||
import { DeployFunction } from 'hardhat-deploy/types' | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const { deployments, getNamedAccounts, getChainId } = hre; | ||
const { deploy, get, execute, getOrNull } = deployments; | ||
const { deployer } = await getNamedAccounts(); | ||
const { deployments, getNamedAccounts } = hre | ||
const { deploy } = deployments | ||
const { deployer } = await getNamedAccounts() | ||
|
||
const factory = await deploy("SimpleToken", { | ||
const result = await deploy('SimpleToken', { | ||
from: deployer, | ||
args: [deployer, 10000], | ||
log: true, | ||
skipIfAlreadyDeployed: true, | ||
}); | ||
}) | ||
|
||
await hre.run("verify:verify", { | ||
address: factory.address, | ||
constructorArguments: [deployer], | ||
}); | ||
}; | ||
deployments.log(`Deployed ERC20: ${result.address}, Deployer: ${deployer}, network: ${hre.network.name}`) | ||
} | ||
|
||
export default func; | ||
func.tags = ["SimpleToken"]; | ||
export default func | ||
func.tags = ['SimpleToken'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11155111 |
Large diffs are not rendered by default.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
deployments/sepolia/solcInputs/722aa22bd6f48128013ba90e325b9301.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2018", | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"strict": false, | ||
"esModuleInterop": true, | ||
"typeRoots": ["./node_modules/@types", "./types"], | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["./scripts", "./test"], | ||
"files": ["./hardhat.config.ts"] | ||
} | ||
} |