depo_api/
lib.rs

1pub mod receipt;
2pub use receipt::Receipt;
3
4pub mod request;
5use bc_envelope::prelude::*;
6pub use request::*;
7
8// Functions
9
10pub const DELETE_ACCOUNT_FUNCTION_NAME: &str = "deleteAccount";
11pub const DELETE_ACCOUNT_FUNCTION: Function =
12    Function::new_static_named(DELETE_ACCOUNT_FUNCTION_NAME);
13
14pub const DELETE_SHARES_FUNCTION_NAME: &str = "deleteShares";
15pub const DELETE_SHARES_FUNCTION: Function =
16    Function::new_static_named(DELETE_SHARES_FUNCTION_NAME);
17
18pub const FINISH_RECOVERY_FUNCTION_NAME: &str = "finishRecovery";
19pub const FINISH_RECOVERY_FUNCTION: Function =
20    Function::new_static_named(FINISH_RECOVERY_FUNCTION_NAME);
21
22pub const GET_RECOVERY_FUNCTION_NAME: &str = "getRecovery";
23pub const GET_RECOVERY_FUNCTION: Function =
24    Function::new_static_named(GET_RECOVERY_FUNCTION_NAME);
25
26pub const GET_SHARES_FUNCTION_NAME: &str = "getShares";
27pub const GET_SHARES_FUNCTION: Function =
28    Function::new_static_named(GET_SHARES_FUNCTION_NAME);
29
30pub const START_RECOVERY_FUNCTION_NAME: &str = "startRecovery";
31pub const START_RECOVERY_FUNCTION: Function =
32    Function::new_static_named(START_RECOVERY_FUNCTION_NAME);
33
34pub const STORE_SHARE_FUNCTION_NAME: &str = "storeShare";
35pub const STORE_SHARE_FUNCTION: Function =
36    Function::new_static_named(STORE_SHARE_FUNCTION_NAME);
37
38pub const UPDATE_XID_DOCUMENT_FUNCTION_NAME: &str = "updateXIDDocument";
39pub const UPDATE_XID_DOCUMENT_FUNCTION: Function =
40    Function::new_static_named(UPDATE_XID_DOCUMENT_FUNCTION_NAME);
41
42pub const UPDATE_RECOVERY_FUNCTION_NAME: &str = "updateRecovery";
43pub const UPDATE_RECOVERY_FUNCTION: Function =
44    Function::new_static_named(UPDATE_RECOVERY_FUNCTION_NAME);
45
46// Parameters
47
48pub const DATA_PARAM_NAME: &str = "data";
49pub const DATA_PARAM: Parameter = Parameter::new_static_named(DATA_PARAM_NAME);
50
51pub const NEW_XID_DOCUMENT_PARAM_NAME: &str = "newXIDDocument";
52pub const NEW_XID_DOCUMENT_PARAM: Parameter =
53    Parameter::new_static_named(NEW_XID_DOCUMENT_PARAM_NAME);
54
55pub const RECEIPT_PARAM_NAME: &str = "receipt";
56pub const RECEIPT_PARAM: Parameter =
57    Parameter::new_static_named(RECEIPT_PARAM_NAME);
58
59pub const RECOVERY_CONTINUATION_PARAM_NAME: &str = "recoveryContinuation";
60
61pub const RECOVERY_METHOD_PARAM_NAME: &str = "recoveryMethod";
62pub const RECOVERY_METHOD_PARAM: Parameter =
63    Parameter::new_static_named(RECOVERY_METHOD_PARAM_NAME);