pub struct StakeTableV2Instance<P, N = Ethereum> {
address: Address,
provider: P,
_network: PhantomData<N>,
}Expand description
A StakeTableV2 instance.
Contains type-safe methods for interacting with an on-chain instance of the
StakeTableV2 contract located at a given address, using a given
provider P.
If the contract bytecode is available (see the sol!
documentation on how to provide it), the deploy and deploy_builder methods can
be used to deploy a new instance of the contract.
See the module-level documentation for all the available methods.
Fields§
§address: Address§provider: P§_network: PhantomData<N>Implementations§
Source§impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Instantiation and getters/setters.
impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, provider: P) -> Self
pub const fn new(address: Address, provider: P) -> Self
Creates a new wrapper around an on-chain StakeTableV2 contract instance.
See the wrapper’s documentation for more details.
Sourcepub async fn deploy(provider: P) -> Result<StakeTableV2Instance<P, N>>
pub async fn deploy(provider: P) -> Result<StakeTableV2Instance<P, N>>
Deploys this contract using the given provider and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use deploy_builder instead.
Sourcepub fn deploy_builder(provider: P) -> RawCallBuilder<P, N>
pub fn deploy_builder(provider: P) -> RawCallBuilder<P, N>
Creates a RawCallBuilder for deploying this contract using the given provider
and constructor arguments, if any.
This is a simple wrapper around creating a RawCallBuilder with the data set to
the bytecode concatenated with the constructor’s ABI-encoded arguments.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<P: Clone, N> StakeTableV2Instance<&P, N>
impl<P: Clone, N> StakeTableV2Instance<&P, N>
Sourcepub fn with_cloned_provider(self) -> StakeTableV2Instance<P, N>
pub fn with_cloned_provider(self) -> StakeTableV2Instance<P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Function calls.
impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
Creates a new call builder using this contract instance’s provider and address.
Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.
Sourcepub fn DEFAULT_ADMIN_ROLE(
&self,
) -> SolCallBuilder<&P, DEFAULT_ADMIN_ROLECall, N>
pub fn DEFAULT_ADMIN_ROLE( &self, ) -> SolCallBuilder<&P, DEFAULT_ADMIN_ROLECall, N>
Creates a new call builder for the [DEFAULT_ADMIN_ROLE] function.
Sourcepub fn MAX_COMMISSION_BPS(
&self,
) -> SolCallBuilder<&P, MAX_COMMISSION_BPSCall, N>
pub fn MAX_COMMISSION_BPS( &self, ) -> SolCallBuilder<&P, MAX_COMMISSION_BPSCall, N>
Creates a new call builder for the [MAX_COMMISSION_BPS] function.
Sourcepub fn MAX_EXIT_ESCROW_PERIOD(
&self,
) -> SolCallBuilder<&P, MAX_EXIT_ESCROW_PERIODCall, N>
pub fn MAX_EXIT_ESCROW_PERIOD( &self, ) -> SolCallBuilder<&P, MAX_EXIT_ESCROW_PERIODCall, N>
Creates a new call builder for the [MAX_EXIT_ESCROW_PERIOD] function.
Sourcepub fn MAX_METADATA_URI_LENGTH(
&self,
) -> SolCallBuilder<&P, MAX_METADATA_URI_LENGTHCall, N>
pub fn MAX_METADATA_URI_LENGTH( &self, ) -> SolCallBuilder<&P, MAX_METADATA_URI_LENGTHCall, N>
Creates a new call builder for the [MAX_METADATA_URI_LENGTH] function.
Sourcepub fn MIN_EXIT_ESCROW_PERIOD(
&self,
) -> SolCallBuilder<&P, MIN_EXIT_ESCROW_PERIODCall, N>
pub fn MIN_EXIT_ESCROW_PERIOD( &self, ) -> SolCallBuilder<&P, MIN_EXIT_ESCROW_PERIODCall, N>
Creates a new call builder for the [MIN_EXIT_ESCROW_PERIOD] function.
Sourcepub fn PAUSER_ROLE(&self) -> SolCallBuilder<&P, PAUSER_ROLECall, N>
pub fn PAUSER_ROLE(&self) -> SolCallBuilder<&P, PAUSER_ROLECall, N>
Creates a new call builder for the [PAUSER_ROLE] function.
Sourcepub fn UPGRADE_INTERFACE_VERSION(
&self,
) -> SolCallBuilder<&P, UPGRADE_INTERFACE_VERSIONCall, N>
pub fn UPGRADE_INTERFACE_VERSION( &self, ) -> SolCallBuilder<&P, UPGRADE_INTERFACE_VERSIONCall, N>
Creates a new call builder for the [UPGRADE_INTERFACE_VERSION] function.
Sourcepub fn _hashBlsKey(
&self,
blsVK: <G2Point as SolType>::RustType,
) -> SolCallBuilder<&P, _hashBlsKeyCall, N>
pub fn _hashBlsKey( &self, blsVK: <G2Point as SolType>::RustType, ) -> SolCallBuilder<&P, _hashBlsKeyCall, N>
Creates a new call builder for the [_hashBlsKey] function.
Sourcepub fn activeStake(&self) -> SolCallBuilder<&P, activeStakeCall, N>
pub fn activeStake(&self) -> SolCallBuilder<&P, activeStakeCall, N>
Creates a new call builder for the [activeStake] function.
Sourcepub fn blsKeys(
&self,
blsKeyHash: FixedBytes<32>,
) -> SolCallBuilder<&P, blsKeysCall, N>
pub fn blsKeys( &self, blsKeyHash: FixedBytes<32>, ) -> SolCallBuilder<&P, blsKeysCall, N>
Creates a new call builder for the [blsKeys] function.
Sourcepub fn claimValidatorExit(
&self,
validator: Address,
) -> SolCallBuilder<&P, claimValidatorExitCall, N>
pub fn claimValidatorExit( &self, validator: Address, ) -> SolCallBuilder<&P, claimValidatorExitCall, N>
Creates a new call builder for the [claimValidatorExit] function.
Sourcepub fn claimWithdrawal(
&self,
validator: Address,
) -> SolCallBuilder<&P, claimWithdrawalCall, N>
pub fn claimWithdrawal( &self, validator: Address, ) -> SolCallBuilder<&P, claimWithdrawalCall, N>
Creates a new call builder for the [claimWithdrawal] function.
Sourcepub fn commissionTracking(
&self,
validator: Address,
) -> SolCallBuilder<&P, commissionTrackingCall, N>
pub fn commissionTracking( &self, validator: Address, ) -> SolCallBuilder<&P, commissionTrackingCall, N>
Creates a new call builder for the [commissionTracking] function.
Sourcepub fn delegate(
&self,
validator: Address,
amount: U256,
) -> SolCallBuilder<&P, delegateCall, N>
pub fn delegate( &self, validator: Address, amount: U256, ) -> SolCallBuilder<&P, delegateCall, N>
Creates a new call builder for the [delegate] function.
Sourcepub fn delegations(
&self,
validator: Address,
delegator: Address,
) -> SolCallBuilder<&P, delegationsCall, N>
pub fn delegations( &self, validator: Address, delegator: Address, ) -> SolCallBuilder<&P, delegationsCall, N>
Creates a new call builder for the [delegations] function.
Sourcepub fn deregisterValidator(
&self,
) -> SolCallBuilder<&P, deregisterValidatorCall, N>
pub fn deregisterValidator( &self, ) -> SolCallBuilder<&P, deregisterValidatorCall, N>
Creates a new call builder for the [deregisterValidator] function.
Sourcepub fn exitEscrowPeriod(&self) -> SolCallBuilder<&P, exitEscrowPeriodCall, N>
pub fn exitEscrowPeriod(&self) -> SolCallBuilder<&P, exitEscrowPeriodCall, N>
Creates a new call builder for the [exitEscrowPeriod] function.
Sourcepub fn getRoleAdmin(
&self,
role: FixedBytes<32>,
) -> SolCallBuilder<&P, getRoleAdminCall, N>
pub fn getRoleAdmin( &self, role: FixedBytes<32>, ) -> SolCallBuilder<&P, getRoleAdminCall, N>
Creates a new call builder for the [getRoleAdmin] function.
Sourcepub fn getUndelegation(
&self,
validator: Address,
delegator: Address,
) -> SolCallBuilder<&P, getUndelegationCall, N>
pub fn getUndelegation( &self, validator: Address, delegator: Address, ) -> SolCallBuilder<&P, getUndelegationCall, N>
Creates a new call builder for the [getUndelegation] function.
Sourcepub fn getVersion(&self) -> SolCallBuilder<&P, getVersionCall, N>
pub fn getVersion(&self) -> SolCallBuilder<&P, getVersionCall, N>
Creates a new call builder for the [getVersion] function.
Sourcepub fn grantRole(
&self,
role: FixedBytes<32>,
account: Address,
) -> SolCallBuilder<&P, grantRoleCall, N>
pub fn grantRole( &self, role: FixedBytes<32>, account: Address, ) -> SolCallBuilder<&P, grantRoleCall, N>
Creates a new call builder for the [grantRole] function.
Sourcepub fn hasRole(
&self,
role: FixedBytes<32>,
account: Address,
) -> SolCallBuilder<&P, hasRoleCall, N>
pub fn hasRole( &self, role: FixedBytes<32>, account: Address, ) -> SolCallBuilder<&P, hasRoleCall, N>
Creates a new call builder for the [hasRole] function.
Sourcepub fn initialize(
&self,
_tokenAddress: Address,
_lightClientAddress: Address,
_exitEscrowPeriod: U256,
_timelock: Address,
) -> SolCallBuilder<&P, initializeCall, N>
pub fn initialize( &self, _tokenAddress: Address, _lightClientAddress: Address, _exitEscrowPeriod: U256, _timelock: Address, ) -> SolCallBuilder<&P, initializeCall, N>
Creates a new call builder for the [initialize] function.
Sourcepub fn initializeV2(
&self,
pauser: Address,
admin: Address,
initialActiveStake: U256,
initialCommissions: Vec<<InitialCommission as SolType>::RustType>,
) -> SolCallBuilder<&P, initializeV2Call, N>
pub fn initializeV2( &self, pauser: Address, admin: Address, initialActiveStake: U256, initialCommissions: Vec<<InitialCommission as SolType>::RustType>, ) -> SolCallBuilder<&P, initializeV2Call, N>
Creates a new call builder for the [initializeV2] function.
Sourcepub fn initializedAtBlock(
&self,
) -> SolCallBuilder<&P, initializedAtBlockCall, N>
pub fn initializedAtBlock( &self, ) -> SolCallBuilder<&P, initializedAtBlockCall, N>
Creates a new call builder for the [initializedAtBlock] function.
Sourcepub fn lightClient(&self) -> SolCallBuilder<&P, lightClientCall, N>
pub fn lightClient(&self) -> SolCallBuilder<&P, lightClientCall, N>
Creates a new call builder for the [lightClient] function.
Sourcepub fn maxCommissionIncrease(
&self,
) -> SolCallBuilder<&P, maxCommissionIncreaseCall, N>
pub fn maxCommissionIncrease( &self, ) -> SolCallBuilder<&P, maxCommissionIncreaseCall, N>
Creates a new call builder for the [maxCommissionIncrease] function.
Sourcepub fn minCommissionIncreaseInterval(
&self,
) -> SolCallBuilder<&P, minCommissionIncreaseIntervalCall, N>
pub fn minCommissionIncreaseInterval( &self, ) -> SolCallBuilder<&P, minCommissionIncreaseIntervalCall, N>
Creates a new call builder for the [minCommissionIncreaseInterval] function.
Sourcepub fn minDelegateAmount(&self) -> SolCallBuilder<&P, minDelegateAmountCall, N>
pub fn minDelegateAmount(&self) -> SolCallBuilder<&P, minDelegateAmountCall, N>
Creates a new call builder for the [minDelegateAmount] function.
Sourcepub fn owner(&self) -> SolCallBuilder<&P, ownerCall, N>
pub fn owner(&self) -> SolCallBuilder<&P, ownerCall, N>
Creates a new call builder for the [owner] function.
Sourcepub fn pause(&self) -> SolCallBuilder<&P, pauseCall, N>
pub fn pause(&self) -> SolCallBuilder<&P, pauseCall, N>
Creates a new call builder for the [pause] function.
Sourcepub fn paused(&self) -> SolCallBuilder<&P, pausedCall, N>
pub fn paused(&self) -> SolCallBuilder<&P, pausedCall, N>
Creates a new call builder for the [paused] function.
Sourcepub fn proxiableUUID(&self) -> SolCallBuilder<&P, proxiableUUIDCall, N>
pub fn proxiableUUID(&self) -> SolCallBuilder<&P, proxiableUUIDCall, N>
Creates a new call builder for the [proxiableUUID] function.
Sourcepub fn registerValidator(
&self,
_0: <G2Point as SolType>::RustType,
_1: <EdOnBN254Point as SolType>::RustType,
_2: <G1Point as SolType>::RustType,
_3: u16,
) -> SolCallBuilder<&P, registerValidatorCall, N>
pub fn registerValidator( &self, _0: <G2Point as SolType>::RustType, _1: <EdOnBN254Point as SolType>::RustType, _2: <G1Point as SolType>::RustType, _3: u16, ) -> SolCallBuilder<&P, registerValidatorCall, N>
Creates a new call builder for the [registerValidator] function.
Sourcepub fn registerValidatorV2(
&self,
blsVK: <G2Point as SolType>::RustType,
schnorrVK: <EdOnBN254Point as SolType>::RustType,
blsSig: <G1Point as SolType>::RustType,
schnorrSig: Bytes,
commission: u16,
metadataUri: String,
) -> SolCallBuilder<&P, registerValidatorV2Call, N>
pub fn registerValidatorV2( &self, blsVK: <G2Point as SolType>::RustType, schnorrVK: <EdOnBN254Point as SolType>::RustType, blsSig: <G1Point as SolType>::RustType, schnorrSig: Bytes, commission: u16, metadataUri: String, ) -> SolCallBuilder<&P, registerValidatorV2Call, N>
Creates a new call builder for the [registerValidatorV2] function.
Sourcepub fn renounceOwnership(&self) -> SolCallBuilder<&P, renounceOwnershipCall, N>
pub fn renounceOwnership(&self) -> SolCallBuilder<&P, renounceOwnershipCall, N>
Creates a new call builder for the [renounceOwnership] function.
Sourcepub fn renounceRole(
&self,
role: FixedBytes<32>,
callerConfirmation: Address,
) -> SolCallBuilder<&P, renounceRoleCall, N>
pub fn renounceRole( &self, role: FixedBytes<32>, callerConfirmation: Address, ) -> SolCallBuilder<&P, renounceRoleCall, N>
Creates a new call builder for the [renounceRole] function.
Sourcepub fn revokeRole(
&self,
role: FixedBytes<32>,
account: Address,
) -> SolCallBuilder<&P, revokeRoleCall, N>
pub fn revokeRole( &self, role: FixedBytes<32>, account: Address, ) -> SolCallBuilder<&P, revokeRoleCall, N>
Creates a new call builder for the [revokeRole] function.
Sourcepub fn schnorrKeys(
&self,
schnorrKey: FixedBytes<32>,
) -> SolCallBuilder<&P, schnorrKeysCall, N>
pub fn schnorrKeys( &self, schnorrKey: FixedBytes<32>, ) -> SolCallBuilder<&P, schnorrKeysCall, N>
Creates a new call builder for the [schnorrKeys] function.
Sourcepub fn setMaxCommissionIncrease(
&self,
newMaxIncrease: u16,
) -> SolCallBuilder<&P, setMaxCommissionIncreaseCall, N>
pub fn setMaxCommissionIncrease( &self, newMaxIncrease: u16, ) -> SolCallBuilder<&P, setMaxCommissionIncreaseCall, N>
Creates a new call builder for the [setMaxCommissionIncrease] function.
Sourcepub fn setMinCommissionUpdateInterval(
&self,
newInterval: U256,
) -> SolCallBuilder<&P, setMinCommissionUpdateIntervalCall, N>
pub fn setMinCommissionUpdateInterval( &self, newInterval: U256, ) -> SolCallBuilder<&P, setMinCommissionUpdateIntervalCall, N>
Creates a new call builder for the [setMinCommissionUpdateInterval] function.
Sourcepub fn setMinDelegateAmount(
&self,
newMinDelegateAmount: U256,
) -> SolCallBuilder<&P, setMinDelegateAmountCall, N>
pub fn setMinDelegateAmount( &self, newMinDelegateAmount: U256, ) -> SolCallBuilder<&P, setMinDelegateAmountCall, N>
Creates a new call builder for the [setMinDelegateAmount] function.
Sourcepub fn supportsInterface(
&self,
interfaceId: FixedBytes<4>,
) -> SolCallBuilder<&P, supportsInterfaceCall, N>
pub fn supportsInterface( &self, interfaceId: FixedBytes<4>, ) -> SolCallBuilder<&P, supportsInterfaceCall, N>
Creates a new call builder for the [supportsInterface] function.
Sourcepub fn token(&self) -> SolCallBuilder<&P, tokenCall, N>
pub fn token(&self) -> SolCallBuilder<&P, tokenCall, N>
Creates a new call builder for the [token] function.
Sourcepub fn transferOwnership(
&self,
newOwner: Address,
) -> SolCallBuilder<&P, transferOwnershipCall, N>
pub fn transferOwnership( &self, newOwner: Address, ) -> SolCallBuilder<&P, transferOwnershipCall, N>
Creates a new call builder for the [transferOwnership] function.
Sourcepub fn undelegate(
&self,
validator: Address,
amount: U256,
) -> SolCallBuilder<&P, undelegateCall, N>
pub fn undelegate( &self, validator: Address, amount: U256, ) -> SolCallBuilder<&P, undelegateCall, N>
Creates a new call builder for the [undelegate] function.
Sourcepub fn undelegations(
&self,
validator: Address,
delegator: Address,
) -> SolCallBuilder<&P, undelegationsCall, N>
pub fn undelegations( &self, validator: Address, delegator: Address, ) -> SolCallBuilder<&P, undelegationsCall, N>
Creates a new call builder for the [undelegations] function.
Sourcepub fn unpause(&self) -> SolCallBuilder<&P, unpauseCall, N>
pub fn unpause(&self) -> SolCallBuilder<&P, unpauseCall, N>
Creates a new call builder for the [unpause] function.
Sourcepub fn updateCommission(
&self,
newCommission: u16,
) -> SolCallBuilder<&P, updateCommissionCall, N>
pub fn updateCommission( &self, newCommission: u16, ) -> SolCallBuilder<&P, updateCommissionCall, N>
Creates a new call builder for the [updateCommission] function.
Sourcepub fn updateConsensusKeys(
&self,
_0: <G2Point as SolType>::RustType,
_1: <EdOnBN254Point as SolType>::RustType,
_2: <G1Point as SolType>::RustType,
) -> SolCallBuilder<&P, updateConsensusKeysCall, N>
pub fn updateConsensusKeys( &self, _0: <G2Point as SolType>::RustType, _1: <EdOnBN254Point as SolType>::RustType, _2: <G1Point as SolType>::RustType, ) -> SolCallBuilder<&P, updateConsensusKeysCall, N>
Creates a new call builder for the [updateConsensusKeys] function.
Sourcepub fn updateConsensusKeysV2(
&self,
blsVK: <G2Point as SolType>::RustType,
schnorrVK: <EdOnBN254Point as SolType>::RustType,
blsSig: <G1Point as SolType>::RustType,
schnorrSig: Bytes,
) -> SolCallBuilder<&P, updateConsensusKeysV2Call, N>
pub fn updateConsensusKeysV2( &self, blsVK: <G2Point as SolType>::RustType, schnorrVK: <EdOnBN254Point as SolType>::RustType, blsSig: <G1Point as SolType>::RustType, schnorrSig: Bytes, ) -> SolCallBuilder<&P, updateConsensusKeysV2Call, N>
Creates a new call builder for the [updateConsensusKeysV2] function.
Sourcepub fn updateExitEscrowPeriod(
&self,
newExitEscrowPeriod: u64,
) -> SolCallBuilder<&P, updateExitEscrowPeriodCall, N>
pub fn updateExitEscrowPeriod( &self, newExitEscrowPeriod: u64, ) -> SolCallBuilder<&P, updateExitEscrowPeriodCall, N>
Creates a new call builder for the [updateExitEscrowPeriod] function.
Sourcepub fn updateMetadataUri(
&self,
metadataUri: String,
) -> SolCallBuilder<&P, updateMetadataUriCall, N>
pub fn updateMetadataUri( &self, metadataUri: String, ) -> SolCallBuilder<&P, updateMetadataUriCall, N>
Creates a new call builder for the [updateMetadataUri] function.
Sourcepub fn upgradeToAndCall(
&self,
newImplementation: Address,
data: Bytes,
) -> SolCallBuilder<&P, upgradeToAndCallCall, N>
pub fn upgradeToAndCall( &self, newImplementation: Address, data: Bytes, ) -> SolCallBuilder<&P, upgradeToAndCallCall, N>
Creates a new call builder for the [upgradeToAndCall] function.
Sourcepub fn validateMetadataUri(
&self,
metadataUri: String,
) -> SolCallBuilder<&P, validateMetadataUriCall, N>
pub fn validateMetadataUri( &self, metadataUri: String, ) -> SolCallBuilder<&P, validateMetadataUriCall, N>
Creates a new call builder for the [validateMetadataUri] function.
Sourcepub fn validatorExits(
&self,
validator: Address,
) -> SolCallBuilder<&P, validatorExitsCall, N>
pub fn validatorExits( &self, validator: Address, ) -> SolCallBuilder<&P, validatorExitsCall, N>
Creates a new call builder for the [validatorExits] function.
Sourcepub fn validators(
&self,
account: Address,
) -> SolCallBuilder<&P, validatorsCall, N>
pub fn validators( &self, account: Address, ) -> SolCallBuilder<&P, validatorsCall, N>
Creates a new call builder for the [validators] function.
Source§impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Event filters.
impl<P: Provider<N>, N: Network> StakeTableV2Instance<P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
Creates a new event filter using this contract instance’s provider and address.
Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.
Sourcepub fn CommissionUpdated_filter(&self) -> Event<&P, CommissionUpdated, N>
pub fn CommissionUpdated_filter(&self) -> Event<&P, CommissionUpdated, N>
Creates a new event filter for the CommissionUpdated event.
Sourcepub fn ConsensusKeysUpdated_filter(&self) -> Event<&P, ConsensusKeysUpdated, N>
pub fn ConsensusKeysUpdated_filter(&self) -> Event<&P, ConsensusKeysUpdated, N>
Creates a new event filter for the ConsensusKeysUpdated event.
Sourcepub fn ConsensusKeysUpdatedV2_filter(
&self,
) -> Event<&P, ConsensusKeysUpdatedV2, N>
pub fn ConsensusKeysUpdatedV2_filter( &self, ) -> Event<&P, ConsensusKeysUpdatedV2, N>
Creates a new event filter for the ConsensusKeysUpdatedV2 event.
Sourcepub fn Delegated_filter(&self) -> Event<&P, Delegated, N>
pub fn Delegated_filter(&self) -> Event<&P, Delegated, N>
Creates a new event filter for the Delegated event.
Sourcepub fn ExitEscrowPeriodUpdated_filter(
&self,
) -> Event<&P, ExitEscrowPeriodUpdated, N>
pub fn ExitEscrowPeriodUpdated_filter( &self, ) -> Event<&P, ExitEscrowPeriodUpdated, N>
Creates a new event filter for the ExitEscrowPeriodUpdated event.
Sourcepub fn Initialized_filter(&self) -> Event<&P, Initialized, N>
pub fn Initialized_filter(&self) -> Event<&P, Initialized, N>
Creates a new event filter for the Initialized event.
Sourcepub fn MaxCommissionIncreaseUpdated_filter(
&self,
) -> Event<&P, MaxCommissionIncreaseUpdated, N>
pub fn MaxCommissionIncreaseUpdated_filter( &self, ) -> Event<&P, MaxCommissionIncreaseUpdated, N>
Creates a new event filter for the MaxCommissionIncreaseUpdated event.
Sourcepub fn MetadataUriUpdated_filter(&self) -> Event<&P, MetadataUriUpdated, N>
pub fn MetadataUriUpdated_filter(&self) -> Event<&P, MetadataUriUpdated, N>
Creates a new event filter for the MetadataUriUpdated event.
Sourcepub fn MinCommissionUpdateIntervalUpdated_filter(
&self,
) -> Event<&P, MinCommissionUpdateIntervalUpdated, N>
pub fn MinCommissionUpdateIntervalUpdated_filter( &self, ) -> Event<&P, MinCommissionUpdateIntervalUpdated, N>
Creates a new event filter for the MinCommissionUpdateIntervalUpdated event.
Sourcepub fn MinDelegateAmountUpdated_filter(
&self,
) -> Event<&P, MinDelegateAmountUpdated, N>
pub fn MinDelegateAmountUpdated_filter( &self, ) -> Event<&P, MinDelegateAmountUpdated, N>
Creates a new event filter for the MinDelegateAmountUpdated event.
Sourcepub fn OwnershipTransferred_filter(&self) -> Event<&P, OwnershipTransferred, N>
pub fn OwnershipTransferred_filter(&self) -> Event<&P, OwnershipTransferred, N>
Creates a new event filter for the OwnershipTransferred event.
Sourcepub fn Paused_filter(&self) -> Event<&P, Paused, N>
pub fn Paused_filter(&self) -> Event<&P, Paused, N>
Creates a new event filter for the Paused event.
Sourcepub fn RoleAdminChanged_filter(&self) -> Event<&P, RoleAdminChanged, N>
pub fn RoleAdminChanged_filter(&self) -> Event<&P, RoleAdminChanged, N>
Creates a new event filter for the RoleAdminChanged event.
Sourcepub fn RoleGranted_filter(&self) -> Event<&P, RoleGranted, N>
pub fn RoleGranted_filter(&self) -> Event<&P, RoleGranted, N>
Creates a new event filter for the RoleGranted event.
Sourcepub fn RoleRevoked_filter(&self) -> Event<&P, RoleRevoked, N>
pub fn RoleRevoked_filter(&self) -> Event<&P, RoleRevoked, N>
Creates a new event filter for the RoleRevoked event.
Sourcepub fn Undelegated_filter(&self) -> Event<&P, Undelegated, N>
pub fn Undelegated_filter(&self) -> Event<&P, Undelegated, N>
Creates a new event filter for the Undelegated event.
Sourcepub fn UndelegatedV2_filter(&self) -> Event<&P, UndelegatedV2, N>
pub fn UndelegatedV2_filter(&self) -> Event<&P, UndelegatedV2, N>
Creates a new event filter for the UndelegatedV2 event.
Sourcepub fn Unpaused_filter(&self) -> Event<&P, Unpaused, N>
pub fn Unpaused_filter(&self) -> Event<&P, Unpaused, N>
Creates a new event filter for the Unpaused event.
Sourcepub fn Upgraded_filter(&self) -> Event<&P, Upgraded, N>
pub fn Upgraded_filter(&self) -> Event<&P, Upgraded, N>
Creates a new event filter for the Upgraded event.
Sourcepub fn ValidatorExit_filter(&self) -> Event<&P, ValidatorExit, N>
pub fn ValidatorExit_filter(&self) -> Event<&P, ValidatorExit, N>
Creates a new event filter for the ValidatorExit event.
Sourcepub fn ValidatorExitClaimed_filter(&self) -> Event<&P, ValidatorExitClaimed, N>
pub fn ValidatorExitClaimed_filter(&self) -> Event<&P, ValidatorExitClaimed, N>
Creates a new event filter for the ValidatorExitClaimed event.
Sourcepub fn ValidatorExitV2_filter(&self) -> Event<&P, ValidatorExitV2, N>
pub fn ValidatorExitV2_filter(&self) -> Event<&P, ValidatorExitV2, N>
Creates a new event filter for the ValidatorExitV2 event.
Sourcepub fn ValidatorRegistered_filter(&self) -> Event<&P, ValidatorRegistered, N>
pub fn ValidatorRegistered_filter(&self) -> Event<&P, ValidatorRegistered, N>
Creates a new event filter for the ValidatorRegistered event.
Sourcepub fn ValidatorRegisteredV2_filter(
&self,
) -> Event<&P, ValidatorRegisteredV2, N>
pub fn ValidatorRegisteredV2_filter( &self, ) -> Event<&P, ValidatorRegisteredV2, N>
Creates a new event filter for the ValidatorRegisteredV2 event.
Sourcepub fn Withdrawal_filter(&self) -> Event<&P, Withdrawal, N>
pub fn Withdrawal_filter(&self) -> Event<&P, Withdrawal, N>
Creates a new event filter for the Withdrawal event.
Sourcepub fn WithdrawalClaimed_filter(&self) -> Event<&P, WithdrawalClaimed, N>
pub fn WithdrawalClaimed_filter(&self) -> Event<&P, WithdrawalClaimed, N>
Creates a new event filter for the WithdrawalClaimed event.
Trait Implementations§
Source§impl<P: Clone, N: Clone> Clone for StakeTableV2Instance<P, N>
impl<P: Clone, N: Clone> Clone for StakeTableV2Instance<P, N>
Source§fn clone(&self) -> StakeTableV2Instance<P, N>
fn clone(&self) -> StakeTableV2Instance<P, N>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<P, N> Freeze for StakeTableV2Instance<P, N>where
P: Freeze,
impl<P, N> RefUnwindSafe for StakeTableV2Instance<P, N>where
P: RefUnwindSafe,
N: RefUnwindSafe,
impl<P, N> Send for StakeTableV2Instance<P, N>
impl<P, N> Sync for StakeTableV2Instance<P, N>
impl<P, N> Unpin for StakeTableV2Instance<P, N>
impl<P, N> UnwindSafe for StakeTableV2Instance<P, N>where
P: UnwindSafe,
N: UnwindSafe,
Blanket Implementations§
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.