Expand description
Re-exports§
pub use self::abi::AbiDecode;pub use self::abi::AbiDecoder;pub use self::abi::AbiEncode;pub use self::abi::AbiEncoder;
Modules§
- abi
- Implementation of EVM RLP reader/writer
- custom_
signature - A module for custom signature support.
- types
- Solidity type definitions (aliases from solidity name to rust type)
To be used in
solidity_interfacedefinitions, to make sure there is no type conflict between Rust code and generated definitions
Macros§
- dummy_
contract - Implement dummy Contract trait, used for tests Allows contract methods to return either T, or Result<T, String> for any T
- event_
topic - Returns solidity topic (hash) by its textual representation
- fn_
selector - Returns solidity function selector (first 4 bytes of hash) by its textual representation
- generate_
stubgen - Generate “tests”, which will generate solidity code on execution and print it to stdout
Script at
.maintain/scripts/generate_api.shcan split this output from test runtime - make_
signature - Macro to create signatures of types and functions.
Structs§
- Dummy
Post - Example of
PostInfo, used in tests
Enums§
- ERC165
Call - Implementation of ERC165 is implicitly generated for all interfaces in
solidity_interface, this structure holds parsed data forERC165Callsubvariant
Traits§
- Call
- Parseable EVM call, this trait should be implemented with
solidity_interfacemacro - Callable
- Type callable with ethereum message, may be implemented by
solidity_interfacemacro on interface implementation, or for externally-owned real EVM contract - Contract
- Contract configuration
- ToLog
- Implementation of this trait should not be written manually,
instead use
crate::ToLogproc macros. - ToTopic
- Only items implementing
ToTopicmay be used as#[indexed]field incrate::ToLogmacro usage.
Type Aliases§
- Result
Of - Contract specific result type
- Result
With Post Info Of - Contract specific result type
Attribute Macros§
- solidity_
interface - Derives call enum implementing
crate::Callableandcrate::Callfrom impl block.