Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

A trait for creating the struct containing the StorageBase or FlattenedStorage of all the members of a contract state.

Signature

pub trait StorageTrait

Trait functions

storage

Creates a struct containing the StorageBase or FlattenedStorage of all the members of a contract state. Should be called from the deref method of the contract state.

Signature

fn storage(self: FlattenedStorage) -> StorageTraitBaseType

Trait types

BaseType

The type of the struct containing the StorageBase or FlattenedStorage of all the members of the type T.

Signature

type BaseType;