Struct adapter::ethereum::test_util::Erc20Token
source · pub struct Erc20Token {
pub web3: Web3<Http>,
pub info: TokenInfo,
pub contract: Contract<Http>,
}
Available on crate feature
test-util
only.Expand description
The Mocked token API contract
Used for mocking the tokens of an address.
Initialized and ready for calling contract with [Web3<Http>
].
Mocked ABI: MOCK_TOKEN_ABI
Real ABI: crate::ethereum::ERC20_ABI
Fields
web3: Web3<Http>
info: TokenInfo
contract: Contract<Http>
Implementations
sourceimpl Erc20Token
impl Erc20Token
Trait Implementations
sourceimpl Clone for Erc20Token
impl Clone for Erc20Token
sourcefn clone(&self) -> Erc20Token
fn clone(&self) -> Erc20Token
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for Erc20Token
impl Send for Erc20Token
impl Sync for Erc20Token
impl Unpin for Erc20Token
impl !UnwindSafe for Erc20Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more