pub struct Validator {
pub handle: ObjectStubHandle,
}
Fields§
§handle: ObjectStubHandle
Implementations§
source§impl Validator
impl Validator
pub fn register(&mut self)
pub fn unregister(&mut self)
pub fn stake_as_owner(&mut self, stake: Bucket) -> Bucket
pub fn stake(&mut self, stake: Bucket) -> Bucket
pub fn unstake(&mut self, stake_unit_bucket: Bucket) -> Bucket
pub fn claim_xrd(&mut self, bucket: Bucket) -> Bucket
pub fn update_key(&mut self, key: Secp256k1PublicKey)
pub fn update_fee(&mut self, new_fee_factor: Decimal)
pub fn update_accept_delegated_stake(&mut self, accept_delegated_stake: bool)
pub fn accepts_delegated_stake(&mut self) -> bool
pub fn total_stake_xrd_amount(&self) -> Decimal
pub fn total_stake_unit_supply(&self) -> Decimal
pub fn get_redemption_value(&self, amount_of_stake_units: Decimal) -> Decimal
pub fn signal_protocol_update_readiness(&mut self, vote: String)
pub fn get_protocol_update_readiness(&mut self) -> Option<String>
pub fn lock_owner_stake_units(&mut self, stake_unit_bucket: Bucket)
pub fn start_unlock_owner_stake_units( &mut self, requested_stake_unit_amount: Decimal )
pub fn finish_unlock_owner_stake_units(&mut self) -> Bucket
pub fn apply_emission( &mut self, xrd_bucket: Bucket, epoch: Epoch, proposals_made: u64, proposals_missed: u64 )
pub fn apply_reward(&mut self, xrd_bucket: Bucket, epoch: Epoch)
Trait Implementations§
source§impl HasTypeInfo for Validator
impl HasTypeInfo for Validator
const PACKAGE_ADDRESS: Option<PackageAddress> = _
const BLUEPRINT_NAME: &'static str = "Validator"
const OWNED_TYPE_NAME: &'static str = "OwnedValidator"
const GLOBAL_TYPE_NAME: &'static str = "GlobalValidator"
fn blueprint_id() -> BlueprintId
source§impl ObjectStub for Validator
impl ObjectStub for Validator
type AddressType = ComponentAddress
fn new(handle: ObjectStubHandle) -> Self
fn handle(&self) -> &ObjectStubHandle
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool
fn blueprint_id(&self) -> BlueprintId
source§impl PartialEq for Validator
impl PartialEq for Validator
impl Copy for Validator
impl Eq for Validator
impl StructuralPartialEq for Validator
Auto Trait Implementations§
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more