[][src]Module ethcontract::prelude

A prelude module for importing commonly used types when interacting with generated contracts.

Re-exports

pub use crate::secret::Password;
pub use crate::secret::PrivateKey;
pub use crate::transaction::Account;
pub use crate::transaction::GasPrice;

Structs

Event

A contract event

EventMetadata

Additional metadata from the log for the event.

H160

Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.

H256

Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.

Http

HTTP Transport (synchronous)

I256

Little-endian 256-bit signed integer.

RawLog

Raw log topics and data for a contract event.

U256

Little-endian large integer type

Void

A void type to represent methods with empty return types.

Web3

Web3 wrapper for all namespaces

Enums

BlockId

Block Identifier

BlockNumber

Block Number

EventStatus

A type representing a contract event that was either added or removed. Note that this type intentionally an enum so that the handling of removed events is made more explicit.

Topic

Acceptable topic possibilities.

TransactionCondition

Represents condition on minimum block number or block timestamp.

Type Definitions

Address

Address

StreamEvent

A contract event from an event stream.