Open muraca opened 9 months ago
I want to work on pallet-aura
@muraca Did we come to consensus on what to do about storage values that lose visibility due to being pub(super), etc? Are we standing behind value::<T, I>::get() usage so staunchly that we should just mark them pub? Or should we implement getters such that they remain read-only?
In the past PRs I have done I have marked all the storage items as pub, however take my words with a grain of salt as I'm just a mere open source contributor, I don't want any responsibility on this 😄
Hahah sounds good! I'm going to try the 'implement a replacement getter' approach and we'll see if I get yelled at. I feel data authority is important enough for this to be the route.
I want to work on Pallet-tips
I want to work on Pallet-tips
Go for it! And to catch you up, basically all storage values are to be changed to pub (from pub(super) lets say) and all removed getters are to be reimplemented explicitly such that the public API remains the same. This is according to #223 and an example PR is #4840
In addition - we've been converting syntax over to turbo fish as well
I'm taking on pallet-offences
I'm starting to work on pallet-staking
This issue tracks the removal of
pallet::getter
in all pallets, as per #223. The preferred syntax isKey::<T>::get()
. This approach avoids a huge PR and lots of merge conflicts, a mistake I already made when I tried to perform this task last year.As these PRs introduce breaking changes, a
prdoc
file is required. An example is this one I wrote for #3371 I suggest to use the prdoc cli tool.Bridges:
pallet-bridge-grandpa
pallet-bridge-messages
pallet-bridge-relayers
pallet-xcm-bridge-hub-router
snowbridge-pallet-ethereum-client
snowbridge-pallet-inbound-queue
snowbridge-pallet-outbound-queue
snowbridge-pallet-system
Cumulus:
cumulus-pallet-aura-ext
#3471pallet-collator-selection
#3471cumulus-pallet-parachain-system
#3471pallet-parachain-template
#3371staging-parachain-info
#3471Polkadot:
polkadot-runtime-common
#3660polkadot-runtime-parachains
#3660pallet-xcm
xcm-simulator-example
xcm-simulator-fuzzer
FRAME:
pallet-template
#3371pallet-alliance
#3738pallet-aura
#3350pallet-authority-discovery
#4091pallet-babe
pallet-balances
pallet-beefy
#3740pallet-beefy-mmr
#3740pallet-bounties
#4392pallet-child-bounties
#4392pallet-collective
#3456pallet-contracts-mock-network
#4417pallet-democracy
#4472pallet-election-provider-multi-phase
#4487pallet-elections-phragmen
#4513pallet-example-basic
#3371pallet-example-kitchensink
#3371pallet-example-offchain-worker
#3371pallet-fast-unstake
#4514pallet-grandpa
pallet-identity
pallet-im-online
#3589pallet-insecure-randomness-collective-flip
pallet-membership
pallet-mmr
#3740pallet-nft-fractionalization
pallet-node-authorization
pallet-offences
#6027pallet-proxy
pallet-recovery
pallet-sassafras
pallet-scored-pool
pallet-session
pallet-staking
pallet-state-trie-migration
pallet-sudo
#3370frame-support
frame-system
pallet-timestamp
#3374pallet-tips
pallet-transaction-payment
pallet-transaction-storage
pallet-treasury
pallet-vesting
substrate-test-runtime
cc @kianenigma @shawntabrizi