Files
crypto_clash/crypto_clash_contract/hardhat.config.ts
averel10 44bc814114 feat: initialize crypto_clash_contract with TypeScript, Hardhat, and deployment script
- Added package.json with scripts for compiling, deploying, and testing the contract.
- Created deploy.ts script for deploying the HelloWorld contract and saving the contract address to config.json.
- Configured TypeScript with tsconfig.json for Node.js environment and ES module support.
2025-11-11 21:01:16 +01:00

19 lines
350 B
TypeScript

import { defineConfig } from "hardhat/config";
import dotenv from "dotenv";
dotenv.config();
const { API_URL = "", WALLET_PRIVATE_KEY = "" } = process.env;
export default defineConfig({
solidity: {
version: "0.8.28",
},
networks: {
testnet: {
url: API_URL,
accounts: [WALLET_PRIVATE_KEY],
type: "http"
}
}
});