Crate ethcontract_generate[][src]

Crate for generating type-safe bindings to Ethereum smart contracts. This crate is intended to be used either indirectly with the ethcontract crate's contract procedural macro or directly from a build script.

Structs

Builder

Builder for generating contract code. Note that no code is generated until the builder is finalized with generate or output.

ContractBindings

Type-safe contract bindings generated by a Builder. This type can be either written to file or into a token stream for use in a procedural macro.

TransactionHash

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

Enums

Source

A source of a Truffle artifact JSON.

Functions

parse_address

Parses the given address string

Type Definitions

Address

Address