This repository provides a smart contract framework that enables users to support creators by "buying a coffee"—a metaphorical transaction where users send Ethereum (ETH) along with a personal message. The project leverages Solidity and Hardhat for smart contract development and testing, ensuring compatibility with Core Blockchain networks.
git clone https://github.com/eviiileyeee/Subscription-System-Core.git
cd ProjectNamenpm installCreate 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.envfile to version control.
npx hardhat compilenpx hardhat testUse a deployment script:
npx hardhat run scripts/deploy.js --network core_testnet2You 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.