diem_types/account_config/constants/
addresses.rs

1// Copyright (c) The Diem Core Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4// Copyright 2021 Conflux Foundation. All rights reserved.
5// Conflux is free software and distributed under GNU General Public License.
6// See http://www.gnu.org/licenses/
7
8use crate::account_address::AccountAddress;
9
10pub use move_core_types::language_storage::CORE_CODE_ADDRESS;
11
12pub fn diem_root_address() -> AccountAddress {
13    AccountAddress::from_hex_literal("0xA550C18")
14        .expect("Parsing valid hex literal should always succeed")
15}
16
17pub fn validator_set_address() -> AccountAddress {
18    crate::on_chain_config::config_address()
19}
20
21pub fn treasury_compliance_account_address() -> AccountAddress {
22    AccountAddress::from_hex_literal("0xB1E55ED")
23        .expect("Parsing valid hex literal should always succeed")
24}
25
26pub fn reserved_vm_address() -> AccountAddress {
27    AccountAddress::new([0u8; AccountAddress::LENGTH])
28}
29
30pub fn testnet_dd_account_address() -> AccountAddress {
31    AccountAddress::from_hex_literal("0xDD")
32        .expect("Parsing valid hex literal should always succeed")
33}