Skip to content

Commit 2ec31d0

Browse files
committed
Update llms.txt
1 parent d67c2ad commit 2ec31d0

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

llms.txt

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,30 @@ decl_test_relay_chains! {
640640
- [**`decl_test_parachains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L590){target=\_blank} - defines runtime and configuration for the parachains. Example:
641641

642642
```rust
643-
Error fetching snippet from https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/chains/parachains/assets/asset-hub-westend/src/lib.rs
643+
// AssetHubWestend Parachain declaration
644+
decl_test_parachains! {
645+
pub struct AssetHubWestend {
646+
genesis = genesis::genesis(),
647+
on_init = {
648+
asset_hub_westend_runtime::AuraExt::on_initialize(1);
649+
},
650+
runtime = asset_hub_westend_runtime,
651+
core = {
652+
XcmpMessageHandler: asset_hub_westend_runtime::XcmpQueue,
653+
LocationToAccountId: asset_hub_westend_runtime::xcm_config::LocationToAccountId,
654+
ParachainInfo: asset_hub_westend_runtime::ParachainInfo,
655+
MessageOrigin: cumulus_primitives_core::AggregateMessageOrigin,
656+
},
657+
pallets = {
658+
PolkadotXcm: asset_hub_westend_runtime::PolkadotXcm,
659+
Balances: asset_hub_westend_runtime::Balances,
660+
Assets: asset_hub_westend_runtime::Assets,
661+
ForeignAssets: asset_hub_westend_runtime::ForeignAssets,
662+
PoolAssets: asset_hub_westend_runtime::PoolAssets,
663+
AssetConversion: asset_hub_westend_runtime::AssetConversion,
664+
}
665+
},
666+
}
644667
```
645668

646669
- [**`decl_test_bridges`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L1178){target=\_blank} - creates bridges between chains, specifying the source, target, and message handler. Example:
@@ -5376,7 +5399,18 @@ pub type Value<T: Config> = StorageValue<_, u32>;
53765399

53775400
- New `StorageValue` format:
53785401
```rust
5379-
Error fetching snippet from https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2409-1/substrate/frame/examples/single-block-migrations/src/lib.rs
5402+
/// Example struct holding the most recently set [`u32`] and the
5403+
/// second most recently set [`u32`] (if one existed).
5404+
#[docify::export]
5405+
#[derive(
5406+
Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug, scale_info::TypeInfo, MaxEncodedLen,
5407+
)]
5408+
pub struct CurrentAndPreviousValue {
5409+
/// The most recently set value.
5410+
pub current: u32,
5411+
/// The previous value, if one existed.
5412+
pub previous: Option<u32>,
5413+
}
53805414

53815415
#[pallet::storage]
53825416
pub type Value<T: Config> = StorageValue<_, CurrentAndPreviousValue>;

0 commit comments

Comments
 (0)