shiden
subscan
Runtime Modules / DappsStaking
Spec Version:
Events
Name
Lookup
Attributes
BondAndStake2200["AccountId","SmartContract","BalanceOf"]
UnbondUnstakeAndWithdraw2201["AccountId","SmartContract","BalanceOf"]
NewContract2202["AccountId","SmartContract"]
ContractRemoved2203["AccountId","SmartContract"]
NewDappStakingEra2204["EraIndex"]
Reward2205["AccountId","SmartContract","EraIndex","BalanceOf"]
Storage Functions
Name
Type
Ledger{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
CurrentEra{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
BlockRewardAccumulator{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
ForceEra{"origin":"PlainType","plain_type":"pallet_dapps_staking:Forcing","PlainTypeValue":219}
RegisteredDevelopers{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"shiden_runtime:SmartContract","keys_id":0,"value_id":39}}
RegisteredDapps{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["shiden_runtime:SmartContract"],"value":"AccountId","keys_id":39,"value_id":0}}
EraRewardsAndStakes{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"pallet_dapps_staking:EraRewardAndStake","keys_id":4,"value_id":220}}
ContractEraStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Twox64Concat"],"key_vec":["shiden_runtime:SmartContract","U32"],"value":"pallet_dapps_staking:EraStakingPoints","keys_id":221,"value_id":222}}
PreApprovalIsEnabled{"origin":"PlainType","plain_type":"Bool","PlainTypeValue":65}
PreApprovedDevelopers{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"NULL","keys_id":0,"value_id":33}}
Constants
Name
Type
Value
BlockPerEraU32201c0000
RegisterDepositU128000010632d5ec76b0500000000000000
DeveloperRewardPercentageU320065cd1d
MaxNumberOfStakersPerContractU3200020000
MinimumStakingAmountU128000088b116afe3b50200000000000000
HistoryDepthU320e000000
BonusEraDurationU320a000000
PalletId[U8; 8]70792f6470737374
MinimumRemainingAmountU128000064a7b3b6e00d0000000000000000
Error Types
Name
Docs
StakingWithNoValueCan not stake with zero value.
InsufficientValueCan not stake with value less than minimum staking value
MaxNumberOfStakersExceededNumber of stakers per contract exceeded.
NotOperatedContractTargets must be operated contracts
NotStakedContractContract isn't staked.
UnstakingWithNoValueUnstaking a contract with zero value
AlreadyRegisteredContractThe contract is already registered by other account
ContractIsNotValidUser attempts to register with address which is not contract
AlreadyUsedDeveloperAccountThis account was already used to register contract
NotOwnedContractSmart contract not owned by the account id.
UnknownEraRewardReport issue on github if this is ever emitted
NotStakedContract hasn't been staked on in this era.
AlreadyClaimedInThisEraContract already claimed in this era and reward is distributed
EraOutOfBoundsEra parameter is out of bounds
RequiredContractPreApprovalTo register a contract, pre-approval is needed for this address
AlreadyPreApprovedDeveloperDeveloper's account is already part of pre-approved list