Coretime¶
Calls¶
assign_core¶
See [Pallet::assign_core
].
Attributes¶
Name | Type |
---|---|
core | BrokerCoreIndex |
begin | BlockNumberFor<T> |
assignment | Vec<(CoreAssignment, PartsOf57600)> |
end_hint | Option<BlockNumberFor<T>> |
Python¶
call = substrate.compose_call(
'Coretime', 'assign_core', {
'assignment': [
(
{
'Idle': None,
'Pool': None,
'Task': 'u32',
},
'u16',
),
],
'begin': 'u32',
'core': 'u16',
'end_hint': (None, 'u32'),
}
)
request_core_count¶
See [Pallet::request_core_count
].
Attributes¶
Name | Type |
---|---|
count | u16 |
Python¶
call = substrate.compose_call(
'Coretime', 'request_core_count', {'count': 'u16'}
)
Events¶
CoreAssigned¶
A core has received a new assignment from the broker chain.
Attributes¶
Name | Type | Composition |
---|---|---|
core | CoreIndex |
u32 |
RevenueInfoRequested¶
The broker chain has asked for revenue information for a specific block.
Attributes¶
Name | Type | Composition |
---|---|---|
when | BlockNumberFor<T> |
u32 |
Constants¶
BrokerId¶
The ParaId of the broker system parachain.
Value¶
1005
Python¶
constant = substrate.get_constant('Coretime', 'BrokerId')
Errors¶
NotBroker¶
The paraid making the call is not the coretime brokerage system parachain.