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 |
#6 in #frozen
102,096 downloads per month
Used in 11 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
~18–32MB
~532K SLoC