Package org.polkadot.types.type
Class ReferendumInfo
- 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.ReferendumInfo
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec
- Direct Known Subclasses:
DemocracyFunctions.ReferendumInfoExtended
public class ReferendumInfo extends Struct
Info regarding an ongoing referendum- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReferendumInfo.ReferendumInfoValue
-
Constructor Summary
Constructors Constructor Description ReferendumInfo(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description BlockNumbergetDelay()The delay (in blocks) to wait after a successful referendum before deployingBlockNumbergetEnd()When voting on this referendum will endProposalgetProposal()The proposal being voted onVoteThresholdgetThreshold()The thresholding mechanism to determine whether it passed-
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
-
getEnd
public BlockNumber getEnd()
When voting on this referendum will end
-
getProposal
public Proposal getProposal()
The proposal being voted on
-
getThreshold
public VoteThreshold getThreshold()
The thresholding mechanism to determine whether it passed
-
getDelay
public BlockNumber getDelay()
The delay (in blocks) to wait after a successful referendum before deploying
-
-