pub trait StorageModule: ContractBase + Sized {
// Required methods
fn token_details(
&self,
token: &TokenIdentifier<Self::Api>
) -> SingleValueMapper<Self::Api, TokenOwnershipData<Self::Api>>;
fn bonding_curve(
&self,
token: &TokenIdentifier<Self::Api>
) -> SingleValueMapper<Self::Api, ManagedBuffer<Self::Api>>;
fn owned_tokens(
&self,
owner: &ManagedAddress<Self::Api>
) -> SetMapper<Self::Api, TokenIdentifier<Self::Api>>;
fn nonce_amount(
&self,
identifier: &TokenIdentifier<Self::Api>,
nonce: u64
) -> SingleValueMapper<Self::Api, BigUint<Self::Api>>;
}