Skip to content

Commit a386e7b

Browse files
bitzoicK1-R1
andauthored
Expand Native Asset Docs (#5808)
## Description - Additional docs covering Native Assets including: - EVM vs FuelVM Assets - What `AssetId` is - How to use `AssetId` - What `SubId` is - What the default asset is - How to mint coins - How to burn coins - How to transfer coins - How to check contract balances - How to check transaction values - How to receive assets in contracts - ERC-20 equivalent example - ERC-1155 equivalent example - The Liquidity Pool example has been moved to its own section in examples These changes were originally included in #5806 but have been pulled out into a separate PR ## 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). - [x] 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>
1 parent 5e45116 commit a386e7b

File tree

5 files changed

+521
-32
lines changed

5 files changed

+521
-32
lines changed

docs/book/spell-check-custom-words.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,5 @@ arity
187187
tuple's
188188
unary
189189
SRC
190-
DEX
190+
DEX
191+
SubId

docs/book/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [Counter](./examples/counter.md)
1212
- [`FizzBuzz`](./examples/fizzbuzz.md)
1313
- [Wallet Smart Contract](./examples/wallet_smart_contract.md)
14+
- [Liquidity Pool](./examples/liquidity_pool.md)
1415
- [Program Types](./sway-program-types/index.md)
1516
- [Contracts](./sway-program-types/smart_contracts.md)
1617
- [Libraries](./sway-program-types/libraries.md)

0 commit comments

Comments
 (0)