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

uplift to stable2407 #1372

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

uplift to stable2407 #1372

wants to merge 6 commits into from

Conversation

vedhavyas
Copy link
Contributor

@vedhavyas vedhavyas commented Oct 16, 2024

Pull Request Summary
PR uplifts to stable 2407.
Commit one uplifts the project
Commit two bumps the versions

Check list

  • added or updated unit tests
  • updated Astar official documentation
  • added OnRuntimeUpgrade hook for precompile revert code registration
  • added benchmarks & weights for any modified runtime logics.

@vedhavyas vedhavyas added astar Related to Astar runtime This PR/Issue is related to the topic “runtime”. client This PR/Issue is related to the topic “client”. labels Oct 16, 2024
Copy link
Member

@Dinonard Dinonard left a comment

Choose a reason for hiding this comment

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

For the treasury changes, we also need to update the docs and inform the Subsquare team to update the UI logic.

bin/collator/Cargo.toml Outdated Show resolved Hide resolved
@@ -16,6 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with Astar. If not, see <http://www.gnu.org/licenses/>.

#![allow(deprecated)]
Copy link
Member

Choose a reason for hiding this comment

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

What part is deprecated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They have deprecate xcm::v2
i have marked the specific test with deprecated attribute instead of entire file

Copy link
Member

Choose a reason for hiding this comment

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

Ok, what's the future plan for these tests then?
Will you create an issue to address this later?

Why not address it now?

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 test essentially test failure of the xcm::V2 conversion to xcm::V4. Now that v2 is deprecated I dont think this test is required anymore. I have left it as is for removal in next uplift when v2 is completely removed and we can remove the test all together

runtime/astar/src/lib.rs Outdated Show resolved Hide resolved
runtime/local/src/lib.rs Outdated Show resolved Hide resolved
runtime/shibuya/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@vedhavyas vedhavyas left a comment

Choose a reason for hiding this comment

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

New treasury changes requires the origin to return the Max amount to spend at a time and I have set the Max to Max Balance.

As for the Payout timeout, I have set 3 days for shibuya and 30 minutes for Local. After this period, the spends are expired

For the treasury changes, we also need to update the docs and inform the Subsquare team to update the UI logic.

@Dinonard How do I start doing that ?

runtime/shibuya/src/lib.rs Outdated Show resolved Hide resolved
ipapandinas
ipapandinas previously approved these changes Oct 17, 2024
Copy link
Contributor

@ipapandinas ipapandinas left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -620,7 +620,6 @@ fn start_aura_consensus(
.map(|c| ValidationCode::from(c).hash())
}
},
sync_oracle: sync_oracle.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Quick question: Why do we have to remove this from the Aura parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was never used and was removed in this commit - paritytech/polkadot-sdk@70afa25 (#4097)

Copy link
Contributor

@ipapandinas ipapandinas left a comment

Choose a reason for hiding this comment

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

It's missing xcmp-queue v5 migrations as Ermal noticed

@vedhavyas
Copy link
Contributor Author

It's missing xcmp-queue v5 migrations as Ermal noticed

yes I'min the process of adding those :)

Copy link

Code Coverage

Package Line Rate Branch Rate Health
pallets/dapp-staking/src 83% 0%
pallets/unified-accounts/src 86% 0%
chain-extensions/types/unified-accounts/src 0% 0%
pallets/vesting-mbm/src 89% 0%
precompiles/unified-accounts/src 100% 0%
pallets/xc-asset-config/src 50% 0%
precompiles/dapp-staking/src 90% 0%
chain-extensions/pallet-assets/src 56% 0%
precompiles/substrate-ecdsa/src 74% 0%
pallets/collective-proxy/src 86% 0%
pallets/collator-selection/src 92% 0%
pallets/astar-xcm-benchmarks/src/generic 100% 0%
pallets/static-price-provider/src 85% 0%
precompiles/dispatch-lockdrop/src 86% 0%
pallets/ethereum-checked/src 74% 0%
precompiles/dapp-staking/src/test 0% 0%
primitives/src 57% 0%
chain-extensions/unified-accounts/src 0% 0%
pallets/astar-xcm-benchmarks/src/fungible 100% 0%
pallets/astar-xcm-benchmarks/src 86% 0%
pallets/dapp-staking/rpc/runtime-api/src 0% 0%
pallets/price-aggregator/src 82% 0%
precompiles/sr25519/src 64% 0%
primitives/src/xcm 65% 0%
pallets/inflation/src 89% 0%
pallets/dynamic-evm-base-fee/src 89% 0%
pallets/dapp-staking/src/benchmarking 98% 0%
precompiles/xcm/src 71% 0%
pallets/dapp-staking/src/test 0% 0%
chain-extensions/types/assets/src 0% 0%
precompiles/assets-erc20/src 78% 0%
Summary 79% (3730 / 4738) 0% (0 / 0)

Minimum allowed line rate is 50%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astar Related to Astar client This PR/Issue is related to the topic “client”. runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants