Struct tetsy_contract_address::TetsyContractAddress[][src]

pub struct TetsyContractAddress(_);

Represents an vapory contract address

Implementations

impl TetsyContractAddress[src]

pub fn from_sender_and_nonce(sender: &Address, nonce: &U256) -> Self[src]

Computes the address of a contract from the sender's address and the transaction nonce

pub fn from_sender_salt_and_code(
    sender: &Address,
    salt: H256,
    code_hash: H256
) -> Self
[src]

Computes the address of a contract from the sender's address, the salt and code hash

pWASM create2 scheme and EIP-1014 CREATE2 scheme

pub fn from_sender_and_code(sender: &Address, code_hash: H256) -> Self[src]

Computes the address of a contract from the sender's address and the code hash

Used by pwasm create ext.

Trait Implementations

impl Clone for TetsyContractAddress[src]

impl Copy for TetsyContractAddress[src]

impl Debug for TetsyContractAddress[src]

impl Deref for TetsyContractAddress[src]

type Target = Address

The resulting type after dereferencing.

impl Eq for TetsyContractAddress[src]

impl From<TetsyContractAddress> for Address[src]

impl Hash for TetsyContractAddress[src]

impl PartialEq<TetsyContractAddress> for TetsyContractAddress[src]

impl StructuralEq for TetsyContractAddress[src]

impl StructuralPartialEq for TetsyContractAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.