| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Simplify Asset Transfer and Mint Functions (#5891) ## Description There are currently multiple functions for the same functionality: Transfer: - `transfer()` - `force_transfer_to_contract()` - `transfer_to_address()` Mint: - `mint()` - `mint_to()` - `mint_to_contract()` - `mint_to_address()` This be reduced to just `transfer()`, `mint()`, `mint_to()`. Specific functions for separately minting and transferring to contracts and addresses are legacy code left over from before the `Identity` type was introduced and now only adds additional complexity. ## Changes: - `force_transfer_to_contract()` is now private - `transfer_to_address()` is now private - `mint_to_contract()` removed - `mint_to_address()` removed - Removed newlines in inline docs for better `forc doc` compatibility - Updated `burn()` inline docs ## Breaking Changes: - `force_transfer_to_contract()` is now private - `transfer_to_address()` is now private - `mint_to_contract()` removed - `mint_to_address()` removed ## Closes - Closes #5773 ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com> | 2 年前 | |
Merge std and core libraries (#6729) ## Description Merges the two libraries. They were initially separate to separate the core logic and fuel vm specific functionality, but that separation is no longer maintained so having a merged library is better. Closes #6708 ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: Sophie <47993817+sdankel@users.noreply.github.com> Co-authored-by: Igor Rončević <ironcev@hotmail.com> | 1 年前 |