-
Notifications
You must be signed in to change notification settings - Fork 70
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
chore(deps): upgraded polkadot to 0.9.43 #4106
Conversation
Pull reviewers statsStats of the last 30 days for composable:
|
# run Composable node
nix run "github:ComposableFi/composable/refs/pull/4106/merge" --allow-import-from-derivation --extra-experimental-features "flakes nix-command" --no-sandbox --accept-flake-config --option sandbox relaxed # run local Picasso DevNet (for CosmWasm development)
nix run "github:ComposableFi/composable/refs/pull/4106/merge#devnet-picasso" --allow-import-from-derivation --extra-experimental-features "flakes nix-command" --no-sandbox --accept-flake-config --option sandbox relaxed # CosmWasm on Substrate CLI tool
nix run "github:ComposableFi/composable/refs/pull/4106/merge#ccw" --allow-import-from-derivation --extra-experimental-features "flakes nix-command" --no-sandbox --accept-flake-config --option sandbox relaxed # run cross chain devnet with Dotsama and Cosmos nodes
nix run "github:ComposableFi/composable/refs/pull/4106/merge#devnet-xc-fresh" --allow-import-from-derivation --extra-experimental-features "flakes nix-command" --no-sandbox --accept-flake-config --option sandbox relaxed
# or same with docker
nix build "github:ComposableFi/composable/refs/pull/4106/merge#devnet-xc-image" --allow-import-from-derivation --extra-experimental-features "flakes nix-command" --no-sandbox --accept-flake-config --option sandbox relaxed \
&& docker load --input result && docker run -it --entrypoint bash devnet-xc:latest -c /bin/devnet-xc-fresh |
@arrudagates I see you PR was merged paritytech/polkadot#7165 in 0.9.42. We updating to 0.9.43. Do you have any code reference how to migrate
to 0.9.43? Thank you |
@arrudagates i see branch, trying. also would be awesome to have 1.0.0 branch :) |
Discussing with other fellowship members we decided that The repo is https://github.com/open-web3-stack/orml-xcm-builder, there is a branch for 0.9.43 there and the crate you want from the workspace is Migration should be simple, all you have to change in pub type Barrier = (
AllowKnownQueryResponses<PolkadotXcm>,
AllowSubscriptionsFrom<ParentOrSiblings>,
AllowTopLevelPaidExecutionFrom<Everything>,
TakeWeightCredit,
WithComputedOrigin<
- AllowTopLevelPaidExecutionFrom<invarch_xcm_builder::TinkernetMultisigMultiLocation>,
+ AllowTopLevelPaidExecutionFrom<orml_xcm_builder_kusama::TinkernetMultisigMultiLocation>,
UniversalLocation,
ConstU32<8>,
>,
); pub type LocationToAccountId = (
// The parent (Relay-chain) origin converts to the parent `AccountId`.
ParentIsPreset<AccountId>,
// Sibling parachain origins convert to AccountId via the `ParaId::into`.
SiblingParachainConvertsVia<Sibling, AccountId>,
// Straight up local `AccountId32` origins just alias directly to `AccountId`.
AccountId32Aliases<RelayNetwork, AccountId>,
// Mapping Tinkernet multisig to the correctly derived AccountId32.
- invarch_xcm_builder::TinkernetMultisigAsAccountId<AccountId>,
+ orml_xcm_builder_kusama::TinkernetMultisigAsAccountId<AccountId>,
AccountId32MultihopTx<AccountId>,
); pub type XcmOriginToTransactDispatchOrigin = (
// Sovereign account converter; this attempts to derive an `AccountId` from the origin location
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
// foreign chains who want to have a local sovereign account on this chain which they control.
SovereignSignedViaLocation<LocationToAccountId, RuntimeOrigin>,
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
// recognized.
RelayChainAsNative<RelayOrigin, RuntimeOrigin>,
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
// recognized.
SiblingParachainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Native signed account converter; this just converts an `AccountId32` origin into a normal
// `Origin::Signed` origin of the same 32-byte value.
SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>,
// Derives signed AccountId32 origins for Tinkernet multisigs.
- invarch_xcm_builder::DeriveOriginFromTinkernetMultisig<RuntimeOrigin>,
+ orml_xcm_builder_kusama::TinkernetMultisigAsNativeOrigin<RuntimeOrigin>,
// Xcm origins can be represented natively under the Xcm pallet's Xcm origin.
XcmPassthrough<RuntimeOrigin>,
); |
@kkast would be awesome if you could help migrating pablo/oracle/staking pallets. i did partial migration. but there are dozens of changes to interfaces of tokens. many. a lot of work. @kkast can I remove CurrencyFactory and all extrinics which call currency factory? i did deleted several pallets, but still need to migrate xcm/AR/CW and runtimes(checking all migrations). Runtimes are fully on me. @RustNinja may you help with fixing tests for multihop/rewards/farming? @kkast @RustNinja is staking pallet still used, do not want to waste time on not used things. @blasrodri i am leaving for vacation and not only, need help. a lot of changes. |
as agreed, staking-rewards, fnft to be deleted. easy. |
@dzmitry-lahoda so what parity did they removed frame/support/src/traits/tokens/fungibles/balanced.rs and moved Balanced trait to frame/support/src/traits/tokens/fungibles/regular.rs but now orml_tokens doesnt have implementation of Balanced trait paritytech/substrate@f8a1dd4#diff-789c2bf8fcaf90e054b55e821799a4c3cbb4b08f843997285c9a4eff3455cea0. |
missing std feature gate, need to use tool and find what missing |
0f826c2
to
bf6db8e
Compare
|
2023-09-04T10:21:43.3429959Z composable-build> Compiling common v0.8.30 (/build/source/parachain/runtime/common) |
Will do other chains on request #4113 |
I disabling rerun of benches on ibc pallet - using benches from previous runs - to compile runtime benches for other pallets. So we can merge and continue. @kkast please merge OpenGov something so we can merge 0.9.43, as it requries a lot of testing. |
dde7b07
to
f831ace
Compare
94d607b
to
04809a2
Compare
hyperspace remove forks renames trait updates what is the key? keystore oracle delete ohoho inspect fuck you deleting instead of fixing orml no forks silly fixing api hoho doing AI work more migration reason hoho removed to be removed fixing comswasm cw fixes repaced updated tinkernet fnt fixed reserbable root cause fixed fuck parity again wtf happy clean up aligned and disable tests until parties will have time to fix fixes pablo fixed tx payment need to put default weights and init assets pallet oracle is good remove currency factory pablo more pallets remove warnings more changes weight warnings remove GenerateCurrencyId from assets assets registry trying to compile updated centauri deps to latest fixing composable runtime compile fixing composable runtime more thing almost fixes composble runtime check fixed () compiles fixed composable fixed picasso porting acala warp fixed fmt and std build zepter fmt deps used old centauir too debug fixing tests deps fix moved dust remover fixed tests fixed more tests clippy fix fixed vesting benchmarks fmt and new zombie fixing remaining reds less red removed potentially double minting dust remover clippy no dep pn lfs fixing more fmt tune fixed back deps fixed port final fix retry more std more features more fixes disabling ibc failing bench build rebase conflicts disable benches of ibc Revert "disable benches of ibc" This reverts commit e69c0d8. clean up fixed test fmt/clippy fmt and removed old guide clean up tests clippy tests
04809a2
to
4b349d0
Compare
Removed code to be removed (assets transaction router, lending, dutch auciton, liquidations, vault, bonded finance, currency-factory) instead of fixing.
Migrate to XCM ICA from ORML.
Replaced removed crypto with what I have found https://substrate.stackexchange.com/questions/9754/sp-iocrypto-was-removed-amid-polkadot-0-9-39-and-0-9-43-what-is-replacement
Fixed assets after migration (changed how ops work again ED - #4107). Only one test fails - seems something fucked up in Parity burn/slash. Need research and may be report bug.
Oracle, farming, pablo, rewards migrated with disabled tests and benchmarks. Same for TX (need to update to latest Parity version instead of stale CP paste).
Migrated CW.
Seems @kkast migrated oracle, pablo, rewards, farming.
Fixed runtime and node (enabled warp), fixed wasm and benches builds, updated zombienet respecting updated parameters. Disable IBC benches until fixes (using old benches - which should be almost same as if to rerun).
@kkast would be awesome if you can fix look at cumulus/substrate/polkadot/orml release notes and apply migration we need from 39 to 43 version. Ensure assets are correct, 1 asset test asserts..
Required for merge:
pr-workflow-check / draft-release-check
is ✅ success upgrade polkadot 0.9.43 composable-ibc#397 (comment)Makes review faster:
misc
label if it should not be in release notesReviewers
@
) or used other form of notification of one person who I think can handle best review of this PR