Crate vapabi

Source
Expand description

Vapory ABI encoding decoding library.

Re-exports§

pub use param_type::ParamType;
pub use token::Token;

Modules§

param_type
Function and event param types.
token
ABI param and parsing for it.

Structs§

Constructor
Contract constructor specification.
Contract
API building calls to contracts ABI.
Error
The Error type.
Event
Contract event.
EventParam
Event param specification.
Events
Contract events interator.
Function
Contract function specification.
Functions
Contract functions interator.
Log
Decoded log.
LogParam
Decoded log param.
Param
Function param.
RawLog
Vapory log.
RawTopicFilter
Raw topic filter.
TopicFilter
Topic filter.

Enums§

ErrorKind
The kind of an error.
Topic
Acceptable topic possibilities.

Traits§

FunctionOutputDecoder
Contract functions generated by vapabi-derive
LogFilter
Common filtering functions that are available for any event.
ParseLog
trait common to things (events) that have an associated Log type that can be parsed from a RawLog
ResultExt
Additional methods for Result, for easy interaction with this crate.

Functions§

decode
Decodes ABI compliant vector of bytes into vector of tokens described by types param.
encode
Encodes vector of tokens into ABI compliant vector of bytes.

Type Aliases§

Address
ABI address.
Bytes
ABI bytes.
FixedBytes
ABI fixed bytes.
Hash
Commonly used FixedBytes of size 32
Int
ABI signed integer.
Result
Convenient wrapper around std::Result.
Uint
ABI unsigned integer.
Word
ABI word.