[][src]Module contact::types

Structs

Block
BlockData
BlockEvidence
BlockHeader
BlockId
BlockParts
BlockSignature
BlockVersion
CosmosAccountInfo
LastCommit
LatestBlockEndpointResponse
OptionalTXInfo
ResponseWrapper

A generic wrapper for Cosmos REST server responses which always include the height

TXSendResponse
TypeWrapper

A generic wrapper for Cosmos REST server responses which always include the struct type

Functions

parse_val

Adapter that lets us parse any val that implements from_str into the type we want, this helps solve type problems like sigs or addresses being presented as strings and requiring a parse. For our own types like Address we just implement deserialize such that the string representation is accepted implicitly. But for native types like u128 this is the only way to go