Assets Pallet #104
Victor-Salomon
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Asset Pallet
This document specifies the design choices took for the Assets pallet implementation in the SDK. This pallet will not be fully covered in the SDK, and only a few specific features will be implemented depending of our needs.
Feel free to comment on certain misunderstandings and new suggestions are warm welcomed.
Sections:
Events
In order to make the returned event datas usefull, we provide both the native format and a friendly ready to use format design format :
We need 1 event triggered by the chain from the Assets module.
SDK events
cf : https://docs.rs/pallet-assets/latest/pallet_assets/pallet/enum.Event.html#variant.Transferred
Additional events will be added to the EventType enum in src > events.ts in the SDK:
Extrinsics
1 extrinsics will be implemented from the Assets pallet.
Each helperTx will be duplicated by another helper version with 2 additional parameters: the keyring that will be used to sign and submit the transaction, and a waitUntil callback parameter, to define at which point we want to get the results of the transaction execution.
Storage
cf : https://docs.rs/pallet-assets/latest/pallet_assets/pallet/struct.Pallet.html#method.balance
1 storage getters will be implemented for the Assets pallet.
Beta Was this translation helpful? Give feedback.
All reactions