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

Feature/fractiontoken #159

Merged
merged 7 commits into from
Nov 22, 2024
Merged

Feature/fractiontoken #159

merged 7 commits into from
Nov 22, 2024

Conversation

aowheel
Copy link
Collaborator

@aowheel aowheel commented Oct 24, 2024

関連イシュー

実装内容

  • mintInitialSupply( hatId, account )

    • 名称をmintから変更
    • mintの権限をTop Hat、Parent Hatに限定
    • requireについて
      • accountがroleをもっているか
      • msg.senderが権限を持っているか
      • すでに受け取っていないか
  • mint( hatId, account, amount )

    • requireについて
      • initial supplyがあったかどうか
      • msg.senderがinitial supplyの受け取り手かどうか
  • burn関数

    • burnの権限をTop Hat、Parent Hat、自分自身に限定
  • _hasHatAuthority( hatId ) returns ( bool )

    • hatIdががTop HatまたはParent Hatであるか否かを返す関数
  • テストコードの対応

    • Burn.tsはFractionToken.tsに統合して削除しました

@yu23ki14 yu23ki14 merged commit b990ddf into main Nov 22, 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