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/smart-contracts/precompiles/xcm-precompile.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Located at the fixed address `0x00000000000000000000000000000000000a0000`, the X
19
19
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}.
20
20
21
21
!!!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.
23
23
24
24
## Precompile Interface
25
25
@@ -36,7 +36,7 @@ The interface defines a `Weight` struct that represents the computational cost o
36
36
37
37
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.
38
38
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`.
40
40
41
41
## Interact with the XCM Precompile
42
42
@@ -135,4 +135,10 @@ Whether you're building DeFi protocols, governance systems, or any application r
135
135
136
136
## Conclusion
137
137
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.
Copy file name to clipboardExpand all lines: llms.txt
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12490,7 +12490,7 @@ Located at the fixed address `0x00000000000000000000000000000000000a0000`, the X
12490
12490
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}.
12491
12491
12492
12492
!!!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.
12494
12494
12495
12495
## Precompile Interface
12496
12496
@@ -12547,7 +12547,7 @@ The interface defines a `Weight` struct that represents the computational cost o
12547
12547
12548
12548
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.
12549
12549
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`.
12551
12551
12552
12552
## Interact with the XCM Precompile
12553
12553
@@ -12646,7 +12646,13 @@ Whether you're building DeFi protocols, governance systems, or any application r
12646
12646
12647
12647
## Conclusion
12648
12648
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.
0 commit comments