Module nash_protocol::protocol::asset_nonces [−][src]
Expand description
Retrieve current asset nonces from Nash server. Asset nonces allow the smart contract to reason about whether a payload such as a sync state or fill order request is valid in relation to previous activity. Generally, only payloads with a higher nonce than the last seen nonce for an asset are considered valid. For fill order payloads, the nonce must equal the current nonce.
Structs
Retrieve asset nonces from Nash server. Asset nonces increment over time with the property that orders and state signed with older nonces is considered invalid by smart contracts on Ethereum and NEO.
Response contains a HashMap
which connects the symbol of an asset with its
associate nonce.
Functions
Generate canonical string for on request to get asset nonces