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
12
13
14
15
16
use super::types::GetAccountOrderRequest;
use crate::graphql;
use crate::graphql::get_account_order;

use graphql_client::GraphQLQuery;

impl GetAccountOrderRequest {
    pub fn make_query(&self) -> graphql_client::QueryBody<get_account_order::Variables> {
        let get_order = get_account_order::Variables {
            payload: get_account_order::GetAccountOrderParams {
                order_id: self.order_id.clone(),
            },
        };
        graphql::GetAccountOrder::build_query(get_order)
    }
}