pub fn update_entry_shares<T: Config>(
index: IndexDigest<T>,
entry: IndexDigest<T>,
shares: Shares<T>,
)Expand description
Derive a new index with updated share weight for a specific entry.
This operation does not mutate the existing index. Instead, it creates
a new index configuration where the specified entry is assigned the
given shares, while all other entries remain unchanged.
§Behavior
- Produces a new index digest reflecting the updated share distribution.
- The original index remains immutable and unchanged.
§Notes
- Indexes are immutable once created.
- Any modification to entry shares results in a new index instance.
Emits: Event::IndexCreated
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::update_entry_shares.