Skip to content

Add ERC-20 token + escrow assignment (wk4)#6

Open
Jay989810 wants to merge 1 commit into
BlockheaderWeb3-Community:mainfrom
Jay989810:tokens-wk4-erc20-escrow-jay
Open

Add ERC-20 token + escrow assignment (wk4)#6
Jay989810 wants to merge 1 commit into
BlockheaderWeb3-Community:mainfrom
Jay989810:tokens-wk4-erc20-escrow-jay

Conversation

@Jay989810

Copy link
Copy Markdown

Implements the week-4 assignment in Tokens-wk4/Erc20-token/Assignments:

  • src/JayToken.sol — a standard ERC-20 (name, symbol, decimals, transfer, approve, transferFrom) with custom errors and zero-address checks. Mints the initial supply to the deployer.

  • src/JayEscrow.sol — a buyer locks tokens for a seller until a deadline. The buyer can release the funds to the seller, or refund themselves once the deadline passes. Each escrow has its own ID, so multiple users can use the same contract.

  • Deployment scripts for both contracts.

Also removed the leftover Counter.s.sol, which imported a Counter.sol that doesn’t exist and prevented the folder from building.

Ran forge fmt and forge build — both clean.

Implement JayToken (standard ERC-20 with custom errors) and JayEscrow
(single-use buyer/seller escrow via approve + transferFrom) with their
deploy scripts. Remove the unused Counter.s.sol scaffold so the folder
builds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jay989810
Jay989810 marked this pull request as draft July 16, 2026 07:27
@Jay989810 Jay989810 closed this Jul 16, 2026
@Jay989810 Jay989810 reopened this Jul 16, 2026
@Jay989810
Jay989810 marked this pull request as ready for review July 16, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant