-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add atk documentation #191
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
Conversation
Reviewer's Guide by SourceryThis pull request adds documentation for several asset tokenization contracts: Stablecoin, Bond, Fund, CryptoCurrency, and Equity. Each contract's documentation includes an introduction, benefits of using digital tokens, contract features, and enterprise applications. Class diagram for Stablecoin contractclassDiagram
class Stablecoin {
-collateral: ERC20
-supplyManager: Role
-userManager: Role
-administrator: Role
+mint(address to, uint256 amount)
+pause()
+unpause()
+blockUser(address user)
+unblockUser(address user)
+supportsInterface(interfaceId: bytes4): bool
}
note for Stablecoin "Fully collateralized issuance\nRobust access and role management\nSecurity and regulatory compliance\nCustodial and meta-transaction support\nComprehensive error handling and event logging"
Class diagram for Bond contractclassDiagram
class Bond {
-faceValue: uint256
-underlyingAsset: ERC20
-maturityDate: uint256
-supplyManager: Role
-userManager: Role
-adminRole: Role
+mint(address to, uint256 amount)
+redeem(uint256 amount)
+distributeYield()
+pause()
+unpause()
+blockUser(address user)
+unblockUser(address user)
}
note for Bond "Collateralized bond issuance\nMaturity and redemption\nYield distribution\nComprehensive access control\nSecurity and regulatory compliance\nMeta-transaction support\nTransparent yield distribution and auditing"
Class diagram for Fund contractclassDiagram
class Fund {
-managementFee: uint256
-fundClass: string
-fundCategory: string
-supplyManager: Role
-userManager: Role
-administrator: Role
+collectManagementFees()
+pause()
+unpause()
+blockUser(address user)
+unblockUser(address user)
+getVotingPower(address account): uint256
}
note for Fund "Automated fee management\nVoting and governance\nRole-based access control\nSecurity and compliance\nMeta-transaction support\nCustomizable fund attributes"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @roderik - I've reviewed your changes - here's some feedback:
Overall Comments:
- The descriptions are good, but consider adding diagrams or visual aids to enhance understanding.
- It would be helpful to include a 'Getting Started' section in each document to guide new users.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Review instructions: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Adds documentation for the Asset Tokenization Kit contracts, including Stablecoin, Bond, Fund, Cryptocurrency, and Equity.
Documentation: