-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[fungible_asset] a layered design #7183
Merged
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4f55b75
[fungible_asset] a layered design
lightmark 4c883cf
[fungible_asset] add an example
lightmark 63af328
[fungible asset] improve code usability
lightmark d038bf5
fix nits
lightmark 9720468
rename Caps to GoveranceCapabilities
lightmark 0466dfd
fix inline
lightmark 27b920b
add comments
lightmark c2e4dce
fix nits
lightmark 6db04c1
fix lints
lightmark 5ebf4af
[fa] move to framework and refactor
lightmark 339addb
fix comments and examples
lightmark a86c2f6
fix autogen docs
lightmark bc32241
fix tests
lightmark 7645419
refactor
lightmark 06fdb91
regen docs
lightmark 58b7289
fix naming
lightmark 0663aa3
fix coin example
lightmark de50d43
rename supply
lightmark 06bce1a
Merge branch 'main' of github.com:aptos-labs/aptos-core into lightmar…
movekevin 9a3f3fc
Fix lints
movekevin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "FungibleAsset" | ||
version = "0.0.0" | ||
|
||
[addresses] | ||
aptos_framework = "0x1" | ||
fungible_asset = "_" | ||
|
||
[dependencies] | ||
AptosFramework = { local = "../../framework/aptos-framework" } |
Oops, something went wrong.
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.
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.
Please ignore for now but I need this for the creation of
FungibleAssetIndex
andFungibleAsset
object with deposit from nowhere.I suppose we'll merge this package into AptosFramework sooner or later so it's okay to use this function.
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.
I'm not sure why we need to share the signer... if we jump to this, we're missing a permissions model.
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.
I don't think we are missing the permission model. I don't mean this is the final change. It is just a hack for me to test. The way we jump to this is:
public(friend)
I need this to create a FA object from nowhere when getting money the first time. It's for unilateral transfer.
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.
In general, to create a new object we need a signer. When we're sending coins to someone for the first time and they don't have the object to store them, there's not a perfect signer to use (using sender's signer can be strange)