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

feat: Polkadot v1.7.2 migrations #1849

Merged
merged 7 commits into from
May 31, 2024

Conversation

wischli
Copy link
Contributor

@wischli wischli commented May 31, 2024

Description

  • Provides necessary migrations for Polkadot v1.7.2 including migration of
- type RuntimeHoldReason = ()
+ type RuntimeHoldReason = RuntimeHoldReason
  • Fixes existing migrations for Dev and Demo
  • Tested against all runtimes Dev, Demo, Altair and Centrifuge

Note

One decoding error is left in the logs but this does not require a migration and will be fixed just by upgrading to the newer Polkadot SDK version. It was an oversight from the frame team and should have bumped the ParachainSystem storage version as well as required a migration. Check this conversation for more info.

[2024-05-31T08:00:55Z ERROR runtime::executive] `try_decode_entire_state` failed with 1 errors
[2024-05-31T08:00:55Z ERROR runtime::executive] - 0. error: `ParachainSystem::HostConfiguration` key `0x45323df7cc47150b3930e2666b0aa313c522231880238a0c56021b8744a00743` is undecodable

Try runtime logs

Centrifuge Chain

[2024-05-31T08:00:54Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "OraclePriceFeed" from StorageVersion(0) to StorageVersion(1)
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "OraclePriceCollection" from StorageVersion(0) to StorageVersion(1)
[2024-05-31T08:00:54Z INFO  runtime::collator-selection] Sorted 3 Invulnerables, upgraded storage to version 1
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Pre checks done!
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Starting migration v3 -> v4
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 4139607887
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Migrated 1 pools
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Post checks done!
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: pre checks done
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 5dbb2cec05b6bda775f7945827b887b0e7b5245eae8b4ef266c60820c9377185 (5EBbuv9o...)
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 1817f8ef1bd20183ac50551a983c3ccac5d8ef4dc01b668e557c48c7296fb336 (5CcJ8MnA...)
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: migrated 3 accounts
[2024-05-31T08:00:54Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: post checks done
[2024-05-31T08:00:54Z INFO  frame_support::migrations] 🚚 Pallet "XcmpQueue" VersionedMigration migrating storage version from 3 to 4.
[2024-05-31T08:00:54Z INFO  runtime::identity::migration::v1] pre-upgrade state contains '35' identities.
[2024-05-31T08:00:54Z INFO  frame_support::migrations] 🚚 Pallet "Identity" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:00:54Z INFO  runtime::identity::migration::v1] running storage migration from version 0 to version 1.
[2024-05-31T08:00:54Z INFO  pallet_identity::migration::v1] all 35 identities migrated
[2024-05-31T08:00:54Z INFO  pallet_identity::migration::v1] post-upgrade expects '35' identities to have been migrated.
[2024-05-31T08:00:54Z INFO  runtime::identity::migration::v1] migrated all identities.
[2024-05-31T08:00:54Z INFO  frame_support::migrations] 🚚 Pallet "Uniques" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:00:54Z INFO  runtime::uniques] Storage migration v1 for uniques finished.
[2024-05-31T08:00:54Z INFO  runtime::frame-support] ⚠️ Ethereum declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `NoStorageVersionSet`
[2024-05-31T08:00:55Z ERROR runtime::executive] `try_decode_entire_state` failed with 1 errors
[2024-05-31T08:00:55Z ERROR runtime::executive] - 0. error: `ParachainSystem::HostConfiguration` key `0x45323df7cc47150b3930e2666b0aa313c522231880238a0c56021b8744a00743` is undecodable

Dev

