Module nash_protocol::types::blockchain [−][src]
Expand description
Types used across protocol requests for constructing and validating blockchain payload data. Any types specific to an individual protocol request will live in the respective module.
Modules
Bitcoin specific types shared across protocol requests
Ethereum specific types shared across protocol requests
NEO specific types shared across protocol requests
Enums
An asset in the Ethereum and NEO smart contract protocols is represented either by an asset id or an indicator that the trade is occurring across blockchains.
Wrapper type for the two kinds of movments: deposit and withdrawal
The type prefix indicates what operation this data represents. This is
encoded by 1 byte in the protocol. For example, a payload representing
the fill order operation has 0x01
at the start of the data. These
prefixes are the same for both NEO and Ethereum payloads.
Functions
Convert a bigdecimal to precision expected by the Nash ME Nash ME defines precision as only digits right of decimal point
Convert a bigdecimal num
to u64
for serialization in the protocol using the
precision scheme defined by the Nash ME