pub struct CEP2612WrapperContractRef { /* private fields */ }Expand description
CEP2612Wrapper Contract Ref.
Implementations§
Source§impl CEP2612WrapperContractRef
impl CEP2612WrapperContractRef
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 the wrapper by deploying the ERC-2612 module and the CEP-18 token, and setting up the EIP-712 domain.
Trait Implementations§
Source§impl ContractRef for CEP2612WrapperContractRef
impl ContractRef for CEP2612WrapperContractRef
Source§impl SchemaErrors for CEP2612WrapperContractRef
Available on non-WebAssembly only.
impl SchemaErrors for CEP2612WrapperContractRef
Available on non-WebAssembly only.
Source§impl SchemaEvents for CEP2612WrapperContractRef
Available on non-WebAssembly only.
impl SchemaEvents for CEP2612WrapperContractRef
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 CEP2612WrapperContractRef
impl !Send for CEP2612WrapperContractRef
impl !Sync for CEP2612WrapperContractRef
impl !UnwindSafe for CEP2612WrapperContractRef
impl Freeze for CEP2612WrapperContractRef
impl Unpin for CEP2612WrapperContractRef
impl UnsafeUnpin for CEP2612WrapperContractRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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