subscan
Runtime Modules / DappsStaking
Spec Version:
Storage Functions
Name
Type
Ledger{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"BalanceOf","isLinked":false}}
HistoryDepth{"origin":"PlainType","plain_type":"u32"}
CurrentEra{"origin":"PlainType","plain_type":"EraIndex"}
BlockRewardAccumulator{"origin":"PlainType","plain_type":"BalanceOf"}
ForceEra{"origin":"PlainType","plain_type":"Forcing"}
RegisteredDevelopers{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"SmartContract","isLinked":false}}
RegisteredDapps{"origin":"MapType","map_type":{"key":"SmartContract","hasher":"Blake2_128Concat","value":"AccountId","isLinked":false}}
EraRewardsAndStakes{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"EraRewardAndStake<BalanceOf>","isLinked":false}}
RewardsClaimed{"origin":"DoubleMapType","double_map_type":{"key":"SmartContract","key2":"AccountId","hasher":"Blake2_128Concat","key2Hasher":"Blake2_128Concat","value":"BalanceOf","isLinked":false}}
ContractEraStake{"origin":"DoubleMapType","double_map_type":{"key":"SmartContract","key2":"EraIndex","hasher":"Blake2_128Concat","key2Hasher":"Twox64Concat","value":"EraStakingPoints<AccountId, BalanceOf>","isLinked":false}}
ContractLastClaimed{"origin":"MapType","map_type":{"key":"SmartContract","hasher":"Blake2_128Concat","value":"EraIndex","isLinked":false}}
ContractLastStaked{"origin":"MapType","map_type":{"key":"SmartContract","hasher":"Blake2_128Concat","value":"EraIndex","isLinked":false}}
PreApprovalIsEnabled{"origin":"PlainType","plain_type":"bool"}
PreApprovedDevelopers{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"Null","isLinked":false}}
Constants
Name
Type
Value
BlockPerEraBlockNumberFor0x201c0000
RegisterDepositBalanceOf0x000010632d5ec76b0500000000000000
DeveloperRewardPercentageu320x50000000
MaxNumberOfStakersPerContractu320x80000000
MinimumStakingAmountBalanceOf0x0a000000000000000000000000000000
PalletIdPalletId0x70792f6470737374
Error Types
Name
Docs
StakingWithNoValue Can not stake with zero value.
InsufficientStakingValue Can not stake with value less than minimum staking value
MaxNumberOfStakersExceeded Number of stakers per contract exceeded.
NotOperatedContract Targets must be operated contracts
NotStakedContract Contract isn't staked.
UnstakingWithNoValue Unstaking a contract with zero value
AlreadyRegisteredContract The contract is already registered by other account
ContractIsNotValid User attempts to register with address which is not contract
ContractNotRegistered Contract not registered for dapps staking.
AlreadyUsedDeveloperAccount This account was already used to register contract
NotOwnedContract Smart contract not owned by the account id.
UnexpectedState Unexpected state error, used to abort transaction. Used for situations that 'should never happen'.
UnknownStartStakingData Report issue on github if this is ever emitted
UnknownEraReward Report issue on github if this is ever emitted
NothingToClaim There are no funds to reward the contract. Or already claimed in that era
AlreadyClaimedInThisEra Contract already claimed in this era and reward is distributed
RequiredContractPreApproval To register a contract, pre-approval is needed for this address
AlreadyPreApprovedDeveloper Developer's account is already part of pre-approved list
ContractRewardsNotClaimed Contract rewards haven't been claimed prior to unregistration