Skip to content

Commit

Permalink
Fix ups
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Oct 8, 2024
1 parent 4839103 commit c8ee98b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pallets/pallet-asset-switch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ The pallet has a single `SwitchPair` storage value that contains a `Option<Switc
If unset, no switch pair is configured hence no switch can happen.
When set and its status is `Running`, switches are enabled in both directions.

A second storage component, `PendingSwitchConfirmations`, is used for error recovery.
Specifically, it stores information about transfers executed locally but that have not been confirmed on the remote destination.
Once a transfer either succeeds or fails, the entry is removed from the storage and additional actions are taken as needed, e.g., reverting the transfer locally as well.
Two more storage components, `PendingSwitchConfirmations` and `NextQueryId`, are used for error recovery.
Specifically, the former stores information about transfers executed locally but that have not been confirmed on the remote destination.
Once a transfer either succeeds or fails, the entry is removed from the storage and additional actions are taken as needed, e.g., reverting the transfer locally as well.Th
The latter stores an ever-increasing counter, which wraps around itself when it would overflow, and provides the value the `PendingSwitchConfirmations` storage map uses to keep track of pending confirmations.

## Events

Expand Down
4 changes: 0 additions & 4 deletions runtimes/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ sp-weights = { workspace = true }
cumulus-primitives-core = { workspace = true }

# Polkadot dependencies
pallet-xcm = { workspace = true }
polkadot-parachain = { workspace = true }
polkadot-runtime-common = { workspace = true }
xcm = { workspace = true }
Expand Down Expand Up @@ -92,7 +91,6 @@ runtime-benchmarks = [
"pallet-multisig/runtime-benchmarks",
"pallet-tips/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"polkadot-parachain/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"public-credentials/runtime-benchmarks",
Expand Down Expand Up @@ -127,7 +125,6 @@ std = [
"pallet-transaction-payment/std",
"pallet-treasury/std",
"pallet-web3-names/std",
"pallet-xcm/std",
"parachain-staking/std",
"parity-scale-codec/std",
"parity-scale-codec/std",
Expand Down Expand Up @@ -161,7 +158,6 @@ try-runtime = [
"pallet-transaction-payment/try-runtime",
"pallet-treasury/try-runtime",
"pallet-treasury/try-runtime",
"pallet-xcm/try-runtime",
"parachain-staking/try-runtime",
"public-credentials/try-runtime",
]

0 comments on commit c8ee98b

Please sign in to comment.