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§
- Convenience re-imports so that you don’t have to add
ethcontract-common
as a dependency. - Allows loading serialized artifacts from various sources.
Structs§
- An entity that contains compiled contracts.
- 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. - Builder for generating contract code. Note that no code is generated until the builder is finalized with
generate
oroutput
. - A wrapper that allows mutating contract but doesn’t allow changing its name.
- Result of inserting a nre contract into an artifact.
Functions§
- Parses the given address string