diem_types/account_config/
mod.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
8pub mod constants;
9pub mod resources;
10
11pub use constants::*;
12pub use resources::*;
13
14use move_core_types::account_address::AccountAddress;
15
16pub fn pivot_chain_select_address() -> AccountAddress {
17    AccountAddress::from_hex_literal("0x1D9")
18        .expect("Parsing valid hex literal should always succeed")
19}
20
21pub fn election_select_address() -> AccountAddress {
22    AccountAddress::from_hex_literal("0x1DA")
23        .expect("Parsing valid hex literal should always succeed")
24}
25
26pub fn retire_address() -> AccountAddress {
27    AccountAddress::from_hex_literal("0x1DB")
28        .expect("Parsing valid hex literal should always succeed")
29}
30
31pub fn unlock_address() -> AccountAddress {
32    AccountAddress::from_hex_literal("0x1DC")
33        .expect("Parsing valid hex literal should always succeed")
34}
35
36pub fn register_address() -> AccountAddress {
37    AccountAddress::from_hex_literal("0x1DD")
38        .expect("Parsing valid hex literal should always succeed")
39}
40
41pub fn update_voting_power_address() -> AccountAddress {
42    AccountAddress::from_hex_literal("0x1DE")
43        .expect("Parsing valid hex literal should always succeed")
44}
45
46pub fn dispute_address() -> AccountAddress {
47    AccountAddress::from_hex_literal("0x1DF")
48        .expect("Parsing valid hex literal should always succeed")
49}
50
51pub fn reward_distribution_address() -> AccountAddress {
52    AccountAddress::from_hex_literal("0x1E0")
53        .expect("Parsing valid hex literal should always succeed")
54}