You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index child bounties by their parent bounty, ensuring that their indexes are independent of child bounties from other parent bounties. This will allow for predictable indexes and the ability to batch creation and approval calls together;
Solution:
To implement isolated child bounty indexes per parent bounty, we will add a new storage item that tracks the child bounty count per parent bounty without decrementing it upon child bounty completion. Similar to the ParentChildBounties, except that it keeps count of active child bounties. The ChildBountyCount can be deprecated.
We will need to adjust the keys for the ChildBountyDescriptions and ChildrenCuratorFees storage items (StorageMap -> StorageDoubleMap), changing them from (ChildIndex) to (ParentIndex, ChildIndex). The ChildBounties storage item will remain unchanged.
The migration required to translate data for ChildBountyDescriptions and ChildrenCuratorFees storage items.
The text was updated successfully, but these errors were encountered:
Resolves#5929
Migrates `ChildBountyDescriptions` to be indexed instead of unique child
bounty id unique per all child bounties in the pallet to be unique per
every parent bounty.
Migrates `(ParentBounty, ChildBounty)` keys inside `ChildBounties`
storage item to use new `ChildBounty` ids starting from `0`.
@paritytech/frame-coders
---------
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: DavidK <[email protected]>
Co-authored-by: muharem <[email protected]>
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
Part of #5500
Goal:
Index child bounties by their parent bounty, ensuring that their indexes are independent of child bounties from other parent bounties. This will allow for predictable indexes and the ability to batch creation and approval calls together;
Solution:
To implement isolated child bounty indexes per parent bounty, we will add a new storage item that tracks the child bounty count per parent bounty without decrementing it upon child bounty completion. Similar to the
ParentChildBounties
, except that it keeps count of active child bounties. TheChildBountyCount
can be deprecated.We will need to adjust the keys for the
ChildBountyDescriptions
andChildrenCuratorFees
storage items (StorageMap
->StorageDoubleMap
), changing them from(ChildIndex)
to(ParentIndex, ChildIndex)
. TheChildBounties
storage item will remain unchanged.The migration required to translate data for
ChildBountyDescriptions
andChildrenCuratorFees
storage items.The text was updated successfully, but these errors were encountered: