Enum IVote.VoteItem
- java.lang.Object
-
- java.lang.Enum<IVote.VoteItem>
-
- com.klaytn.caver.methods.response.IVote.VoteItem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IVote.VoteItem>
- Enclosing interface:
- IVote
public static enum IVote.VoteItem extends java.lang.Enum<IVote.VoteItem>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IVote.VoteItem
fromString(java.lang.String key)
Retrieve a VoteItem from key string.static java.lang.String
getAddValidator(IVote vote)
Get the value of GOVERNANCE_ADD_VALIDATOR.static java.lang.String
getAddValidator(java.util.List<IVote> list)
Get the value of GOVERNANCE_ADD_VALIDATOR.static java.lang.String
getAddValidator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_ADD_VALIDATOR.static java.math.BigInteger
getCommitteeSize(IVote vote)
Get the value of ISTANBUL_COMMITTEE_SIZE.static java.math.BigInteger
getCommitteeSize(java.util.List<IVote> list)
Get the value of ISTANBUL_COMMITTEE_SIZE.static java.math.BigInteger
getCommitteeSize(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_COMMITTEE_SIZE.static java.lang.Boolean
getDeferredTxFee(IVote vote)
Get the value of REWARD_USE_DEFERRED_TX_FEE.static java.lang.Boolean
getDeferredTxFee(java.util.List<IVote> list)
Get the value of REWARD_USE_DEFERRED_TX_FEE.static java.lang.Boolean
getDeferredTxFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_USE_DEFERRED_TX_FEE.static java.math.BigInteger
getEpoch(IVote vote)
Get the value of ISTANBUL_EPOCH.static java.math.BigInteger
getEpoch(java.util.List<IVote> list)
Get the value of ISTANBUL_EPOCH.static java.math.BigInteger
getEpoch(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_EPOCH.static java.lang.String
getGovernanceMode(IVote vote)
Get the value of GOVERNANCE_GOVERNANCE_MODE.static java.lang.String
getGovernanceMode(java.util.List<IVote> list)
Get the value of GOVERNANCE_GOVERNANCE_MODE.static java.lang.String
getGovernanceMode(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_GOVERNANCE_MODE.static java.lang.String
getGoverningNode(IVote vote)
Get the value of GOVERNANCE_GOVERNING_NODE.static java.lang.String
getGoverningNode(java.util.List<IVote> list)
Get the value of GOVERNANCE_GOVERNING_NODE.static java.lang.String
getGoverningNode(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_GOVERNING_NODE.java.lang.String
getKey()
static java.lang.Integer
getKIP71BaseFeeDenominator(IVote vote)
Get the value of KIP71_BASE_FEE_DENOMINATOR.static java.lang.Integer
getKIP71BaseFeeDenominator(java.util.List<IVote> list)
Get the value of KIP71_BASE_FEE_DENOMINATOR.static java.lang.Integer
getKIP71BaseFeeDenominator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_BASE_FEE_DENOMINATOR.static java.math.BigInteger
getKIP71GasTarget(IVote vote)
Get the value of KIP71_GAS_TARGET.static java.math.BigInteger
getKIP71GasTarget(java.util.List<IVote> list)
Get the value of KIP71_GAS_TARGET.static java.math.BigInteger
getKIP71GasTarget(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_GAS_TARGET.static java.math.BigInteger
getKIP71LowerBoundBaseFee(IVote vote)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.static java.math.BigInteger
getKIP71LowerBoundBaseFee(java.util.List<IVote> list)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.static java.math.BigInteger
getKIP71LowerBoundBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.static java.math.BigInteger
getKIP71MaxBlockGasUsedForBaseFee(IVote vote)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.static java.math.BigInteger
getKIP71MaxBlockGasUsedForBaseFee(java.util.List<IVote> list)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.static java.math.BigInteger
getKIP71MaxBlockGasUsedForBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.static java.math.BigInteger
getKIP71UpperBoundBaseFee(IVote vote)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.static java.math.BigInteger
getKIP71UpperBoundBaseFee(java.util.List<IVote> list)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.static java.math.BigInteger
getKIP71UpperBoundBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.static java.lang.String
getMinimumStake(IVote vote)
Get the value of REWARD_MINIMUM_STAKE.static java.lang.String
getMinimumStake(java.util.List<IVote> list)
Get the value of REWARD_MINIMUM_STAKE.static java.lang.String
getMinimumStake(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_MINIMUM_STAKE.static java.lang.String
getMintingAmount(IVote vote)
Get the value of REWARD_MINTING_AMOUNT.static java.lang.String
getMintingAmount(java.util.List<IVote> list)
Get the value of REWARD_MINTING_AMOUNT.static java.lang.String
getMintingAmount(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_MINTING_AMOUNT.static java.math.BigInteger
getPolicy(IVote vote)
Get the value of ISTANBUL_POLICY.static java.math.BigInteger
getPolicy(java.util.List<IVote> list)
Get the value of ISTANBUL_POLICY.static java.math.BigInteger
getPolicy(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_POLICY.static java.math.BigInteger
getProposerUpdateInterval(IVote vote)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.static java.math.BigInteger
getProposerUpdateInterval(java.util.List<IVote> list)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.static java.math.BigInteger
getProposerUpdateInterval(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.static java.lang.String
getRatio(IVote vote)
Get the value of REWARD_RATIO.static java.lang.String
getRatio(java.util.List<IVote> list)
Get the value of REWARD_RATIO.static java.lang.String
getRatio(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_RATIO.static java.lang.String
getRemoveValidator(IVote vote)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.static java.lang.String
getRemoveValidator(java.util.List<IVote> list)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.static java.lang.String
getRemoveValidator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.static java.math.BigInteger
getStakingUpdateInterval(IVote vote)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.static java.math.BigInteger
getStakingUpdateInterval(java.util.List<IVote> list)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.static java.math.BigInteger
getStakingUpdateInterval(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.static java.math.BigInteger
getUnitPrice(IVote vote)
Get the value of GOVERNANCE_UNIT_PRICE.static java.math.BigInteger
getUnitPrice(java.util.List<IVote> list)
Get the value of GOVERNANCE_UNIT_PRICE.static java.math.BigInteger
getUnitPrice(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_UNIT_PRICE.static java.lang.Boolean
getUseGinicoeff(IVote vote)
Get the value of REWARD_USE_GINICOEFF.static java.lang.Boolean
getUseGinicoeff(java.util.List<IVote> list)
Get the value of REWARD_USE_GINICOEFF.static boolean
getUseGinicoeff(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_USE_GINICOEFF.static boolean
isExist(java.lang.String key)
Check if there is an enum mapped to the given type string.static java.math.BigInteger
toBigIntegerValue(java.lang.Object value)
Convert an Object to BigInteger.static java.math.BigInteger
toBigIntegerValue(java.lang.String key, java.lang.Object value)
Convert an Object to BigInteger.static boolean
toBooleanValue(java.lang.String key, java.lang.Object value)
Convert an Object to boolean.static java.lang.Integer
toIntegerValue(java.lang.String key, java.lang.Object value)
Convert an Object to Integer.static java.lang.String
toStringValue(java.lang.String key, java.lang.Object value)
Convert an Object to String.static IVote.VoteItem
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IVote.VoteItem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOVERNANCE_GOVERNANCE_MODE
public static final IVote.VoteItem GOVERNANCE_GOVERNANCE_MODE
-
GOVERNANCE_GOVERNING_NODE
public static final IVote.VoteItem GOVERNANCE_GOVERNING_NODE
-
GOVERNANCE_UNIT_PRICE
public static final IVote.VoteItem GOVERNANCE_UNIT_PRICE
-
GOVERNANCE_ADD_VALIDATOR
public static final IVote.VoteItem GOVERNANCE_ADD_VALIDATOR
-
GOVERNANCE_REMOVE_VALIDATOR
public static final IVote.VoteItem GOVERNANCE_REMOVE_VALIDATOR
-
ISTANBUL_EPOCH
public static final IVote.VoteItem ISTANBUL_EPOCH
-
ISTANBUL_COMMITTEE_SIZE
public static final IVote.VoteItem ISTANBUL_COMMITTEE_SIZE
-
ISTANBUL_POLICY
public static final IVote.VoteItem ISTANBUL_POLICY
-
REWARD_MINTING_AMOUNT
public static final IVote.VoteItem REWARD_MINTING_AMOUNT
-
REWARD_RATIO
public static final IVote.VoteItem REWARD_RATIO
-
REWARD_USE_GINICOEFF
public static final IVote.VoteItem REWARD_USE_GINICOEFF
-
REWARD_USE_DEFERRED_TX_FEE
public static final IVote.VoteItem REWARD_USE_DEFERRED_TX_FEE
-
REWARD_MINIMUM_STAKE
public static final IVote.VoteItem REWARD_MINIMUM_STAKE
-
REWARD_PROPOSER_UPDATE_INTERVAL
public static final IVote.VoteItem REWARD_PROPOSER_UPDATE_INTERVAL
-
REWARD_STAKING_UPDATE_INTERVAL
public static final IVote.VoteItem REWARD_STAKING_UPDATE_INTERVAL
-
KIP71_LOWER_BOUND_BASE_FEE
public static final IVote.VoteItem KIP71_LOWER_BOUND_BASE_FEE
-
KIP71_UPPER_BOUND_BASE_FEE
public static final IVote.VoteItem KIP71_UPPER_BOUND_BASE_FEE
-
KIP71_GAS_TARGET
public static final IVote.VoteItem KIP71_GAS_TARGET
-
KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE
public static final IVote.VoteItem KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE
-
KIP71_BASE_FEE_DENOMINATOR
public static final IVote.VoteItem KIP71_BASE_FEE_DENOMINATOR
-
-
Method Detail
-
values
public static IVote.VoteItem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IVote.VoteItem c : IVote.VoteItem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IVote.VoteItem valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isExist
public static boolean isExist(java.lang.String key)
Check if there is an enum mapped to the given type string.- Parameters:
key
- The key string to find enum defined in VoteItem.- Returns:
- boolean
-
fromString
public static IVote.VoteItem fromString(java.lang.String key)
Retrieve a VoteItem from key string.- Parameters:
key
- The key to retrieve VoteItem enum.- Returns:
- VoteItem
-
getGovernanceMode
public static java.lang.String getGovernanceMode(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_GOVERNANCE_MODE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getGovernanceMode(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getGovernanceMode
public static java.lang.String getGovernanceMode(java.util.List<IVote> list)
Get the value of GOVERNANCE_GOVERNANCE_MODE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getGovernanceMode(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getGovernanceMode
public static java.lang.String getGovernanceMode(IVote vote)
Get the value of GOVERNANCE_GOVERNANCE_MODE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getGovernanceMode(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- String
-
getGoverningNode
public static java.lang.String getGoverningNode(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_GOVERNING_NODE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getGoverningNode(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getGoverningNode
public static java.lang.String getGoverningNode(java.util.List<IVote> list)
Get the value of GOVERNANCE_GOVERNING_NODE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getGoverningNode(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getGoverningNode
public static java.lang.String getGoverningNode(IVote vote)
Get the value of GOVERNANCE_GOVERNING_NODE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getGoverningNode(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- String
-
getUnitPrice
public static java.math.BigInteger getUnitPrice(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_UNIT_PRICE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getUnitPrice(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getUnitPrice
public static java.math.BigInteger getUnitPrice(java.util.List<IVote> list)
Get the value of GOVERNANCE_UNIT_PRICE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getUnitPrice(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getUnitPrice
public static java.math.BigInteger getUnitPrice(IVote vote)
Get the value of GOVERNANCE_UNIT_PRICE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getUnitPrice(myVote);
- Parameters:
vote
- The instance implemented IVote to find value.- Returns:
- BigInteger
-
getAddValidator
public static java.lang.String getAddValidator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_ADD_VALIDATOR.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getAddValidator(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getAddValidator
public static java.lang.String getAddValidator(java.util.List<IVote> list)
Get the value of GOVERNANCE_ADD_VALIDATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getAddValidator(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getAddValidator
public static java.lang.String getAddValidator(IVote vote)
Get the value of GOVERNANCE_ADD_VALIDATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getAddValidator(myVote);
- Parameters:
vote
- The instance implemented IVote to find value.- Returns:
- String
-
getRemoveValidator
public static java.lang.String getRemoveValidator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getRemoveValidator(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getRemoveValidator
public static java.lang.String getRemoveValidator(java.util.List<IVote> list)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getRemoveValidator(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getRemoveValidator
public static java.lang.String getRemoveValidator(IVote vote)
Get the value of GOVERNANCE_REMOVE_VALIDATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getRemoveValidator(myVote);
- Parameters:
vote
- The instance implemented IVote to find value.- Returns:
- String
-
getEpoch
public static java.math.BigInteger getEpoch(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_EPOCH.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getEpoch(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getEpoch
public static java.math.BigInteger getEpoch(java.util.List<IVote> list)
Get the value of ISTANBUL_EPOCH.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getEpoch(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getEpoch
public static java.math.BigInteger getEpoch(IVote vote)
Get the value of ISTANBUL_EPOCH.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getEpoch(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getCommitteeSize
public static java.math.BigInteger getCommitteeSize(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_COMMITTEE_SIZE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getCommitteeSize(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
-
getCommitteeSize
public static java.math.BigInteger getCommitteeSize(java.util.List<IVote> list)
Get the value of ISTANBUL_COMMITTEE_SIZE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getCommitteeSize(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getCommitteeSize
public static java.math.BigInteger getCommitteeSize(IVote vote)
Get the value of ISTANBUL_COMMITTEE_SIZE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getCommitteeSize(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getPolicy
public static java.math.BigInteger getPolicy(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of ISTANBUL_POLICY.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getPolicy(governanceItem);
- Parameters:
map
- The mpa instance to find value.- Returns:
- BigInteger
-
getPolicy
public static java.math.BigInteger getPolicy(java.util.List<IVote> list)
Get the value of ISTANBUL_POLICY.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getPolicy(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getPolicy
public static java.math.BigInteger getPolicy(IVote vote)
Get the value of ISTANBUL_POLICY.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getPolicy(myVote));
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getMintingAmount
public static java.lang.String getMintingAmount(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_MINTING_AMOUNT.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getMintingAmount(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getMintingAmount
public static java.lang.String getMintingAmount(java.util.List<IVote> list)
Get the value of REWARD_MINTING_AMOUNT.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getMintingAmount(voteList);
- Parameters:
list
- The list instance to find value..- Returns:
- String
-
getMintingAmount
public static java.lang.String getMintingAmount(IVote vote)
Get the value of REWARD_MINTING_AMOUNT.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getMintingAmount(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- String
-
getRatio
public static java.lang.String getRatio(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_RATIO.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getRatio(governanceItem);
- Parameters:
map
- The list instance to find value.- Returns:
- String
-
getRatio
public static java.lang.String getRatio(java.util.List<IVote> list)
Get the value of REWARD_RATIO.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getRatio(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getRatio
public static java.lang.String getRatio(IVote vote)
Get the value of REWARD_RATIO.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getRatio(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- String
-
getUseGinicoeff
public static boolean getUseGinicoeff(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_USE_GINICOEFF.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); boolean value = IVote.VoteItem.getUseGinicoeff(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- boolean
-
getUseGinicoeff
public static java.lang.Boolean getUseGinicoeff(java.util.List<IVote> list)
Get the value of REWARD_USE_GINICOEFF.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); boolean value = IVote.VoteItem.getUseGinicoeff(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- boolean
-
getUseGinicoeff
public static java.lang.Boolean getUseGinicoeff(IVote vote)
Get the value of REWARD_USE_GINICOEFF.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); boolean value = IVote.VoteItem.getUseGinicoeff(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- Boolean
-
getDeferredTxFee
public static java.lang.Boolean getDeferredTxFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_USE_DEFERRED_TX_FEE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); boolean value = IVote.VoteItem.getDeferredTxFee(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- Boolean
-
getDeferredTxFee
public static java.lang.Boolean getDeferredTxFee(java.util.List<IVote> list)
Get the value of REWARD_USE_DEFERRED_TX_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); boolean value = IVote.VoteItem.getDeferredTxFee(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- Boolean
-
getDeferredTxFee
public static java.lang.Boolean getDeferredTxFee(IVote vote)
Get the value of REWARD_USE_DEFERRED_TX_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); boolean value = IVote.VoteItem.getDeferredTxFee(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- Boolean
-
getMinimumStake
public static java.lang.String getMinimumStake(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_MINIMUM_STAKE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); String value = IVote.VoteItem.getMinimumStake(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- String
-
getMinimumStake
public static java.lang.String getMinimumStake(java.util.List<IVote> list)
Get the value of REWARD_MINIMUM_STAKE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); String value = IVote.VoteItem.getMinimumStake(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- String
-
getMinimumStake
public static java.lang.String getMinimumStake(IVote vote)
Get the value of REWARD_MINIMUM_STAKE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); String value = IVote.VoteItem.getMinimumStake(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- String
-
getProposerUpdateInterval
public static java.math.BigInteger getProposerUpdateInterval(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getProposerUpdateInterval(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getProposerUpdateInterval
public static java.math.BigInteger getProposerUpdateInterval(java.util.List<IVote> list)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getProposerUpdateInterval(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getProposerUpdateInterval
public static java.math.BigInteger getProposerUpdateInterval(IVote vote)
Get the value of REWARD_PROPOSER_UPDATE_INTERVAL.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getProposerUpdateInterval(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getStakingUpdateInterval
public static java.math.BigInteger getStakingUpdateInterval(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getStakingUpdateInterval(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getStakingUpdateInterval
public static java.math.BigInteger getStakingUpdateInterval(java.util.List<IVote> list)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getStakingUpdateInterval(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getStakingUpdateInterval
public static java.math.BigInteger getStakingUpdateInterval(IVote vote)
Get the value of REWARD_STAKING_UPDATE_INTERVAL.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getStakingUpdateInterval(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getKIP71LowerBoundBaseFee
public static java.math.BigInteger getKIP71LowerBoundBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71LowerBoundBaseFee(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getKIP71LowerBoundBaseFee
public static java.math.BigInteger getKIP71LowerBoundBaseFee(java.util.List<IVote> list)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71LowerBoundBaseFee(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getKIP71LowerBoundBaseFee
public static java.math.BigInteger getKIP71LowerBoundBaseFee(IVote vote)
Get the value of KIP71_LOWER_BOUND_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getKIP71LowerBoundBaseFee(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getKIP71UpperBoundBaseFee
public static java.math.BigInteger getKIP71UpperBoundBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71UpperBoundBaseFee(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getKIP71UpperBoundBaseFee
public static java.math.BigInteger getKIP71UpperBoundBaseFee(java.util.List<IVote> list)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71UpperBoundBaseFee(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getKIP71UpperBoundBaseFee
public static java.math.BigInteger getKIP71UpperBoundBaseFee(IVote vote)
Get the value of KIP71_UPPER_BOUND_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getKIP71UpperBoundBaseFee(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getKIP71GasTarget
public static java.math.BigInteger getKIP71GasTarget(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_GAS_TARGET.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71GasTarget(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getKIP71GasTarget
public static java.math.BigInteger getKIP71GasTarget(java.util.List<IVote> list)
Get the value of KIP71_GAS_TARGET.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71GasTarget(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getKIP71GasTarget
public static java.math.BigInteger getKIP71GasTarget(IVote vote)
Get the value of KIP71_GAS_TARGET.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getKIP71GasTarget(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getKIP71MaxBlockGasUsedForBaseFee
public static java.math.BigInteger getKIP71MaxBlockGasUsedForBaseFee(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71MaxBlockGasUsedForBaseFee(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- BigInteger
-
getKIP71MaxBlockGasUsedForBaseFee
public static java.math.BigInteger getKIP71MaxBlockGasUsedForBaseFee(java.util.List<IVote> list)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71MaxBlockGasUsedForBaseFee(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- BigInteger
-
getKIP71MaxBlockGasUsedForBaseFee
public static java.math.BigInteger getKIP71MaxBlockGasUsedForBaseFee(IVote vote)
Get the value of KIP71_MAX_BLOCK_GAS_USED_FOR_BASE_FEE.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getKIP71MaxBlockGasUsedForBaseFee(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- BigInteger
-
getKIP71BaseFeeDenominator
public static java.lang.Integer getKIP71BaseFeeDenominator(java.util.Map<java.lang.String,java.lang.Object> map)
Get the value of KIP71_BASE_FEE_DENOMINATOR.Example :
GovernanceItems response = caver.rpc.governance.getItemsAt().send(); Map<String, Object> governanceItem = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71BaseFeeDenominator(governanceItem);
- Parameters:
map
- The map instance to find value.- Returns:
- Integer
-
getKIP71BaseFeeDenominator
public static java.lang.Integer getKIP71BaseFeeDenominator(java.util.List<IVote> list)
Get the value of KIP71_BASE_FEE_DENOMINATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); BigInteger value = IVote.VoteItem.getKIP71BaseFeeDenominator(voteList);
- Parameters:
list
- The list instance to find value.- Returns:
- Integer
-
getKIP71BaseFeeDenominator
public static java.lang.Integer getKIP71BaseFeeDenominator(IVote vote)
Get the value of KIP71_BASE_FEE_DENOMINATOR.Example :
GovernanceMyVotes response = caver.rpc.governance.getMyVotes().send(); List voteList = response.getResult(); GovernanceMyVotes.MyVote myVote = (GovernanceMyVotes.MyVote)voteList.get(0); BigInteger value = IVote.VoteItem.getKIP71BaseFeeDenominator(myVote);
- Parameters:
vote
- The instance that implemented IVote to find value.- Returns:
- Integer
-
toStringValue
public static java.lang.String toStringValue(java.lang.String key, java.lang.Object value)
Convert an Object to String.If the VoteItem mapped to key is not existed or the type of VoteItem mapped to key is not valid, It will throw RuntimeException.
- Parameters:
key
- The key mapped to value.value
- The value converted to string.- Returns:
- String
-
toBooleanValue
public static boolean toBooleanValue(java.lang.String key, java.lang.Object value)
Convert an Object to boolean.If the VoteItem mapped to key is not existed or the type of VoteItem mapped to key is not valid, It will throw RuntimeException.
- Parameters:
key
- The key mapped to value.value
- The value converted to string.- Returns:
- boolean
-
toBigIntegerValue
public static java.math.BigInteger toBigIntegerValue(java.lang.String key, java.lang.Object value)
Convert an Object to BigInteger.If the VoteItem mapped to key is not existed or the type of VoteItem mapped to key is not valid, It will throw RuntimeException.
- Parameters:
key
- The key mapped to value.value
- The value converted to BigInteger.- Returns:
- BigInteger
-
toBigIntegerValue
public static java.math.BigInteger toBigIntegerValue(java.lang.Object value)
Convert an Object to BigInteger.- Parameters:
value
- The value converted to BigInteger.- Returns:
- BigIneger.
-
toIntegerValue
public static java.lang.Integer toIntegerValue(java.lang.String key, java.lang.Object value)
Convert an Object to Integer.If the VoteItem mapped to key is not existed or the type of VoteItem mapped to key is not valid, It will throw RuntimeException.
- Parameters:
key
- The key mapped to value.value
- The value converted to Integer.- Returns:
- Integer
-
getKey
public java.lang.String getKey()
-
-