cfx_parameters/
internal_contract_addresses.rs

1// Copyright 2020 Conflux Foundation. All rights reserved.
2// Conflux is free software and distributed under GNU General Public License.
3// See http://www.gnu.org/licenses/
4
5use cfx_types::{Address, H160};
6use hex_literal::hex;
7
8pub const ADMIN_CONTROL_CONTRACT_ADDRESS: Address =
9    H160(hex!("0888000000000000000000000000000000000000"));
10pub const SPONSOR_WHITELIST_CONTROL_CONTRACT_ADDRESS: Address =
11    H160(hex!("0888000000000000000000000000000000000001"));
12pub const STORAGE_INTEREST_STAKING_CONTRACT_ADDRESS: Address =
13    H160(hex!("0888000000000000000000000000000000000002"));
14
15pub const CONTEXT_CONTRACT_ADDRESS: Address =
16    H160(hex!("0888000000000000000000000000000000000004"));
17pub const POS_REGISTER_CONTRACT_ADDRESS: Address =
18    H160(hex!("0888000000000000000000000000000000000005"));
19pub const CROSS_SPACE_CONTRACT_ADDRESS: Address =
20    H160(hex!("0888000000000000000000000000000000000006"));
21pub const PARAMS_CONTROL_CONTRACT_ADDRESS: Address =
22    H160(hex!("0888000000000000000000000000000000000007"));
23pub const SYSTEM_STORAGE_ADDRESS: Address =
24    H160(hex!("088800000000000000000000000000000000000a"));
25
26// We reserve more addresses so we don't need to change the genesis hash
27// in test mode each time adding new internal contracts.
28pub const RESERVED3: Address =
29    H160(hex!("0888000000000000000000000000000000000003"));
30pub const RESERVED8: Address =
31    H160(hex!("0888000000000000000000000000000000000008"));
32pub const RESERVED9: Address =
33    H160(hex!("0888000000000000000000000000000000000009"));
34pub const RESERVED11: Address =
35    H160(hex!("088800000000000000000000000000000000000b"));