Crate odra_mock_vm_types

Source

Structs§

Address
Blockchain-agnostic address representation.
Bytes
CallArgs
Represents a collection of arguments passed to a smart contract entrypoint call.
Error
The error type for I/O operations of the Read, Write, Seek, and associated traits.
PublicKey
A type representing the public key. Caution: MockVM does not implement any cryptography!
U128
Little-endian large integer type
U256
Little-endian large integer type
U512
Little-endian large integer type

Enums§

ErrorKind
A list specifying general categories of I/O error.
MockVMSerializationError
An error that may occur while data de(serialization).

Constants§

CONTRACT_ADDRESS_PREFIX
Prefix for contract addresses.

Traits§

BorshDeserialize
A data-structure that can be de-serialized from binary format by NBOR.
BorshSerialize
A data-structure that can be serialized into binary format by NBOR.
OdraType
A type that can be written to the storage and read from the storage.
Typed
A trait that adds Type description for a given type.
Write
A trait for objects which are byte-oriented sinks.

Type Aliases§

Balance
A type representing the amount of native tokens.
BlockTime
A type representing the block time.
EventData
Represents a serialized event.
Result
A specialized Result type for I/O operations.

Derive Macros§

BorshDeserialize
BorshSerialize