Append Store
Initialize
use secret_toolkit::storage::{AppendStore}pub static COUNT_STORE: AppendStore<i32> = AppendStore::new(b"count");// The compiler knows that user_count_store is AppendStore<i32, Bincode2>
let user_count_store = COUNT_STORE.add_suffix(info.sender.to_string().as_bytes());pub static COUNT_STORE: AppendStore<i32> = AppendStore::new_with_page_size(b"count", 5);Read/Write
Iterator
Last updated
Was this helpful?