nash-protocol 0.3.0

state management and cryptography for interacting with nash exchange protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::types::CancelOrderResponse;
use crate::graphql::cancel_order;

impl From<cancel_order::ResponseData> for CancelOrderResponse {
    // This unwrap is safe. ME_FIXME
    fn from(response: cancel_order::ResponseData) -> Self {
        Self {
            order_id: response.cancel_order.order_id.unwrap().clone(),
        }
    }
}