2 unstable releases
0.2.1 | Apr 3, 2025 |
---|---|
0.0.0 | Feb 17, 2025 |
#7 in #holder
165 downloads per month
Used in polkadot-sdk
3MB
47K
SLoC
Assets Holder Pallet
A pallet capable of holding fungibles from pallet-assets
. This is an extension of
pallet-assets
, wrapping fungibles::Inspect
.
It implements both
fungibles::hold::Inspect
,
fungibles::hold::Mutate
, and especially
fungibles::hold::Unbalanced
. The
complexity of the operations is O(1)
.
Pallet API
See the pallet
module for more information about the interfaces this pallet exposes,
including its configuration trait, dispatchables, storage items, events and errors.
Overview
This pallet provides the following functionality:
- Pallet hooks allowing
pallet-assets
to know the balance on hold for an account on a given asset (seepallet_assets::BalanceOnHold
). - An implementation of
fungibles::hold::Inspect
,fungibles::hold::Mutate
andfungibles::hold::Unbalanced
, allowing other pallets to manage holds for thepallet-assets
assets.
Dependencies
~20–35MB
~588K SLoC