1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#![feature(absolute_path)]
extern crate dirs_next;
#[macro_use]
extern crate lazy_static;

pub mod clap_app;
pub mod client;
pub mod clmmpool;
pub mod command;
pub mod contract;
pub mod display;
pub mod error;
pub mod math;
pub mod program;
pub mod utils;

#[macro_export]
macro_rules! check_and_update_err {
    ($result: expr, $err: expr) => {
        match $result.is_err() {
            true => Err($err),
            false => Ok($result.unwrap()),
        }
    };
}