mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
[contracts] Add ext_tombstone_deposit (#4722)
* [contracts] add ext_tombstone_deposit * [contracts] update tombstone_deposit docs
This commit is contained in:
committed by
Sergei Pepyakin
parent
81004eabfd
commit
389b8f1698
@@ -161,6 +161,9 @@ pub trait Ext {
|
||||
/// Returns the minimum balance that is required for creating an account.
|
||||
fn minimum_balance(&self) -> BalanceOf<Self::T>;
|
||||
|
||||
/// Returns the deposit required to create a tombstone upon contract eviction.
|
||||
fn tombstone_deposit(&self) -> BalanceOf<Self::T>;
|
||||
|
||||
/// Returns a random number for the current block with the given subject.
|
||||
fn random(&self, subject: &[u8]) -> SeedOf<Self::T>;
|
||||
|
||||
@@ -779,6 +782,10 @@ where
|
||||
self.ctx.config.existential_deposit
|
||||
}
|
||||
|
||||
fn tombstone_deposit(&self) -> BalanceOf<T> {
|
||||
self.ctx.config.tombstone_deposit
|
||||
}
|
||||
|
||||
fn deposit_event(&mut self, topics: Vec<T::Hash>, data: Vec<u8>) {
|
||||
self.ctx.deferred.push(DeferredAction::DepositEvent {
|
||||
topics,
|
||||
|
||||
Reference in New Issue
Block a user