Crate ethcontract_generate

Source
Expand description

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.

Re-exports§

pub use crate::source::Source;

Modules§

loaders
Convenience re-imports so that you don’t have to add ethcontract-common as a dependency.
source
Allows loading serialized artifacts from various sources.

Structs§

Artifact
An entity that contains compiled contracts.
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.
ContractBuilder
Builder for generating contract code. Note that no code is generated until the builder is finalized with generate or output.
ContractMut
A wrapper that allows mutating contract but doesn’t allow changing its name.
InsertResult
Result of inserting a nre contract into an artifact.

Functions§

parse_address
Parses the given address string