package tezos-protocol-020-PsParisC

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Alpha_context.StakingSource

stake ctxt ~sender ~delegate amount add amount as sender's stake to delegate.

request_unstake ctxt ~sender_contract ~delegate amount records a request from sender_contract to unstake amount from delegate.

finalize_unstake ctxt contract performs the finalization of all unstake requests from contract that can be finalized. An unstake request can be finalized if it is old enough, specifically the requested amount must not be at stake anymore and must not be slashable anymore, i.e. after consensus_rights_delay + max_slashing_period after the request. Amounts are transferred from the contract's delegate (at request time) unstaked frozen deposits to contract's spendable balance, minus slashing the requested stake undergone in between.

Sourcetype staking_automation =
  1. | Auto_staking
  2. | Manual_staking

Staking can be either automated or manual. If Adaptive Issuance is enabled, staking must be manual.

Sourceval staking_automation : context -> staking_automation
OCaml

Innovation. Community. Security.