Skip to content

Staging AH - Rename parachains to rollups #522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .snippets/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/paritytech/polkadot-sdk-parachain-template.git"
edition = "2021"

[workspace]
members = ["tutorials/polkadot-sdk/parachains/zero-to-hero/runtime"]
members = ["tutorials/polkadot-sdk/rollups/zero-to-hero/runtime"]
resolver = "2"

[workspace.dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const tx = paseoApi.tx.XcmPallet.limited_reserve_transfer_assets({
dest: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(
XcmV3Junction.Parachain(popParaID), // Destination is the Pop Network parachain
XcmV3Junction.Parachain(popParaID), // Destination is the Pop Network rollup
),
}),
beneficiary: XcmVersionedLocation.V3({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>ts-node localParachainTx.ts</span>
<span data-ty="input"><span class="file-path"></span>ts-node localRollupTx.ts</span>
<br>
<span data-ty>Call data:</span>
<span data-ty>{</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id='termynal' data-termynal>
<span data-ty='input'><span class='file-path'></span>ts-node paraToPara.ts</span>
<span data-ty='input'><span class='file-path'></span>ts-node rollupToRollup.ts</span>

<br>
<span data-ty>Call data:</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Options for customizing the claim assets transaction. These options allow you to

`paysWithFeeOrigin` ++"string"++

The Asset ID to pay fees on the current common good parachain. The defaults are as follows:
The Asset ID to pay fees on the current common good rollup. The defaults are as follows:

- Polkadot Asset Hub - `'DOT'`
- Kusama Asset Hub - `'KSM'`
Expand All @@ -25,7 +25,7 @@ Options for customizing the claim assets transaction. These options allow you to

`paysWithFeeDest` ++"string"++

Asset ID to pay fees on the destination parachain.
Asset ID to pay fees on the destination rollup.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,55 +46,55 @@ A promise containing the result of constructing the transaction.

`SystemToPara`

System parachain to parachain.
System rollup to rollup.

---

`SystemToRelay`

System paracahin to system relay chain.
System rollup to relay chain.

---

`SystemToSystem`

System parachain to System parachain chain.
System rollup to system rollup.

---

`SystemToBridge`

System parachain to an external `GlobalConsensus` chain.
System rollup to an external `GlobalConsensus` chain.

---

`ParaToPara`

Parachain to Parachain.
Rollup to rollup.

---

`ParaToRelay`

Parachain to Relay chain.
Rollup to relay chain.

---

`ParaToSystem`

Parachain to System parachain.
Rollup to system rollup.

---

`RelayToSystem`

Relay to System Parachain.
Relay to system rollup.

---

`RelayToPara`

Relay chain to Parachain.
Relay chain to rollup.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import { Binary } from 'polkadot-api';

// Create Polkadot client using WebSocket provider for Polkadot chain
const polkadotClient = createClient(
withPolkadotSdkCompat(getWsProvider('ws://127.0.0.1:8001'))
withPolkadotSdkCompat(getWsProvider('ws://127.0.0.1:8001')),
);
const dotApi = polkadotClient.getTypedApi(dot);

// Create Astar client using WebSocket provider for Astar chain
const astarClient = createClient(
withPolkadotSdkCompat(getWsProvider('ws://localhost:8000'))
withPolkadotSdkCompat(getWsProvider('ws://localhost:8000')),
);
const astarApi = astarClient.getTypedApi(astar);

Expand All @@ -42,7 +42,7 @@ const aliceKeyPair = derive('//Alice');
const alice = getPolkadotSigner(
aliceKeyPair.publicKey,
'Sr25519',
aliceKeyPair.sign
aliceKeyPair.sign,
);

// Define recipient (Dave) address on Astar chain
Expand All @@ -56,7 +56,7 @@ const polkadotAssetId = 340282366920938463463374607431768211455n;
// Fetch asset balance of recipient (Dave) before transaction
let assetMetadata = await astarApi.query.Assets.Account.getValue(
polkadotAssetId,
daveAddress
daveAddress,
);
console.log('Asset balance before tx:', assetMetadata?.balance ?? 0);

Expand All @@ -65,7 +65,7 @@ const tx = dotApi.tx.XcmPallet.limited_reserve_transfer_assets({
dest: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(
XcmV3Junction.Parachain(2006) // Destination is the Astar parachain
XcmV3Junction.Parachain(2006), // Destination is the Astar rollup
),
}),
beneficiary: XcmVersionedLocation.V3({
Expand All @@ -75,7 +75,7 @@ const tx = dotApi.tx.XcmPallet.limited_reserve_transfer_assets({
// Beneficiary address on Astar
network: undefined,
id: idBenef,
})
}),
),
}),
assets: XcmVersionedAssets.V3([
Expand Down Expand Up @@ -110,7 +110,7 @@ await new Promise((resolve) => setTimeout(resolve, 20000));
// Fetch asset balance of recipient (Dave) after transaction
assetMetadata = await astarApi.query.Assets.Account.getValue(
polkadotAssetId,
daveAddress
daveAddress,
);
console.log('Asset balance after tx:', assetMetadata?.balance ?? 0);

Expand Down

This file was deleted.

Loading