-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconstants.fc
66 lines (58 loc) · 2.95 KB
/
constants.fc
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
57
58
59
60
61
62
63
64
65
66
const int op::update_config_parameter = 0x43665021;
;;const int op::update_config_code = 0x4e436f64; ;;TODO
const int op::update_config_key = 0x50624b21;
const int op::update_elector_code = 0x4e43ef05;
const int op::vote_for_config_proposal = 0x566f7465;
const int op::vote_for_config_proposal_from_elector = 0x13245678; ;;TODO
const int op::response::vote_for_config_proposal = (op::vote_for_config_proposal + 0x80000000);
const int op::set_next_validator_set = 0x4e565354;
const int op::response::update_vset_confirm = 0xee764f4b;
const int op::response::update_vset_reject = 0xee764f6f;
const int op::new_voting_proposal = 0x6e565052;
const int op::response::proposal_accepted = (op::new_voting_proposal + 0x80000000);
const int op::response::vote_result = 0xd6745240;
const int op::response::stake_rejected = 0xee6f454c;
const int op::not_allowed = 0xfffffffe;
const int op::not_supported = 0xffffffff;
const int op::response::stake_recover = 0xf96f7324;
const int op::response::stake_accepted = 0xf374484c;
const int op::new_stake = 0x4e73744b;
const int op::recover_stake = 0x47657424;
const int op::new_complaint = 0x52674370;
const int op::response::new_complaint = 0xf2676350;
const int op::vote_for_complaint = 0x56744370;
const int op::set_new_code = 0x4e436f64;
const int op::response::new_code_set = (op::set_new_code + 0x80000000);
const int tag::signature_challenge = 0x566f7445;
const int tag::stake_application = 0x654c5074;
const int tag::complaint = 0x56744350;
const int tag::ed25519_pubkey = 0x8e81278a;
const int error::proposal::old_mismatch = 0xe2646356;
const int error::proposal::mandatory_nullified = 0xcd506e6c;
const int error::proposal::too_deep = 0xc2616456;
const int error::proposal::critical_flag_missing = 0xc3726954;
const int error::proposal::expired = 0xc5787069;
const int error::proposal::critical_flag_mismatch = 0xc3726955;
const int error::proposal::already_exists = 0xc16c7245;
const int error::proposal::insufficient_fee = 0xf0617924;
const int error::unauthorized = 0x33440022; ;;TODO
const int error::expired_vset = 0x13550021;
const int error::no_elected_set = 0x7707; ;;TODO
const int error::validator_params_mismatch = 0x7708; ;;TODO
const int ONECOIN = 1000000000;
const int config_params::config_address = 0;
const int config_params::elector_address = 1;
const int config_params::mandatory_params = 9;
const int config_params::critical_params = 10;
const int config_params::voting_setup = 11;
const int config_params::complaint_prices = 13;
const int config_params::validation_times = 15;
const int config_params::validators_numbers = 16;
const int config_params::validators_stakes = 17;
const int config_params::current_validators_set = 34;
const int config_params::next_validators_set = 36;
const int special_params::set_config_key = -999;
const int special_params::update_config_code = -1000;
const int special_params::update_elector_code = -1001;
const int special_params::signed_votes_disabled = -1002;
const int special_params::config_multikey = -1003;