You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop/parachains/deployment/coretime-renewal.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Coretime can be purchased in bulk for a period of 28 days, providing access to P
14
14
The bulk sale process consists of three distinct phases:
15
15
16
16
-**Interlude phase** - the period between bulk sales when renewals are prioritized
17
-
-**Lead-in phase** - after the interlude phase, the Coretime Chain sets a new `start_price`and initiates a Dutch auction lasting `leadin_length` blocks. During this phase, prices experience downward pressure as the system works to find the market equilibrium. The final price at the end of this phase becomes the `regular_price` that will be used in the subsequent fixed price phase
17
+
-**Lead-in phase** - following the interlude phase, a new `start_price`is set, and a Dutch auction begins, lasting for `leadin_length` blocks. During this phase, prices experience downward pressure as the system aims to find market equilibrium. The final price at the end of this phase becomes the `regular_price`, which will be used in the subsequent fixed price phase
18
18
-**Fixed price phase** - the final phase where remaining cores are sold at the `regular_price` established during the leading phase. This provides a stable and predictable pricing environment for participants who did not purchase during the price discovery period
19
19
20
20
For more comprehensive information about the coretime sales process, refer to the [Coretime Sales](https://wiki.polkadot.network/learn/learn-agile-coretime/#coretime-sales){target=\_blank} section in the Polkadot Wiki.
@@ -48,19 +48,17 @@ For optimal results, the renewal should be performed during the interlude phase.
48
48
49
49
## Auto Renewal
50
50
51
-
The Coretime auto-renewal feature simplifies the process of maintaining continuous coretime allocation by automatically renewing cores at the beginning of each sale period. This eliminates the need for parachains to manually renew their cores for each bulk period, reducing operational overhead and the risk of missing renewal deadlines.
51
+
The coretime auto-renewal feature simplifies the process of maintaining continuous coretime allocation by automatically renewing cores at the beginning of each sale period. This eliminates the need for parachains to manually renew their cores for each bulk period, reducing operational overhead and the risk of missing renewal deadlines.
52
52
53
53
When auto-renewal is enabled, the system follows this process at the start of each sale:
54
54
55
55
1. The system scans all registered auto-renewal records
56
-
2. For each record, it attempts to process renewal payments from the task's sovereign account (which is the sibling account on the Coretime chain derived from the Parachain ID)
56
+
2. For each record, it attempts to process renewal payments from the task's [sovereign account](/polkadot-protocol/glossary/#sovereign-account){target=\_blank} (which is the sibling account on the Coretime chain derived from the Parachain ID)
57
57
3. Upon successful payment, the system emits a `Renewed` event and secures the core for the next period
58
58
4. If payment fails due to insufficient funds or other issues, the system emits an `AutoRenewalFailed` event
59
59
60
60
Even if an auto-renewal attempt fails, the auto-renewal setting remains active for subsequent sales. This means once you've configured auto-renewal, the setting persists across multiple periods.
61
61
62
-
There is a limit on the total number of auto-renewals allowed, specified at the runtime level as [`T::MaxAutoRenewals`](https://paritytech.github.io/polkadot-sdk/master/pallet_broker/pallet/trait.Config.html#associatedtype.MaxAutoRenewals){target=\_blank} (which is currently set to 100).
63
-
64
62
To enable auto-renewal for your parachain, you'll need to configure several components as detailed in the following sections.
65
63
66
64
### Set Up HRMP Channel
@@ -218,7 +216,7 @@ Once you have these values, construct the extrinsic:
218
216
219
217
To activate auto-renewal, you must submit an XCM from your parachain to the Coretime chain using Root origin. This can be done either through the sudo pallet (if available) or through your parachain's governance system.
220
218
221
-
The XCM message needs to execute these operations:
219
+
The XCM needs to execute these operations:
222
220
223
221
1. Withdraw DOT from your parachain's sovereign account on the Coretime chain
224
222
2. Buy execution to pay for transaction fees
@@ -252,6 +250,6 @@ Here's how to submit this XCM using Acala (Parachain 2000) as an example:
After successful execution, your parachain should have auto-renewal enabled. To verify this, check the events emitted in the Coretime chain.You should see confirmation events similar to:
253
+
After successful execution, your parachain should have auto-renewal enabled. To verify this, check the events emitted in the Coretime chain.You should see confirmation events similar to:
Copy file name to clipboardExpand all lines: llms.txt
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -3877,7 +3877,7 @@ Coretime can be purchased in bulk for a period of 28 days, providing access to P
3877
3877
The bulk sale process consists of three distinct phases:
3878
3878
3879
3879
- **Interlude phase** - the period between bulk sales when renewals are prioritized
3880
-
- **Lead-in phase** - after the interlude phase, the Coretime Chain sets a new `start_price` and initiates a Dutch auction lasting `leadin_length` blocks. During this phase, prices experience downward pressure as the system works to find the market equilibrium. The final price at the end of this phase becomes the `regular_price` that will be used in the subsequent fixed price phase
3880
+
- **Lead-in phase** - following the interlude phase, a new `start_price` is set, and a Dutch auction begins, lasting for `leadin_length` blocks. During this phase, prices experience downward pressure as the system aims to find market equilibrium. The final price at the end of this phase becomes the `regular_price`, which will be used in the subsequent fixed price phase
3881
3881
- **Fixed price phase** - the final phase where remaining cores are sold at the `regular_price` established during the leading phase. This provides a stable and predictable pricing environment for participants who did not purchase during the price discovery period
3882
3882
3883
3883
For more comprehensive information about the coretime sales process, refer to the [Coretime Sales](https://wiki.polkadot.network/learn/learn-agile-coretime/#coretime-sales){target=\_blank} section in the Polkadot Wiki.
@@ -3911,24 +3911,22 @@ For optimal results, the renewal should be performed during the interlude phase.
3911
3911
3912
3912
## Auto Renewal
3913
3913
3914
-
The Coretime auto-renewal feature simplifies the process of maintaining continuous coretime allocation by automatically renewing cores at the beginning of each sale period. This eliminates the need for parachains to manually renew their cores for each bulk period, reducing operational overhead and the risk of missing renewal deadlines.
3914
+
The coretime auto-renewal feature simplifies the process of maintaining continuous coretime allocation by automatically renewing cores at the beginning of each sale period. This eliminates the need for parachains to manually renew their cores for each bulk period, reducing operational overhead and the risk of missing renewal deadlines.
3915
3915
3916
3916
When auto-renewal is enabled, the system follows this process at the start of each sale:
3917
3917
3918
3918
1. The system scans all registered auto-renewal records
3919
-
2. For each record, it attempts to process renewal payments from the task's sovereign account (which is the sibling account on the Coretime chain derived from the Parachain ID)
3919
+
2. For each record, it attempts to process renewal payments from the task's [sovereign account](/polkadot-protocol/glossary/#sovereign-account){target=\_blank} (which is the sibling account on the Coretime chain derived from the Parachain ID)
3920
3920
3. Upon successful payment, the system emits a `Renewed` event and secures the core for the next period
3921
3921
4. If payment fails due to insufficient funds or other issues, the system emits an `AutoRenewalFailed` event
3922
3922
3923
3923
Even if an auto-renewal attempt fails, the auto-renewal setting remains active for subsequent sales. This means once you've configured auto-renewal, the setting persists across multiple periods.
3924
3924
3925
-
There is a limit on the total number of auto-renewals allowed, specified at the runtime level as [`T::MaxAutoRenewals`](https://paritytech.github.io/polkadot-sdk/master/pallet_broker/pallet/trait.Config.html#associatedtype.MaxAutoRenewals){target=\_blank} (which is currently set to 100).
3926
-
3927
3925
To enable auto-renewal for your parachain, you'll need to configure several components as detailed in the following sections.
3928
3926
3929
3927
### Set Up HRMP Channel
3930
3928
3931
-
An Horizontal Relay-routed Message Passing (HRMP) channel must be open between your parachain and the Coretime System Chain before auto-renewal can be configured.
3929
+
A Horizontal Relay-routed Message Passing (HRMP) channel must be open between your parachain and the Coretime System Chain before auto-renewal can be configured.
3932
3930
3933
3931
For instructions on establishing this connection, consult the [Opening HRMP Channels with System Parachains](/tutorials/interoperability/xcm-channels/para-to-system/){target=\_blank} guide.
3934
3932
@@ -4016,7 +4014,7 @@ To configure auto-renewal, you'll need to gather specific information for the `e
4016
4014
4017
4015
- **`task`** - use your parachain ID, which can be verified by connecting to your parachain and querying `parachainInfo.parachainId()`
4018
4016
4019
-
- **`workload_end_hint`** - you should always set it explicitly to avoid misbehavior. This value indicate when your assigned core will expire. Here's how to calculate the correct value based on how your core is assigned:
4017
+
- **`workload_end_hint`** - you should always set it explicitly to avoid misbehavior. This value indicates when your assigned core will expire. Here's how to calculate the correct value based on how your core is assigned:
4020
4018
- If the parachain uses bulk coretime:
4021
4019
4022
4020
Query `broker.saleinfo`. You’ll get a result like:
@@ -4071,7 +4069,7 @@ Once you have these values, construct the extrinsic:
For parachain `2000` on core `48` with workload_end_hint `327885`, the encoded call data would be:`0x32153000d007000001cd000500`
4072
+
For parachain `2000` on core `48` with `workload_end_hint` `327885`, the encoded call data would be:`0x32153000d007000001cd000500`
4075
4073
4076
4074
3. Check the transaction weight for executing the call. You can estimate this by executing the `transactionPaymentCallApi.queryCallInfo` runtime call with the encoded call data previously obtained:
4077
4075
@@ -4081,7 +4079,7 @@ Once you have these values, construct the extrinsic:
4081
4079
4082
4080
To activate auto-renewal, you must submit an XCM from your parachain to the Coretime chain using Root origin. This can be done either through the sudo pallet (if available) or through your parachain's governance system.
4083
4081
4084
-
The XCM message needs to execute these operations:
4082
+
The XCM needs to execute these operations:
4085
4083
4086
4084
1. Withdraw DOT from your parachain's sovereign account on the Coretime chain
4087
4085
2. Buy execution to pay for transaction fees
@@ -4115,7 +4113,7 @@ Here's how to submit this XCM using Acala (Parachain 2000) as an example:
After successful execution, your parachain should have auto-renewal enabled. To verify this, check the events emitted in the Coretime chain.You should see confirmation events similar to:
4116
+
After successful execution, your parachain should have auto-renewal enabled. To verify this, check the events emitted in the Coretime chain.You should see confirmation events similar to:
0 commit comments