referrerpolicy=no-referrer-when-downgrade
ethereum_standards::IERC20

Struct transferCall

Source
pub struct transferCall {
    pub to: Address,
    pub value: U256,
}
Expand description

@dev Moves a value amount of tokens from the caller’s account to to.

Returns a boolean value indicating whether the operation succeeded.

Emits a {Transfer} event. Function with signature transfer(address,uint256) and selector 0xa9059cbb.

function transfer(address to, uint256 value) external returns (bool);

Fields§

§to: Address§value: U256

Trait Implementations§

Source§

impl Clone for transferCall

Source§

fn clone(&self) -> transferCall

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl SolCall for transferCall

Source§

const SIGNATURE: &'static str = "transfer(address,uint256)"

The function’s ABI signature.
Source§

const SELECTOR: [u8; 4] = _

The function selector: keccak256(SIGNATURE)[0..4]
Source§

type Parameters<'a> = (Address, Uint<256>)

The underlying tuple type which represents this type’s arguments. Read more
Source§

type Token<'a> = <<transferCall as SolCall>::Parameters<'a> as SolType>::Token<'a>

The arguments’ corresponding [TokenSeq] type.
Source§

type Return = bool

The function’s return struct.
Source§

type ReturnTuple<'a> = (Bool,)

The underlying tuple type which represents this type’s return values. Read more
Source§

type ReturnToken<'a> = <<transferCall as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>

The returns’ corresponding [TokenSeq] type.
Source§

fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self

Convert from the tuple type used for ABI encoding and decoding.
Source§

fn tokenize(&self) -> Self::Token<'_>

Tokenize the call’s arguments.
Source§

fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>

Tokenize the call’s return values.
Source§

fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>

ABI decode this call’s return values from the given slice.
Source§

fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>

ABI decode this call’s return values from the given slice, with validation. Read more
§

fn abi_encoded_size(&self) -> usize

The size of the encoded data in bytes, without its selector.
§

fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>

ABI decode this call’s arguments from the given slice, without its selector.
§

fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>

ABI decode this call’s arguments from the given slice, without its selector, with validation. Read more
§

fn abi_decode(data: &[u8]) -> Result<Self, Error>

ABI decode this call’s arguments from the given slice, with the selector.
§

fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>

ABI decode this call’s arguments from the given slice, with the selector, with validation. Read more
§

fn abi_encode_raw(&self, out: &mut Vec<u8>)

ABI encode the call to the given buffer without its selector.
§

fn abi_encode(&self) -> Vec<u8>

ABI encode the call to the given buffer with its selector.
§

fn abi_encode_returns(ret: &Self::Return) -> Vec<u8>

ABI encode the call’s return value.
§

fn abi_encode_returns_tuple<'a, E>(e: &'a E) -> Vec<u8>
where E: SolTypeValue<Self::ReturnTuple<'a>>,

ABI encode the call’s return values.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.