Name | Lookup | Parameters | |
---|---|---|---|
deposit | 4700 | 1 | |
request_withdraw | 4701 | 1 | |
claim_my_winnings | 4702 | - | |
rebalance_stake | 4703 | - | |
start_lottery | 4704 | - | |
stop_lottery | 4705 | - | |
draw_lottery | 4706 | - | |
process_matured_withdrawals | 4707 | - | |
liquidate_lottery | 4708 | - | |
set_min_deposit | 4709 | 1 | |
set_min_withdraw | 470a | 1 | |
set_gas_reserve | 470b | 1 | |
set_farming_params | 470c | 4 |
Name | Lookup | Attributes | |
---|---|---|---|
LotteryStarted | 4700 | ||
LotteryStopped | 4701 | ||
LotteryWinner | 4702 | ["AccountId","BalanceOf"] | |
Deposited | 4703 | ["AccountId","BalanceOf"] | |
ScheduledWithdraw | 4704 | ["AccountId","BalanceOf"] | |
Withdrawn | 4705 | ["AccountId","BalanceOf"] | |
Claimed | 4706 | ["AccountId","BalanceOf"] |
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":30} | |
ActiveBalancePerUser | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}} | |
UnclaimedWinningsByAccount | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"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":535} | |
SurplusUnstakingBalance | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
WithdrawalRequestQueue | {"origin":"PlainType","plain_type":"Vec<pallet_lottery:pallet:Request>","PlainTypeValue":537} | |
StakedCollators | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}} | |
FarmingParameters | {"origin":"PlainType","plain_type":"pallet_lottery:pallet:FarmingParams","PlainTypeValue":539} |
Name | Type | Value | |
---|---|---|---|
LotteryPot | [U8; 8] | 4c6f747279506f74 | |
DrawingInterval | U32 | e0c40000 | |
DrawingFreezeout | U32 | 201c0000 | |
UnstakeLockTime | U32 | e0c40000 |
Name | Docs |
---|---|
LotteryNotStarted | Lottery has not been started |
LotteryIsRunning | Lottery has already been started |
TooCloseToDrawing | Pre-drawing freeze in effect, can't modify balances |
PotBalanceTooLow | FATAL: Assigning/Transferring winning claimswould **remove** user deposited funds from pallet |
PotBalanceTooLowToStake | FATAL: Can't stake the requested amount with available funds |
PotBalanceBelowGasReserve | Pallet balance is lower than the needed gas fee buffer |
PotBalanceTooLowToPayTxFee | Pallet balance is too low to submit a needed transaction |
NobodyPlaying | No funds eligible to win |
NothingToWin | No funds to win in pool |
NoWinnerFound | Fatal: No winner could be selected |
DepositBelowMinAmount | Deposit amount is below minimum amount |
WithdrawBelowMinAmount | Requested Withdrawal amount is below minimum |
WithdrawAboveDeposit | Requested to withdraw more than you deposited |
NoDepositForAccount | No deposits found for this account |
NoCollatorForDeposit | Fatal: No collators found to assign this deposit to |
NoCollatorForStake | Fatal: No collators found to assign this deposit to |
NoCollatorForWithdrawal | Fatal: No collators found to withdraw from |
ArithmeticUnderflow | Fatal: A calculation that must not be negative would underflow |
ArithmeticOverflow | Fatal: A calculation that would overflow |
PalletMisconfigured | Fatal: Pallet configuration violates sanity checks |
CouldNotSchedule | Fatal: Could not schedule lottery drawings |
NotImplemented | Fatal: Functionality not yet supported |