Sigil documentation
ReferenceRust referencesigil-wallet

sigil-wallet · staking

Source declarations, signatures and documentation for staking.

Source: sigil/node/sigil-wallet/src/staking.rs. SHA-256: a1c9e6db2cd83c124309e25cbaa1fc65b549796c29751e38876f19be7930fbce.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

staking::deposit

Deposit stake to become a validator.

pub async fn deposit(
    rpc_url: &str,
    chain_id: &str,
    did: &str,
    amount: u64,
    mode: &str,
    passphrase: &str,
    nonce: u64,
) -> WalletResult<String>;

Source line: 64.

staking::withdraw

Withdraw staked tokens (begins unbonding period).

pub async fn withdraw(
    rpc_url: &str,
    chain_id: &str,
    did: &str,
    amount: u64,
    passphrase: &str,
    nonce: u64,
) -> WalletResult<String>;

Source line: 92.

staking::delegate

Delegate stake to another validator.

pub async fn delegate(
    rpc_url: &str,
    chain_id: &str,
    from_did: &str,
    to_validator_did: &str,
    amount: u64,
    passphrase: &str,
    nonce: u64,
) -> WalletResult<String>;

Source line: 115.

staking::undelegate

Undelegate stake shares from another validator.

pub async fn undelegate(
    rpc_url: &str,
    chain_id: &str,
    from_did: &str,
    validator_did: &str,
    shares: u64,
    passphrase: &str,
    nonce: u64,
) -> WalletResult<String>;

Source line: 142.

staking::claim_rewards

Claim accumulated staking rewards.

pub async fn claim_rewards(
    rpc_url: &str,
    chain_id: &str,
    did: &str,
    passphrase: &str,
    nonce: u64,
) -> WalletResult<String>;

Source line: 169.

staking::print_deposit

Print staking deposit confirmation.

pub fn print_deposit(did: &str, amount: u64, mode: &str, tx_hash: &str);

Source line: 194.

staking::print_withdraw

Print staking withdrawal confirmation.

pub fn print_withdraw(did: &str, amount: u64, tx_hash: &str);

Source line: 213.

staking::print_delegate

Print delegation confirmation.

pub fn print_delegate(from: &str, to: &str, amount: u64, tx_hash: &str);

Source line: 236.

staking::print_rewards_claim

Print rewards claim confirmation.

pub fn print_rewards_claim(did: &str, tx_hash: &str);

Source line: 255.

On this page