This repository hosts two fundamental Solidity contracts, creating a straightforward emulation of Twitter. The project consists of distinct contracts for Twitter-like functionality and user profiles.
To deploy on Sepolia using Forge, execute the following command:
forge script script/DeployTwitter.s.sol:DeployTwitter --rpc-url $(SEPOLIA_RPC_URL) --private-key $(PRIVATE_KEY) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvvv
Replace $(SEPOLIA_RPC_URL)
, $(PRIVATE_KEY)
, and $(ETHERSCAN_API_KEY)
with your specific values.
To deploy on Sepolia using Hardhat, run the following command:
npx hardhat run script/DeployTwitter.js --network sepolia
To deploy on zkSync using Hardhat, follow these steps:
- First, create an
artifacts-zk
folder using:
npx hardhat run deploy/deploy.ts --network zksync
- Then, deploy using:
yarn hardhat deploy-zksync --script deploy.ts
The Twitter contract offers Twitter-like functionality, enabling users to create posts and interact with each other.
The Profiles contract manages user profiles, providing a straightforward system for users to set and update their profiles.
To set up the development environment, follow these steps:
- Install dependencies:
yarn install
- Compile contracts:
npx hardhat compile
- Test contracts:
npx hardhat test
This project is licensed under the MIT License. See the LICENSE file for details.