Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.41 KB

File metadata and controls

70 lines (43 loc) · 1.41 KB

Charitable-Donation-Contract-Core Smart Contract

The charitable donation projection estimates future contributions using past data and giving trends. It guides budgeting, goal-setting, and resource planning for greater community impact. This forecast helps organizations stay transparent, plan strategically, and maximize their philanthropic efforts effectively over time.


⚙️ Setup Instructions

1. Clone the Repository

git clone https://github.com/daksh-stack/Charitable-Donation-Contract-Core.git
cd Charitable-Donation-Contract-Core

2. Install Dependencies

npm install

3. Configure Environment Variables

Create a .env file in the project root:

PRIVATEKEY="your_core_wallet_private_key"
CORE_TEST2_SCAN_KEY="your_testnet2_explorer_api_key"

⚠️ Important: Never share your private key or commit the .env file to version control.


🛠 Hardhat Commands

Compile Contracts

npx hardhat compile

Run Tests

npx hardhat test

Deploy Contract

Use a deployment script:

npx hardhat run scripts/deploy.js --network core_testnet2

🔍 Contract Verification

You can verify contracts using Core block explorers:

npx hardhat verify --network core_testnet2 <deployed_contract_address> <constructor_args_if_any>

API keys for verification must be included in .env as shown above.