depo_api/
lib.rs

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