Skip to content

Commit 59d7508

Browse files
Add some next steps
1 parent 7f89b2a commit 59d7508

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

develop/smart-contracts/precompiles/xcm-precompile.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Located at the fixed address `0x00000000000000000000000000000000000a0000`, the X
1919
This guide demonstrates how to interact with the XCM precompile through Solidity smart contracts using [Remix IDE](/develop/smart-contracts/dev-environments/remix.md){target=\_blank}.
2020

2121
!!!note
22-
The XCM precompile is very barebones. It's the most flexible but as such, doesn't provide abstractions to hide away XCM details. These have to be built on top.
22+
The XCM precompile provides the barebones XCM functionality. While it provides a lot of flexibility, it doesn't provide abstractions to hide away XCM details. These have to be built on top.
2323

2424
## Precompile Interface
2525

@@ -36,7 +36,7 @@ The interface defines a `Weight` struct that represents the computational cost o
3636

3737
All XCM messages must be encoded using the [SCALE codec](/polkadot-protocol/parachain-basics/data-encoding/#data-encoding){target=\_blank}, Polkadot's standard serialization format.
3838

39-
For further information, check the [`precompiles/IXCM.sol`](https://github.com/paritytech/polkadot-sdk/blob/cb629d46ebf00aa65624013a61f9c69ebf02b0b4/polkadot/xcm/pallet-xcm/src/precompiles/IXcm.sol){target=\_blank} file present in the `pallet-xcm`.
39+
For further information, check the [`precompiles/IXCM.sol`](https://github.com/paritytech/polkadot-sdk/blob/cb629d46ebf00aa65624013a61f9c69ebf02b0b4/polkadot/xcm/pallet-xcm/src/precompiles/IXcm.sol){target=\_blank} file present in `pallet-xcm`.
4040

4141
## Interact with the XCM Precompile
4242

@@ -135,4 +135,10 @@ Whether you're building DeFi protocols, governance systems, or any application r
135135

136136
## Conclusion
137137

138-
The XCM precompile provides a powerful interface for cross-chain interactions within the Polkadot ecosystem. By understanding how to properly encode messages, estimate weights, and execute or send XCM instructions, developers can build sophisticated cross-chain applications that leverage the full potential of Polkadot's interoperability features.
138+
The XCM precompile provides a simple yet powerful interface for cross-chain interactions within the Polkadot ecosystem and beyond.
139+
By building and executing XCM programs, developers can build cross-chain applications that leverage the full potential of Polkadot's interoperability features.
140+
141+
## Next steps
142+
143+
Head to the Polkadot Hub testnet and start playing around with the precompile using Hardhat or Foundry.
144+
You can use PAPI to build XCM programs and test them with chopsticks.

llms.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12490,7 +12490,7 @@ Located at the fixed address `0x00000000000000000000000000000000000a0000`, the X
1249012490
This guide demonstrates how to interact with the XCM precompile through Solidity smart contracts using [Remix IDE](/develop/smart-contracts/dev-environments/remix.md){target=\_blank}.
1249112491

1249212492
!!!note
12493-
The XCM precompile is very barebones. It's the most flexible but as such, doesn't provide abstractions to hide away XCM details. These have to be built on top.
12493+
The XCM precompile provides the barebones XCM functionality. While it provides a lot of flexibility, it doesn't provide abstractions to hide away XCM details. These have to be built on top.
1249412494

1249512495
## Precompile Interface
1249612496

@@ -12547,7 +12547,7 @@ The interface defines a `Weight` struct that represents the computational cost o
1254712547

1254812548
All XCM messages must be encoded using the [SCALE codec](/polkadot-protocol/parachain-basics/data-encoding/#data-encoding){target=\_blank}, Polkadot's standard serialization format.
1254912549

12550-
For further information, check the [`precompiles/IXCM.sol`](https://github.com/paritytech/polkadot-sdk/blob/cb629d46ebf00aa65624013a61f9c69ebf02b0b4/polkadot/xcm/pallet-xcm/src/precompiles/IXcm.sol){target=\_blank} file present in the `pallet-xcm`.
12550+
For further information, check the [`precompiles/IXCM.sol`](https://github.com/paritytech/polkadot-sdk/blob/cb629d46ebf00aa65624013a61f9c69ebf02b0b4/polkadot/xcm/pallet-xcm/src/precompiles/IXcm.sol){target=\_blank} file present in `pallet-xcm`.
1255112551

1255212552
## Interact with the XCM Precompile
1255312553

@@ -12646,7 +12646,13 @@ Whether you're building DeFi protocols, governance systems, or any application r
1264612646

1264712647
## Conclusion
1264812648

12649-
The XCM precompile provides a powerful interface for cross-chain interactions within the Polkadot ecosystem. By understanding how to properly encode messages, estimate weights, and execute or send XCM instructions, developers can build sophisticated cross-chain applications that leverage the full potential of Polkadot's interoperability features.
12649+
The XCM precompile provides a simple yet powerful interface for cross-chain interactions within the Polkadot ecosystem and beyond.
12650+
By building and executing XCM programs, developers can build cross-chain applications that leverage the full potential of Polkadot's interoperability features.
12651+
12652+
## Next steps
12653+
12654+
Head to the Polkadot Hub testnet and start playing around with the precompile using Hardhat or Foundry.
12655+
You can use PAPI to build XCM programs and test them with chopsticks.
1265012656
--- END CONTENT ---
1265112657

1265212658
Doc-Content: https://docs.polkadot.com/develop/smart-contracts/wallets/

0 commit comments

Comments
 (0)