Package org.polkadot.types.type
Class StakingLedger
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.type.StakingLedger
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec
public class StakingLedger extends Struct
The ledger of a (bonded) stash- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StakingLedger(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description BalancegetActive()The total amount of the stash's balance that will be at stake in any forthcoming roundsAccountIdgetStash()The stash account whose balance is actually locked and at stakeBalancegetTotal()The total amount of the stash's balance that we are currently accounting for.Vector<UnlockChunk>getUnlocking()Any balance that is becoming free, which may eventually be transferred out of the stash (assuming it doesn't get slashed first)-
Methods inherited from class org.polkadot.types.codec.Struct
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getActive
public Balance getActive()
The total amount of the stash's balance that will be at stake in any forthcoming rounds
-
getStash
public AccountId getStash()
The stash account whose balance is actually locked and at stake
-
getTotal
public Balance getTotal()
The total amount of the stash's balance that we are currently accounting for. It's just `active` plus all the `unlocking` balances
-
getUnlocking
public Vector<UnlockChunk> getUnlocking()
Any balance that is becoming free, which may eventually be transferred out of the stash (assuming it doesn't get slashed first)
-
-