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
+44-1Lines changed: 44 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,4 +170,47 @@ Once you have these values, construct the extrinsic:
170
170
171
171
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:
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.
179
+
180
+
The XCM message needs to execute these operations:
181
+
182
+
1. Withdraw DOT from your parachain's sovereign account on the Coretime chain
183
+
2. Buy execution to pay for transaction fees
184
+
3. Execute the auto-renewal extrinsic
185
+
4. Refund surplus DOT back to the sovereign account
186
+
187
+
Here's how to submit this XCM using Acala (Parachain 2000) as an example:
188
+
189
+
1. In [Polkadot.js Apps](https://polkadot.js.org/apps/#/explorer){target=\_blank}, connect to your parachain, navigate to the **Developer** dropdown and select the **Extrinsics** option
190
+
191
+
2. Create a `sudo.sudo` extrinsic that executes `polkadotXcm.send`:
192
+
1. Use the `sudo.sudo` extrinsic to execute the following call as Root
193
+
2. Select the **polkadotXcm** pallet
194
+
3. Choose the **send** extrinsic
195
+
4. Set the **dest** parameter as the Coretime chain (Parachain 1005)
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
+43-33Lines changed: 43 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -4034,6 +4034,49 @@ Once you have these values, construct the extrinsic:
4034
4034
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:
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.
4042
+
4043
+
The XCM message needs to execute these operations:
4044
+
4045
+
1. Withdraw DOT from your parachain's sovereign account on the Coretime chain
4046
+
2. Buy execution to pay for transaction fees
4047
+
3. Execute the auto-renewal extrinsic
4048
+
4. Refund surplus DOT back to the sovereign account
4049
+
4050
+
Here's how to submit this XCM using Acala (Parachain 2000) as an example:
4051
+
4052
+
1. In [Polkadot.js Apps](https://polkadot.js.org/apps/#/explorer){target=\_blank}, connect to your parachain, navigate to the **Developer** dropdown and select the **Extrinsics** option
4053
+
4054
+
2. Create a `sudo.sudo` extrinsic that executes `polkadotXcm.send`:
4055
+
1. Use the `sudo.sudo` extrinsic to execute the following call as Root
4056
+
2. Select the **polkadotXcm** pallet
4057
+
3. Choose the **send** extrinsic
4058
+
4. Set the **dest** parameter as the Coretime chain (Parachain 1005)
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:
@@ -24229,12 +24272,6 @@ Configure the pallets by implementing their `Config` trait and update the runtim
24229
24272
24230
24273
```
24231
24274
24232
-
```rust title="mod.rs" hl_lines="3"
24233
-
...
24234
-
use super::OriginCaller;
24235
-
...
24236
-
```
24237
-
24238
24275
2. Implement the [`Config`](https://paritytech.github.io/polkadot-sdk/master/pallet_utility/pallet/trait.Config.html){target=\_blank} trait for both pallets at the end of the `runtime/src/config/mod.rs` file:
24239
24276
24240
24277
```rust title="mod.rs"
@@ -24250,33 +24287,6 @@ parameter_types! {
24250
24287
pub const CounterMaxValue: u32 = 500;
24251
24288
}
24252
24289
24253
-
// Configure custom pallet.
24254
-
impl custom_pallet::Config for Runtime {
24255
-
type RuntimeEvent = RuntimeEvent;
24256
-
type CounterMaxValue = CounterMaxValue;
24257
-
24258
-
```
24259
-
24260
-
```rust title="mod.rs" hl_lines="8-25"
24261
-
...
24262
-
impl pallet_parachain_template::Config for Runtime {
24263
-
type RuntimeEvent = RuntimeEvent;
24264
-
type WeightInfo = pallet_parachain_template::weights::SubstrateWeight<Runtime>;
24265
-
}
24266
-
24267
-
// Configure utility pallet.
24268
-
impl pallet_utility::Config for Runtime {
24269
-
type RuntimeEvent = RuntimeEvent;
24270
-
type RuntimeCall = RuntimeCall;
24271
-
type PalletsOrigin = OriginCaller;
24272
-
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
0 commit comments