Name | Lookup | Parameters | |
|---|---|---|---|
| register | 2200 | 1 | |
| unregister | 2201 | 1 | |
| developer_pre_approval | 2202 | 1 | |
| enable_developer_pre_approval | 2203 | 1 | |
| bond_and_stake | 2204 | 2 | |
| unbond_unstake_and_withdraw | 2205 | 2 | |
| claim | 2206 | 1 | |
| force_new_era | 2207 | - |
Name | Lookup | Attributes | |
|---|---|---|---|
| BondAndStake | 2200 | ||
| UnbondUnstakeAndWithdraw | 2201 | ||
| NewContract | 2202 | ||
| ContractRemoved | 2203 | ||
| NewDappStakingEra | 2204 | ||
| ContractClaimed | 2205 |
Name | Type | |
|---|---|---|
| Ledger | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"BalanceOf","isLinked":false}} | |
| 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}} |
Name | Type | Value | |
|---|---|---|---|
| BlockPerEra | BlockNumberFor | 0x201c0000 | |
| RegisterDeposit | BalanceOf | 0x000010632d5ec76b0500000000000000 | |
| DeveloperRewardPercentage | u32 | 0x50000000 | |
| MaxNumberOfStakersPerContract | u32 | 0x00020000 | |
| MinimumStakingAmount | BalanceOf | 0x000010632d5ec76b0500000000000000 | |
| HistoryDepth | u32 | 0x0f000000 | |
| PalletId | PalletId | 0x70792f6470737374 | |
| TreasuryPalletId | PalletId | 0x70792f7472737279 |
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 |