Struct sov_bank::TokenConfig
source · pub struct TokenConfig<C: Context> {
pub token_name: String,
pub address_and_balances: Vec<(C::Address, u64)>,
pub authorized_minters: Vec<C::Address>,
pub salt: u64,
}
Expand description
TokenConfig
specifies a configuration used when generating a token for the bank
module.
Fields§
§token_name: String
The name of the token.
address_and_balances: Vec<(C::Address, u64)>
A vector of tuples containing the initial addresses and balances (as u64)
The addresses that are authorized to mint the token.
salt: u64
A salt used to encrypt the token address.
Auto Trait Implementations§
impl<C> RefUnwindSafe for TokenConfig<C>where <C as Spec>::Address: RefUnwindSafe,
impl<C> Send for TokenConfig<C>
impl<C> Sync for TokenConfig<C>
impl<C> Unpin for TokenConfig<C>where <C as Spec>::Address: Unpin,
impl<C> UnwindSafe for TokenConfig<C>where <C as Spec>::Address: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more