Skip to content
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

UPdate 1.11.0 #561

Merged
merged 56 commits into from
Jun 7, 2024
Merged

UPdate 1.11.0 #561

merged 56 commits into from
Jun 7, 2024

Conversation

girazoki
Copy link
Collaborator

@girazoki girazoki commented May 27, 2024

TODOs:

@girazoki girazoki changed the title first branches UPdate 1.11.0 May 27, 2024
@girazoki girazoki added D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes labels May 28, 2024
Copy link
Contributor

github-actions bot commented May 31, 2024

Coverage Report

(master)

@@                   Coverage Diff                    @@
##           master   tanssi-update-1.11.0      +/-   ##
========================================================
+ Coverage   69.32%                 69.64%   +0.32%     
  Files         224                    224              
+ Lines       39347                  39602     +255     
========================================================
+ Hits        27274                  27580     +306     
- Misses      12073                  12022      -51     
Files Changed Coverage
/client/manual-xcm/src/lib.rs 40.43% (+0.85%) 🔼
/client/node-common/src/service.rs 48.16% (+0.63%) 🔼
/client/services-payment/src/lib.rs 74.19% (+4.49%) 🔼
/container-chains/nodes/frontier/src/command.rs 35.04% (-0.10%) 🔽
/container-chains/nodes/frontier/src/service.rs 79.50% (+1.10%) 🔼
/container-chains/nodes/simple/src/command.rs 30.96% (-0.08%) 🔽
/container-chains/nodes/simple/src/service.rs 86.43% (+2.08%) 🔼
/container-chains/runtime-templates/frontier/src/lib.rs 60.82% (+0.60%) 🔼
/container-chains/runtime-templates/frontier/src/migrations.rs 89.29% (-10.71%) 🔽
/container-chains/runtime-templates/frontier/src/weights/xcm/mod.rs 16.39% (+1.31%) 🔼
/container-chains/runtime-templates/simple/src/lib.rs 73.43% (+0.52%) 🔼
/container-chains/runtime-templates/simple/src/migrations.rs 89.29% (-10.71%) 🔽
/container-chains/runtime-templates/simple/src/weights/xcm/mod.rs 16.39% (+1.31%) 🔼
/node/src/command.rs 27.96% (-0.05%) 🔽
/node/src/service.rs 21.63% (-0.02%) 🔽
/pallets/author-noting/src/lib.rs 87.96% (+1.39%) 🔼
/pallets/services-payment/src/lib.rs 94.27% (+1.59%) 🔼
/primitives/author-noting-inherent/src/client_side.rs 87.50% (+8.01%) 🔼
/runtime/common/src/migrations.rs 86.07% (+39.95%) 🔼
/runtime/dancebox/src/lib.rs 89.17% (-0.15%) 🔽
/runtime/dancebox/src/weights/pallet_balances.rs 21.95% (-2.05%) 🔽
/runtime/dancebox/src/weights/pallet_xcm.rs 10.47% (-0.64%) 🔽
/runtime/dancebox/src/weights/xcm/mod.rs 43.17% (-1.55%) 🔽
/runtime/dancebox/src/xcm_config.rs 84.54% (+0.87%) 🔼
/runtime/dancebox/tests/integration_test.rs 99.70% (+0.01%) 🔼
/runtime/flashbox/src/lib.rs 45.52% (-0.21%) 🔽

Coverage generated Thu Jun 6 19:20:50 UTC 2024

@girazoki girazoki marked this pull request as ready for review June 6, 2024 07:23
Signed-off-by: girazoki <gorka.irazoki@gmail.com>
* Add migration for ForeignAssetCreator

* use accurate weight
{
// this seems to be called for substrate-based transactions
fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance<R>>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems to be typo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

which part? I think it just made the line bigger and therefore fmt has decided to put it this way?

Copy link
Collaborator

Choose a reason for hiding this comment

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

on_unbalanceds

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's a trait so if there is a typo, its in parity

@@ -35,10 +37,6 @@
{
"name": "charlie",
"validator": true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did we remove 4th node?

Copy link
Collaborator Author

@girazoki girazoki Jun 7, 2024

Choose a reason for hiding this comment

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

Because we only need 3 validators in reality (actually it might have just work with 2)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have only dancebox + one container, so I think we can reduce it to 2. Do you want me to try this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally, I am in favor of reducing complexity of test setup. So, yeah we can reduce it to 2. But, I would suggest to do it in another PR as this PR is already too big. :)

concrete: {
parents: 2,
interior: { Here: null },
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why fungible assets were removed from allowed assets?

Copy link
Collaborator Author

@girazoki girazoki Jun 7, 2024

Choose a reason for hiding this comment

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

I think it is because now they are only identified by their Location only

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually I think this test was wrong before, I am not sure why it was working. According to my knowledge the right type is a multilocation. @fgamundi do you know why we put a fungible there¿?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why fungible was there. The right type is indeed a MultiLocation (AssetId, really). Must have gotten confused with the actual XcmFragments in the test.
I just did some tests and seems like Polkadot.js just ignores any additional data that doesn't belong to the correct type, ignoring fun in this case

Copy link
Collaborator

@ParthDesai ParthDesai left a comment

Choose a reason for hiding this comment

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

Few questions. But apart from that looks good.

@girazoki girazoki merged commit 8ca5cba into master Jun 7, 2024
36 checks passed
@girazoki girazoki deleted the tanssi-update-1.11.0 branch June 7, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants