ParachainStaking¶
Calls¶
cancel_candidate_bond_less¶
See [Pallet::cancel_candidate_bond_less
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'cancel_candidate_bond_less', {}
)
cancel_delegation_request¶
See [Pallet::cancel_delegation_request
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'cancel_delegation_request', {'candidate': '[u8; 20]'}
)
cancel_leave_candidates¶
See [Pallet::cancel_leave_candidates
].
Attributes¶
Name | Type |
---|---|
candidate_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'cancel_leave_candidates', {'candidate_count': 'u32'}
)
candidate_bond_more¶
See [Pallet::candidate_bond_more
].
Attributes¶
Name | Type |
---|---|
more | BalanceOf<T> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'candidate_bond_more', {'more': 'u128'}
)
delegate¶
See [Pallet::delegate
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
amount | BalanceOf<T> |
candidate_delegation_count | u32 |
delegation_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'delegate', {
'amount': 'u128',
'candidate': '[u8; 20]',
'candidate_delegation_count': 'u32',
'delegation_count': 'u32',
}
)
delegate_with_auto_compound¶
See [Pallet::delegate_with_auto_compound
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
amount | BalanceOf<T> |
auto_compound | Percent |
candidate_delegation_count | u32 |
candidate_auto_compounding_delegation_count | u32 |
delegation_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'delegate_with_auto_compound', {
'amount': 'u128',
'auto_compound': 'u8',
'candidate': '[u8; 20]',
'candidate_auto_compounding_delegation_count': 'u32',
'candidate_delegation_count': 'u32',
'delegation_count': 'u32',
}
)
delegator_bond_more¶
See [Pallet::delegator_bond_more
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
more | BalanceOf<T> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'delegator_bond_more', {
'candidate': '[u8; 20]',
'more': 'u128',
}
)
enable_marking_offline¶
See [Pallet::enable_marking_offline
].
Attributes¶
Name | Type |
---|---|
value | bool |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'enable_marking_offline', {'value': 'bool'}
)
execute_candidate_bond_less¶
See [Pallet::execute_candidate_bond_less
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'execute_candidate_bond_less', {'candidate': '[u8; 20]'}
)
execute_delegation_request¶
See [Pallet::execute_delegation_request
].
Attributes¶
Name | Type |
---|---|
delegator | T::AccountId |
candidate | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'execute_delegation_request', {
'candidate': '[u8; 20]',
'delegator': '[u8; 20]',
}
)
execute_leave_candidates¶
See [Pallet::execute_leave_candidates
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
candidate_delegation_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'execute_leave_candidates', {
'candidate': '[u8; 20]',
'candidate_delegation_count': 'u32',
}
)
force_join_candidates¶
See [Pallet::force_join_candidates
].
Attributes¶
Name | Type |
---|---|
account | T::AccountId |
bond | BalanceOf<T> |
candidate_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'force_join_candidates', {
'account': '[u8; 20]',
'bond': 'u128',
'candidate_count': 'u32',
}
)
go_offline¶
See [Pallet::go_offline
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'go_offline', {}
)
go_online¶
See [Pallet::go_online
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'go_online', {}
)
hotfix_remove_delegation_requests_exited_candidates¶
See [Pallet::hotfix_remove_delegation_requests_exited_candidates
].
Attributes¶
Name | Type |
---|---|
candidates | Vec<T::AccountId> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'hotfix_remove_delegation_requests_exited_candidates', {'candidates': ['[u8; 20]']}
)
join_candidates¶
See [Pallet::join_candidates
].
Attributes¶
Name | Type |
---|---|
bond | BalanceOf<T> |
candidate_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'join_candidates', {
'bond': 'u128',
'candidate_count': 'u32',
}
)
notify_inactive_collator¶
See [Pallet::notify_inactive_collator
].
Attributes¶
Name | Type |
---|---|
collator | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'notify_inactive_collator', {'collator': '[u8; 20]'}
)
removed_call_19¶
See [Pallet::removed_call_19
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'removed_call_19', {}
)
removed_call_20¶
See [Pallet::removed_call_20
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'removed_call_20', {}
)
removed_call_21¶
See [Pallet::removed_call_21
].
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'ParachainStaking', 'removed_call_21', {}
)
schedule_candidate_bond_less¶
See [Pallet::schedule_candidate_bond_less
].
Attributes¶
Name | Type |
---|---|
less | BalanceOf<T> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'schedule_candidate_bond_less', {'less': 'u128'}
)
schedule_delegator_bond_less¶
See [Pallet::schedule_delegator_bond_less
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
less | BalanceOf<T> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'schedule_delegator_bond_less', {
'candidate': '[u8; 20]',
'less': 'u128',
}
)
schedule_leave_candidates¶
See [Pallet::schedule_leave_candidates
].
Attributes¶
Name | Type |
---|---|
candidate_count | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'schedule_leave_candidates', {'candidate_count': 'u32'}
)
schedule_revoke_delegation¶
See [Pallet::schedule_revoke_delegation
].
Attributes¶
Name | Type |
---|---|
collator | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'schedule_revoke_delegation', {'collator': '[u8; 20]'}
)
set_auto_compound¶
See [Pallet::set_auto_compound
].
Attributes¶
Name | Type |
---|---|
candidate | T::AccountId |
value | Percent |
candidate_auto_compounding_delegation_count_hint | u32 |
delegation_count_hint | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_auto_compound', {
'candidate': '[u8; 20]',
'candidate_auto_compounding_delegation_count_hint': 'u32',
'delegation_count_hint': 'u32',
'value': 'u8',
}
)
set_blocks_per_round¶
See [Pallet::set_blocks_per_round
].
Attributes¶
Name | Type |
---|---|
new | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_blocks_per_round', {'new': 'u32'}
)
set_collator_commission¶
See [Pallet::set_collator_commission
].
Attributes¶
Name | Type |
---|---|
new | Perbill |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_collator_commission', {'new': 'u32'}
)
set_inflation¶
See [Pallet::set_inflation
].
Attributes¶
Name | Type |
---|---|
schedule | Range<Perbill> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_inflation', {
'schedule': {
'ideal': 'u32',
'max': 'u32',
'min': 'u32',
},
}
)
set_parachain_bond_account¶
See [Pallet::set_parachain_bond_account
].
Attributes¶
Name | Type |
---|---|
new | T::AccountId |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_parachain_bond_account', {'new': '[u8; 20]'}
)
set_parachain_bond_reserve_percent¶
See [Pallet::set_parachain_bond_reserve_percent
].
Attributes¶
Name | Type |
---|---|
new | Percent |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_parachain_bond_reserve_percent', {'new': 'u8'}
)
set_staking_expectations¶
See [Pallet::set_staking_expectations
].
Attributes¶
Name | Type |
---|---|
expectations | Range<BalanceOf<T>> |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_staking_expectations', {
'expectations': {
'ideal': 'u128',
'max': 'u128',
'min': 'u128',
},
}
)
set_total_selected¶
See [Pallet::set_total_selected
].
Attributes¶
Name | Type |
---|---|
new | u32 |
Python¶
call = substrate.compose_call(
'ParachainStaking', 'set_total_selected', {'new': 'u32'}
)
Events¶
AutoCompoundSet¶
Auto-compounding reward percent was set for a delegation.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
delegator | T::AccountId |
[u8; 20] |
value | Percent |
u8 |
BlocksPerRoundSet¶
Set blocks per round
Attributes¶
Name | Type | Composition |
---|---|---|
current_round | RoundIndex |
u32 |
first_block | BlockNumberFor<T> |
u32 |
old | u32 |
u32 |
new | u32 |
u32 |
new_per_round_inflation_min | Perbill |
u32 |
new_per_round_inflation_ideal | Perbill |
u32 |
new_per_round_inflation_max | Perbill |
u32 |
CancelledCandidateBondLess¶
Cancelled request to decrease candidate's bond.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
execute_round | RoundIndex |
u32 |
CancelledCandidateExit¶
Cancelled request to leave the set of candidates.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
CancelledDelegationRequest¶
Cancelled request to change an existing delegation.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
cancelled_request | CancelledScheduledRequest<BalanceOf<T>> |
{'when_executable': 'u32', 'action': {'Revoke': 'u128', 'Decrease': 'u128'}} |
collator | T::AccountId |
[u8; 20] |
CandidateBackOnline¶
Candidate rejoins the set of collator candidates.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
CandidateBondLessRequested¶
Candidate requested to decrease a self bond.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
amount_to_decrease | BalanceOf<T> |
u128 |
execute_round | RoundIndex |
u32 |
CandidateBondedLess¶
Candidate has decreased a self bond.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
new_bond | BalanceOf<T> |
u128 |
CandidateBondedMore¶
Candidate has increased a self bond.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
new_total_bond | BalanceOf<T> |
u128 |
CandidateLeft¶
Candidate has left the set of candidates.
Attributes¶
Name | Type | Composition |
---|---|---|
ex_candidate | T::AccountId |
[u8; 20] |
unlocked_amount | BalanceOf<T> |
u128 |
new_total_amt_locked | BalanceOf<T> |
u128 |
CandidateScheduledExit¶
Candidate has requested to leave the set of candidates.
Attributes¶
Name | Type | Composition |
---|---|---|
exit_allowed_round | RoundIndex |
u32 |
candidate | T::AccountId |
[u8; 20] |
scheduled_exit | RoundIndex |
u32 |
CandidateWentOffline¶
Candidate temporarily leave the set of collator candidates without unbonding.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
CollatorChosen¶
Candidate selected for collators. Total Exposed Amount includes all delegations.
Attributes¶
Name | Type | Composition |
---|---|---|
round | RoundIndex |
u32 |
collator_account | T::AccountId |
[u8; 20] |
total_exposed_amount | BalanceOf<T> |
u128 |
CollatorCommissionSet¶
Set collator commission to this value.
Attributes¶
Name | Type | Composition |
---|---|---|
old | Perbill |
u32 |
new | Perbill |
u32 |
Compounded¶
Compounded a portion of rewards towards the delegation.
Attributes¶
Name | Type | Composition |
---|---|---|
candidate | T::AccountId |
[u8; 20] |
delegator | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
Delegation¶
New delegation (increase of the existing one).
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
locked_amount | BalanceOf<T> |
u128 |
candidate | T::AccountId |
[u8; 20] |
delegator_position | DelegatorAdded<BalanceOf<T>> |
{'AddedToTop': {'new_total': 'u128'}, 'AddedToBottom': None} |
auto_compound | Percent |
u8 |
DelegationDecreaseScheduled¶
Delegator requested to decrease a bond for the collator candidate.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
amount_to_decrease | BalanceOf<T> |
u128 |
execute_round | RoundIndex |
u32 |
DelegationDecreased¶
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
in_top | bool |
bool |
DelegationIncreased¶
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
amount | BalanceOf<T> |
u128 |
in_top | bool |
bool |
DelegationKicked¶
Delegation kicked.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
unstaked_amount | BalanceOf<T> |
u128 |
DelegationRevocationScheduled¶
Delegator requested to revoke delegation.
Attributes¶
Name | Type | Composition |
---|---|---|
round | RoundIndex |
u32 |
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
scheduled_exit | RoundIndex |
u32 |
DelegationRevoked¶
Delegation revoked.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
unstaked_amount | BalanceOf<T> |
u128 |
DelegatorExitCancelled¶
Cancelled a pending request to exit the set of delegators.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
DelegatorExitScheduled¶
Delegator requested to leave the set of delegators.
Attributes¶
Name | Type | Composition |
---|---|---|
round | RoundIndex |
u32 |
delegator | T::AccountId |
[u8; 20] |
scheduled_exit | RoundIndex |
u32 |
DelegatorLeft¶
Delegator has left the set of delegators.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
unstaked_amount | BalanceOf<T> |
u128 |
DelegatorLeftCandidate¶
Delegation from candidate state has been remove.
Attributes¶
Name | Type | Composition |
---|---|---|
delegator | T::AccountId |
[u8; 20] |
candidate | T::AccountId |
[u8; 20] |
unstaked_amount | BalanceOf<T> |
u128 |
total_candidate_staked | BalanceOf<T> |
u128 |
InflationSet¶
Annual inflation input (first 3) was used to derive new per-round inflation (last 3)
Attributes¶
Name | Type | Composition |
---|---|---|
annual_min | Perbill |
u32 |
annual_ideal | Perbill |
u32 |
annual_max | Perbill |
u32 |
round_min | Perbill |
u32 |
round_ideal | Perbill |
u32 |
round_max | Perbill |
u32 |
JoinedCollatorCandidates¶
Account joined the set of collator candidates.
Attributes¶
Name | Type | Composition |
---|---|---|
account | T::AccountId |
[u8; 20] |
amount_locked | BalanceOf<T> |
u128 |
new_total_amt_locked | BalanceOf<T> |
u128 |
NewRound¶
Started new round.
Attributes¶
Name | Type | Composition |
---|---|---|
starting_block | BlockNumberFor<T> |
u32 |
round | RoundIndex |
u32 |
selected_collators_number | u32 |
u32 |
total_balance | BalanceOf<T> |
u128 |
ParachainBondAccountSet¶
Account (re)set for parachain bond treasury.
Attributes¶
Name | Type | Composition |
---|---|---|
old | T::AccountId |
[u8; 20] |
new | T::AccountId |
[u8; 20] |
ParachainBondReservePercentSet¶
Percent of inflation reserved for parachain bond (re)set.
Attributes¶
Name | Type | Composition |
---|---|---|
old | Percent |
u8 |
new | Percent |
u8 |
ReservedForParachainBond¶
Transferred to account which holds funds reserved for parachain bond.
Attributes¶
Name | Type | Composition |
---|---|---|
account | T::AccountId |
[u8; 20] |
value | BalanceOf<T> |
u128 |
Rewarded¶
Paid the account (delegator or collator) the balance as liquid rewards.
Attributes¶
Name | Type | Composition |
---|---|---|
account | T::AccountId |
[u8; 20] |
rewards | BalanceOf<T> |
u128 |
StakeExpectationsSet¶
Staking expectations set.
Attributes¶
Name | Type | Composition |
---|---|---|
expect_min | BalanceOf<T> |
u128 |
expect_ideal | BalanceOf<T> |
u128 |
expect_max | BalanceOf<T> |
u128 |
TotalSelectedSet¶
Set total selected candidates to this value.
Attributes¶
Name | Type | Composition |
---|---|---|
old | u32 |
u32 |
new | u32 |
u32 |
Storage functions¶
AtStake¶
Snapshot of collator delegation stake at the start of the round
Python¶
result = substrate.query(
'ParachainStaking', 'AtStake', ['u32', '[u8; 20]']
)
Return value¶
{
'bond': 'u128',
'delegations': [
{'amount': 'u128', 'auto_compound': 'u8', 'owner': '[u8; 20]'},
],
'total': 'u128',
}
AutoCompoundingDelegations¶
Stores auto-compounding configuration per collator.
Python¶
result = substrate.query(
'ParachainStaking', 'AutoCompoundingDelegations', ['[u8; 20]']
)
Return value¶
[{'delegator': '[u8; 20]', 'value': 'u8'}]
AwardedPts¶
Points for each collator per round
Python¶
result = substrate.query(
'ParachainStaking', 'AwardedPts', ['u32', '[u8; 20]']
)
Return value¶
'u32'
BottomDelegations¶
Bottom delegations for collator candidate
Python¶
result = substrate.query(
'ParachainStaking', 'BottomDelegations', ['[u8; 20]']
)
Return value¶
{'delegations': [{'amount': 'u128', 'owner': '[u8; 20]'}], 'total': 'u128'}
CandidateInfo¶
Get collator candidate info associated with an account if account is candidate else None
Python¶
result = substrate.query(
'ParachainStaking', 'CandidateInfo', ['[u8; 20]']
)
Return value¶
{
'bond': 'u128',
'bottom_capacity': ('Full', 'Empty', 'Partial'),
'delegation_count': 'u32',
'highest_bottom_delegation_amount': 'u128',
'lowest_bottom_delegation_amount': 'u128',
'lowest_top_delegation_amount': 'u128',
'request': (None, {'amount': 'u128', 'when_executable': 'u32'}),
'status': {'Active': None, 'Idle': None, 'Leaving': 'u32'},
'top_capacity': ('Full', 'Empty', 'Partial'),
'total_counted': 'u128',
}
CandidatePool¶
The pool of collator candidates, each with their total backing stake
Python¶
result = substrate.query(
'ParachainStaking', 'CandidatePool', []
)
Return value¶
[{'amount': 'u128', 'owner': '[u8; 20]'}]
CollatorCommission¶
Commission percent taken off of rewards for all collators
Python¶
result = substrate.query(
'ParachainStaking', 'CollatorCommission', []
)
Return value¶
'u32'
DelayedPayouts¶
Delayed payouts
Python¶
result = substrate.query(
'ParachainStaking', 'DelayedPayouts', ['u32']
)
Return value¶
{
'collator_commission': 'u32',
'round_issuance': 'u128',
'total_staking_reward': 'u128',
}
DelegationScheduledRequests¶
Stores outstanding delegation requests per collator.
Python¶
result = substrate.query(
'ParachainStaking', 'DelegationScheduledRequests', ['[u8; 20]']
)
Return value¶
[
{'action': {'Decrease': 'u128', 'Revoke': 'u128'}, 'delegator': '[u8; 20]', 'when_executable': 'u32'},
]
DelegatorState¶
Get delegator state associated with an account if account is delegating else None
Python¶
result = substrate.query(
'ParachainStaking', 'DelegatorState', ['[u8; 20]']
)
Return value¶
{
'delegations': [{'amount': 'u128', 'owner': '[u8; 20]'}],
'id': '[u8; 20]',
'less_total': 'u128',
'status': {'Active': None, 'Leaving': 'u32'},
'total': 'u128',
}
EnableMarkingOffline¶
Killswitch to enable/disable marking offline feature.
Python¶
result = substrate.query(
'ParachainStaking', 'EnableMarkingOffline', []
)
Return value¶
'bool'
InflationConfig¶
Inflation configuration
Python¶
result = substrate.query(
'ParachainStaking', 'InflationConfig', []
)
Return value¶
{
'annual': {'ideal': 'u32', 'max': 'u32', 'min': 'u32'},
'expect': {'ideal': 'u128', 'max': 'u128', 'min': 'u128'},
'round': {'ideal': 'u32', 'max': 'u32', 'min': 'u32'},
}
ParachainBondInfo¶
Parachain bond config info { account, percent_of_inflation }
Python¶
result = substrate.query(
'ParachainStaking', 'ParachainBondInfo', []
)
Return value¶
{'account': '[u8; 20]', 'percent': 'u8'}
Points¶
Total points awarded to collators for block production in the round
Python¶
result = substrate.query(
'ParachainStaking', 'Points', ['u32']
)
Return value¶
'u32'
Round¶
Current round index and next round scheduled transition
Python¶
result = substrate.query(
'ParachainStaking', 'Round', []
)
Return value¶
{'current': 'u32', 'first': 'u32', 'length': 'u32'}
SelectedCandidates¶
The collator candidates selected for the current round
Python¶
result = substrate.query(
'ParachainStaking', 'SelectedCandidates', []
)
Return value¶
['[u8; 20]']
Staked¶
Total counted stake for selected candidates in the round
Python¶
result = substrate.query(
'ParachainStaking', 'Staked', ['u32']
)
Return value¶
'u128'
TopDelegations¶
Top delegations for collator candidate
Python¶
result = substrate.query(
'ParachainStaking', 'TopDelegations', ['[u8; 20]']
)
Return value¶
{'delegations': [{'amount': 'u128', 'owner': '[u8; 20]'}], 'total': 'u128'}
Total¶
Total capital locked by this staking pallet
Python¶
result = substrate.query(
'ParachainStaking', 'Total', []
)
Return value¶
'u128'
TotalSelected¶
The total candidates selected every round
Python¶
result = substrate.query(
'ParachainStaking', 'TotalSelected', []
)
Return value¶
'u32'
Constants¶
CandidateBondLessDelay¶
Number of rounds candidate requests to decrease self-bond must wait to be executable
Value¶
28
Python¶
constant = substrate.get_constant('ParachainStaking', 'CandidateBondLessDelay')
DelegationBondLessDelay¶
Number of rounds that delegation less requests must wait before executable
Value¶
28
Python¶
constant = substrate.get_constant('ParachainStaking', 'DelegationBondLessDelay')
LeaveCandidatesDelay¶
Number of rounds that candidates remain bonded before exit request is executable
Value¶
28
Python¶
constant = substrate.get_constant('ParachainStaking', 'LeaveCandidatesDelay')
LeaveDelegatorsDelay¶
Number of rounds that delegators remain bonded before exit request is executable
Value¶
28
Python¶
constant = substrate.get_constant('ParachainStaking', 'LeaveDelegatorsDelay')
MaxBottomDelegationsPerCandidate¶
Maximum bottom delegations (not counted) per candidate
Value¶
50
Python¶
constant = substrate.get_constant('ParachainStaking', 'MaxBottomDelegationsPerCandidate')
MaxCandidates¶
Maximum candidates
Value¶
200
Python¶
constant = substrate.get_constant('ParachainStaking', 'MaxCandidates')
MaxDelegationsPerDelegator¶
Maximum delegations per delegator
Value¶
100
Python¶
constant = substrate.get_constant('ParachainStaking', 'MaxDelegationsPerDelegator')
MaxOfflineRounds¶
If a collator doesn't produce any block on this number of rounds, it is notified as inactive. This value must be less than or equal to RewardPaymentDelay.
Value¶
1
Python¶
constant = substrate.get_constant('ParachainStaking', 'MaxOfflineRounds')
MaxTopDelegationsPerCandidate¶
Maximum top delegations counted per candidate
Value¶
300
Python¶
constant = substrate.get_constant('ParachainStaking', 'MaxTopDelegationsPerCandidate')
MinBlocksPerRound¶
Minimum number of blocks per round
Value¶
10
Python¶
constant = substrate.get_constant('ParachainStaking', 'MinBlocksPerRound')
MinCandidateStk¶
Minimum stake required for any account to be a collator candidate
Value¶
2000000000000000000000000
Python¶
constant = substrate.get_constant('ParachainStaking', 'MinCandidateStk')
MinDelegation¶
Minimum stake for any registered on-chain account to delegate
Value¶
50000000000000000000
Python¶
constant = substrate.get_constant('ParachainStaking', 'MinDelegation')
MinSelectedCandidates¶
Minimum number of selected candidates every round
Value¶
8
Python¶
constant = substrate.get_constant('ParachainStaking', 'MinSelectedCandidates')
RevokeDelegationDelay¶
Number of rounds that delegations remain bonded before revocation request is executable
Value¶
28
Python¶
constant = substrate.get_constant('ParachainStaking', 'RevokeDelegationDelay')
RewardPaymentDelay¶
Number of rounds after which block authors are rewarded
Value¶
2
Python¶
constant = substrate.get_constant('ParachainStaking', 'RewardPaymentDelay')