This Hardhat project demonstrates the smart contracts behind 2Base, designed to help onboard Web2 creators into the Base ecosystem. It includes contract testing and deployment using the hardhat framework and deployed contract on the Base Sepolia testnet.
Make sure to have the following installed:
- Node.js (v16.x or above)
- npm or yarn or pnpm
- Hardhat
Clone the repository:
git clone https://github.com/yourusername/2base-contracts.git
cd 2base-contracts
Install dependencies:
npm install
# or
yarn install
Here are steps and Hardhat commands to get going:
Compile contracts:
npx hardhat compile
Run a local network:
npx hardhat node
Deploy the factory contract:
npx hardhat run scripts/deploy.js --network sepolia
Verify contracts (optional):
npx hardhat verify --network sepolia
Factory gets deployed on 0xe3f967438614f51D12a83db471b052eE928d9518
2Base Factory
0xF5CD700Cb63696CAb29987AC22fd431eB8A15886