Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/138 #150

Merged
merged 7 commits into from
Oct 19, 2024
Merged

Issue/138 #150

merged 7 commits into from
Oct 19, 2024

Conversation

yawn-c111
Copy link
Collaborator

@yawn-c111 yawn-c111 commented Oct 8, 2024

関連イシュー

タスク

  • 計算式の修正
    • woreTime以外
    • woreTime
  • コントラクトの event への引数の追加
  • テスト
    • IntegrationTest
      • woreTime以外
    • SplitsCreator の修正
      • woreTime含む

@@ -23,6 +23,7 @@ contract BigBang is ERC2771Context {
event Executed(
address indexed owner,
uint256 indexed topHatId,
uint256 indexed hatterHatId,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hats protocol の hatId の取得が大変そうだったため、 hatterHatIdtopHatId とともに event で emit してみましたが、大丈夫でしょうか?

Comment on lines +15 to +17
address[] shareHolders,
uint256[] allocations,
uint256 totalAllocation
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

役割や着用時間の重み計算後の値は、後で取得したり計算するのが大変そうだったため、event に追加してみたのですが、大丈夫でしょうか?

@yawn-c111
Copy link
Collaborator Author

yawn-c111 commented Oct 8, 2024

SplitCreator の HatsTimeFrameModule 経由で mintHat して woreTime を使用するテストが、今回の変更により修正が必要になったため、この部分のテストコードを修正することで、 woreTime 込みのテスト実装のタスクを完成させました。

@yawn-c111 yawn-c111 changed the title WIP: Issue/138 Issue/138 Oct 8, 2024
@yu23ki14 yu23ki14 merged commit 53556a6 into main Oct 19, 2024
1 check passed
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.

2 participants