mirror of
https://github.com/averel10/crypto_clash.git
synced 2026-03-12 19:08:11 +01:00
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.
This commit is contained in:
18
crypto_clash_contract/hardhat.config.ts
Normal file
18
crypto_clash_contract/hardhat.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user