OpenZeppelin / cairo-contracts

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup
https://docs.openzeppelin.com/contracts-cairo
MIT License
811 stars 324 forks source link

Enumerable Map #196

Open Pet3ris opened 2 years ago

Pet3ris commented 2 years ago

Apologies if this is not the best place for feature requests :).

🧐 Motivation

At yagi.fi, we need an enumerable map to maintain a list of keepers. This enumerable map will be able to enumerate keeper account addresses and also help recover state associated with an individual keeper based on their address.

📝 Details

Something like OpenZeppelin EnumerableMap would be great here: https://docs.openzeppelin.com/contracts/3.x/api/utils#EnumerableMap.

Pet3ris commented 2 years ago

FYI - this may be useful input to make the map generic: https://twitter.com/fuxeto/status/1531629924959780864