Skip to content

chore: refactor some more XCM config stuff#457

Merged
ntn-x2 merged 6 commits intodevelopfrom
aa/xcm-config
Jan 26, 2023
Merged

chore: refactor some more XCM config stuff#457
ntn-x2 merged 6 commits intodevelopfrom
aa/xcm-config

Conversation

@ntn-x2
Copy link
Contributor

@ntn-x2 ntn-x2 commented Jan 25, 2023

There were few things that, as far as I have understood, were not 100% consistent with what the chain does and especially does NOT do, right now. More details are provided as comments in the files.

@ntn-x2 ntn-x2 requested a review from weichweich January 25, 2023 14:07
@ntn-x2 ntn-x2 self-assigned this Jan 25, 2023
/// the dispatch Origin.
pub type LocationToAccountId<RelayNetwork> = (
// The parent (Relay-chain) origin converts to the parent `AccountId`.
pub type LocationToAccountId<NetworkId> = (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generic refers to a network ID. So especially for the future it is clearer to give the generic the proper name.

// Balances pallet here. Balances is only used if fees are dropped without being
// used. In that case they are put into the treasury.
type Trader = UsingComponents<WeightToFee<Runtime>, RelayLocation, AccountId, Balances, Treasury>;
type Trader = UsingComponents<WeightToFee<Runtime>, HereLocation, AccountId, Balances, Treasury>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We allow unpaid execution from the relay chain. Plus, here we were saying that relay chain funds could be used to pay for the fees, when nothing else was allowed. I think keeping it local for now is the most logical choice. We will open up once we open up to other chains.

Copy link
Contributor

@weichweich weichweich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... the seem to make sense.

I guess this was copied from statemine or similar when this was added.

@ntn-x2 ntn-x2 merged commit 519ff06 into develop Jan 26, 2023
@ntn-x2 ntn-x2 deleted the aa/xcm-config branch January 26, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants