From 54a254f873bbdd6f1d928d085616bb9b159e8b27 Mon Sep 17 00:00:00 2001 From: Kevin Heavey Date: Tue, 3 Dec 2024 22:44:19 +0400 Subject: [PATCH] move incinerator ID to sdk-ids (#3828) --- sdk/program/src/incinerator.rs | 8 ++------ sdk/sdk-ids/src/lib.rs | 8 ++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sdk/program/src/incinerator.rs b/sdk/program/src/incinerator.rs index 71ee3e61c3c784..82b54e6bf2d42f 100644 --- a/sdk/program/src/incinerator.rs +++ b/sdk/program/src/incinerator.rs @@ -1,6 +1,2 @@ -//! A designated address for burning lamports. -//! -//! Lamports credited to this address will be removed from the total supply -//! (burned) at the end of the current block. - -crate::declare_id!("1nc1nerator11111111111111111111111111111111"); +#[deprecated(since = "2.2.0", note = "Use `solana_sdk_ids::incinerator` instead")] +pub use solana_sdk_ids::incinerator::{check_id, id, ID}; diff --git a/sdk/sdk-ids/src/lib.rs b/sdk/sdk-ids/src/lib.rs index 28241d637b6dd0..708c51f4f6e150 100644 --- a/sdk/sdk-ids/src/lib.rs +++ b/sdk/sdk-ids/src/lib.rs @@ -32,6 +32,14 @@ pub mod feature { solana_pubkey::declare_id!("Feature111111111111111111111111111111111111"); } +/// A designated address for burning lamports. +/// +/// Lamports credited to this address will be removed from the total supply +/// (burned) at the end of the current block. +pub mod incinerator { + solana_pubkey::declare_id!("1nc1nerator11111111111111111111111111111111"); +} + pub mod loader_v4 { solana_pubkey::declare_id!("LoaderV411111111111111111111111111111111111"); }