[][src]Module nash_protocol::types::blockchain

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

btc

Bitcoin specific types shared across protocol requests

eth

Ethereum specific types shared across protocol requests

neo

NEO specific types shared across protocol requests

Enums

Address
AssetOrCrosschain

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.

MovementType

Wrapper type for the two kinds of movments: deposit and withdrawal

Prefix

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.

PublicKey

Functions

bigdecimal_to_nash_prec

Convert a bigdecimal to precision expected by the Nash ME Nash ME defines precision as only digits right of decimal point

bigdecimal_to_nash_u64

Convert a bigdecimal num to u64 for serialization in the protocol using the precision scheme defined by the Nash ME

nash_u64_to_bigdecimal