Closed beer-1 closed 2 months ago
The changes involve modifications to the multisig
and simple_map
modules in both the initia_std
and minitia_std
libraries. The duplicated_member
function's expected failure behavior has been updated. The simple_map
module has transitioned from a sorted to an unsorted map, altering its key lookup time complexity and introducing new functions for adding and retrieving elements.
Files | Change Summary |
---|---|
.../initia_stdlib/sources/multisig.move |
Updated expected failure code for duplicated_member from 0x10000 to 0x10001 . |
.../initia_stdlib/sources/simple_map.move |
Transitioned from sorted to unsorted map, updated function signatures for clarity, renamed and added new functions for improved usability and functionality. |
.../minitia_stdlib/sources/multisig.move |
Updated expected failure code for duplicated_member from 0x10000 to 0x10001 . |
.../minitia_stdlib/sources/simple_map.move |
Transitioned from sorted to unsorted map, updated function signatures for clarity, renamed and added new functions for improved usability and functionality. |
sequenceDiagram
participant User
participant SimpleMap
User->>SimpleMap: create()
SimpleMap-->>User: returns new SimpleMap
User->>SimpleMap: add(key, value)
SimpleMap-->>User: confirms addition
User->>SimpleMap: add_all(keys, values)
SimpleMap-->>User: confirms all additions
User->>SimpleMap: upsert(key, value)
SimpleMap-->>User: confirms upsert operation
User->>SimpleMap: keys()
SimpleMap-->>User: returns list of keys
User->>SimpleMap: values()
SimpleMap-->>User: returns list of values
π° In the meadow where the changes play,
A map of keys now finds its way.
Unsorted paths, oh what a sight,
New functions bloom, a pure delight!
With every hop, we add and find,
A world of wonder, joyful and kind. πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
New Features
simple_map
module, improving key/value management.add_all
,upsert
,keys
, andvalues
for enhanced usability.create
method tonew
and addednew_from
for creating maps from key/value vectors.Bug Fixes
duplicated_member
function in bothmultisig
modules, refining error handling.Documentation
simple_map
functionality and new method signatures.