subscan
Runtime Modules / Lottery
Spec Version:
Events
Name
Lookup
Attributes
LotteryStarted4700
LotteryStopped4701
LotteryWinner4702["AccountId","BalanceOf"]
Deposited4703["AccountId","BalanceOf"]
ScheduledWithdraw4704["AccountId","BalanceOf"]
Withdrawn4705["AccountId","BalanceOf"]
Claimed4706["AccountId","BalanceOf"]
Storage Functions
Name
Type
GasReserve{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
MinDeposit{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
MinWithdraw{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
SumOfDeposits{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
TotalPot{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
TotalUsers{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
RebalanceInProgress{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":42}
ActiveBalancePerUser{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":0,"value_id":6}}
UnclaimedWinningsByAccount{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":0,"value_id":6}}
TotalUnclaimedWinnings{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
UnlockedUnstakingFunds{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
UnstakingCollators{"origin":"PlainType","plain_type":"Vec<pallet_lottery:pallet:UnstakingCollator>","PlainTypeValue":524}
SurplusUnstakingBalance{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
WithdrawalRequestQueue{"origin":"PlainType","plain_type":"Vec<pallet_lottery:pallet:Request>","PlainTypeValue":526}
StakedCollators{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":0,"value_id":6}}
FarmingParameters{"origin":"PlainType","plain_type":"pallet_lottery:pallet:FarmingParams","PlainTypeValue":528}
Constants
Name
Type
Value
LotteryPot[U8; 8]4c6f747279506f74
DrawingIntervalU32e0c40000
DrawingFreezeoutU32201c0000
UnstakeLockTimeU32e0c40000
Error Types
Name
Docs
LotteryNotStartedLottery has not been started
LotteryIsRunningLottery has already been started
TooCloseToDrawingPre-drawing freeze in effect, can't modify balances
PotBalanceTooLowFATAL: Assigning/Transferring winning claimswould **remove** user deposited funds from pallet
PotBalanceTooLowToStakeFATAL: Can't stake the requested amount with available funds
PotBalanceBelowGasReservePallet balance is lower than the needed gas fee buffer
PotBalanceTooLowToPayTxFeePallet balance is too low to submit a needed transaction
NobodyPlayingNo funds eligible to win
NothingToWinNo funds to win in pool
NoWinnerFoundFatal: No winner could be selected
DepositBelowMinAmountDeposit amount is below minimum amount
WithdrawBelowMinAmountRequested Withdrawal amount is below minimum
WithdrawAboveDepositRequested to withdraw more than you deposited
NoDepositForAccountNo deposits found for this account
NoCollatorForDepositFatal: No collators found to assign this deposit to
NoCollatorForStakeFatal: No collators found to assign this deposit to
NoCollatorForWithdrawalFatal: No collators found to withdraw from
ArithmeticUnderflowFatal: A calculation that must not be negative would underflow
ArithmeticOverflowFatal: A calculation that would overflow
PalletMisconfiguredFatal: Pallet configuration violates sanity checks
CouldNotScheduleFatal: Could not schedule lottery drawings
NotImplementedFatal: Functionality not yet supported