Expand description
Bundle storage fund
Structs§
Enums§
- Account
Type - The type of system account being created.
- Error
- Bundle storage fund specific errors
Constants§
- STORAGE_
FEE_ RESERVE - The proportion of staking fund reserved for the bundle storage fee
Functions§
- charge_
bundle_ storage_ fee - Charge the bundle storage fee from the operator’s bundle storage fund
- deposit_
reserve_ for_ storage_ fund - Split the new deposit into 2 parts: the staking deposit and the the storage fee deposit, add the storage fee deposit to the bundle storage fund.
- refund_
storage_ fee - Refund the paid bundle storage fee of a particular domain block back to the operator, the amount to refund to a particular operator is determined by the total storage fee collected from the domain user and the percentage of bundle storage that the operator have submitted for the domain block.
- storage_
fund_ account - Return the bundle storage fund account of the given operator.
- storage_
fund_ redeem_ price - Return the bundle storage fund redeem price
- total_
balance - Return the total balance of the bundle storage fund the given
operator_id
- transfer_
all_ to_ treasury - Transfer all of the balance of the bundle storage fund to the treasury
- withdraw_
and_ hold - Transfer the given
withdraw_amount
of balance from the bundle storage fund to the givendest_account
and hold on thedest_account
- withdraw_
to - Transfer the given
withdraw_amount
of balance from the bundle storage fund to the givendest_account