-
Although Aptos encourages devs to use the pattern of storing app state under each user if possible, but Aptos also supports array and map so devs can store app state in a central place, similar to solidity contracts, this makes building on Aptos more approachable. Let's say we are building an NFT marketplace, we don't want to rely on the indexer (due to the complexity of having a custom indexer), we store all the NFT listings in a table. We need an easy way to iterate all the listings with pagination, add or remove listings. If we don't have treemap, we either use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Synced offline with smart contract team, order map is on the roadmap! There's a |
Beta Was this translation helpful? Give feedback.
Synced offline with smart contract team, order map is on the roadmap! There's a
IterableTable
in aptos framework, but it's not not mainnet yet.