Keymap
This hashmap-like storage structure uses generic typed keys to store objects.
What are Keymaps?
Importing the subpackage
cosmwasm-std = { package = "secret-cosmwasm-std", version = "1.1.10" }
cosmwasm-storage = { package = "secret-cosmwasm-storage", version = "1.1.10" }
secret-toolkit-storage = "0.9.0"Configuring the testing environment
#[cfg(test)]
mod tests {
use secret_toolkit_storage::{Item, Keymap};
use serde::{Deserialize, Serialize};
use cosmwasm_std::testing::MockStorage;
use cosmwasm_std::StdResult;
};Inserting key-value pairs into a Keymap
Additional Resources
Last updated
Was this helpful?