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.
👉 To be merged into the AHM dev branch.
quote from Preimage.md:
The preimage pallet consists of three storage maps, one of which is a legacy item. The interesting one are
RequestStatusFor
andPreimageFor
.Storage: PreimageFor
Maps a hash and the length of a preimage to its preimage data. Preimages can be migrated rather easily by sending them in chunks from the Relay and appending them on the Asset Hub. The preimages are often used to store large governance calls.
Q: One question here would be whether or not we want to translate these calls. I think we can and should. But I am not sure about the best time point to do so.
We can translate the preimages calls upon arrival on the Asset Hub, although there is a small chance that a preimage that was not intended to be decoded as a call would be translated.
After all, the preimage pallet is a universal data storage without any implied semantics about its content. It could therefore be better to translate the preimages once we are migrating the Referenda pallet and then only translate all preimages that occur as hash lookups in a referenda. However, since the scheduler is the only way to request a preimage, all requested preimages should probably be valid calls. But the translation still needs to happen in accord with the Referenda pallet as to not invalidate its hashes.
Basically: loop referenda -> load referenda -> load preimage of referenda -> translate preimage -> calculate new preimage hash -> update preimage with new hash -> update referenda with new hash.
One further note on the preimage translation: If the length of a preimage is increased by the translation, then we should not reconsider the deposit but keep the original deposit as to not punish users for this. The cases that the translation increases the size of a preimage past the 4MiB hard limit should be negligible.
Storage: RequestStatusFor
This maps preimage hashes to RequestStatus. The RequestStatus contains a consideration that will be re-considered upon import. This would unreserve funds for all users that noted preimages. Possible up to 20 DOT per preimage.
The migration of this should be straighforward this but we need to remember that it must be updated if we start translating preimage calls.
Storage: StatusFor
Deprecated. Will not be migrated but funds will be unreserved.
User Impact
For anyone who has registered a preimage:
Details
16LKv69ct6xDzSiUjuz154vCg62dkyysektHFCeJe85xb6X
: 1256.897 DOT15ynbcMgPf7HbQErRz66RDLMuBVdcWVuURhR4SLPiqa6B8jx
: 633.121 DOT12jW7jTPVKWahgRvxZL8ZCKKAwzy4kbrkHhzhafNjHEJXfw9
: 633.121 DOT13BD4q9RYQtxkUQLvyCksnN9Pa7sC5fGj5dcdxpojxGkoHMp
: 40.229 DOT13NRkBCD7NLkppxoHpYrUQ6GcjNpZEWCeXFjXDgDctANBG9j
: 40.193 DOT14VwUiNPMN2T9jGvWaSm5pwcUr5ziqLjTomRm6xUxwy3Urjm
: 40.17 DOT14TBcRgp166DXvMv9ZCJbKSqanUGP6tguryPQcaBqjQp8d4m
: 40.152 DOT14TBcRgp166DXvMv9ZCJbKSqanUGP6tguryPQcaBqjQp8d4m
: 40.143 DOT1eK9SC7Z2QFi4es2aKQHAehcZqY7bEiprkpsT483PvVK8KE
: 40.143 DOT15YLDvV6Q2NUVEFBN26kRgHyyeH1Bu91NKTwBg3xW3hEVfoj
: 40.108 DOT13q3NEbcSepgVbCyN6XLQtEvyZuAEqDUPLiuX2iydaQrwDCU
: 40.107 DOT14M94kYk31k2hY8MpnfNPRviJ4VcsFFjBhq7V2Fs9DzCVhXc
: 40.107 DOT1316cTZeHz8HtEjaJRHu8sHbp9brtUmy2LiP74KZXgXhifry
: 40.107 DOT16maYYXg9chsfsBVoiSbSWzmFveamERwShPZv3SB5hVnYTmT
: 40.107 DOT12ow3eJ3vbjeNRahUUrBnc98mWeJTSQ7rJCAVqiFQDEnzbu8
: 40.107 DOT13g4yRs3NbtaXyu1Uww8AXd4uvrqXyR1hPR4jejRLv8rBUyB
: 40.107 DOT12rpF7eUC59kU7itRe3NpSTQJroK5YiHfn5c4bT21BZxp257
: 40.107 DOT16maYYXg9chsfsBVoiSbSWzmFveamERwShPZv3SB5hVnYTmT
: 40.107 DOT1fN87Fgj5BUhezFgbLiGbXTMrBVggnmYBX9anzMBky8KaJ5
: 40.107 DOT14PiQ7uar36zPMgEckA7qWUahYheavRL6NHCbUCkXXRNrFSc
: 40.107 DOT13SceNt2ELz3ti4rnQbY1snpYH4XE4fLFsW8ph9rpwJd6HFC
: 40.107 DOT1hzs7HJ4teyvX9cwFsxCaJBSNQcPAWHixQT4fem5h66cogb
: 40.107 DOT15ho9t317QDvod18gCoTNe9yoiMjTXHwVxd5RC2iWyzEEby1
: 40.107 DOT13SceNt2ELz3ti4rnQbY1snpYH4XE4fLFsW8ph9rpwJd6HFC
: 40.107 DOT12bMyzdtiT2V9iNJ7BzQXPmzZ4KTzqFmZPSNeBmg97mFP5F4
: 40.107 DOT1QjuTEKebQ3au8bxQC6iwYSPCA2iZn3YHwX8VABCauKtwRk
: 40.107 DOT15fvwi77dujPz9Mk9U792gNa2Mg5z6489DPwErwCZwu7EpLE
: 40.107 DOT1WgB9o954mkQi97f36azSwDt7SfRUQuJ1kCyb7Sv1WAUcSe
: 40.107 DOT14zU4FXuYU2wmi2PfXLADZW92NRYEw8nfUEvi7sqiJLafJ3A
: 40.107 DOT15cfSaBcTxNr8rV59cbhdMNCRagFr3GE6B3zZRsCp4QHHKPu
: 40.107 DOT133VgJJgp1s9wxLqgCFxYx6T873hZQNchJM9tmbU6NkYaaqW
: 40.107 DOT13YMTEPKAxPRiyaZdMKrozeNT9x1Pa5h7aExebCdi6nc3Qqd
: 40.107 DOT14M94kYk31k2hY8MpnfNPRviJ4VcsFFjBhq7V2Fs9DzCVhXc
: 40.107 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.107 DOT15cfSaBcTxNr8rV59cbhdMNCRagFr3GE6B3zZRsCp4QHHKPu
: 40.107 DOT15qz4ZLeyXp1i4Jbx7AXiUQVCCLWVXu3dLjcTPHY3v9KGAvL
: 40.107 DOT14TBcRgp166DXvMv9ZCJbKSqanUGP6tguryPQcaBqjQp8d4m
: 40.107 DOT13zTcqasJT4DnDgNjmsceACcuSjt4q2geEjtMprnGXCnuuh1
: 40.107 DOT12eWtdVxQ9ScYD9AzyMuSsX8B9iEikWtUGiirJ1YJtDCCuwu
: 40.107 DOT1342Xpqiwwmxnhugnp91d21xR7s8V6uxXQJ1xYBQfUwbvgDB
: 40.107 DOT16JA2pWJ7rXhKAq9xaCpSvVgWf6MaPLYvtSVpj7ZWjTkhYoB
: 40.107 DOT1j5YyEGdcPd9BxkzVNNjKkqdi5f7g3Dd7JMgaGUhsMrZ6dZ
: 40.107 DOT1njGozmydXftj6KYFPGLPN7Qq3kgmFqxsRdF5hWJAschp1S
: 40.107 DOT12pdBf9NJ2jqRHdVmtqSZMRvWQoiH81AfaACgiMuXLeySNzc
: 40.107 DOT1njGozmydXftj6KYFPGLPN7Qq3kgmFqxsRdF5hWJAschp1S
: 40.107 DOT16MF8p8KfktKazPiQEqTXJq1CtYuZ9aNrBShXQNRdhckctC5
: 40.107 DOT197nLd2rFoesjmvTfMpkFhHde7ngKzpLaA8xsbdWyeaJwzx
: 40.107 DOT12BYYgmRb5BjHjZf7nykJDB1C6FXTfqr9QSmrav8RHt19ahj
: 40.107 DOT12BJTP99gUerdvBhPobiTvrWwRaj1i5eFHN9qx51JWgrBtmv
: 40.107 DOT1333zsMafds2sKAr8nG3zwXTCHPYv2Nm6CRgakpu6YVGt7nM
: 40.107 DOT15qz4ZLeyXp1i4Jbx7AXiUQVCCLWVXu3dLjcTPHY3v9KGAvL
: 40.107 DOT13EDmaUe89xXocPppFmuoAZaCsckaJy3deAyVyiykk1zKQbF
: 40.107 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.107 DOT1ZVYsze5Ls3osofU6wWSp5dphr62Rj7YiL4NsXiZU3a298F
: 40.107 DOT14j9cWtbvYid754crk6ieQABGYHtGZozzeavT1jc11bt32ZM
: 40.107 DOT14fcqMPHhCtwnbPAHxjsf3JiGsDuLQPGMpndrWawuiAiiCqE
: 40.107 DOT12dt664RtnYbeiR1D45CUPyHk1Ufv1NEHFXkuRLy47FktR31
: 40.107 DOT131JKfT9kNvKjp5NJY2jHZmb32wjbr6xDHuCt4zHapWVtDde
: 40.107 DOT15cfSaBcTxNr8rV59cbhdMNCRagFr3GE6B3zZRsCp4QHHKPu
: 40.107 DOT1f1wZcBaJrPHkBkzx2S7KXFbjtT7KMg7fDaV47P6157KRWo
: 40.107 DOT14Q5M6LWDVCPm47sVvz6M6YAEsEi5u3Rszh8z5eC2bhL9Upk
: 40.107 DOT1k5ddMCPuLbu9Hax12EdKRmPwGigUKQW1ab6tRAWPxKygRF
: 40.107 DOT15YLDvV6Q2NUVEFBN26kRgHyyeH1Bu91NKTwBg3xW3hEVfoj
: 40.107 DOT14fhPR28n9EHZitNyf6wjYZVBPwKgcgogVjJPTzvCcb8qi9G
: 40.107 DOT1RYjrCKUmvM8D9QDKCNbWJYUe49h6ZfkgXvEAtkHgvzxbGB
: 40.107 DOT15wznkm7fMaJLFaw7B8KrJWkNcWsDziyTKVjrpPhRLMyXsr5
: 40.107 DOT14PiQ7uar36zPMgEckA7qWUahYheavRL6NHCbUCkXXRNrFSc
: 40.107 DOT14cFTN4jFFiiL1qszmGKZjokAdNr4YSD7Gf5rhZRA62TrtMb
: 40.107 DOT12bqgqerfH21x5hv85AJ9AiNFWXVmBLDoCvmz78MD4fgEP7Y
: 40.107 DOT15oXzySe6tjF2MumHfUodH8pFQWjy2hraRmXUJXXMKKY6p3F
: 40.107 DOT1ZVYsze5Ls3osofU6wWSp5dphr62Rj7YiL4NsXiZU3a298F
: 40.107 DOT12NCX9ZK1z9fxBfRraD6L4V86EmPipSerHnPcsj1k4hSkszg
: 40.107 DOT126X27SbhrV19mBFawys3ovkyBS87SGfYwtwa8J2FjHrtbmA
: 40.106 DOT15DL1EU6TpGDvL8HCNNU2ZDZdbcDUPiHYr1DBHBerUWMkJnT
: 40.106 DOT1bqBkjrbVc6nFbpZ2oqnbEKAs99CYSf2XVAwtGVWBRxDvNY
: 40.106 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.106 DOT152wswWPnwr1uLxqyENaesqjFtJcMwLT3dmrpb7KNt1PZ1PX
: 40.106 DOT14M94kYk31k2hY8MpnfNPRviJ4VcsFFjBhq7V2Fs9DzCVhXc
: 40.106 DOT16kkgkzjyJZL91WaL6GAUJnTZjiaowZcFyHAs5GWCNVqJimJ
: 40.106 DOT14mZVYo7jy13aHTiNMQZJzsii5CPsVEaMQwLXTEMLzkmxKH2
: 40.106 DOT13uvpozMRF7PCGbgPutm852Jt58nNBVUPdMFEQg5m7d1w8J8
: 40.106 DOT15cfSaBcTxNr8rV59cbhdMNCRagFr3GE6B3zZRsCp4QHHKPu
: 40.106 DOT123jNGxHk9ZV7oVVhFWFtMghNpmnmmTWxSpNxf8TTKzmCSQ2
: 40.106 DOT16MJX8HEwhbJwN9LCKLymW812eD9N97c5EkRNVjWzhFTwhBN
: 40.106 DOT13uvpozMRF7PCGbgPutm852Jt58nNBVUPdMFEQg5m7d1w8J8
: 40.106 DOT14mg5GK7RoiafH7djdKgZKxKewuhj8ds19bqjioaEHR6WhQ4
: 40.106 DOT1pzhyYR9gLk3GmwRtQESLkJCUXazFsAESgcbTRLc9q9hNuy
: 40.106 DOT16ZhiPmAt65atW7uvNSqyK1qitQL4FQUvYz8yYXfV1EGwVP1
: 40.106 DOT15kgSF6oSMFeaN7xYAykihoyQFZLRu1cF5FaBdiSDHJ233H5
: 40.106 DOT1L3j12S8rmd5GvJsxzBQzFKypYX5yV2kLrPJhacUYVrLvus
: 40.106 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.106 DOT13mEX6UD8t4L8YfsUxE8QjYFDkfEkAg2QpKWqKEfg5gZw3et
: 40.106 DOT13uvpozMRF7PCGbgPutm852Jt58nNBVUPdMFEQg5m7d1w8J8
: 40.106 DOT16Q4cR5vHLkoNqtqCZcdeKnZhY9a8AiXZAtemRJmMCpeiu82
: 40.106 DOT133uT5bf5xz8xMkCmwVBWpeHjN4NyfvfqwdpXu2oZnn29kEG
: 40.106 DOT13mm8mjuALSbyvfjfso22eexuFwL4MqMrcw1w5To9L52yb5h
: 40.106 DOT16kkgkzjyJZL91WaL6GAUJnTZjiaowZcFyHAs5GWCNVqJimJ
: 40.106 DOT12mRyiCp9zdh1wEVW5gLLiFBxDPKks72rRXmSupyEK3VAMLf
: 40.106 DOT12mRyiCp9zdh1wEVW5gLLiFBxDPKks72rRXmSupyEK3VAMLf
: 40.106 DOT13mm8mjuALSbyvfjfso22eexuFwL4MqMrcw1w5To9L52yb5h
: 40.106 DOT167vWTbKWmJhWUitgP1hGRZfaActDyZufCVu6vqUzrhQ2pS3
: 40.106 DOT15V75NT7bvs9YuVF6NTJynpTCswRshzwvcqPJZoaEJsBVxHi
: 40.106 DOT15VgqbuZGdwrpGjKkJMA9nE2gqLMHyQpWmE7k6dc4fQdRMXa
: 40.106 DOT12eMZTAnXEsyedXmsB6jDVRnF9Mq8ZrhLefRGhxPE4JwrPAS
: 40.106 DOT121k35TZKEpoQeKURnEgt2zqWsyDKxUJkTFuwpZeLoSYUe7o
: 40.106 DOT14PiQ7uar36zPMgEckA7qWUahYheavRL6NHCbUCkXXRNrFSc
: 40.106 DOT16ad3ehm2XsVQbQgqYPxicRB5nGinQU9zEKiCJ7ZVhRN9CyG
: 40.106 DOT123LuJKS65HaBbLSdDS46ByeC7bvQwA1iUhTpmjigQAfUKpK
: 40.106 DOT1316cTZeHz8HtEjaJRHu8sHbp9brtUmy2LiP74KZXgXhifry
: 40.106 DOT1316cTZeHz8HtEjaJRHu8sHbp9brtUmy2LiP74KZXgXhifry
: 40.106 DOT1QgMmM5QyTBVkC9cBNPVQszCTHjCBskFG1pny8zVprPSd1J
: 40.106 DOT1dwxEFdaRzBF1fpZqbXz71nLhJHvPi6a8eETjPSyC3Wrvom
: 40.106 DOT12wWLUd5qMzLFGqBsMnHLVFeTuYJwuo5ygMAxuSywrBX1XSF
: 40.106 DOT19C7X2ayEGaHbRb7obTd7u2crJhYm6W47XpyLC2jQBGdpif
: 40.106 DOT1316cTZeHz8HtEjaJRHu8sHbp9brtUmy2LiP74KZXgXhifry
: 40.106 DOT14DsLzVyTUTDMm2eP3czwPbH53KgqnQRp3CJJZS9GR7yxGDP
: 40.106 DOT1xgDfXcNuB94dDcKmEG8rE9x9JVoqozCBnnitkN9nAe3Nyx
: 40.106 DOT16kkgkzjyJZL91WaL6GAUJnTZjiaowZcFyHAs5GWCNVqJimJ
: 40.106 DOT16aQb7rHLB8UXzd2YSh56vjAELyyq8jYaj5QdAHjVjsA3ey9
: 40.106 DOT14jHouxT1VbhBDw93VW8Z89p139Qgu7ECHz3zxM2CpQEDJDB
: 40.106 DOT15fHj7Q7SYxqMgZ38UpjXS8cxdq77rczTP3JgY9JVi5piMPN
: 40.106 DOT149FXUmHgg75z4sk2LzFDyctNLHhzf2YxGMFHT7TakkbeQ7F
: 40.106 DOT12hAtDZJGt4of3m2GqZcUCVAjZPALfvPwvtUTFZPQUbdX1Ud
: 40.106 DOT13GtCixw3EZARj52CVbKLrsAzyc7dmmYhDV6quS5yeVCfnh1
: 40.106 DOT15ixta6FiXTBE8gXCTUNP3ahdYWcTuateHgB2czGg5EGDVMA
: 40.106 DOT15kgSF6oSMFeaN7xYAykihoyQFZLRu1cF5FaBdiSDHJ233H5
: 40.106 DOT13GtCixw3EZARj52CVbKLrsAzyc7dmmYhDV6quS5yeVCfnh1
: 40.106 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.106 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.106 DOT139Vbu9X3h4v7NTBVSpLijAvpWUoGhYwKmeuxaSJ9kQsD2SG
: 40.106 DOT128fHaGJDKeXNNjqamUTaLe5dpU41zpbBaQA6BW9VsPKpkH6
: 40.106 DOT15DL1EU6TpGDvL8HCNNU2ZDZdbcDUPiHYr1DBHBerUWMkJnT
: 40.106 DOT16agh1vhJ78MiJ7tjuTd9RzreMwBwTEu15x8kCDfJy1xBYUs
: 40.106 DOT16kkgkzjyJZL91WaL6GAUJnTZjiaowZcFyHAs5GWCNVqJimJ
: 40.106 DOT13SceNt2ELz3ti4rnQbY1snpYH4XE4fLFsW8ph9rpwJd6HFC
: 40.106 DOT1zhukWzj6pTskKUhDmyCaoJLuaHp5AVMDn5uLoNXTrw2gDR
: 40.106 DOT15fHj7Q7SYxqMgZ38UpjXS8cxdq77rczTP3JgY9JVi5piMPN
: 40.106 DOT12mRyiCp9zdh1wEVW5gLLiFBxDPKks72rRXmSupyEK3VAMLf
: 40.106 DOT13u5odFdy7uFmRLpbgtYGWeFy8rFkcD3bYfad49B81C31pwL
: 40.106 DOT16fUfF5mqL3cGGL3ai1CTL45UyNVTBHcbMkmuh5Va5M2yJ5p
: 40.106 DOT14mZVYo7jy13aHTiNMQZJzsii5CPsVEaMQwLXTEMLzkmxKH2
: 40.106 DOT1uamkTsQk6TwVAm6FvD7optu9fDPUh7GojEc2mZHym13Kcf
: 40.106 DOT14DsLzVyTUTDMm2eP3czwPbH53KgqnQRp3CJJZS9GR7yxGDP
: 40.106 DOT12CHAK3YxJG5pGW6JAGp6Daj8ruRfPwCNbPM7jU8mC2zh2qD
: 40.106 DOT123LuJKS65HaBbLSdDS46ByeC7bvQwA1iUhTpmjigQAfUKpK
: 40.106 DOT16k8FBUzGaAScYvewFB9g6WGt8Zms9oygPVKt7GioG4gimRp
: 40.106 DOT14QQcaXERr6kzwW55L4GKmN8tC8NJRoGt1jF5D8GMWoXdyaz
: 40.106 DOT13EAhGcpe93mqSFZQrQ4P2cfpdAo5txWc5UQVTfEKDoqZjhw
: 40.106 DOT15SN9iNKxCJJjQ5f6JXEDxiaS6bRHxxTZtsfm3wCSSjyoENg
: 40.106 DOT12mRyiCp9zdh1wEVW5gLLiFBxDPKks72rRXmSupyEK3VAMLf
: 40.106 DOT15SN9iNKxCJJjQ5f6JXEDxiaS6bRHxxTZtsfm3wCSSjyoENg
: 40.106 DOT15oXuEfGte2HPoxxWwz18er7LNFuLNEdXtNNk53dggkfFgCR
: 40.106 DOT16agh1vhJ78MiJ7tjuTd9RzreMwBwTEu15x8kCDfJy1xBYUs
: 40.106 DOT1EpEiYpWRAWmte4oPLtR5B1TZFxcBShBdjK4X9wWnq2KfLK
: 40.101 DOT13Ghf2T883ZobjngC1BAgR1BWvK2P7qP37gGxHDVFf3fjbmw
: 40.1 DOT13SceNt2ELz3ti4rnQbY1snpYH4XE4fLFsW8ph9rpwJd6HFC
: 40.099 DOT14DsLzVyTUTDMm2eP3czwPbH53KgqnQRp3CJJZS9GR7yxGDP
: 40.087 DOT1481qDmGELXNaeDi3jsLqHUSXLpSkaEg3euUX8Ya3SPoDLmt
: 40.075 DOT16Drp38QW5UXWMHT7n5d5mPPH1u5Qavuv6aYAhbHfN3nzToe
: 40.074 DOT14onpjYNgzDZwY57Y3w5cwwnFyp6K62mNNbgq4Xhw7zNG9iX
: 40.07 DOT15nKYvAm8Yu9QVK65JWrhfyabhHkWywg21X9gX4GFJo3v4cT
: 40.069 DOT138MRRCFovYvetAhv37SnNsZoCVyghYoUArhBzMzKFfFGeMP
: 40.067 DOT13u5odFdy7uFmRLpbgtYGWeFy8rFkcD3bYfad49B81C31pwL
: 40.067 DOT12NGmpotx1WxkZ6RrqZeMBerBUB2aa2fBCrhSPvbAJWAcF33
: 40.067 DOT1EpEiYpWRAWmte4oPLtR5B1TZFxcBShBdjK4X9wWnq2KfLK
: 40.067 DOT13YMTEPKAxPRiyaZdMKrozeNT9x1Pa5h7aExebCdi6nc3Qqd
: 40.067 DOT