From 468ef8aaffed1e7d5aa5d7ec5c531456f863ef85 Mon Sep 17 00:00:00 2001 From: Pavlo Botnar Date: Thu, 25 Jul 2024 17:08:41 +0300 Subject: [PATCH] refactor/feat:(iota-indexer, iota-types, iota-json-rpc-types): remove storage_fund_reinvestment mentions from code base (#996) * refactor/feat:(iota-indexer, iota-types, iota-json-rpc-types): remove storage_fund_reinvestment mentions from code base (Rust, Move parts) add new migration to remove reinvestment column --- .../docs/iota-system/iota_system_state_inner.mdx | 9 --------- .../iota-system/sources/iota_system_state_inner.move | 3 --- 2 files changed, 12 deletions(-) diff --git a/crates/iota-framework/docs/iota-system/iota_system_state_inner.mdx b/crates/iota-framework/docs/iota-system/iota_system_state_inner.mdx index 431f53f66e7..232472f96a8 100644 --- a/crates/iota-framework/docs/iota-system/iota_system_state_inner.mdx +++ b/crates/iota-framework/docs/iota-system/iota_system_state_inner.mdx @@ -635,13 +635,6 @@ total_stake: u64
-
-
- -storage_fund_reinvestment: u64 -
-
-
@@ -2389,8 +2382,6 @@ or smaller than the computation reward. reference_gas_price: self.reference_gas_price, total_stake: new_total_stake, storage_charge: storage_charge_value, - // TODO: remove(obsolete) - storage_fund_reinvestment: 0, storage_rebate: storage_rebate_amount, storage_fund_balance: self.storage_fund.total_balance(), // TODO: remove(obsolete) diff --git a/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move b/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move index 4cbaec1a951..23eb13034d5 100644 --- a/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move +++ b/crates/iota-framework/packages/iota-system/sources/iota_system_state_inner.move @@ -207,7 +207,6 @@ module iota_system::iota_system_state_inner { protocol_version: u64, reference_gas_price: u64, total_stake: u64, - storage_fund_reinvestment: u64, storage_charge: u64, storage_rebate: u64, storage_fund_balance: u64, @@ -932,8 +931,6 @@ module iota_system::iota_system_state_inner { reference_gas_price: self.reference_gas_price, total_stake: new_total_stake, storage_charge: storage_charge_value, - // TODO: remove(obsolete) - storage_fund_reinvestment: 0, storage_rebate: storage_rebate_amount, storage_fund_balance: self.storage_fund.total_balance(), // TODO: remove(obsolete)