feat(week-04): complete week-04 assignment#46
Open
sweatbuckets wants to merge 2 commits intoBay-17th:mainfrom
Open
feat(week-04): complete week-04 assignment#46sweatbuckets wants to merge 2 commits intoBay-17th:mainfrom
sweatbuckets wants to merge 2 commits intoBay-17th:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
과제 제출 정보
주차: Week <04>
과제 유형:
구현 내용
배운 점 (What I Learned)
이번 주에 배운 것 (2-3가지)
어려웠던 점과 해결 방법
어려웠던 점:
트랜잭션 히스토리 표시 기능을 위해 컨트랙트의 이벤트를 실시간으로 조회하는 코드 구현이 어려웠다.
해결 방법:
codex를 활용하여 구현
컨트랙트의 이벤트 시그니처를 ABI에 정의한 후, usePublicClient를 통해 가져온 viem Public Client의 watchContractEvent 메서드를 사용하여 해당 이벤트를 구독했다. RPC로부터 수신한 로그 데이터는 정의한 ABI를 기반으로 자동 디코딩되며 이 데이터를 활용하여 트랜잭션 히스토리를 상태로 관리하고 화면에 반영하였다.
질문 사항
체크리스트
테스트
forge build성공forge test모든 테스트 통과제출 규칙
{username}/week-{XX}형식.env파일이 커밋에 포함되지 않음