Module iota_system::storage_fund
- Struct
StorageFundV1 - Function
new - Function
advance_epoch - Function
total_object_storage_rebates - Function
total_balance
use iota::address;
use iota::bag;
use iota::balance;
use iota::coin;
use iota::config;
use iota::deny_list;
use iota::dynamic_field;
use iota::dynamic_object_field;
use iota::event;
use iota::hex;
use iota::iota;
use iota::object;
use iota::transfer;
use iota::tx_context;
use iota::types;
use iota::url;
use std::address;
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::type_name;
use std::vector;
Struct StorageFundV1
Struct representing the storage fund, containing two Balances:
total_object_storage_rebateshas the invariant that it's the sum ofstorage_rebateof all objects currently stored on-chain. To maintain this invariant, the only inflow of this balance is storage charges collected from transactions, and the only outflow is storage rebates of transactions, including both the portion refunded to the transaction senders as well as the non-refundable portion taken out and put intonon_refundable_balance.non_refundable_balancecontains any remaining inflow of the storage fund that should not be taken out of the fund.
public struct StorageFundV1 has store
Fields
total_object_storage_rebates: iota::balance::Balance<iota::iota::IOTA>non_refundable_balance: iota::balance::Balance<iota::iota::IOTA>