pub struct Delegation {Show 18 fields
pub id: String,
pub vault_account_id: String,
pub validator_name: String,
pub provider_name: String,
pub chain_descriptor: String,
pub amount: String,
pub rewards_amount: String,
pub date_created: String,
pub date_updated: String,
pub status: String,
pub related_transactions: Vec<RelatedTransaction>,
pub validator_address: String,
pub provider_id: StakingProvider,
pub available_actions: Vec<String>,
pub in_progress: bool,
pub in_progress_tx_id: Option<String>,
pub blockchain_position_info: SolanaBlockchainData,
pub related_requests: Option<Vec<RelatedRequest>>,
}
Fields§
§id: String
The unique identifier of the staking position
vault_account_id: String
The source vault account to stake from
validator_name: String
The destination validator address name
provider_name: String
The destination validator provider name
chain_descriptor: String
The protocol identifier (e.g. "ETH"/ "SOL") to use
amount: String
Amount of tokens to stake, measured in the staked asset unit.
rewards_amount: String
The amount staked in the position, measured in the staked asset unit.
date_created: String
When was the request made (ISO Date).
date_updated: String
When has the position last changed (ISO Date).
status: String
The current status.
An array of transaction objects related to this position. Each object includes a ‘txId’ representing the transaction ID and a ‘completed’ boolean indicating if the transaction was completed.
validator_address: String
The destination address of the staking transaction.
provider_id: StakingProvider
§available_actions: Vec<String>
An array of available actions that can be performed. for example, actions like "unstake" or "withdraw".
in_progress: bool
Indicates whether there is an ongoing action for this position (true if ongoing, false if not).
in_progress_tx_id: Option<String>
The transaction ID of the ongoing request
blockchain_position_info: SolanaBlockchainData
An array of partial unstake requests for this position, relevant only for the Lido provider. Each object includes the status of the unstake request, a boolean indicating whether the action is in progress, the amount of tokens to unstake, and the transaction ID of the request. With Lido, a position may have multiple partial unstake requests in different states. This field is optional and not applicable for other providers.
Implementations§
Source§impl Delegation
impl Delegation
pub fn new( id: String, vault_account_id: String, validator_name: String, provider_name: String, chain_descriptor: String, amount: String, rewards_amount: String, date_created: String, date_updated: String, status: String, related_transactions: Vec<RelatedTransaction>, validator_address: String, provider_id: StakingProvider, available_actions: Vec<String>, in_progress: bool, blockchain_position_info: SolanaBlockchainData, ) -> Delegation
Trait Implementations§
Source§impl Clone for Delegation
impl Clone for Delegation
Source§fn clone(&self) -> Delegation
fn clone(&self) -> Delegation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more