Name | Lookup | Parameters | |
|---|---|---|---|
| register | 2200 | 1 | |
| unregister | 2201 | 1 | |
| bond_and_stake | 2202 | 2 | |
| unbond_unstake_and_withdraw | 2203 | 2 | |
| claim | 2204 | 2 | |
| force_new_era | 2205 | - | |
| developer_pre_approval | 2206 | 1 | |
| enable_developer_pre_approval | 2207 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| BondAndStake | 2200 | ["AccountId","SmartContract","BalanceOf"] | |
| UnbondUnstakeAndWithdraw | 2201 | ["AccountId","SmartContract","BalanceOf"] | |
| NewContract | 2202 | ["AccountId","SmartContract"] | |
| ContractRemoved | 2203 | ["AccountId","SmartContract"] | |
| NewDappStakingEra | 2204 | ["EraIndex"] | |
| Reward | 2205 | ["AccountId","SmartContract","EraIndex","BalanceOf"] |
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":233} | |
| RegisteredDevelopers | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"astar_runtime:SmartContract","keys_id":0,"value_id":37}} | |
| RegisteredDapps | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["astar_runtime:SmartContract"],"value":"AccountId","keys_id":37,"value_id":0}} | |
| EraRewardsAndStakes | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"pallet_dapps_staking:EraRewardAndStake","keys_id":4,"value_id":234}} | |
| ContractEraStake | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Twox64Concat"],"key_vec":["astar_runtime:SmartContract","U32"],"value":"pallet_dapps_staking:EraStakingPoints","keys_id":235,"value_id":236}} | |
| PreApprovalIsEnabled | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":58} | |
| PreApprovedDevelopers | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"NULL","keys_id":0,"value_id":28}} |
Name | Type | Value | |
|---|---|---|---|
| BlockPerEra | U32 | 201c0000 | |
| RegisterDeposit | U128 | 000010632d5ec76b0500000000000000 | |
| DeveloperRewardPercentage | U32 | 80969800 | |
| MaxNumberOfStakersPerContract | U32 | 00020000 | |
| MinimumStakingAmount | U128 | 000050efe2d6e41a1b00000000000000 | |
| HistoryDepth | U32 | 0e000000 | |
| BonusEraDuration | U32 | 00000000 | |
| PalletId | [U8; 8] | 70792f6470737374 | |
| MinimumRemainingAmount | U128 | 000064a7b3b6e00d0000000000000000 |
Name | Docs |
|---|---|
| StakingWithNoValue | Can not stake with zero value. |
| InsufficientValue | 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 |
| AlreadyUsedDeveloperAccount | This account was already used to register contract |
| NotOwnedContract | Smart contract not owned by the account id. |
| UnknownEraReward | Report issue on github if this is ever emitted |
| NotStaked | Contract hasn't been staked on in this era. |
| AlreadyClaimedInThisEra | Contract already claimed in this era and reward is distributed |
| EraOutOfBounds | Era parameter is out of bounds |
| RequiredContractPreApproval | To register a contract, pre-approval is needed for this address |
| AlreadyPreApprovedDeveloper | Developer's account is already part of pre-approved list |