Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow treasury to do reserve asset transfers #1447
allow treasury to do reserve asset transfers #1447
Changes from 14 commits
f97b8b4
0cb9bd8
6950232
6edfe8c
1c39018
cd1a317
92c19e4
bc47444
b0a32df
fd36d62
8967478
0900cf6
97919f2
a20fcf6
d692513
c43e583
b0bb2b5
3ed9509
b666a1c
25da765
6410078
4ae6087
920b3ea
cc1fbc5
7ce71d1
20abdf0
558e585
8d478b9
4de166a
5a42734
aee64f5
28b4f9e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cute name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be nice to add here simple test for this converter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably I am missing some context here, I can understand
remote_account_convert_on_para
- that this converter will be used as a part ofLocationToAccountId
converter on parachain,but what does exactly mean
sending_relay_treasury
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a badly named test i think, but its meant to be remote treasury on a parachain to another parachain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, because from the parachain's point of view this:
represents Plurality-Treasury-Voice location on relay chain (because
parents: 1
).From the parachain's point-of-view a relay chain plurality looks like:
From the parachain's point-of-view an other parachain plurality looks like:
So I would suggest to cover at least these two case in this test, to be sure that it works as expected.
Ideally, it should maybe cover more cases:
DescribeTreasuryVoiceTerminal is deployed on relay chain and local treasury location.
DescribeTreasuryVoiceTerminal is deployed on relay chain and parachain treasury location? (not sure about this case)
DescribeTreasuryVoiceTerminal is deployed on parachain and local treasury location.
DescribeTreasuryVoiceTerminal is deployed on parachain and relay chain treasury location.
DescribeTreasuryVoiceTerminal is deployed on parachain and other parachain treasury location.
(but as I said, I dont have full context here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bkontur thanks for this, I've renamed the tests and added another test to cover the para to para treasury conversion
I think the
DescribeFamily
covers all the other cases but please correct me if I am mistaken.