Skip to content

Commit ad1c41c

Browse files
Change Setting Up Your Workspace
1 parent 3ba5137 commit ad1c41c

File tree

2 files changed

+70
-24
lines changed

2 files changed

+70
-24
lines changed

llms-full.txt

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30913,40 +30913,63 @@ If you're new to XCM replay or dry-run, see [Replay and Dry Run XCMs Using Chops
3091330913
mkdir -p xcm-obs-demo && cd xcm-obs-demo
3091430914
```
3091530915

30916-
2. Initialise Node project:
30916+
2. Install Chopsticks globally:
3091730917

3091830918
```bash
30919-
npm init -y
30919+
npm install -g @acala-network/chopsticks@latest
3092030920
```
3092130921

30922-
3. Install Chopsticks globally:
30922+
3. Download 1.6.0 (or later) runtime:
3092330923

3092430924
```bash
30925-
npm install -g @acala-network/chopsticks@latest
30925+
mkdir -p wasms
30926+
wget https://github.com/polkadot-fellows/runtimes/releases/download/v1.6.0/asset-hub-polkadot_runtime-v1006000.compact.compressed.wasm -O wasms/asset-hub-polkadot_v1.6.0.wasm
3092630927
```
3092730928

30928-
4. Install TypeScript and Polkadot dependencies:
30929+
4. Download config of Polkadot Hub:
3092930930

3093030931
```bash
30931-
npm install --save-dev typescript @types/node tsx
30932-
npm install polkadot-api @polkadot-labs/hdkd @polkadot-labs/hdkd-helpers
30932+
mkdir -p configs
30933+
wget https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/polkadot-asset-hub.yml -O configs/polkadot-hub-override.yaml
3093330934
```
3093430935

30935-
5. Initialise TypeScript:
30936+
5. Edit `configs/polkadot-hub-override.yaml` to include:
3093630937

30937-
```bash
30938-
npx tsc --init
30938+
```yaml title="configs/polkadot-hub-override.yaml"
30939+
...
30940+
# wasm-override: wasms/asset_hub_polkadot_runtime.wasm # Uncomment if using the `debug` build
30941+
wasm-override: wasms/asset-hub-polkadot_v1.6.0.wasm # Use this if you built with `release`
30942+
...
3093930943
```
3094030944

3094130945
6. Fork the relevant chains locally using Chopsticks:
3094230946

3094330947
```bash
30944-
npx @acala-network/chopsticks xcm -r polkadot -p polkadot-asset-hub -p hydradx
30948+
npx @acala-network/chopsticks xcm -r polkadot -p configs/polkadot-hub-override.yaml -p hydradx
3094530949
```
3094630950

3094730951
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
3094830952

30949-
7. Add descriptors:
30953+
7. Open a **new terminal** in the same folder and initialise a Node.js project:
30954+
30955+
```bash
30956+
npm init -y
30957+
```
30958+
30959+
8. Install TypeScript and Polkadot dependencies:
30960+
30961+
```bash
30962+
npm install --save-dev typescript @types/node tsx
30963+
npm install polkadot-api @polkadot-labs/hdkd @polkadot-labs/hdkd-helpers
30964+
```
30965+
30966+
9. Initialise TypeScript:
30967+
30968+
```bash
30969+
npx tsc --init
30970+
```
30971+
30972+
10. Add descriptors:
3095030973

3095130974
```bash
3095230975
npx papi add assetHub -w ws://localhost:8000

tutorials/interoperability/xcm-observability.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,40 +41,63 @@ If you're new to XCM replay or dry-run, see [Replay and Dry Run XCMs Using Chops
4141
mkdir -p xcm-obs-demo && cd xcm-obs-demo
4242
```
4343

44-
2. Initialise Node project:
44+
2. Install Chopsticks globally:
4545

4646
```bash
47-
npm init -y
47+
npm install -g @acala-network/chopsticks@latest
4848
```
4949

50-
3. Install Chopsticks globally:
50+
3. Download 1.6.0 (or later) runtime:
5151

5252
```bash
53-
npm install -g @acala-network/chopsticks@latest
53+
mkdir -p wasms
54+
wget https://github.com/polkadot-fellows/runtimes/releases/download/v1.6.0/asset-hub-polkadot_runtime-v1006000.compact.compressed.wasm -O wasms/asset-hub-polkadot_v1.6.0.wasm
5455
```
5556

56-
4. Install TypeScript and Polkadot dependencies:
57+
4. Download config of Polkadot Hub:
5758

5859
```bash
59-
npm install --save-dev typescript @types/node tsx
60-
npm install polkadot-api @polkadot-labs/hdkd @polkadot-labs/hdkd-helpers
60+
mkdir -p configs
61+
wget https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/polkadot-asset-hub.yml -O configs/polkadot-hub-override.yaml
6162
```
6263

63-
5. Initialise TypeScript:
64+
5. Edit `configs/polkadot-hub-override.yaml` to include:
6465

65-
```bash
66-
npx tsc --init
66+
```yaml title="configs/polkadot-hub-override.yaml"
67+
...
68+
# wasm-override: wasms/asset_hub_polkadot_runtime.wasm # Uncomment if using the `debug` build
69+
wasm-override: wasms/asset-hub-polkadot_v1.6.0.wasm # Use this if you built with `release`
70+
...
6771
```
6872

6973
6. Fork the relevant chains locally using Chopsticks:
7074

7175
```bash
72-
npx @acala-network/chopsticks xcm -r polkadot -p polkadot-asset-hub -p hydradx
76+
npx @acala-network/chopsticks xcm -r polkadot -p configs/polkadot-hub-override.yaml -p hydradx
7377
```
7478

7579
→ See the [Fork a Chain with Chopsticks guide](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} for detailed instructions.
7680

77-
7. Add descriptors:
81+
7. Open a **new terminal** in the same folder and initialise a Node.js project:
82+
83+
```bash
84+
npm init -y
85+
```
86+
87+
8. Install TypeScript and Polkadot dependencies:
88+
89+
```bash
90+
npm install --save-dev typescript @types/node tsx
91+
npm install polkadot-api @polkadot-labs/hdkd @polkadot-labs/hdkd-helpers
92+
```
93+
94+
9. Initialise TypeScript:
95+
96+
```bash
97+
npx tsc --init
98+
```
99+
100+
10. Add descriptors:
78101

79102
```bash
80103
npx papi add assetHub -w ws://localhost:8000

0 commit comments

Comments
 (0)