pub struct CEP3009WrapperContractRef { /* private fields */ }Expand description
CEP3009Wrapper Contract Ref.
Implementations§
Source§impl CEP3009WrapperContractRef
impl CEP3009WrapperContractRef
Sourcepub fn init(
&mut self,
chain_name: String,
symbol: String,
name: String,
decimals: u8,
initial_supply: U256,
)
pub fn init( &mut self, chain_name: String, symbol: String, name: String, decimals: u8, initial_supply: U256, )
Initializes both the authorization module (storing the EIP-712 chain id) and the underlying CEP-18 token (symbol, name, decimals, supply).
Delegated. See self.cep3009.authorization_state() for details.
Delegated. See self.cep3009.transfer_with_authorization() for details.
Delegated. See self.cep3009.receive_with_authorization() for details.
Delegated. See self.cep3009.cancel_authorization() for details.
Sourcepub fn balance_of(&self, address: &Address) -> U256
pub fn balance_of(&self, address: &Address) -> U256
Delegated. See self.token.balance_of() for details.
Trait Implementations§
Source§impl ContractRef for CEP3009WrapperContractRef
impl ContractRef for CEP3009WrapperContractRef
Source§impl SchemaErrors for CEP3009WrapperContractRef
Available on non-WebAssembly only.
impl SchemaErrors for CEP3009WrapperContractRef
Available on non-WebAssembly only.
Source§impl SchemaEvents for CEP3009WrapperContractRef
Available on non-WebAssembly only.
impl SchemaEvents for CEP3009WrapperContractRef
Available on non-WebAssembly only.
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CEP3009WrapperContractRef
impl !Send for CEP3009WrapperContractRef
impl !Sync for CEP3009WrapperContractRef
impl !UnwindSafe for CEP3009WrapperContractRef
impl Freeze for CEP3009WrapperContractRef
impl Unpin for CEP3009WrapperContractRef
impl UnsafeUnpin for CEP3009WrapperContractRef
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more