Module 0xa5::coin_data
use 0xa5::coin_info;
use 0xa5::coin_management;
Struct CoinData
struct CoinData<T> has store
Fields
-
coin_management: coin_management::CoinManagement<T>
-
-
coin_info: coin_info::CoinInfo<T>
-
Function new
public(friend) fun new<T>(coin_management: coin_management::CoinManagement<T>, coin_info: coin_info::CoinInfo<T>): coin_data::CoinData<T>
Implementation
public(package) fun new<T>(
coin_management: CoinManagement<T>,
coin_info: CoinInfo<T>,
): CoinData<T> {
CoinData<T> {
coin_management,
coin_info,
}
}
Function coin_info
public(friend) fun coin_info<T>(self: &coin_data::CoinData<T>): &coin_info::CoinInfo<T>
Implementation
public(package) fun coin_info<T>(self: &CoinData<T>): &CoinInfo<T> {
&self.coin_info
}
Function coin_management_mut
public(friend) fun coin_management_mut<T>(self: &mut coin_data::CoinData<T>): &mut coin_management::CoinManagement<T>
Implementation
public(package) fun coin_management_mut<T>(
self: &mut CoinData<T>,
): &mut CoinManagement<T> {
&mut self.coin_management
}