2024-05-31T08:02:48Z INFO  runtime::collator-selection] Sorted 1 Invulnerables, upgraded storage to version 1
[2024-05-31T08:02:48Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Storage cleanup can be skipped because all keys can be decoded
[2024-05-31T08:02:48Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments pre_upgrade done!
[2024-05-31T08:02:48Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Initiating removal of undecodable keys
[2024-05-31T08:02:48Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Removed 0 undecodable keys
[2024-05-31T08:02:48Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments post_upgrade done with 0 remaining storage keys!
[2024-05-31T08:02:48Z INFO  runtime::multisig] [1019210] ✍️ Number of calls to refund and delete: 0
[2024-05-31T08:02:48Z INFO  runtime::multisig] [1019210] ✍️ MigrateToV1 should be removed
[2024-05-31T08:02:48Z INFO  runtime::balances] Migration did not execute. This probably should be removed
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 2 but would instead upgrade from StorageVersion(2) to StorageVersion(2)
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 3 but would instead upgrade from StorageVersion(3) to StorageVersion(3)
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:48Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 2 but would instead upgrade from StorageVersion(2) to StorageVersion(2)
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Pre migration checks successful
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Initiating migration
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking whether group is ready
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking whether session data is set
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Getting list of collators
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking stake of collator d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Migration not necessary because all data is already initialized
[2024-05-31T08:02:48Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Post migration checks successful
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Pre checks done!
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Starting migration v3 -> v4
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 1809273630
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 956565333
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 402696383
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2110880079
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 1422410123
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 824886453
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 3579462907
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2339351143
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Migrated 8 pools
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Post checks done!
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: pre checks done
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: migrated 0 accounts
[2024-05-31T08:02:48Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: post checks done
[2024-05-31T08:02:48Z INFO  frame_support::migrations] 🚚 Pallet "XcmpQueue" VersionedMigration migrating storage version from 3 to 4.
[2024-05-31T08:02:48Z INFO  runtime::identity::migration::v1] pre-upgrade state contains '0' identities.
[2024-05-31T08:02:48Z INFO  frame_support::migrations] 🚚 Pallet "Identity" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:02:48Z INFO  runtime::identity::migration::v1] running storage migration from version 0 to version 1.
[2024-05-31T08:02:48Z INFO  pallet_identity::migration::v1] all 0 identities migrated
[2024-05-31T08:02:48Z INFO  pallet_identity::migration::v1] post-upgrade expects '0' identities to have been migrated.
[2024-05-31T08:02:48Z INFO  runtime::identity::migration::v1] migrated all identities.
[2024-05-31T08:02:48Z INFO  frame_support::migrations] 🚚 Pallet "Uniques" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:02:48Z INFO  runtime::uniques] Storage migration v1 for uniques finished.
[2024-05-31T08:02:48Z ERROR try-runtime] Detected multiple errors while executing `try_on_runtime_upgrade`:
[2024-05-31T08:02:48Z ERROR try-runtime] Other("Pallet on-chain version must match with ON_CHAIN_VERSION")
[2024-05-31T08:02:48Z ERROR try-runtime] Other("Pallet on-chain version must match with ON_CHAIN_VERSION")
[2024-05-31T08:02:48Z ERROR try-runtime] Other("Pallet on-chain version must match with ON_CHAIN_VERSION")
[2024-05-31T08:02:48Z ERROR try-runtime] Other("Pallet on-chain version must match with ON_CHAIN_VERSION")
[2024-05-31T08:02:48Z ERROR try-runtime] Other("Pallet is already updated")
[2024-05-31T08:02:48Z INFO  runtime::frame-support] ⚠️ Ethereum declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `NoStorageVersionSet`

Demo

[2024-05-31T08:03:37Z INFO  runtime::collator-selection] Sorted 3 Invulnerables, upgraded storage to version 1
[2024-05-31T08:03:37Z ERROR frame_support::storage] key failed to decode at [70, 74, 237, 145, 57, 25, 186, 185, 47, 121, 243, 199, 183, 157, 40, 247, 239, 186, 193, 94, 147, 243, 120, 17, 137, 94, 38, 6, 5, 205, 196, 135, 164, 245, 206, 214, 102, 137, 87, 187, 42, 154, 149, 78, 126, 80, 245, 181, 4, 0, 0, 0, 0, 0, 0, 0]: Error
[2024-05-31T08:03:37Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Failed to decode 1 keys, cleanup necessary
[2024-05-31T08:03:37Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments pre_upgrade done!
[2024-05-31T08:03:37Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Initiating removal of undecodable keys
[2024-05-31T08:03:37Z ERROR runtime::storage] Corrupted state at `0x464aed913919bab92f79f3c7b79d28f7efbac15e93f37811895e260605cdc487a4f5ced6668957bb2a9a954e7e50f5b50400000000000000`: Error
[2024-05-31T08:03:37Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments Removed 1 undecodable keys
[2024-05-31T08:03:37Z INFO  development_runtime::migrations::cleanup_foreign_investments] CleanupForeignInvestments post_upgrade done with 4 remaining storage keys!
[2024-05-31T08:03:37Z INFO  runtime::multisig] [2686646] ✍️ Number of calls to refund and delete: 0
[2024-05-31T08:03:37Z INFO  runtime::balances] Storage to version 1
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Preimage: nuking pallet...
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Preimage: storage cleared successful
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Preimage: iteration result. backend: 3 unique: 3 loops: 3
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Democracy: nuking pallet...
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Democracy: storage cleared successful
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-Democracy: iteration result. backend: 5 unique: 5 loops: 5
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-PolkadotXcm: nuking pallet...
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-PolkadotXcm: storage cleared successful
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-PolkadotXcm: iteration result. backend: 20 unique: 20 loops: 20
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "PoolSystem" from StorageVersion(0) to StorageVersion(2)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "InterestAccrual" from StorageVersion(0) to StorageVersion(3)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "Investments" from StorageVersion(0) to StorageVersion(1)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "OraclePriceFeed" from StorageVersion(0) to StorageVersion(1)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "OraclePriceCollection" from StorageVersion(0) to StorageVersion(1)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Increasing storage version of "OrmlAssetRegistry" from StorageVersion(0) to StorageVersion(2)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-BlockRewards: nuking pallet...
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-BlockRewards: storage cleared successful
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::nuke] Nuke-BlockRewards: iteration result. backend: 2 unique: 2 loops: 2
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Pre migration checks successful
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Initiating migration
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking whether group is ready
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking whether session data is set
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Getting list of collators
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Checking stake of collator 3027018a7cea497a2b6f09b331d0c9859ab23c6cf45d4aba272d2cf0334d972c (5D9qk39Y...)
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Attaching currency to collator group
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Setting session data
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Adding stake for collator 3027018a7cea497a2b6f09b331d0c9859ab23c6cf45d4aba272d2cf0334d972c (5D9qk39Y...)
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Adding stake for collator 62538b6a495208d1d9ec7aae58269946e613af51b9f6691052c455d0e039fe7b (5EHdNHVe...)
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Adding stake for collator 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Migration complete
[2024-05-31T08:03:37Z INFO  pallet_block_rewards::migrations::init] InitBlockRewards Post migration checks successful
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Pre checks done!
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Starting migration v3 -> v4
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2706400740
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 503513827
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 99
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2666134719
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2057175059
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2869156029
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2659193339
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 1
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 75741337
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: updated portfolio for pool_id: 2
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Migrated 10 pools
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Post checks done!
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: pre checks done
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 45c5e948851d99b075ad21bca0c226ab1e63958dbbc7bc61c6420a77ae9d419d (5DeBxEaq...)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 0d6df5ab3f582f317b4ac3646f0dd4559a6d2de99a739eb5b172d50deb78270a (5CNK9LM7...)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 8c3a2c5c8ce81ea248aa6b8eb80b274adcc1bcb63abfd4d323046ac7e1c1ddd5 (5FEZqo4V...)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account df0c54ea9608c8b59f4b79a6c02a01d84c9ef29d7c0dedcc456751d3780ae557 (5H7ACUnS...)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: Migrating hold for account 1f6209e3f9e80177740f86aa321d31e99b5560c41966ca50d58c961870353484 (5CmrTvzq...)
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: migrated 20 accounts
[2024-05-31T08:03:37Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: post checks done
[2024-05-31T08:03:37Z INFO  frame_support::migrations] 🚚 Pallet "XcmpQueue" VersionedMigration migrating storage version from 3 to 4.
[2024-05-31T08:03:37Z INFO  runtime::identity::migration::v1] pre-upgrade state contains '0' identities.
[2024-05-31T08:03:37Z INFO  frame_support::migrations] 🚚 Pallet "Identity" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:03:37Z INFO  runtime::identity::migration::v1] running storage migration from version 0 to version 1.
[2024-05-31T08:03:37Z INFO  pallet_identity::migration::v1] all 0 identities migrated
[2024-05-31T08:03:37Z INFO  pallet_identity::migration::v1] post-upgrade expects '0' identities to have been migrated.
[2024-05-31T08:03:37Z INFO  runtime::identity::migration::v1] migrated all identities.
[2024-05-31T08:03:37Z INFO  frame_support::migrations] 🚚 Pallet "Uniques" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:03:37Z INFO  runtime::uniques] Storage migration v1 for uniques finished.
[2024-05-31T08:03:37Z INFO  runtime::frame-support] ⚠️ Ethereum declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `NoStorageVersionSet`

Altair

[2024-05-31T08:02:00Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:00Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:00Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:00Z WARN  runtime_common::migrations::increase_storage_version] BumpStorageVersion: Mismatching versions. Wanted to upgrade from 0 to 1 but would instead upgrade from StorageVersion(1) to StorageVersion(1)
[2024-05-31T08:02:00Z INFO  runtime::collator-selection] Sorted 3 Invulnerables, upgraded storage to version 1
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Pre checks done!
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Starting migration v3 -> v4
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Migrated 0 pools
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::loans] LoansMigrationToV4: Post checks done!
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: pre checks done
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: migrated 0 accounts
[2024-05-31T08:02:00Z INFO  runtime_common::migrations::hold_reason] MigrateTransferAllowList HoldReason: post checks done
[2024-05-31T08:02:00Z INFO  frame_support::migrations] 🚚 Pallet "XcmpQueue" VersionedMigration migrating storage version from 3 to 4.
[2024-05-31T08:02:00Z INFO  runtime::identity::migration::v1] pre-upgrade state contains '34' identities.
[2024-05-31T08:02:00Z INFO  frame_support::migrations] 🚚 Pallet "Identity" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:02:00Z INFO  runtime::identity::migration::v1] running storage migration from version 0 to version 1.
[2024-05-31T08:02:00Z INFO  pallet_identity::migration::v1] all 34 identities migrated
[2024-05-31T08:02:00Z INFO  pallet_identity::migration::v1] post-upgrade expects '34' identities to have been migrated.
[2024-05-31T08:02:00Z INFO  runtime::identity::migration::v1] migrated all identities.
[2024-05-31T08:02:00Z INFO  frame_support::migrations] 🚚 Pallet "Uniques" VersionedMigration migrating storage version from 0 to 1.
[2024-05-31T08:02:00Z INFO  runtime::uniques] Storage migration v1 for uniques finished.
[2024-05-31T08:02:00Z INFO  runtime::frame-support] ⚠️ Ethereum declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `NoStorageVersionSet`
[2024-05-31T08:02:00Z ERROR runtime::executive] `try_decode_entire_state` failed with 1 errors
[2024-05-31T08:02:00Z ERROR runtime::executive] - 0. error: `ParachainSystem::HostConfiguration` key `0x45323df7cc47150b3930e2666b0aa313c522231880238a0c56021b8744a00743` is undecodable

Checklist:

  • I have added Rust doc comments to structs, enums, traits and functions
  • I have made corresponding changes to the documentation
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works

@wischli wischli added the D8-migration Pull request touches storage and needs migration code. label May 31, 2024
@wischli wischli self-assigned this May 31, 2024
weight.saturating_accrue(T::DbWeight::get().reads_writes(1, 1));

Some(NewHolds::truncate_from(vec![id_amount]))
} else {
Copy link
Contributor

@lemunozm lemunozm May 31, 2024

Choose a reason for hiding this comment

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

if Self::account_can_be_migrated(&who, &transfer_allowlist_accounts) is false, then if the old Hold storage still has an entry, that means that we need to migrate it with pallet_restricted_tokens::HoldReason::NativeIndex.into() because it means that someone used that pallet to hold something thought that pallet.

Or am I wrong in my assumption?

The flow will be:

  • if hold in balances and account in allowlist
    • then: pallet_transfer_allowlist::HoldReason::TransferAllowance.into()
  • else if hold in balances
    • then: pallet_restricted_tokens::HoldReason::NativeIndex.into()
  • else
    • then: None

Still scared about how can we know that an account that has been used by transfer allowance has not also be used by restricted_tokens 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if Self::account_can_be_migrated(&who, &transfer_allowlist_accounts) is false, then if the old Hold storage still has an entry, that means that we need to migrate it with pallet_restricted_tokens::HoldReason::NativeIndex.into() because it means that someone used that pallet to hold something thought that pallet.

Or am I wrong in my assumption?

We have three code paths which use Currency::hold in our codebase:

  1. pallet-rewards when depositing stake
  2. pallet-transfer-allowlist when adding a transfer filter
  3. pallet-orderbook when placing or updating an order.

All three codepaths use the RestrictedTokens as their Currency trait which provides two implementations for hold: One for native currency (i.e. fungible which falls back to the impl of pallet-balances) and one for non-native assets (i.e. fungibles which falls back to the impl of orml-tokens). The crucial part is that the orml-tokens implementation of hold has not made use of the RuntimeHoldReason (it does not even have storage for that) such that we only need to migrate the Holds storage of pallet-balances.

The flow will be:

  • if hold in balances and account in allowlist
    • then: pallet_transfer_allowlist::HoldReason::TransferAllowance.into()
  • else if hold in balances
    • then: pallet_restricted_tokens::HoldReason::NativeIndex.into()
  • else
    • then: None

Now coming back to the three codepaths which make use of hold API: Both pallet-rewards and pallet-orderbook only hold fungibles because staking currency is not native and we can assume no CFG <-> * orders to exist until we execute the RU. So there can only be a single reason why there exists an entry in pallet_balances::Holds storage which points back to the transfer allowlist. There cannot be any other stored holds.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for your reasoning!

Just one thing. Root can call the extrinsic restricted_tokens::set_balance() (not sure if this already happened), modifying the hold amount in the account for CFG

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we never use orderbook to create an order with CFG

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your reasoning!

Just one thing. Root can call the extrinsic restricted_tokens::set_balance() (not sure if this already happened), modifying the hold amount in the account for CFG

Luckily, set_balance is rather a dev tool than something which is used in production. Ironically, we have used it once on Centrifuge Chain to recover a lost wallet from an early Gnosis backer (-> Gov forum) but did not set any holds there. Again, I have checked all storage on all our chains to ensure this migration works. Before we propose the RU, I will redo that step.

Assuming the worst case of some unexpected hold to spawn in between RU proposal and execution, which is not tied to transfer allowlist, then we can fix this afterwards. The user will just not be able to remove the hold until then.

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM! I think we have all these cases tied!

@wischli wischli marked this pull request as ready for review May 31, 2024 11:10
@wischli wischli requested a review from lemunozm May 31, 2024 11:10
@wischli wischli merged commit f83d95f into polkadot-v1.7.2 May 31, 2024
7 of 10 checks passed
@wischli wischli mentioned this pull request May 31, 2024
52 tasks
@wischli wischli added this to the Centrifuge 1029 milestone Jun 6, 2024
lemunozm added a commit that referenced this pull request Jun 7, 2024
* set dependency versions

* upgrade libs/*

* upgrade pallet-anchors

* upgrade pallet-fees

* upgrade pallet-bridge

* migrate simple pallets

* migrate pallet-order-book

* migrated collator-allowlist & swaps

* upgrade rewards

* upgraded pallet-mux

* upgrade transfer-allowlist

* fix hold reason in restricted tokens

* simplify set_balance removing the holding part

* upgrade restricted-xtokens

* upgrade some pallets

* upgrade pallet-ethereum-transaction

* upgrade pallet-loans

* upgrade pool-system

* upgrade pool-fees

* upgrade pool-registry

* upgrade liquidity-pools stuffs

* avoid duplicated polkadot-sdk repos

* minor fixes

* upgraded runtime-common

* CfgLocation to RestrictedTransferLocation

* restricted tokens with NativeIndex for native fungibles

* rename dependency

* upgraded development-runtime

* fix partially benchmarks

* fix benchmarks

* overpass xcmp-queue integrity tests

* minor coments

* upgrade altair & centrifuge

* remove some benchmarking pallets that are not needed

* fix runtime upgrades

* upgrade integration-test proc

* upgrade integration-tests framework

* upgraded all tests except liquidity pools

* 99% upgraded liquidity-pools tests

* fix lookup

* cargo fmt

* taplo fmt

* using nightly cargo in CI

* restore set_balance as it was

* allow nightly support in CI

* use restricted_tokens again to fetch from investement portfolio

* Install rust-src for docs

* fix tests

* remove unused restricted tokens

* fix block rewards

* fix WrongWitness for some tests in IT

* fix liquidity-pools

* minor fixes

* fix clippy

* remove unneeded tests

* feat: Update client to Polkadot v1.7.2 (#1844)

* wip: update client

* chore: update crate versions

* chore: update anchor rpc api

* chore: remove rewards, pools rpc

* chore: compile with development runtime

* fix: client for all runtimes

* fix: build spec

* feat: update relay docker images

* fix: apply deprecation of export genesis state to scripts

* fmt: taplo

* refactor: use xcm v4 sugar

* fix: revert tmp change in local para run

* refactor: simplify xcm v4 locations in chain spec

* cargo fmt

* fix clippy

* feat: Polkadot v1.7.2 migrations (#1849)

* feat: add hold reason migration

* feat: centrifuge migrations

* feat: altair migrations

* feat: dev + demo migrations

* fix: clippy

* fix: build

* fmt: fix using nightly

* last William iteration review

* increase passed blocks

* use rococo instead of polkadot-test-runtime

* fix tests

* remove line

* dirty fix to fix Hrmp test issue

* use default weights for treasury

---------

Co-authored-by: William Freudenberger <w.freude@icloud.com>
wischli added a commit that referenced this pull request Jun 27, 2024
* set dependency versions

* upgrade libs/*

* upgrade pallet-anchors

* upgrade pallet-fees

* upgrade pallet-bridge

* migrate simple pallets

* migrate pallet-order-book

* migrated collator-allowlist & swaps

* upgrade rewards

* upgraded pallet-mux

* upgrade transfer-allowlist

* fix hold reason in restricted tokens

* simplify set_balance removing the holding part

* upgrade restricted-xtokens

* upgrade some pallets

* upgrade pallet-ethereum-transaction

* upgrade pallet-loans

* upgrade pool-system

* upgrade pool-fees

* upgrade pool-registry

* upgrade liquidity-pools stuffs

* avoid duplicated polkadot-sdk repos

* minor fixes

* upgraded runtime-common

* CfgLocation to RestrictedTransferLocation

* restricted tokens with NativeIndex for native fungibles

* rename dependency

* upgraded development-runtime

* fix partially benchmarks

* fix benchmarks

* overpass xcmp-queue integrity tests

* minor coments

* upgrade altair & centrifuge

* remove some benchmarking pallets that are not needed

* fix runtime upgrades

* upgrade integration-test proc

* upgrade integration-tests framework

* upgraded all tests except liquidity pools

* 99% upgraded liquidity-pools tests

* fix lookup

* cargo fmt

* taplo fmt

* using nightly cargo in CI

* restore set_balance as it was

* allow nightly support in CI

* use restricted_tokens again to fetch from investement portfolio

* Install rust-src for docs

* fix tests

* remove unused restricted tokens

* fix block rewards

* fix WrongWitness for some tests in IT

* fix liquidity-pools

* minor fixes

* fix clippy

* remove unneeded tests

* feat: Update client to Polkadot v1.7.2 (#1844)

* wip: update client

* chore: update crate versions

* chore: update anchor rpc api

* chore: remove rewards, pools rpc

* chore: compile with development runtime

* fix: client for all runtimes

* fix: build spec

* feat: update relay docker images

* fix: apply deprecation of export genesis state to scripts

* fmt: taplo

* refactor: use xcm v4 sugar

* fix: revert tmp change in local para run

* refactor: simplify xcm v4 locations in chain spec

* cargo fmt

* fix clippy

* feat: Polkadot v1.7.2 migrations (#1849)

* feat: add hold reason migration

* feat: centrifuge migrations

* feat: altair migrations

* feat: dev + demo migrations

* fix: clippy

* fix: build

* fmt: fix using nightly

* last William iteration review

* increase passed blocks

* use rococo instead of polkadot-test-runtime

* fix tests

* remove line

* dirty fix to fix Hrmp test issue

* use default weights for treasury

* remove getrandom unused dep

* upgrade to last polkadot-sdk version

* feat: `CheckMetadataHash` extension

* fix it (#1866)

* fmt: taplo

* refactor: signed ext order

* fix: signed ext order for ITs

* IT: more support for router tests (#1885)

* move routers to its own module

* remove outdated markers

* for all runtimes

* remove previous tests

* minor fixes

* v0.11.2 rc

* panic if event is not found in the expected blocks (#1880)

* fix: ci

* remove generic module (#1887)

* revert check metadata hash disable

* fix: disable metadata hash check for integration tests

---------

Co-authored-by: lemunozm <lemunozm@gmail.com>
wischli added a commit that referenced this pull request Jun 28, 2024
* Switch to full wasm execution

* feat: use correct encoded size.

* fix: lint

* refactor: reduce dev session duration from 6h to 2min

* chore: update centrifuge weights

* chore: update dev weights

* chore: update altair weights

* chore: update frame_system weights

* fmt

* fix: re-enable frame_system benches

* chore: bump spec version

* fmt: revert using latest nightly

* v0.11.3-rc1: revert checkmetadata ext

* feat: `CheckMetadataHash` extension (#1865)

* set dependency versions

* upgrade libs/*

* upgrade pallet-anchors

* upgrade pallet-fees

* upgrade pallet-bridge

* migrate simple pallets

* migrate pallet-order-book

* migrated collator-allowlist & swaps

* upgrade rewards

* upgraded pallet-mux

* upgrade transfer-allowlist

* fix hold reason in restricted tokens

* simplify set_balance removing the holding part

* upgrade restricted-xtokens

* upgrade some pallets

* upgrade pallet-ethereum-transaction

* upgrade pallet-loans

* upgrade pool-system

* upgrade pool-fees

* upgrade pool-registry

* upgrade liquidity-pools stuffs

* avoid duplicated polkadot-sdk repos

* minor fixes

* upgraded runtime-common

* CfgLocation to RestrictedTransferLocation

* restricted tokens with NativeIndex for native fungibles

* rename dependency

* upgraded development-runtime

* fix partially benchmarks

* fix benchmarks

* overpass xcmp-queue integrity tests

* minor coments

* upgrade altair & centrifuge

* remove some benchmarking pallets that are not needed

* fix runtime upgrades

* upgrade integration-test proc

* upgrade integration-tests framework

* upgraded all tests except liquidity pools

* 99% upgraded liquidity-pools tests

* fix lookup

* cargo fmt

* taplo fmt

* using nightly cargo in CI

* restore set_balance as it was

* allow nightly support in CI

* use restricted_tokens again to fetch from investement portfolio

* Install rust-src for docs

* fix tests

* remove unused restricted tokens

* fix block rewards

* fix WrongWitness for some tests in IT

* fix liquidity-pools

* minor fixes

* fix clippy

* remove unneeded tests

* feat: Update client to Polkadot v1.7.2 (#1844)

* wip: update client

* chore: update crate versions

* chore: update anchor rpc api

* chore: remove rewards, pools rpc

* chore: compile with development runtime

* fix: client for all runtimes

* fix: build spec

* feat: update relay docker images

* fix: apply deprecation of export genesis state to scripts

* fmt: taplo

* refactor: use xcm v4 sugar

* fix: revert tmp change in local para run

* refactor: simplify xcm v4 locations in chain spec

* cargo fmt

* fix clippy

* feat: Polkadot v1.7.2 migrations (#1849)

* feat: add hold reason migration

* feat: centrifuge migrations

* feat: altair migrations

* feat: dev + demo migrations

* fix: clippy

* fix: build

* fmt: fix using nightly

* last William iteration review

* increase passed blocks

* use rococo instead of polkadot-test-runtime

* fix tests

* remove line

* dirty fix to fix Hrmp test issue

* use default weights for treasury

* remove getrandom unused dep

* upgrade to last polkadot-sdk version

* feat: `CheckMetadataHash` extension

* fix it (#1866)

* fmt: taplo

* refactor: signed ext order

* fix: signed ext order for ITs

* IT: more support for router tests (#1885)

* move routers to its own module

* remove outdated markers

* for all runtimes

* remove previous tests

* minor fixes

* v0.11.2 rc

* panic if event is not found in the expected blocks (#1880)

* fix: ci

* remove generic module (#1887)

* revert check metadata hash disable

* fix: disable metadata hash check for integration tests

---------

Co-authored-by: lemunozm <lemunozm@gmail.com>

---------

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Frederik Gartenmeister <mustermeiszer@posteo.de>
Co-authored-by: lemunozm <lemunozm@gmail.com>
wischli pushed a commit that referenced this pull request Jul 25, 2024
fix: adapt passthrough router

fix: docs and hash

chore: rm unused test

Release v0.11.3 (#1886)

* Switch to full wasm execution

* feat: use correct encoded size.

* fix: lint

* refactor: reduce dev session duration from 6h to 2min

* chore: update centrifuge weights

* chore: update dev weights

* chore: update altair weights

* chore: update frame_system weights

* fmt

* fix: re-enable frame_system benches

* chore: bump spec version

* fmt: revert using latest nightly

* v0.11.3-rc1: revert checkmetadata ext

* feat: `CheckMetadataHash` extension (#1865)

* set dependency versions

* upgrade libs/*

* upgrade pallet-anchors

* upgrade pallet-fees

* upgrade pallet-bridge

* migrate simple pallets

* migrate pallet-order-book

* migrated collator-allowlist & swaps

* upgrade rewards

* upgraded pallet-mux

* upgrade transfer-allowlist

* fix hold reason in restricted tokens

* simplify set_balance removing the holding part

* upgrade restricted-xtokens

* upgrade some pallets

* upgrade pallet-ethereum-transaction

* upgrade pallet-loans

* upgrade pool-system

* upgrade pool-fees

* upgrade pool-registry

* upgrade liquidity-pools stuffs

* avoid duplicated polkadot-sdk repos

* minor fixes

* upgraded runtime-common

* CfgLocation to RestrictedTransferLocation

* restricted tokens with NativeIndex for native fungibles

* rename dependency

* upgraded development-runtime

* fix partially benchmarks

* fix benchmarks

* overpass xcmp-queue integrity tests

* minor coments

* upgrade altair & centrifuge

* remove some benchmarking pallets that are not needed

* fix runtime upgrades

* upgrade integration-test proc

* upgrade integration-tests framework

* upgraded all tests except liquidity pools

* 99% upgraded liquidity-pools tests

* fix lookup

* cargo fmt

* taplo fmt

* using nightly cargo in CI

* restore set_balance as it was

* allow nightly support in CI

* use restricted_tokens again to fetch from investement portfolio

* Install rust-src for docs

* fix tests

* remove unused restricted tokens

* fix block rewards

* fix WrongWitness for some tests in IT

* fix liquidity-pools

* minor fixes

* fix clippy

* remove unneeded tests

* feat: Update client to Polkadot v1.7.2 (#1844)

* wip: update client

* chore: update crate versions

* chore: update anchor rpc api

* chore: remove rewards, pools rpc

* chore: compile with development runtime

* fix: client for all runtimes

* fix: build spec

* feat: update relay docker images

* fix: apply deprecation of export genesis state to scripts

* fmt: taplo

* refactor: use xcm v4 sugar

* fix: revert tmp change in local para run

* refactor: simplify xcm v4 locations in chain spec

* cargo fmt

* fix clippy

* feat: Polkadot v1.7.2 migrations (#1849)

* feat: add hold reason migration

* feat: centrifuge migrations

* feat: altair migrations

* feat: dev + demo migrations

* fix: clippy

* fix: build

* fmt: fix using nightly

* last William iteration review

* increase passed blocks

* use rococo instead of polkadot-test-runtime

* fix tests

* remove line

* dirty fix to fix Hrmp test issue

* use default weights for treasury

* remove getrandom unused dep

* upgrade to last polkadot-sdk version

* feat: `CheckMetadataHash` extension

* fix it (#1866)

* fmt: taplo

* refactor: signed ext order

* fix: signed ext order for ITs

* IT: more support for router tests (#1885)

* move routers to its own module

* remove outdated markers

* for all runtimes

* remove previous tests

* minor fixes

* v0.11.2 rc

* panic if event is not found in the expected blocks (#1880)

* fix: ci

* remove generic module (#1887)

* revert check metadata hash disable

* fix: disable metadata hash check for integration tests

---------

Co-authored-by: lemunozm <lemunozm@gmail.com>

---------

Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Frederik Gartenmeister <mustermeiszer@posteo.de>
Co-authored-by: lemunozm <lemunozm@gmail.com>

Refactor: Decoupling routers from gateway (#1891)

* decoupling routers from gateway. Use Vec<u8>

* gateway adapted

* fix imports

* move test msg to cfg-traits

* fix imports

feat: Open Gov for Development and Altair Runtimes (#1828)

* chore: add OpenGov pallets to root toml

* feat: add OpenGov tracks to runtime common

* feat: add technical committee migration

tc: fix clippy

* refactor: move origins from primitives to common

common: fix typo

common: fix test after HalfOfCouncil refactor

* feat: add OpenGov to Development

fix: complete Development OpenGov

development: finalize opengov

development: add proxy calls

development: overwrite missing origins

dev: fix treasury spender

dev: remove crowdloan pallets

dev: taplo fmt

* feat: add OpenGov to Altair

fix: complete Altair OpenGov

fix: add missing technical fellowship weights Altair

altair: finalize opengov

altair: rename track tests

altair: gather imports

altair: remove crowdloan pallets

altair: taplo fmt

* feat: add OpenGov to Centrifuge chain

fix: centrifuge toml

chore: minor centrifuge chain improvements

refactor: Centrifuge OpenGov

centrifuge: finalize opengov

centrifuge: fix cargo tml

cfg: fix clippy test

* Revert "feat: add OpenGov to Centrifuge chain"

This reverts commit 4d78c10.

* fix: clippy

* tests: fix CouncilCollective import path

* fix: technical committee migrations

* altair: configure tc migration (incomplete)

* dev: configure tc migration

* chore: cleanup altair dep diff

* chore: remove unused getrandom crate from runtimes

* chore: add missing Altair TC members

* refactor: move to_ppm and to_percent to utils

* Merge remote-tracking branch 'origin/main' into feat/open-gov-2

* fix: issues after rebasing

* fmt

* fix: imports

* feat: v0.12.0 for altair RU

Altair: release v0.12.0 (#1896)

* fix: altair chain spec

* chore: update gov2 weights

* chore: update dev OpenGov weights

* fix: weight declaration

Fix RustDocs deployment & codecov patch checks (#1870)

* Fix deploy docs

* Make patch checks also informational (not fail)

LP Message with custom data format for serialization/deserialization (#1889)

* test compiling

* fix Domain serialization

* fix issues

* some reorganizations

* using bincode 2 with non-std support

* use custom trait

* tests passing for lp

* remove ENCODED_MSG constant

* fix runtimes compilation

* cargo fmt & taplo fmt

* cargo clippy

* minor change

* add custom serializer passing all tests

* no_std support

* minor renames

* cargo fmt

* cargo clippy

* minor comment change

* cargo fmt extra

Succeed when patch codecov fails (#1900)

Liquidity pools: Add UTs to for `update_token_price()` (#1890)

* add token price UTs

* update IT

* fix tests compilation

remove some unused code investment-related (#1902)

Release v0.13.0 (#1898)

* chore: update deps to enable metadata hash check

* chore: update srtool + add on-chain-release-build opts

* chore: bump spec versions + cleanup migrations

* fmt: taplo

* ci: fix srtool fmt

* ci: apply proper CLI

* attempt2 to enable on-chain-release-build

* change srtool build for chevdor/strool-actions action

* desperate attempts to get it working

* override workdir

* Try to set permissions wide open before running docker

* add RUST_BACKTRACE

* revert to our GHA manual process & add enhancements

* fix package name

* Output information about srtool

* Revert "desperate attempts to get it working"

This reverts commit a882fd9.

* fix: some scripts

* fix bad colon on echo command

* Fix missing colon and remove docker publish release

* upload wasm to release

* fix issue with gchr tags

* more semicolon issues

* unique name for delete untagged

* fix delete_untagged

* move delete_untagged under workflows

* move delete untagged to manual runs

* review bash syntax for wasm build

* recover cache and limit sanity check build time

---------

Co-authored-by: Guillermo Perez <gpmayorga@users.noreply.github.com>

cargo update (#1904)

add uts (#1905)

IT: Support `#ignore = reason` for `test_runtimes` macro (#1908)

* support #ignore = reason for test_runtimes macro

* fix clippy

ci: disable checks for drafts (#1913)

LP: Unitary testing for add_currency (#1912)

* port add-currency tests into uts

* remove LiquidityPoolsWrappedToken struct

* remove unused code

* fix compilation issues

* fix clippy

* fix clippy

feat: adatpt to latest version

LP: Unitary testing for all pending extrinsics (#1916)

* allow and disallow currency tests

* schedule_upgrade cancel_upgrade and update_tranche_token_metadata

Feat: Adapt proxy settings (#1922)

* feat: adapt proxy settings

* fix: match pattern

Small CI improvements (#1924)

LP: Unitary testing for inbound messages (#1927)

* tests inbound messages

* some cleanings

* some adjustements

fix: array size

fix: clippy + fmt

fix: update blake hash

fix: compilation

Refactor: Transform `TrancheCurrency` type in a tuple (#1926)

* remove TrancheCurrency type

* fix benchmarks

* fix clippy

fix: std import KeccakHasher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D8-migration Pull request touches storage and needs migration code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants