| Crates.io | fc-pallet-black-hole |
| lib.rs | fc-pallet-black-hole |
| version | 1.0.0 |
| created_at | 2025-07-05 06:26:26.75581+00 |
| updated_at | 2025-07-05 06:26:26.75581+00 |
| description | A pallet that periodically burns the balance on its account |
| homepage | |
| repository | https://github.com/virto-network/frame-contrib.git |
| max_upload_size | |
| id | 1738787 |
| size | 117,283 |
The Black Hole pallet defines a sink account that receives token transfers and periodically burns its entire balance, removing tokens from circulation. This mechanism can be useful for implementing economic sinks or deflationary behaviors within a runtime.
BurnPeriod blocks.BlackHoleMass.This pallet requires the following types and parameters to be configured in the runtime:
| Type / Constant | Description |
|---|---|
RuntimeEvent |
Event type for this pallet |
WeightInfo |
Weight cost functions |
EventHorizonDispatchOrigin |
Origin authorized to proxy calls as the event horizon |
Balances |
A fungible::Mutate implementation (e.g., native balances) |
BlockNumberProvider |
Source of current block number |
PalletId |
Unique identifier for deriving the event horizon account |
BurnPeriod |
Number of blocks between automatic burns |
| Item | Description |
|---|---|
LastBurn |
Block number of the last burn event |
BlackHoleMass |
Total amount of tokens burned by this pallet |
dispatch_as_event_horizonfn dispatch_as_event_horizon(origin, call)
Allows an authorized origin to dispatch a call on behalf of the event horizon account. This enables tightly controlled usage of the burn account in more complex workflows.
on_idle, and will attempt to burn the balance in the event horizon account whenever sufficient
weight is available.EventHorizonDispatchOrigin can perform calls as the event horizon, preventing abuse.runtime-benchmarks.