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.
- Contract
Bindings - 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. - Contract
Builder - Builder for generating contract code. Note that no code is generated until
the builder is finalized with
generate
oroutput
. - Contract
Mut - A wrapper that allows mutating contract but doesn’t allow changing its name.
- Insert
Result - Result of inserting a nre contract into an artifact.
Functions§
- parse_
address - Parses the given address string