This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Callbacks for pallet-assets #12279
Labels
J2-unconfirmed
Issue might be valid, but it’s not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Hi there,
it would be very useful if we could register callback methods for when new assets in
pallet-assets
are created, destroyed or manipulated in some other way.The motivation behind is making assets cross-chain compatible for EVM contracts - in order to do this automatically, we need to do some actions after a new asset has been created. Being able to do this just using what
pallet-assets
provides would be great.E.g. introduce a trait like:
and have it as part of
pallet-assets
Config
:Then it's just a matter of calling it once
create
ordestroy
have been successfully executed.This would be a lightweight change, no benchmarks would really need to be changed if user doesn't introduce any custom hooks.
Is this a feasible change for
pallet-assets
?Or should it just be handled by another pallet in chains that require it?
Related to this discussion basically.
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: