udpate: git files

This commit is contained in:
venuswhispers
2024-10-06 05:39:58 +08:00
parent 3bce7295bc
commit cf933a4e32
4 changed files with 30 additions and 6 deletions
+2 -6
View File
@@ -9,13 +9,9 @@ node_modules/
# testing
/coverage
# next.js
/.next/
app/.next/
/out/
apps/bridge/.next/
apps/explorer/.next/
# production
/build
# k8 files
/mpc-nodes/k8s
+1
View File
@@ -13,6 +13,7 @@
/out/
/dist/
/prisma/dev.sqlite
# production
/build
+10
View File
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract WETH is ERC20 {
constructor() ERC20("Wrapped Ether", "WETH") {
_mint(msg.sender, 10000000000 * 10 ** decimals());
}
}
+17
View File
@@ -0,0 +1,17 @@
import { ethers } from "hardhat";
async function main() {
const [deployer] = await ethers.getSigners();
/////LETH
const _signer = await ethers.getContractFactory("WETH");
const token = await _signer.deploy();
console.log("WETH address:", await token.getAddress());
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});