subscan
Runtime Modules / VtokenVoting
Spec Version:
Events
Name
Lookup
Attributes
Voted8200["AccountIdOf","CurrencyIdOf","PollIndex","AccountVote<BalanceOf>","AccountVote<BalanceOf>"]
Unlocked8201["AccountIdOf","CurrencyIdOf","PollIndex"]
DelegatorVoteRemoved8202["AccountIdOf","CurrencyIdOf","DerivativeIndex"]
DelegatorAdded8203["CurrencyIdOf","DerivativeIndex"]
ReferendumInfoCreated8204["CurrencyIdOf","PollIndex","ReferendumInfoOf"]
ReferendumInfoSet8205["CurrencyIdOf","PollIndex","ReferendumInfoOf"]
VoteLockingPeriodSet8206["CurrencyIdOf","BlockNumberFor"]
UndecidingTimeoutSet8207["CurrencyIdOf","BlockNumberFor"]
ReferendumKilled8208["CurrencyIdOf","PollIndex"]
VoteNotified8209["CurrencyIdOf","PollIndex","bool"]
DelegatorVoteRemovedNotified820a["CurrencyIdOf","PollIndex","bool"]
ResponseReceived820b["Location","QueryId","Response"]
VoteCapRatioSet820c["CurrencyIdOf","Perbill"]
ReferendumStatusUpdated820d["CurrencyIdOf","PollIndex","ReferendumVoteStatus"]
Delegated820e["AccountIdOf","AccountIdOf"]
Undelegated820f["AccountId"]
Storage Functions
Name
Type
ReferendumInfoFor{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","U32"],"value":"bifrost_vtoken_voting:vote:ReferendumInfo","keys_id":772,"value_id":426}}
VotingForV2{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"bifrost_vtoken_voting:vote:Voting","keys_id":823,"value_id":846}}
ClassLocksFor{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Vec<Tuple:bifrost_primitives:currency:CurrencyIdU128>","keys_id":0,"value_id":853}}
PendingReferendumInfo{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Tuple:bifrost_primitives:currency:CurrencyIdU32","keys_id":12,"value_id":772}}
PendingVotingInfo{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Tuple:bifrost_primitives:currency:CurrencyIdU32U16AccountIdoption<Tuple:bifrost_vtoken_voting:vote:AccountVoteU128>","keys_id":12,"value_id":854}}
PendingRemoveDelegatorVote{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Tuple:bifrost_primitives:currency:CurrencyIdU32U16","keys_id":12,"value_id":857}}
VoteLockingPeriod{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":307,"value_id":4}}
UndecidingTimeout{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":307,"value_id":4}}
Delegators{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Vec<U16>","keys_id":307,"value_id":858}}
VoteCapRatio{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":307,"value_id":49}}
DelegatorVotes{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","U32"],"value":"Vec<Tuple:U16bifrost_vtoken_voting:vote:AccountVote>","keys_id":772,"value_id":860}}
PendingDelegatorVotes{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","U32"],"value":"Vec<Tuple:U16bifrost_vtoken_voting:vote:AccountVote>","keys_id":772,"value_id":860}}
ReferendumTimeoutV3{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","U32"],"value":"Vec<U32>","keys_id":772,"value_id":815}}
VoteDelegatorFor{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat","Twox64Concat"],"key_vec":["AccountId","bifrost_primitives:currency:CurrencyId","U32"],"value":"U16","keys_id":863,"value_id":54}}
ReferendumVoteStatusStore{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","U32"],"value":"bifrost_vtoken_voting:vote:ReferendumVoteStatus","keys_id":772,"value_id":429}}
Constants
Name
Type
Value
ParachainIdU32d1070000
MaxVotesU3200010000
QueryTimeoutU3264000000
ReferendumCheckIntervalU3258020000
RelayVCurrencybifrost_primitives:currency:CurrencyId0104
PalletId[U8; 8]62662f7674766f74
MaxVotesPerDelegateU320a000000
Error Types
Name
Docs
XcmFailureXCM execution Failure
VTokenNotSupportThe given currency is not supported.
DerivativeIndexOccupiedDerivative index occupied.
PendingVoteAnother vote is pending.
PendingUpdateReferendumStatusAnother update referendum status is pending.
NoDataNo data available in storage.
NotOngoingPoll is not ongoing.
NotCompletedPoll is not completed.
NotKilledPoll is not killed.
NotExpiredPoll is not expired.
NotVoterThe given account did not vote on the poll.
NoPermissionThe actor has no permission to conduct the action.
NoPermissionYetThe actor has no permission to conduct the action right now but will do in the future.
AlreadyDelegatingThe account is already delegating.
InsufficientFundsToo high a balance was provided that the account cannot afford.
MaxVotesReachedMaximum number of votes reached.
TooManyMaximum number of items reached.
NotStandardVoteThe given vote is not Standard vote.
InvalidConvictionThe given conviction is not valid.
OutOfRangeThe given value is out of range.
InvalidCallDispatch
CallDecodeFailed
NonsenseDelegation to oneself makes no sense.
AlreadyVotingThe account currently has votes attached to it and the operation cannot succeed untilthese are removed through `remove_vote`.
NotDelegatingThe account is not currently delegating.
AccessPollFailureTry access poll Failure
TooManyVotesToo many votes for a delegate.