4 releases (breaking)
0.5.0 | Sep 26, 2024 |
---|---|
0.4.0 | Jul 18, 2024 |
0.2.0 | Jul 12, 2024 |
0.0.0 | Jun 21, 2024 |
#9 in #frozen
10,717 downloads per month
Used in 10 crates
(3 directly)
2.5MB
41K
SLoC
Release
Polkadot SDK stable2409
lib.rs
:
Assets Freezer Pallet
A pallet capable of freezing fungibles from pallet-assets
. This is an extension of
pallet-assets
, wrapping fungibles::Inspect
.
It implements both
fungibles::freeze::Inspect
and
fungibles::freeze::Mutate
. The complexity
of the operations is O(n)
. where n
is the variant count of RuntimeFreezeReason
.
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 frozen balance for an account on a given asset (seepallet_assets::FrozenBalance
). - An implementation of
fungibles::freeze::Inspect
andfungibles::freeze::Mutate
, allowing other pallets to manage freezes for thepallet-assets
assets.
Dependencies
~17–33MB
~534K SLoC