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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pub mod receipt;
pub use receipt::Receipt;

pub mod request;
pub use request::*;

use bc_envelope::prelude::*;

// Functions

pub const DELETE_ACCOUNT_FUNCTION_NAME: &str = "deleteAccount";
pub const DELETE_ACCOUNT_FUNCTION: Function = Function::new_static_named(DELETE_ACCOUNT_FUNCTION_NAME);

pub const DELETE_SHARES_FUNCTION_NAME: &str = "deleteShares";
pub const DELETE_SHARES_FUNCTION: Function = Function::new_static_named(DELETE_SHARES_FUNCTION_NAME);

pub const FINISH_RECOVERY_FUNCTION_NAME: &str = "finishRecovery";
pub const FINISH_RECOVERY_FUNCTION: Function = Function::new_static_named(FINISH_RECOVERY_FUNCTION_NAME);

pub const GET_RECOVERY_FUNCTION_NAME: &str = "getRecovery";
pub const GET_RECOVERY_FUNCTION: Function = Function::new_static_named(GET_RECOVERY_FUNCTION_NAME);

pub const GET_SHARES_FUNCTION_NAME: &str = "getShares";
pub const GET_SHARES_FUNCTION: Function = Function::new_static_named(GET_SHARES_FUNCTION_NAME);

pub const START_RECOVERY_FUNCTION_NAME: &str = "startRecovery";
pub const START_RECOVERY_FUNCTION: Function = Function::new_static_named(START_RECOVERY_FUNCTION_NAME);

pub const STORE_SHARE_FUNCTION_NAME: &str = "storeShare";
pub const STORE_SHARE_FUNCTION: Function = Function::new_static_named(STORE_SHARE_FUNCTION_NAME);

pub const UPDATE_KEY_FUNCTION_NAME: &str = "updateKey";
pub const UPDATE_KEY_FUNCTION: Function = Function::new_static_named(UPDATE_KEY_FUNCTION_NAME);

pub const UPDATE_RECOVERY_FUNCTION_NAME: &str = "updateRecovery";
pub const UPDATE_RECOVERY_FUNCTION: Function = Function::new_static_named(UPDATE_RECOVERY_FUNCTION_NAME);

// Parameters

pub const DATA_PARAM_NAME: &str = "data";
pub const DATA_PARAM: Parameter = Parameter::new_static_named(DATA_PARAM_NAME);

pub const KEY_PARAM_NAME: &str = "key";
pub const KEY_PARAM: Parameter = Parameter::new_static_named(KEY_PARAM_NAME);

pub const NEW_KEY_PARAM_NAME: &str = "newKey";
pub const NEW_KEY_PARAM: Parameter = Parameter::new_static_named(NEW_KEY_PARAM_NAME);

pub const RECEIPT_PARAM_NAME: &str = "receipt";
pub const RECEIPT_PARAM: Parameter = Parameter::new_static_named(RECEIPT_PARAM_NAME);

pub const RECOVERY_CONTINUATION_PARAM_NAME: &str = "recoveryContinuation";
pub const RECOVERY_CONTINUATION_PARAM: Parameter = Parameter::new_static_named(RECOVERY_CONTINUATION_PARAM_NAME);

pub const RECOVERY_METHOD_PARAM_NAME: &str = "recoveryMethod";
pub const RECOVERY_METHOD_PARAM: Parameter = Parameter::new_static_named(RECOVERY_METHOD_PARAM_NAME);